# Google Shopping Merchant Accounts V1beta Client - Class Account (1.4.1)

1.4.1 (latest) 1.4.0 1.3.1 1.2.2 1.1.0 1.0.0 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.3 0.2.0 0.1.0

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Shopping Merchant Accounts V1beta Client class Account.

An account.

Generated from protobuf message `google.shopping.merchant.accounts.v1beta.Account`

## Namespace

Google \\ Shopping \\ Merchant \\ Accounts \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The resource name of the account. Format: `accounts/{account}` |
| `↳ account_id` | `int|string` Output only. The ID of the account. |
| `↳ account_name` | `string` Required. A human-readable name of the account. See [store name](https://support.google.com/merchants/answer/160556) and [business name](https://support.google.com/merchants/answer/12159159) for more information. |
| `↳ adult_content` | `bool` Whether this account contains adult content. |
| `↳ test_account` | `bool` Output only. Whether this is a test account. |
| `↳ time_zone` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.TimeZone.html` Required. The time zone of the account. On writes, `time_zone` sets both the `reporting_time_zone` and the `display_time_zone`. For reads, `time_zone` always returns the `display_time_zone`. If `display_time_zone` doesn't exist for your account, `time_zone` is empty. |
| `↳ language_code` | `string` Required. The account's [BCP-47 language code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`. |

### getName

Identifier. The resource name of the account.

Format: `accounts/{account}`

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

### setName

Identifier. The resource name of the account.

Format: `accounts/{account}`

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

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

### getAccountId

Output only. The ID of the account.

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

### setAccountId

Output only. The ID of the account.

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

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

### getAccountName

Required. A human-readable name of the account. See
[store name](https://support.google.com/merchants/answer/160556) and
[business name](https://support.google.com/merchants/answer/12159159) for
more information.

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

### setAccountName

Required. A human-readable name of the account. See
[store name](https://support.google.com/merchants/answer/160556) and
[business name](https://support.google.com/merchants/answer/12159159) for
more information.

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

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

### getAdultContent

Whether this account contains adult content.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setAdultContent

Whether this account contains adult content.

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

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

### getTestAccount

Output only. Whether this is a test account.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setTestAccount

Output only. Whether this is a test account.

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

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

### getTimeZone

Required. The time zone of the account.

On writes, `time_zone` sets both the `reporting_time_zone` and the
`display_time_zone`.
For reads, `time_zone` always returns the `display_time_zone`. If
`display_time_zone` doesn't exist for your account, `time_zone` is empty.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.TimeZone.html|null` |   |

### hasTimeZone

### clearTimeZone

### setTimeZone

Required. The time zone of the account.

On writes, `time_zone` sets both the `reporting_time_zone` and the
`display_time_zone`.
For reads, `time_zone` always returns the `display_time_zone`. If
`display_time_zone` doesn't exist for your account, `time_zone` is empty.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.TimeZone.html` |

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

### getLanguageCode

Required. The account's [BCP-47 language
code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`.

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

### setLanguageCode

Required. The account's [BCP-47 language
code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`.

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

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