Google Shopping Merchant Accounts V1 Client - Class AddAccountService (1.0.0)

Reference documentation and code samples for the Google Shopping Merchant Accounts V1 Client class AddAccountService.

Additional instructions to add account services during creation of the account.

Generated from protobuf message google.shopping.merchant.accounts.v1.CreateAndConfigureAccountRequest.AddAccountService

Namespace

Google \ Shopping \ Merchant \ Accounts \ V1 \ CreateAndConfigureAccountRequest

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ account_aggregation Google\Shopping\Merchant\Accounts\V1\AccountAggregation

The provider is an aggregator for the account. Payload for service type Account Aggregation.

↳ provider string

Required. The provider of the service. Either the reference to an account such as providers/123 or a well-known service provider (one of providers/GOOGLE_ADS or providers/GOOGLE_BUSINESS_PROFILE).

getAccountAggregation

The provider is an aggregator for the account. Payload for service type Account Aggregation.

Returns
Type Description
Google\Shopping\Merchant\Accounts\V1\AccountAggregation|null

hasAccountAggregation

setAccountAggregation

The provider is an aggregator for the account. Payload for service type Account Aggregation.

Parameter
Name Description
var Google\Shopping\Merchant\Accounts\V1\AccountAggregation
Returns
Type Description
$this

getProvider

Required. The provider of the service. Either the reference to an account such as providers/123 or a well-known service provider (one of providers/GOOGLE_ADS or providers/GOOGLE_BUSINESS_PROFILE).

Returns
Type Description
string

hasProvider

clearProvider

setProvider

Required. The provider of the service. Either the reference to an account such as providers/123 or a well-known service provider (one of providers/GOOGLE_ADS or providers/GOOGLE_BUSINESS_PROFILE).

Parameter
Name Description
var string
Returns
Type Description
$this

getServiceType

Returns
Type Description
string