How to get the Impressions, Clicks data from API

401 views
Skip to first unread message

satish....@mediamint.com

unread,
Mar 6, 2016, 4:09:07 AM3/6/16
to Google's DoubleClick for Publishers API Forum
Hello,

I'm trying to pull down data via API.

I could able to get the Advertisers, Orders and LineItems successfully.
I need help on getting Impressions and Click count at creative level.

Can someone tell me the links or any sources where I could get info

Thanks,
Sathish.

Tesfamichael Hailegeorgis(DFP API Team)

unread,
Mar 7, 2016, 10:21:53 AM3/7/16
to Google's DoubleClick for Publishers API Forum
Hi Sathish,

Did you try to create the report on the UI? We generally recommend to create the report on the web UI first .Once the UI report is successful, you can proceed and recreate the same report via the API. If it is only the creatives that you want in your report, you can use the following report break down:

Dimension.CREATIVE_ID
Dimension.CREATIVE_NAME

Column.AD_SERVER_IMPRESSIONS
Column.AD_SERVER_CLICKS

Here is a complete list of report query parameters that you might want to check.

Please let us know if you've further question on this.

Thanks,
Tesfamichael Hailegeorgis, DFP API Team

satish....@mediamint.com

unread,
Mar 8, 2016, 10:58:46 PM3/8/16
to Google's DoubleClick for Publishers API Forum
Hi Tesfamichael Hailegeorgis,

I would like to get the impressions and clicks count every one hour. Which I would be running a background-job/cron which will call the server and get the data. I'm using PHP Library for this. 

Do I need to create the report on the UI everytime ??
Can't I get the data without creating the report on the UI.

My Another question on Orders : When I get the list of orders by Advertiser, Is there a way I can get only Delivering order ??

Thanks for the help.
Sathish.

Tesfamichael Hailegeorgis(DFP API Team)

unread,
Mar 9, 2016, 9:39:37 AM3/9/16
to Google's DoubleClick for Publishers API Forum
Hi Sathish,

Just to verify if a given dimensions/columns combination is supported by the API or not, you'll need to create the report on the UI first as it is much easier. The UI and the API use the same reporting back-end. This is done only once to see if the report is supported or not.

To get the delivering orders in the report, you can use a filter statement. The where clause should look something like this:

.where("ORDER_DELIVERY_STATUS=' STARTED' ")

Can you please send the request/response SOAP logs so I'll have the complete picture of this problem? Alternatively, you can also send the report code snippet along with your network code and date range values used.

Thanks,
Tesfamichael Hailegeorgis, DFP API Team
Reply all
Reply to author
Forward
0 new messages