Requires authorization
Lists the sub-accounts in your Merchant Center account. Try it now.
Request
HTTP request
GET https://www.googleapis.com/content/v2/merchantId/accounts
Parameters
Parameter name | Value | Description |
---|---|---|
Path parameters | ||
merchantId |
unsigned long |
The ID of the managing account. This must be a multi-client account. |
Optional query parameters | ||
maxResults |
unsigned integer |
The maximum number of accounts to return in the response, used for paging. |
pageToken |
string |
The token returned by the previous request. |
Authorization
This request requires authorization with the following scope (read more about authentication and authorization).
Scope |
---|
https://www.googleapis.com/auth/content |
Request body
Do not supply a request body with this method.
Response
If successful, this method returns a response body with the following structure:
JSON
{ "kind": "content#accountsListResponse", "nextPageToken": string, "resources": [ accounts Resource ] }
Property name | Value | Description | Notes |
---|---|---|---|
resources[] |
list |
||
kind |
string |
Identifies what kind of resource this is. Value: the fixed string "content#accountsListResponse" . |
|
nextPageToken |
string |
The token for the retrieval of the next page of accounts. |
XML
<accounts> <next_page_token> string </next_page_token> (foreach) accounts Resource (/foreach) </accounts>
Property name | Value | Description | Notes |
---|---|---|---|
accounts |
object |
||
accounts/next_page_token |
string |
The token for the retrieval of the next page of accounts. | |
accounts/account |
nested object |
Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, patch, and update require the admin role. |
Try it!
Use the APIs Explorer below to call this method on live data and see the response.