Caution: You are viewing documentation for the API's REST interface. Most of our official client libraries use gRPC. See the REST Introduction for details.

Method: customers.accountLinks.create

Creates an account link.

List of thrown errors: AuthenticationError AuthorizationError DatabaseError FieldError HeaderError InternalError MutateError QuotaError RequestError ThirdPartyAppAnalyticsLinkError

HTTP request

POST https://googleads.googleapis.com/v7/customers/{customerId}/accountLinks:create

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
customerId

string

Required. The ID of the customer for which the account link is created.

Request body

The request body contains data with the following structure:

JSON representation
{
  "accountLink": {
    object (AccountLink)
  }
}
Fields

Response body

If successful, the response body contains data with the following structure:

Response message for AccountLinkService.CreateAccountLink.

JSON representation
{
  "resourceName": string
}
Fields
resourceName

string

Returned for successful operations. Resource name of the account link.

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.