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 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’ field is set as ‘false’, we 
are creating positive / standard keywords. Refer to the KeywordsInfo 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 
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,

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/UMnxF000000000000000000000000000000000000000000000S0U4GB00L6O5k06nQNybpqGuSMCOdw%40sfdc.net.
  • 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