Method: /google.ads.googleads.v7.services.CampaignCriterionService/MutateCampaignCriteria
Host: googleads.googleapis.com
Headers: {
"developer-token": "REDACTED",
"login-customer-id": "REDACTED",
"x-goog-api-client": "REDACTED",
"x-goog-request-params": "customer_id=REDACTED"
}
Request: customer_id: "REDACTED"
operations {
create {
income_range {
type_: INCOME_RANGE_90_UP
}
campaign: "customers/REDACTED/campaigns/REDACTED"
bid_modifier: 3.0
negative: false
}
}
error_code {
criterion_error: FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING
}
message: "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 ad group or campaign criteria."
location {
field_path_elements {
field_name: "operations"
index: 0
}
field_path_elements {
field_name: "create"
}
field_path_elements {
field_name: "income_range"
}
}
Hello Will,
Thank you for posting your concern. It appears that the behavior of the API request is as expected and let me explain why.
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 campaign.
Regards,
Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 Google Ads API and AdWords API Annual Survey
![]() |
|
||||