Reputation: 1447
I am using the googleAnalyticsR package to retrieve google analytics data. If I connect to google analytics
ga_auth()
And get my account, web_prop_id and link_id I can check my adwords campaign with the following:
ga_adwords(account_id, webprop_id, linkId)
However, within this adwords campaign I want to see which ad-group gets which clicks. Any thoughts on how I can do this deepdive?
Upvotes: 1
Views: 249
Reputation: 2631
You can use the native GA reporting API to get click data from AdWords, details of all metrics and dimensions are here
It would be something like:
library(googleAnalyticsR)
ga_auth()
ad_data <- google_analytics(123456, date_range = c("2016-03-02", "today"),
metrics = c("adClicks", "adCost"),
dimensions = c("medium","campaign"))
Upvotes: 1