Accounts
class Accounts extends Resource (View source)
The "accounts" collection of methods.
Typical usage is:
$contentService = new Google\Service\ShoppingContent(...);
$accounts = $contentService->accounts;
Methods
Returns information about the authenticated user. (accounts.authinfo)
Claims the website of a Merchant Center sub-account. Merchant accounts with approved third-party CSSs aren't required to claim a website.
Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)accounts in a single request. (accounts.custombatch)
Deletes a Merchant Center sub-account. (accounts.delete)
Retrieves a Merchant Center account. (accounts.get)
Performs an action on a link between two Merchant Center accounts, namely accountId and linkedAccountId. (accounts.link)
Lists the sub-accounts in your Merchant Center account.
Returns the list of accounts linked to your Merchant Center account.
Request verification code to start phone verification.
Updates labels that are assigned to the Merchant Center account by CSS user.
Validates verification code to verify phone number for the account. If
successful this will overwrite the value of
accounts.businessinformation.phoneNumber
. Only verified phone number will
replace an existing verified phone number. (accounts.verifyphonenumber)
Details
AccountsAuthInfoResponse
authinfo(array $optParams = [])
Returns information about the authenticated user. (accounts.authinfo)
AccountsClaimWebsiteResponse
claimwebsite(string $merchantId, string $accountId, array $optParams = [])
Claims the website of a Merchant Center sub-account. Merchant accounts with approved third-party CSSs aren't required to claim a website.
(accounts.claimwebsite)
AccountsCustomBatchResponse
custombatch(AccountsCustomBatchRequest $postBody, array $optParams = [])
Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)accounts in a single request. (accounts.custombatch)
delete(string $merchantId, string $accountId, array $optParams = [])
Deletes a Merchant Center sub-account. (accounts.delete)
Account
get(string $merchantId, string $accountId, array $optParams = [])
Retrieves a Merchant Center account. (accounts.get)
Account
insert(string $merchantId, Account $postBody, array $optParams = [])
Creates a Merchant Center sub-account. (accounts.insert)
AccountsLinkResponse
link(string $merchantId, string $accountId, AccountsLinkRequest $postBody, array $optParams = [])
Performs an action on a link between two Merchant Center accounts, namely accountId and linkedAccountId. (accounts.link)
AccountsListResponse
listAccounts(string $merchantId, array $optParams = [])
Lists the sub-accounts in your Merchant Center account.
(accounts.listAccounts)
AccountsListLinksResponse
listlinks(string $merchantId, string $accountId, array $optParams = [])
Returns the list of accounts linked to your Merchant Center account.
(accounts.listlinks)
RequestPhoneVerificationResponse
requestphoneverification(string $merchantId, string $accountId, RequestPhoneVerificationRequest $postBody, array $optParams = [])
Request verification code to start phone verification.
(accounts.requestphoneverification)
Account
update(string $merchantId, string $accountId, Account $postBody, array $optParams = [])
Updates a Merchant Center account. Any fields that are not provided are deleted from the resource. (accounts.update)
AccountsUpdateLabelsResponse
updatelabels(string $merchantId, string $accountId, AccountsUpdateLabelsRequest $postBody, array $optParams = [])
Updates labels that are assigned to the Merchant Center account by CSS user.
(accounts.updatelabels)
VerifyPhoneNumberResponse
verifyphonenumber(string $merchantId, string $accountId, VerifyPhoneNumberRequest $postBody, array $optParams = [])
Validates verification code to verify phone number for the account. If
successful this will overwrite the value of
accounts.businessinformation.phoneNumber
. Only verified phone number will
replace an existing verified phone number. (accounts.verifyphonenumber)