Yeah you are right, I am trying to target this criterion and I've set
negative to false but still getting the error I sent above. Here is my
request:
{
"customer_id": "9406778374",
"operations": [
{
"create": {
"campaign": "customers/9406778374/campaigns/14295266112",
"negative": false,
"gender": {
"type": 10
}
},
"operation": "create"
}
]
}
Thanks for your time
вторник, 17 августа 2021 г. в 22:17:35 UTC+5, adsapi:
> Hello,
>
> Thanks for reaching out. The error,
> FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING
> <https://developers.google.com/google-ads/api/reference/rpc/v8/CriterionErrorEnum.CriterionError#field_incompatible_with_negative_targeting>,
>
> indicates that the criterion may not be set with negative set to true. It
> seems you are probably using the campaign criterion service. If so, the
> negative field must be set to false, for the gender criterion
> <https://developers.google.com/google-ads/api/reference/rpc/v8/CampaignCriterion#gender>.
>
> If you are setting to false (you are trying to target this criterion), and
> are getting this error, please send us the complete request and response
> logs.
>
> Regards,
> Matt
> Google Ads API Team
>
> [image: Google Logo]
> Matt
> Google Ads API Team
>
>
> ref:_00D1U1174p._5004Q2LnX4L: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 [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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/eb28acb2-fd77-422e-9ad1-943b6a37030fn%40googlegroups.com.