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 \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ product |
int
Deprecated. Use |
↳ 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, |
getProduct
Deprecated. Use
account_type
instead.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type Product. |
setProduct
Deprecated. Use
account_type
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. |
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. |
| Returns | |
|---|---|
| Type | Description |
$this |
|