Method: accounts.accountLinks.create

  • This page details how to create a new account link between a Hotel Center account and a Google Ads account using a POST request.

  • The request uses a specific URL format and includes a parent path parameter to identify the Hotel Center account.

  • The request body requires an instance of AccountLink, and a successful response returns a new AccountLink instance.

  • Authorization for this action requires the https://www.googleapis.com/auth/travelpartner OAuth scope.

Creates a new account link between a Hotel Center account and a Google Ads account.

HTTP request

POST https://travelpartner.googleapis.com/v3/{parent=accounts/*}/accountLinks

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

The resource name of the Hotel Center account being queried. The format is accounts/{account_id}.

Request body

The request body contains an instance of AccountLink.

Response body

If successful, the response body contains a newly created instance of AccountLink.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/travelpartner

For more information, see the OAuth 2.0 Overview.