Thanks a lot, it works well with {"negative": true}  :-). 

Have a great day 

Le lundi 11 septembre 2023 à 20:53:21 UTC+2, Google Ads API Forum Advisor a 
écrit :

> Hi,
>
> Thank you for coming back to us and for providing additional information. 
> I hope you are doing well today.
>
> As mentioned before the error, 
> *FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING* 
> <https://developers.google.com/google-ads/api/reference/rpc/v8/CriterionErrorEnum.CriterionError#field_incompatible_with_negative_targeting>
>  means 
> that the field is not allowed to be set when the negative field is set to 
> true, for example, we don't allow bids in negative ad group or campaign 
> criteria. That being said, please note that if the ‘*negative* 
> <https://developers.google.com/google-ads/api/reference/rpc/v7/CampaignCriterion#negative>’
>  
> field is set as ‘false’, we are creating positive / standard keywords. 
> Refer to the *KeywordsInfo* 
> <https://developers.google.com/google-ads/api/docs/targeting/criteria#campaign_criteria>
>  section 
> in the Campaign Criteria documentation, which states you can only exclude 
> keywords at the campaign level.
>
> Thus, the API request call worked and created a negative keyword when the 
> negative field was set to ‘TRUE’ and you received an error when the 
> negative field was set to ‘FALSE’. The field is not allowed to be set when 
> the *negative* 
> <https://developers.google.com/google-ads/api/reference/rpc/v9/CampaignCriterion#negative>
>  field 
> is set to true, e.g. we don't allow bids in negative Adgroup or campaigns 
> like what I said earlier. Let me know if you have further questions.
>
> In your case, since you didn’t set any, kindly note that if you are using 
> the *gender or userlist *it needs to explicitly set *"negative" to true*. 
> With that, could you please try to add *“negative”: “true” **on your 
> query, like shown below?*
>  
>
>
>  "operations": [
>
>     {
>
>       "create": {
>
>         "campaign": "customers/9115134537/campaigns/20532740378",
>
>         “negative”: “true”,
>
>         "bid_modifier": 1,
>
>         "gender": {
>
>           "type": "MALE"
>
>         }
>
>       }
>
>     }
>
>   ]
>
> }
>
> Let us know how it goes on your end.
>
> Have a great day.
>  
> This message is in relation to case "ref:_00D1U1174p._5004Q2nquf7:ref"
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/1c01798f-d1e0-4847-a985-9306fc7b1035n%40googlegroups.com.
  • Go... zhang john
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... zhang john
        • ... zhang john
          • ... zhang john
            • ... YETIC SAS
              • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
                • ... YETIC SAS

Reply via email to