Take our developer survey. We want your feedback so we can learn how to improve Google Analytics, and make it an even better tool for you.

Google Ads Links

The Google Ads Links collection is a set of Google Ads Link resources, each of which describes the link between a Google Ads account and a web property.

For a list of methods for this resource, see the end of this page.

Resource representations

JSON template for Analytics Entity Google Ads Link.

{
  "id": string,
  "kind": "analytics#entityAdWordsLink",
  "selfLink": string,
  "entity": {
    "webPropertyRef": {
      "id": string,
      "kind": "analytics#webPropertyRef",
      "href": string,
      "accountId": string,
      "internalWebPropertyId": string,
      "name": string
    }
  },
  "adWordsAccounts": [
    {
      "kind": "analytics#adWordsAccount",
      "customerId": string,
      "autoTaggingEnabled": boolean
    }
  ],
  "name": string,
  "profileIds": [
    string
  ]
}
Property name Value Description Notes
adWordsAccounts[] list A list of Google Ads client accounts. These cannot be MCC accounts. This field is required when creating a Google Ads link. It cannot be empty. writable
adWordsAccounts[].autoTaggingEnabled boolean True if auto-tagging is enabled on the Google Ads account. Read-only after the insert operation.
adWordsAccounts[].customerId string Customer ID. This field is required when creating a Google Ads link.
adWordsAccounts[].kind string Resource type for Google Ads account.
entity object Web property being linked.
entity.webPropertyRef nested object
entity.webPropertyRef.accountId string Account ID to which this web property belongs.
entity.webPropertyRef.href string Link for this web property.
entity.webPropertyRef.id string Web property ID of the form UA-XXXXX-YY.
entity.webPropertyRef.internalWebPropertyId string Internal ID for this web property.
entity.webPropertyRef.kind string Analytics web property reference.
entity.webPropertyRef.name string Name of this web property.
id string Entity Google Ads link ID
kind string Resource type for entity Google Ads link.
name string Name of the link. This field is required when creating a Google Ads link. writable
profileIds[] list IDs of linked Views (Profiles) represented as strings.

Methods

delete
Deletes a web property-Google Ads link.
get
Returns a web property-Google Ads link to which the user has access.
insert
Creates a webProperty-Google Ads link.
list
Lists webProperty-Google Ads links for a given web property.
patch
Updates an existing webProperty-Google Ads link. This method supports patch semantics.
update
Updates an existing webProperty-Google Ads link.