class Accounttax extends Resource (View source)

The "accounttax" collection of methods.

Typical usage is:

 $contentService = new Google\Service\ShoppingContent(...);
 $accounttax = $contentService->accounttax;

Methods

custombatch(AccounttaxCustomBatchRequest $postBody, array $optParams = [])

Retrieves and updates tax settings of multiple accounts in a single request.

get(string $merchantId, string $accountId, array $optParams = [])

Retrieves the tax settings of the account. (accounttax.get)

listAccounttax(string $merchantId, array $optParams = [])

Lists the tax settings of the sub-accounts in your Merchant Center account.

update(string $merchantId, string $accountId, AccountTax $postBody, array $optParams = [])

Updates the tax settings of the account. Any fields that are not provided are deleted from the resource. (accounttax.update)

Details

AccounttaxCustomBatchResponse custombatch(AccounttaxCustomBatchRequest $postBody, array $optParams = [])

Retrieves and updates tax settings of multiple accounts in a single request.

(accounttax.custombatch)

Parameters

AccounttaxCustomBatchRequest $postBody
array $optParams

Optional parameters.

Return Value

AccounttaxCustomBatchResponse

Exceptions

Exception

AccountTax get(string $merchantId, string $accountId, array $optParams = [])

Retrieves the tax settings of the account. (accounttax.get)

Parameters

string $merchantId

The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.

string $accountId

The ID of the account for which to get/update account tax settings.

array $optParams

Optional parameters.

Return Value

AccountTax

Exceptions

Exception

AccounttaxListResponse listAccounttax(string $merchantId, array $optParams = [])

Lists the tax settings of the sub-accounts in your Merchant Center account.

(accounttax.listAccounttax)

Parameters

string $merchantId

The ID of the managing account. This must be a multi-client account.

array $optParams

Optional parameters.

Return Value

AccounttaxListResponse

Exceptions

Exception

AccountTax update(string $merchantId, string $accountId, AccountTax $postBody, array $optParams = [])

Updates the tax settings of the account. Any fields that are not provided are deleted from the resource. (accounttax.update)

Parameters

string $merchantId

The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.

string $accountId

The ID of the account for which to get/update account tax settings.

AccountTax $postBody
array $optParams

Optional parameters.

Return Value

AccountTax

Exceptions

Exception