Accounts: link

Requires authorization

Performs an action on a link between a Merchant Center account and another account. Try it now.

Request

HTTP request

POST https://www.googleapis.com/content/v2.1/merchantId/accounts/accountId/link

Parameters

Parameter name Value Description
Path parameters
accountId unsigned long The ID of the account that should be linked.
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.

Authorization

This request requires authorization with the following scope (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/content

Request body

In the request body, supply data with the following structure:

{
  "linkedAccountId": string,
  "linkType": string,
  "action": string
}
Property name Value Description Notes
linkedAccountId string The ID of the linked account.
linkType string Type of the link between the two accounts.

Acceptable values are:
  • "channelPartner"
  • "eCommercePlatform"
action string Action to perform for this link. The "request" action is only available to select merchants.

Acceptable values are:
  • "approve"
  • "remove"
  • "request"

Response

If successful, this method returns a response body with the following structure:

{
  "kind": "content#accountsLinkResponse"
}
Property name Value Description Notes
kind string Identifies what kind of resource this is. Value: the fixed string "content#accountsLinkResponse".

Try it!

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

Send feedback about...

Content API for Shopping