Update Keyword to NegativeKeyword?

35 views
Skip to first unread message

Cantare John

unread,
Oct 4, 2022, 11:27:23 AM10/4/22
to Google Ads API and AdWords API Forum
This is the endpoint im using + payload

URL https://googleads.googleapis.com/v11/customers/customerID/adGroupCriteria:mutate


{
"operations": [
{
"updateMask": "negative",
"update": {
"resourceName": "customers/6873600921/adGroupCriteria/resourceId",
"negative": true
}
}
],
}
But i get i this error => Field 'negative' cannot be modified by 'UPDATE' operation.
What should i do to turn e keyword to negative keyword

Google Ads API Forum Advisor

unread,
Oct 4, 2022, 1:07:16 PM10/4/22
to jo...@paperclicks.net, adwor...@googlegroups.com
Hi,

Thank you for reaching out to our API support team about your concern.

The negative attribute of the AdGroupCriterion resource is unfortunately immutable. For you to 'convert' a criteria from being positive to negative, and vice-versa, you would first need to REMOVE that criteria and recreate it with a different negative attribute value.

I hope this helps. 

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


ref:_00D1U1174p._5004Q2exBem:ref
Reply all
Reply to author
Forward
0 new messages