How to get report data in admanager api?

82 views
Skip to first unread message

Echo

unread,
Jul 29, 2024, 4:57:49 AM7/29/24
to Google Ad Manager API Forum
Hi all, how can I get the following report data for each ad unit in admanager api?
-Site Names
-Ad Exchange
-Ad requests
-Ad impressions
-Ad clicks
-Ad Ecpm
-Ad Revenue
-Line Item ID
-Campaign ID

Google Ad Manager API Forum

unread,
Jul 29, 2024, 1:40:08 PM7/29/24
to Google Ad Manager API Forum
Hi,

Thank you for contacting the Ad Manager API support team.

To obtain detailed report data for each ad unit in the Ad Manager API, including information like site names, ad exchange, ad requests, ad impressions, ad clicks, ad eCPM, ad revenue, line item ID, and campaign ID, you can use the ReportService. You'll need to create a report using ReportService where you specify the dimensions and metrics you need, such as ad unit name, impressions, and revenue. In order to download the data in your preferred format, such as CSV or XML, we need to send a request to getSavedQueriesByStatement, then request to runReportJob for a report query and finally, poll of getReportJobStatus until the report's status is COMPLETE and make an initial request to getReportDownloadUrlWithOptions.

Hope this helps!

Thanks,
 
Google Logo

Ad Manager API Team


Reply all
Reply to author
Forward
0 new messages