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](https://support.google.com/merchants/answer/9440376) in the **Partners**
tab of Google Merchant Center. However, links can
also be approved programmatically by using the [`accounts.link`](https://developers.google.com/shopping-content/reference/rest/v2.1/accounts/link)
method.

> [!NOTE]
> **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).

## Example

To approve the link sent from partner `123456789` in the [*Requesting links*
example](https://developers.google.com/shopping-content/guides/flagging/request#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](https://developers.google.com/shopping-content/guides/flagging/request#example). This selectively
approves the `shoppingAdsProductManagement` service, and leaves the request to
link the `shoppingActionsOrderManagement` service in `pending` status.

    POST https://shoppingcontent.googleapis.com/content/v2.1/98765/accounts/98765/link
    {
      "linkedAccountId": "123456789",
      "linkType": "eCommercePlatform",
      "services": ["shoppingAdsProductManagement"],
      "action": "approve"
    }

The [next section](https://developers.google.com/shopping-content/guides/flagging/remove) describes how to remove existing links.