清單連結
購物合作夥伴和個別商家帳戶都可以有多個
已經標記自己帳戶和其他帳戶的連結。
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"
}
]
}
下一節將說明如何核准連結要求。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-09-09 (世界標準時間)。
[null,null,["上次更新時間: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"]]