Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Sau khi đối tác gửi yêu cầu liên kết, người bán nhận được yêu cầu phải phê duyệt yêu cầu liên kết đó thì yêu cầu mới có hiệu lực. Bạn thường thực hiện việc này bằng cách phê duyệt yêu cầu trong thẻ Đối tác của Google Merchant Center. Tuy nhiên, bạn cũng có thể phê duyệt các đường liên kết theo phương thức lập trình bằng cách sử dụng phương thức accounts.link.
Ví dụ:
Để phê duyệt yêu cầu liên kết do đối tác 123456789 gửi trong ví dụ về Yêu cầu liên kết, người bán 98765 có thể gửi thao tác approve với linkedAccountId được đặt thành mã đối tác 123456789.
Xin lưu ý rằng danh sách services chỉ chứa một trong hai dịch vụ được yêu cầu ban đầu trong yêu cầu mẫu. Thao tác này sẽ phê duyệt có chọn lọc dịch vụ shoppingAdsProductManagement và để lại yêu cầu liên kết dịch vụ shoppingActionsOrderManagement ở trạng thái pending.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-13 UTC."],[[["\u003cp\u003eGoogle is launching a new Merchant API, which is the future of the Content API for Shopping.\u003c/p\u003e\n"],["\u003cp\u003eYou can learn more about the Merchant API and its benefits on the Google Ads Developer Blog.\u003c/p\u003e\n"],["\u003cp\u003eMerchants can programmatically approve account link requests from partners using the \u003ccode\u003eaccounts.link\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eWhen approving link requests, merchants have the flexibility to approve only specific services within the request, leaving others pending.\u003c/p\u003e\n"]]],["The Merchant API beta, a new version of the Content API for Shopping, is introduced. Merchants can approve partner link requests, either in Google Merchant Center or programmatically using the `accounts.link` method. Merchants may selectively approve specific services included in a link request. For instance, a merchant can approve `shoppingAdsProductManagement` while leaving `shoppingActionsOrderManagement` pending. An example is given of sending an `approve` action to approve one linked service. Removing existing links is covered in the next section.\n"],null,["# Approve links\n\nAfter a link request has been sent by a partner, the receiving merchant must\napprove the link before it becomes active. This is normally done by [approving\nthe request](//support.google.com/merchants/answer/9440376) in the **Partners**\ntab of Google Merchant Center. However, links can\nalso be approved programmatically by using the [`accounts.link`](/shopping-content/reference/rest/v2.1/accounts/link)\nmethod.\n| **Note:** When a link request contains mulltiple `services`, the receiving merchant has the option of only approving a subset of those service. For example, if a link request contains the services `shoppingAdsProductManagement` and `shoppingActionsOrderManagement`, the approver can choose to include only one or the other (Buy on Google was formerly known as Shopping Actions).\n\nExample\n-------\n\nTo approve the link sent from partner `123456789` in the [*Requesting links*\nexample](/shopping-content/guides/flagging/request#example_request), the client merchant `98765` can send an\n`approve` action with `linkedAccountId` set to partner ID `123456789`.\n\nNote that the `services` list only contains one of the two originally requested\nservices in the [example request](/shopping-content/guides/flagging/request#example_request). This selectively\napproves the `shoppingAdsProductManagement` service, and leaves the request to\nlink the `shoppingActionsOrderManagement` service in `pending` status. \n\n POST https://shoppingcontent.googleapis.com/content/v2.1/98765/accounts/98765/link\n {\n \"linkedAccountId\": \"123456789\",\n \"linkType\": \"eCommercePlatform\",\n \"services\": [\"shoppingAdsProductManagement\"],\n \"action\": \"approve\"\n }\n\nThe [next section](/shopping-content/guides/flagging/remove) describes how to remove existing links."]]