How to Get Order All Revenues (CPC, CPM & CPD)

309 views
Skip to first unread message

John

unread,
Jan 13, 2016, 6:40:18 PM1/13/16
to Google's DoubleClick for Publishers API Forum
Hi All,

I tried to test a multiple of columns and dimensions to get the the total revenues (CPC, CPD & CPM all together) per order for yesterday reports, but i couldn't.

Tried "AD_SERVER_CPM_AND_CPC_REVENUE", "CONTRACTED_REVENUE_CONTRACTED_NET_REVENUE" and all what's related, and not working.

What i need to generate is a report to get all orders by advertiser by ad unit by ad size that shows impressions, clicks & ctr per each order line.

And of course the all revenues for that order line including (CPC, CPM & CPD)

Thank you so much and appreciate your prompt support.

Lakshmi P

unread,
Jan 14, 2016, 10:02:23 AM1/14/16
to Google's DoubleClick for Publishers API Forum
Hi,

Did you try to create the report in UI? If not, I would suggest create the report in UI and then recreate it in API. This way you will know the available Dimensions and columns combination in your network.

You can use either TOTAL_INVENTORY_LEVEL_ALL_REVENUE/TOTAL_LINE_ITEM_LEVEL_ALL_REVENUE depending on which dynamic allocation enabled on your network.
Columns with line item level can be used only if line item level dynamic allocation is enabled on your network.

You might find the columns document below helpful.

Thanks,
Lakshmi, DFP API Team.

John

unread,
Jan 14, 2016, 11:09:51 AM1/14/16
to Google's DoubleClick for Publishers API Forum
Hi Lakshmi,

The "dynamic allocation" is not allowed in my network.

We tried it on UI, however there is no way to do the same with DFP API, it's huge and so specific and doesn't help me at all for just a simple and important thing, line item revenues.

We just need to use this "AD_SERVER_ALL_REVENUE" and make it work, everytime we use this column, it get's all revenues on the server since we started, and it's diffidently something wrong.

Can you please give us a hint, what we need is, a report to get the below:
  • By Ad Unit by line item, and each line item should show some columns like, ctr,cpc, cpd & revenues per this specific line item according to the date rang we specified when we started to generate the report
What we need to do is, getting the revenues for a specific website per day per line item per ad unit

Kindly advice

Lakshmi P

unread,
Jan 14, 2016, 4:49:15 PM1/14/16
to Google's DoubleClick for Publishers API Forum
Hi John,
Please check the dimensions and columns for the requirement you have given. 

new Dimension[] {Dimension.AD_UNIT_ID, Dimension.AD_UNIT_NAME,Dimension.LINE_ITEM_ID});
    reportQuery.setColumns(new Column[] {Column.AD_SERVER_CTR,Column.AD_SERVER_CPD_REVENUE,Column.AD_SERVER_CPM_AND_CPC_REVENUE,
    
        });

If you are not getting the expected report with the above combinations, please send the screenshot with the selection of UI fields and your network id. I could give you the equivalent API dimensions and columns specific to your network.
I am adding the dimensions,columns and dimensionattributes link which has the descriptions for each field.
Thanks,
Lakshmi, DFP API Team.

John

unread,
Jan 15, 2016, 3:12:23 AM1/15/16
to Google's DoubleClick for Publishers API Forum
Thank you Lakshmi.

Pleas find attached 2 images showing the report builder and a report example.

Appreciate your help.
1.png
2.png
report-example.csv

Lakshmi P

unread,
Jan 15, 2016, 12:47:10 PM1/15/16
to Google's DoubleClick for Publishers API Forum
Message has been deleted
Message has been deleted

John

unread,
Jan 15, 2016, 3:14:51 PM1/15/16
to Google's DoubleClick for Publishers API Forum
Hi Lakshmi,

Thanks for that, but it still getting big numbers like xxxx while it suppose to be xx per line, i mean something wrong is happening in the revenues columns, i tried everything now including the solutions we have done here in this thread but nothing is working correctly in regards of getting me the correct revenues and total per ad unit per advertiser per ad size.

Kindly advice, What should i do?

Lakshmi P

unread,
Jan 15, 2016, 4:26:35 PM1/15/16
to Google's DoubleClick for Publishers API Forum
Hi John,

Are you using the CSV_DUMP format to download the report? If so the money amounts are returned in macros. Please check the document below:


If you use CSV_EXCEL you would get the same values as in UI. If the issue still exists after changing to CSV_EXCEL send me the SOAP logs. To generate the SOAP logs, please check for 'How do I enable logging'. 

Hope this helps,

Lakshmi, DFP API Team.

John

unread,
Jan 15, 2016, 4:58:42 PM1/15/16
to Google's DoubleClick for Publishers API Forum
Awesome!!

I Got it the numbers in $$ finally :)

Thanks a million, Lakshmi.
Reply all
Reply to author
Forward
0 new messages