Hi,

Please be informed that I have removed your previous response from the forums 
as it contains the PII information.

Kindly note that metrics should not be compared between the campaign level and 
the demographic level, as the same campaign-level metrics you're trying to 
retrieve are not available at the ad group, ad, or demographic levels. 
Demographic-level data is accessible only for SMART campaigns and can be 
retrieved using the 'age_range_view ' and 'gender_view ' reports through the 
Google Ads API. You can use the following GAQL queries based on your specific 
requirement:

SELECT ad_group_criterion.age_range.type, campaign.name, ad_group.name, 
ad_group_criterion.system_serving_status, ad_group_criterion.bid_modifier, 
metrics.clicks, 
metrics.impressions, metrics.ctr, metrics.average_cpc, metrics.cost_micros, 
campaign.advertising_channel_type FROM age_range_view WHERE segments.date 
DURING LAST_7_DAYS

SELECT ad_group_criterion.gender.type, campaign.name, ad_group.name, 
ad_group_criterion.system_serving_status, 
ad_group_criterion.bid_modifier, metrics.clicks, metrics.impressions, 
metrics.ctr, metrics.average_cpc, metrics.cost_micros, 
campaign.advertising_channel_type FROM gender_view WHERE segments.date DURING 
LAST_7_DAYS

Note that if you are getting metrics as zero then it indicates that particular 
age range and gender view level metrics are not available for that filtered 
date. The above queries will fetch only the data from the SMART campaigns. 
Additionally, I would suggest you to refer to the Age and Gender documentation 
for more detailed information.

For the PMax campaigns, it supports only these criteria which includes the 
age_range and these don't support gender criteria. Firstly, you need to have 
the criteria created at the campaign level using the campaignCriteria method. 
Then you can retrieve the same criteria using the campaign_criterion report 
from the Google Ads API. You can find the sample GAQL query for retrieving the 
age_range which are created at the campaign level:

SELECT campaign_criterion.criterion_id, campaign.id, campaign_criterion.type, 
campaign_criterion.age_range.type, 
campaign.advertising_channel_type FROM campaign_criterion WHERE 
campaign.advertising_channel_type = 'PERFORMANCE_MAX' AND 
campaign_criterion.type IN ('AGE_RANGE')

I hope this clarifies.

Thanks,

Google Ads API Team


Feedback
How was our support today?


[2025-07-01 05:46:44Z GMT] This message is in relation to case 
"ref:!00D1U01174p.!500Ht01rgfrw:ref" (ADR-00316499)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/adwords-api/ka1ml000000000000000000000000000000000000000000000SYPHDW008dRtIMB-T3CNfAihoOfvjA%40sfdc.net.
  • Re... Enes Bulut
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
    • ... Enes Bulut

Reply via email to