How to get Google Ads Keywords and Ad Contents via Google Analytics API

I need AdWords data from Goole Analytics API.

Please tell me what is collect queries for dimensions and filter.

For example;

Traffic > Acquisition > Adwords > Campaigns

I could get data using the following queries.

Dimensions ga:campaign,ga:adwordsCampaignID

Filters ga:adwordsCampaignID!=(not set)

How about below?

Traffic > Acquisition > Adwords > Keywords Primary Dimension: Keyword

Traffic > Acquisition > Adwords > Keywords Primary Dimension: Ad Content

How can I get these data from GA API?

Referrer https://developers.google.com/analytics/devguides/reporting/core/dimsmets#view=detail&group=adwords

1 answer

  • answered 2018-08-09 11:30 Max

    Both the Ad content and Keyword dimensions are derived from utm_ parameters, so you will find them under the traffic sources section (note: these utm_ parameters are auto-tagged by AdWords):