AdWords Links

The AdWords Links collection is a set of AdWords Link resources, each of which describes the link between an AdWords 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 AdWords 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 AdWords client accounts. These cannot be MCC accounts. This field is required when creating an AdWords link. It cannot be empty. writable
adWordsAccounts[].autoTaggingEnabled boolean True if auto-tagging is enabled on the AdWords account. Read-only after the insert operation.
adWordsAccounts[].customerId string Customer ID. This field is required when creating an AdWords link.
adWordsAccounts[].kind string Resource type for AdWords 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 AdWords link ID
kind string Resource type for entity AdWords link.
name string Name of the link. This field is required when creating an AdWords link. writable
profileIds[] list IDs of linked Views (Profiles) represented as strings.

Methods

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