列出链接
购物合作伙伴账号和个人商家账号都可以有多个
标记了自己的账号与其他账号之间存在关联。
listlinks
方法
返回 Merchant Center 账号的所有这些关联的列表
进行 API 调用它不需要任何参数,可以使用
HTTP GET
请求。
服务状态
列出链接时,每个service
的回复中会显示一个status
链接内。商家可以选择批准列出的所有服务
或仅提出请求的一部分
服务开始时会处于 pending
状态,直到获得
商家。获得批准后,服务将处于 active
状态。
如果存在其他pending
,则已移除的服务将显示“inactive
”状态
或 active
服务。所有构成链接的服务
删除后,系统不会再返回该链接
listlinks
方法。
示例请求
如需列出合作伙伴“123456789
”发送的关联请求,请发送 GET
请求不带参数,请使用 listlinks
方法。
GET https://shoppingcontent.googleapis.com/content/v2.1/123456789/accounts/123456789/listlinks
示例响应
在此示例中,商家 98765
尚未批准该请求,因此
各项服务的状态均为 pending
。
{
"linkedAccountId": "98765",
"services": [
{
"service": "shoppingAdsProductManagement",
"status": "pending"
},
{
"service": "shoppingActionsOrderManagement",
"status": "pending"
}
]
}
下一部分介绍了如何批准关联请求。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-09。
[null,null,["最后更新时间 (UTC):2024-09-09。"],[[["The Merchant API is the new version of the Content API for Shopping and represents the future of the platform."],["The `listlinks` method allows retrieval of all flagged links between accounts, providing insight into account relationships."],["Each service within a link has a status, starting as `pending`, transitioning to `active` upon approval, and ultimately becoming `inactive` when removed."],["A simple HTTP GET request to the `listlinks` endpoint is sufficient to retrieve link information without requiring any parameters."]]],["The beta version of the Merchant API, the new Content API for Shopping, is introduced. The `listlinks` method retrieves all links between merchant accounts without parameters via a `GET` request. Each service within a link has a `status`: `pending` (awaiting merchant approval), `active` (approved), or `inactive` (removed, but other services remain). Once all services are removed, the link is no longer listed. A `GET` request example and the `listlinks` method's response format are provided.\n"]]