We will sunset v2 of the Content API on March 29th, 2021. To avoid disruptions with your integration, please migrate to v2.1 as soon as possible. For more information, see Migrating to v2.1.

Removing links

Merchants can remove a link at any time by visiting the Partners tab in Google Merchant Center. Partners can remove links programmatically using the remove action of the Accounts.link method. Once a link is removed, it no longer exists and must be re-requested and re-approved again.

Just as approve actions can selectively choose which services to make active, a remove action can also act on a subset of the services list.

Example

Continuing the example from the previous sections, a merchant account 98765 can remove the link to partner 123456789 by sending a request specifying "action": "remove".

POST https://www.googleapis.com/content/v2.1/98765/accounts/98765/link
{
  "linkedAccountId": "123456789",
  "linkType": "eCommercePlatform",
  "services": ["shoppingAdsProductManagement"],
  "action": "remove"
}