Accounts: listlinks

Returns the list of accounts linked to your Merchant Center account. Try it now.

Request

HTTP request

GET https://www.googleapis.com/content/v2.1/merchantId/accounts/accountId/listlinks

Parameters

Parameter name Value Description
Path parameters
accountId unsigned long The ID of the account for which to list links.
merchantId unsigned long 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.
Optional query parameters
maxResults unsigned integer The maximum number of links to return in the response, used for pagination.
pageToken string The token returned by the previous request.

Authorization

This request requires authorization with the following scope:

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:

{
  "kind": "content#accountsListLinksResponse",
  "nextPageToken": string,
  "links": [
    {
      "linkedAccountId": string,
      "services": [
        {
          "service": string,
          "status": string
        }
      ]
    }
  ]
}
Property name Value Description Notes
kind string Identifies what kind of resource this is. Value: the fixed string "content#accountsListLinksResponse".
nextPageToken string The token for the retrieval of the next page of links.
links[].linkedAccountId string The ID of the linked account.
links[].services[] list List of provided services.
links[].services[].service string Service provided to or by the linked account.

Acceptable values are:
  • "shoppingActionsOrderManagement"
  • "shoppingActionsProductManagement"
  • "shoppingAdsProductManagement"
links[].services[].status string Status of the link

Acceptable values are:
  • "active"
  • "inactive"
  • "pending"

Try it!

Use the APIs Explorer below to call this method on live data and see the response.