Analytics
2.7K members online now
2.7K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Need help getting DFP and Publisher Revenue

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi,

 

   My team recently linked our google analytics premium account with our double click for publishers account.  Now when I go to the google analytics website, I can create a report and get the following metrics per page: 

DFP Revenue
Publisher Revenue
DFP Backfill Revenue
AdX Revenue

The issue is that I want to consume this data via the reporting API.  I see that I can use the metric "ga:adxRevenue" to get the AdX Revenue.  My question is, how can I get the other 3 types of revenue from the reporting API?  I experimented by trying "ga:dfpRevenue" but got the following error:

GOOGLE ANALYTICS FAIL: Error calling GET https://www.googleapis.com/analytics/v3/data/ga?ids=ga%[id purposefully left out]&start-date=2016-06-03&end-date=2016-06-03&metrics=ga%3Apageviews%2Cga%3AuniquePageviews%2Cga%3Asessions%2Cga%3AadxRevenue%2Cga%3AdfpRevenue&dimensions=ga%3Adate%2Cga%3ApagePath&start-index=1&max-results=10000&sort=-ga%3Apageviews&filters=ga%3ApagePath%3D%7E%2Fnews%2F%7C%2Flists: (400) Unknown metric(s): ga:dfpRevenue

What metrics do I need to use to get this to work?

Thanks,

 

Matt

Re: Need help getting DFP and Publisher Revenue

Explorer ✭ ☆ ☆
# 2
Explorer ✭ ☆ ☆
Hi Mat,
unfortunately DFP metrics are not available through reporting API how you can verify here
https://developers.google.com/analytics/devguides/reporting/core/dimsmets

the only way to get that data through an API is use DFP API at the moment
https://developers.google.com/doubleclick-publishers/
Fail

Re: Need help getting DFP and Publisher Revenue

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Hi,

I looked into the DFP API but didnt see an easy way to get what I want. I simply want to get the ad revenue generated for specific dynamic pages. Do you have any guidance on how to achieve this?

Thanks,

Matt