# Google Shopping Css V1 Client - Class Account (0.8.1)

0.8.1 (latest) 0.8.0 0.7.3 0.6.2 0.5.1 0.4.1 0.3.3 0.2.9 0.1.0 Reference documentation and code samples for the Google Shopping Css V1 Client class Account.

Information about CSS/MC account.

Generated from protobuf message `google.shopping.css.v1.Account`

## Namespace

Google \\ Shopping \\ Css \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The label resource name. Format: accounts/{account} |
| `↳ full_name` | `string` Output only. Immutable. The CSS/MC account's full name. |
| `↳ display_name` | `string` The CSS/MC account's short display name. |
| `↳ homepage_uri` | `string` Output only. Immutable. The CSS/MC account's homepage. |
| `↳ parent` | `string` The CSS/MC account's parent resource. CSS group for CSS domains; CSS domain for MC accounts. Returned only if the user has access to the parent account. Note: For MC sub-accounts, this is also the CSS domain that is the parent resource of the MCA account, since we are effectively flattening the hierarchy." |
| `↳ label_ids` | `int[]|string[]` Manually created label IDs assigned to the CSS/MC account by a CSS parent account. |
| `↳ automatic_label_ids` | `int[]|string[]` Automatically created label IDs assigned to the MC account by CSS Center. |
| `↳ account_type` | `int` Output only. The type of this account. |

### getName

The label resource name.

Format: accounts/{account}

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

The label resource name.

Format: accounts/{account}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFullName

Output only. Immutable. The CSS/MC account's full name.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setFullName

Output only. Immutable. The CSS/MC account's full name.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDisplayName

The CSS/MC account's short display name.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasDisplayName

### clearDisplayName

### setDisplayName

The CSS/MC account's short display name.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getHomepageUri

Output only. Immutable. The CSS/MC account's homepage.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasHomepageUri

### clearHomepageUri

### setHomepageUri

Output only. Immutable. The CSS/MC account's homepage.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getParent

The CSS/MC account's parent resource. CSS group for CSS domains; CSS
domain for MC accounts. Returned only if the user has access to the
parent account.

Note: For MC sub-accounts, this is also the CSS domain that is the parent
resource of the MCA account, since we are effectively flattening the
hierarchy."

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasParent

### clearParent

### setParent

The CSS/MC account's parent resource. CSS group for CSS domains; CSS
domain for MC accounts. Returned only if the user has access to the
parent account.

Note: For MC sub-accounts, this is also the CSS domain that is the parent
resource of the MCA account, since we are effectively flattening the
hierarchy."

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLabelIds

Manually created label IDs assigned to the CSS/MC account by a CSS parent
account.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<int>|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setLabelIds

Manually created label IDs assigned to the CSS/MC account by a CSS parent
account.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int[]|string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAutomaticLabelIds

Automatically created label IDs assigned to the MC account by
CSS Center.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<int>|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setAutomaticLabelIds

Automatically created label IDs assigned to the MC account by
CSS Center.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int[]|string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAccountType

Output only. The type of this account.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [AccountType](https://docs.cloud.google.com/php/docs/reference/shopping-css/latest/V1.Account.AccountType). |

### setAccountType

Output only. The type of this account.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [AccountType](https://docs.cloud.google.com/php/docs/reference/shopping-css/latest/V1.Account.AccountType). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |