批准关联

合作伙伴发送关联请求后,接收方商家必须先批准关联,然后关联才能生效。通常,商家会在 Google Merchant Center 的合作伙伴 标签页中批准 请求。不过,商家也可以使用 accounts.link 方法以编程方式批准关联。

示例

如需批准在 Requesting links 示例中由合作伙伴 123456789 发送的关联,客户端商家 98765 可以发送 approve 操作,并将 linkedAccountId 设置为合作伙伴 ID 123456789

请注意,services 列表在 示例请求中仅包含最初请求的两项 服务中的一项。这样会选择性地批准 shoppingAdsProductManagement 服务,并将关联 shoppingActionsOrderManagement 服务的请求保留在 pending 状态。

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

下一部分介绍了如何移除现有关联。