![]() |
Google Ads API Team |
.png?part=0.1&view=1)
Hello Binu,
You may try the below query and let us know if it fits to your use case:
SELECT campaign_criterion.gender.type, campaign_criterion.age_range.type FROM campaign_criterion
You may also utilize our query builder for campaign criterion report should you want further modifications on what you need.
On the other hand, if it does not resolve your concern, kindly provide to us your CID along with screenshots that have indicators of what you are trying to retrieve and we will build a query on our end based on the data you will provide.
Regards,
Hello Binu,
Thank you for responding back to us.
The previous sample we shared to you is to get the gender type and age range based on your screenshot. However, the metrics will not be there as the metrics are not available in campaign criterion report. Now, moving forward to your last response, it appears that what you want would not be possible to retrieve in a single report. This appears to be more of a custom reporting, since some metrics such as clicks by age group, clicks by gender will not be available if you use the campaign reports, but will be available in campaign_audience_view instead.
Thus, for us to be able to assist you accurately with metrics equal value between API and UI, would you be able to share the entire screenshot in the UI (including customer ID) showing all the data you want to retrieve in API? Please do note that the data you want to retrieve in API must exactly match the data you are seeing in UI for this to be possible.
You may send the requested details to us privately via "Reply To Author" option. If that option is not available to you, send it directly to googleadsa...@google.com alias instead and inform us here once done.
Regards,