i trying to fix like you :((

On Sunday, April 15, 2018 at 11:58:28 PM UTC-7, Gary Jiang wrote:
>
> Hi,
>
> I was trying to set up some criterion field for an adgroup, such as 
> AgeRange using API, and I found that all items for that criteria are 
> enabled by default, so I have to use  *NegativeAdGroupCriterion.*
>
> For example, if I need to make AgeRange with "35 - 44" enabled, I am 
> sending a request like this:
>
>
>  
>
>    {
>
>                 'xsi_type': 'AdGroupCriterionOperation',
>
>                 'operator': operator,
>
>                 'operand': {
>
>                     'xsi_type': 'NegativeAdGroupCriterion',
>
>                     'adGroupId': ad_group_id,
>
>                     'criterion': {
>
>                         'xsi_type': 'AgeRange',
>
>                         'id': *id for 18-24*,
>
>                     }
>
>                 }
>
>             },
>
>    {
>
>                 'xsi_type': 'AdGroupCriterionOperation',
>
>                 'operator': operator,
>
>                 'operand': {
>
>                     'xsi_type': 'NegativeAdGroupCriterion',
>
>                     'adGroupId': ad_group_id,
>
>                     'criterion': {
>
>                         'xsi_type': 'AgeRange',
>
>                         'id': *id for 24-35*
>
>                     }
>
>                 }
>
>             },...
>
>
> to disable all rest AgeRange. I was wondering if I use that correctly and 
> if there is easier way. Thank
>  
>  
>  
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c61500c9-64fc-4417-bf00-0866d929c6b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
    • ... Gary Jiang
      • ... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
        • ... Gary Jiang
        • ... Gary Jiang
          • ... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
            • ... Gary Jiang
              • ... 'Vincent Racaza (AdWords API Team)' via AdWords API and Google Ads API Forum
              • ... Gary Jiang
              • ... Gary Jiang
              • ... 'Vincent Racaza (AdWords API Team)' via AdWords API and Google Ads API Forum
  • ... hakumu lu
    • ... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum

Reply via email to