Hi,
I am working on creating a table of metrics broken down by gender type and came across the following cookbook link:
https://developers.google.com/google-ads/api/docs/query/cookbook#gender_demographics.
The suggested query works but returns multiple records for each gender type, depending on the number of campaigns and ad groups.
I would like to aggregate these metrics so that I have a single summarized row per gender, for example:
One challenge I am facing is that simply averaging fields like CTR and Average CPC across rows would not produce correct results, as they require weighted averages. However, the query results do not provide the necessary weights for each row.
Could you please advise on the best way to correctly aggregate these metrics by gender?![]() |
Google Ads API Team |
[2025-04-28 07:24:39Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01qV8Kb:ref" (ADR-00302448)