Hi Ziv, Thanks for the detailed explanation.
Yes , you were right in the sense that I was trying to edit the age and gender criteria via the Demographics screen which is for Adgroup campaign and in code as pasted above, I was trying to fetch them at campaign level. I corrected myself, but then arises I have these two questions. 1. As far as I understand, by default ( i,e if we don't explicitly specify something in campaign_criterion) then by default all gender types and age range should be included. So even in that case, shouldn't the result be something different than "0" that I am seeing now . ? Please correct me if I am wrong here. 2. Given that I was earlier trying to modify age range and gender type values at AdCampaign level in the UI , I tried one more thing , I specifically set the values at campaign_criterion at code level as follows: campaign_criterion.age_range.type = client.get_type('AgeRangeTypeEnum', version='v1').AGE_RANGE_18_24 campaign_criterion.age_range.type = client.get_type('AgeRangeTypeEnum').AGE_RANGE_25_34 campaign_criterion.gender.type = client.get_type('GenderTypeEnum').MALE campaign_criterion.gender.type = client.get_type('GenderTypeEnum').FEMALE But then I see this error to set it itself *"**Error with message "Criteria type can not be targeted." * Can you please let me know where I am going wrong ? Thanks and Regards, Vinutha Nayak On Monday, 8 July 2019 08:33:28 UTC+5:30, adsapiforumadvisor wrote: > > Hi Vinutha, > > Thank you for providing additional details on your concern. > > Could you confirm if my following assumption is correct: you may be trying > to edit the age range and gender criteria via the Demographics screen for a > campaign in the Google Ads UI (see *AgeRange_AdGroup *and *Gender_AdGroup* > screenshots). > If it is, then do be noted that editing the criteria in those screens will > only include (or exclude) the said criteria on an ad group level. > > For age range and gender inclusions or exclusions on the campaign level, > you may want to click on *More -> Exclusions *instead from the same > Demographics screen (see *Exclusions_Campaign* screenshots). Adding > exclusions here will reflect at the campaign level, and will properly > reflect on the Google Ads API side as well (that is, it will reflect on the > query you are using for this case). > > Alternatively, if you wish to change the age range and gender criteria for > ad groups instead of campaigns, then you may keep using the same UI as > found in the *AgeRange_AdGroup *and *Gender_AdGroup* screenshots, and > edit your query instead so that it uses the ad_group > <https://developers.google.com/google-ads/api/fields/v1/ad_group> and > ad_group_criterion > <https://developers.google.com/google-ads/api/fields/v1/ad_group_criterion> > resources, > with the age range and gender criteria fields being > ad_group_criterion.age_range.type > <https://developers.google.com/google-ads/api/fields/v1/ad_group_criterion#ad_group_criterionage_rangetype> > and ad_group_criterion.gender.type > <https://developers.google.com/google-ads/api/fields/v1/ad_group_criterion#ad_group_criteriongendertype>, > > respectively. > > Let me know if this works for you. > > Regards, > Ziv, > Google Ads API Team > > > ref:_00D1U1174p._5001UCanIe:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/c08f20ba-a7bf-4123-90c3-6edd3e0194ee%40googlegroups.com.