Adwords Links Developer Guide

The Google Analytics Management API can be used to configure the linking of AdWords and Analytics accounts.

Introduction

AdWords Links in the Management API allows you to get, list, create, update and delete links between Google AdWords accounts and Google Analytics properties and manage which views (profiles) to populate with AdWords data.

To learn more about how AdWords linking works and the benefits see Link Google Analytics and AdWords and Analytics and Adwords (Help Center).

Use cases

The AdWords Links resource API supports delete, get, list, patch, and update, but the two key uses cases are:

To create a link between an Analytics property and an AdWords account:

  1. Use the AdWords API or Web Interface to retrieve the Customer Id.
  2. Use the Google Analytics Management API or Web interface to retrieve the Id of the account and property to which you want link the AdWords account.
  3. Create the link between AdWords and Analytics by executing the insert method of the entityAdWordsLinks resource.

See the API Reference" for details on the insert method of the entityAdWordsLinks resource.

Add a view

To enable AdWords data in reports for a View (Profile) you will need to add the view (profile) to the AdWords link resource:

  1. Use the Google Analytics Management API or Web interface to retrieve the Id of the account, property, and the View (Profile).
  2. Use the Management API to retrieve the Id of the AdWords link that the View (Profile) will be linked to.
  3. Add the View (Profile) by executing the patch method of the entityAdWordsLinks resource.

See the API reference for details on the patch method of the entityAdWordsLinks resource.