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 [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
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
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/71c9ce97-f31d-486f-87eb-e546af20d5e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.