- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- LinkedAccount
- LinkService
- Try it!
Returns the list of accounts linked to your Merchant Center account.
HTTP request
GET https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/accounts/{accountId}/listlinks
Path parameters
Parameters | |
---|---|
merchant |
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 |
account |
The ID of the account for which to list links. |
Query parameters
Parameters | |
---|---|
max |
The maximum number of links to return in the response, used for pagination. The minimum allowed value is 5 results per page. If provided value is lower than 5, it will be automatically increased to 5. |
page |
The token returned by the previous request. |
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"nextPageToken": string,
"links": [
{
object ( |
Fields | |
---|---|
next |
The token for the retrieval of the next page of links. |
links[] |
The list of available links. |
kind |
Identifies what kind of resource this is. Value: the fixed string " |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview.
LinkedAccount
JSON representation |
---|
{
"linkedAccountId": string,
"services": [
{
object ( |
Fields | |
---|---|
linked |
The ID of the linked account. |
services[] |
accounts.list of provided services. |
LinkService
JSON representation |
---|
{ "service": string, "status": string } |
Fields | |
---|---|
service |
Service provided to or by the linked account. Acceptable values are:
|
status |
Status of the link Acceptable values are:
|