Hi,
I was trying to set some criterion options to my adgroup using the API, and
I found that if I only need to enable one item for a specific criteria, I
need to include several "NegativeAdGroupCriterion" operand in one API since
it seems the default value for each item is enable. So I have to send such
a request if I want to make the adgroup only targeted to Male, my request
message should be like this:
> {
>
> 'xsi_type': 'AdGroupCriterionOperation',
>
> 'operator': operator,
>
> 'operand': {
>
> 'xsi_type': 'NegativeAdGroupCriterion',
>
> 'adGroupId': ad_group_id,
>
> 'criterion': {
>
> 'xsi_type': 'Gender',
>
> 'id': *id for Female*,
>
> }
>
> }
>
> },
>
> {
>
> 'xsi_type': 'AdGroupCriterionOperation',
>
> 'operator': operator,
>
> 'operand': {
>
> 'xsi_type': 'NegativeAdGroupCriterion',
>
> 'adGroupId': ad_group_id,
>
> 'criterion': {
>
> 'xsi_type': 'Gender',
>
> 'id': *id for unknown*,
>
> }
>
> }
>
> }
>
> I was wondering if I use it correctly or if there is any easier way.
Thanks
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0f686595-72f4-4378-8cb7-1bf752f85f50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.