Google Ads Data Manager V1 Client - Class ProductAccount (0.1.1)

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 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 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
Design a Mobile Site
View Site in Mobile | Classic
Share by: