Need help in creating a report with placement Type using Google ads API

58 views
Skip to first unread message

Tony C Antony

unread,
Jun 5, 2024, 6:29:55 PM6/5/24
to Google Ads API and AdWords API Forum
Need to generate campaign report with Ad group, placement Type, and  impression. Tried with group placement and detail placement resources in API resources, but the aggregation is made at lower level than Adgroup. Attached a screenshot of a report created from Googleads UI.Need report in this format.
Screenshot 2024-06-05 at 4.37.18 PM.png

Tony C Antony

unread,
Jun 5, 2024, 6:29:56 PM6/5/24
to Google Ads API and AdWords API Forum
Hi,

Need to generate campaign report with Ad group, placement Type, and  impression. Tried with group placement and detail placement resources in API resources, but the aggregation is made at lower level than Adgroup. Attached a screenshot of a report created from Googleads UI.Need report in this format.
Thanks.
Screenshot 2024-06-05 at 4.37.18 PM.png

Google Ads API Forum Advisor

unread,
Jun 6, 2024, 7:28:57 AM6/6/24
to tony....@shopalyst.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

Yes, using the below query formed with the group_placement_view resource returns the results in a more detailed way by providing the metrics details at the groupPlacementView level.
"SELECT ad_group.name, group_placement_view.placement_type, metrics.impressions 
 FROM group_placement_view"
So, I can confirm that it is not possible to fetch the data, as you see in the UI, via the Google Ads API using the group_placement_view resource. So, to achieve the result you see in the UI, it may require some additional processing on your side.

I hope this clarifies.

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tJEHs:ref" (ADR-00238569)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages