Reference documentation and code samples for the Google Shopping Merchant Accounts V1beta Client class CreateAndConfigureAccountRequest.
Request message for the CreateAndConfigureAccount
method.
Generated from protobuf message google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest
Namespace
Google \ Shopping \ Merchant \ Accounts \ V1betaMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ account |
Google\Shopping\Merchant\Accounts\V1beta\Account
Required. The account to be created. |
↳ users |
array<Google\Shopping\Merchant\Accounts\V1beta\CreateUserRequest>
Optional. Users to be added to the account. |
↳ accept_terms_of_service |
Google\Shopping\Merchant\Accounts\V1beta\CreateAndConfigureAccountRequest\AcceptTermsOfService
Optional. The Terms of Service (ToS) to be accepted immediately upon account creation. |
↳ service |
array<Google\Shopping\Merchant\Accounts\V1beta\CreateAndConfigureAccountRequest\AddAccountService>
Required. An account service between the account to be created and the provider account is initialized as part of the creation. At least one such service needs to be provided. Currently exactly one of these needs to be |
getAccount
Required. The account to be created.
Returns | |
---|---|
Type | Description |
Google\Shopping\Merchant\Accounts\V1beta\Account|null |
hasAccount
clearAccount
setAccount
Required. The account to be created.
Parameter | |
---|---|
Name | Description |
var |
Google\Shopping\Merchant\Accounts\V1beta\Account
|
Returns | |
---|---|
Type | Description |
$this |
getUsers
Optional. Users to be added to the account.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setUsers
Optional. Users to be added to the account.
Parameter | |
---|---|
Name | Description |
var |
array<Google\Shopping\Merchant\Accounts\V1beta\CreateUserRequest>
|
Returns | |
---|---|
Type | Description |
$this |
getAcceptTermsOfService
Optional. The Terms of Service (ToS) to be accepted immediately upon account creation.
Returns | |
---|---|
Type | Description |
Google\Shopping\Merchant\Accounts\V1beta\CreateAndConfigureAccountRequest\AcceptTermsOfService|null |
hasAcceptTermsOfService
clearAcceptTermsOfService
setAcceptTermsOfService
Optional. The Terms of Service (ToS) to be accepted immediately upon account creation.
Parameter | |
---|---|
Name | Description |
var |
Google\Shopping\Merchant\Accounts\V1beta\CreateAndConfigureAccountRequest\AcceptTermsOfService
|
Returns | |
---|---|
Type | Description |
$this |
getService
Required. An account service between the account to be created and the
provider account is initialized as part of the creation. At least one such
service needs to be provided. Currently exactly one of these needs to be
account_aggregation
, which means you can only create sub accounts, not
standalone account through this method. Additional account_management
or
product_management
services may be provided.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setService
Required. An account service between the account to be created and the
provider account is initialized as part of the creation. At least one such
service needs to be provided. Currently exactly one of these needs to be
account_aggregation
, which means you can only create sub accounts, not
standalone account through this method. Additional account_management
or
product_management
services may be provided.
Parameter | |
---|---|
Name | Description |
var |
array<Google\Shopping\Merchant\Accounts\V1beta\CreateAndConfigureAccountRequest\AddAccountService>
|
Returns | |
---|---|
Type | Description |
$this |