# Google Ads Data Manager V1 Client - Class ProductAccount (0.5.0)

0.5.0 (latest) 0.4.0 0.3.1 0.2.0 0.1.2 Reference documentation and code samples for the Google Ads Data Manager V1 Client class ProductAccount.

Represents a specific account.

Generated from protobuf message `google.ads.datamanager.v1.ProductAccount`

## Namespace

Google \\ Ads \\ DataManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ product` | `int` Deprecated. Use [`account_type`](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.ProductAccount#_Google_Ads_DataManager_V1_ProductAccount__getAccountType__) instead. |
| `↳ account_id` | `string` Required. The ID of the account. For example, your Google Ads account ID. |
| `↳ account_type` | `int` Optional. The type of the account. For example, `GOOGLE_ADS`. Either `account_type` or the deprecated `product` is required. If both are set, the values must match. |

### getProduct

Deprecated. Use
[`account_type`](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.ProductAccount#_Google_Ads_DataManager_V1_ProductAccount__getAccountType__)
instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type Product. |

### setProduct

Deprecated. Use
[`account_type`](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.ProductAccount#_Google_Ads_DataManager_V1_ProductAccount__getAccountType__)
instead.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type Product. |

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

### getAccountId

Required. The ID of the account. For example, your Google Ads account ID.

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

### setAccountId

Required. The ID of the account. For example, your Google Ads account ID.

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

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

### getAccountType

Optional. The type of the account. For example, `GOOGLE_ADS`.

Either `account_type` or the deprecated `product` is required.
If both are set, the values must match.

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

### setAccountType

Optional. The type of the account. For example, `GOOGLE_ADS`.

Either `account_type` or the deprecated `product` is required.
If both are set, the values must match.

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

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