合作伙伴发送关联请求后,接收方商家必须先批准该关联请求,然后该关联请求才能生效。此操作通常通过在 Google Merchant Center 的合作伙伴标签页中批准请求来完成。不过,您也可以使用 accounts.link
方法以编程方式批准链接。
示例
若要批准请求关联示例中合作伙伴 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"
}
下一部分将介绍如何移除现有关联。