After a link request has been sent by a partner, the receiving merchant must
approve the link before it becomes active. This is normally done by approving
the request in the Partners
tab of Google Merchant Center. However, links can
also be approved programmatically by using the accounts.link
method.
Example
To approve the link sent from partner 123456789 in the Requesting links
example, the client merchant 98765 can send an
approve action with linkedAccountId set to partner ID 123456789.
Note that the services list only contains one of the two originally requested
services in the example request. This selectively
approves the shoppingAdsProductManagement service, and leaves the request to
link the shoppingActionsOrderManagement service in pending status.
[null,null,["Last updated 2024-10-16 UTC."],[[["Google is launching a new Merchant API, which is the future of the Content API for Shopping."],["You can learn more about the Merchant API and its benefits on the Google Ads Developer Blog."],["Merchants can programmatically approve account link requests from partners using the `accounts.link` method."],["When approving link requests, merchants have the flexibility to approve only specific services within the request, leaving others pending."]]],["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"]]