Issue Retrieving Reports with Both Ad Unit and Site Dimensions via AdSense API

11 views
Skip to first unread message

Royce Stroman

unread,
Jul 29, 2025, 12:59:27 PMJul 29
to AdSense API Forum
We use the following API to retrieve report data by both ad unit and site dimensions, but the request fails with an error. When we query by ad unit or by site individually, the data can be retrieved successfully. Does this mean that querying with both dimensions at the same time is not supported?

GET  https://adsense.googleapis.com/v2/{account=accounts/ *}/reports:generateDDE92590-9486-4770-B864-DE099F55E685.png

Ad Sense API

unread,
Jul 29, 2025, 1:01:24 PMJul 29
to stroman...@gmail.com, adsen...@googlegroups.com
Hi Royce,

Thanks for your message. Yes, querying with both those dimensions at the same time is not supported. The error message you received is not super helpful, so we will try to improve that - thanks for making us aware of it.

Regarding supported dimensions: as per https://developers.google.com/adsense/management/reporting/dimensions_metrics#incompatible, if the AdSense UI lets you use a combination of dimensions, then the API should also work with the same combination, so it can be helpful to try a report in the UI first.

Regards,
Andrew (AdSense API team)

ref:!00D1U01174p.!500Ht01sx8X7:ref
Reply all
Reply to author
Forward
0 new messages