Issue Adding Positive Keyword Targeting in Search Campaign

24 views
Skip to first unread message

Amit Tomar

unread,
Aug 14, 2025, 1:00:54 PMAug 14
to Google Ads API and AdWords API Forum

Hello Team,

I’m trying to add keyword targeting for a Search campaign via the API.

  • Negative keywords can be successfully added using CampaignCriteria.

  • However, when I try to add a positive keyword (campaign_criterion.negative = False), I receive the following error:

________________________________________________________________________
----------------------------------------------------------------------------------------------------------------------
errors {
  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, for example, 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: "keyword"
    }
  }
}
________________________________________________________________________
----------------------------------------------------------------------------------------------------------------------

Could you please clarify the correct method or resource to use for adding positive keyword targeting to a Search campaign?

Thanks

Google Ads API Forum Advisor

unread,
Aug 14, 2025, 5:33:20 PMAug 14
to amittomar...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

Please note that you can only exclude keywords at the campaign level, so you must specify negative = true on a keyword's CampaignCriterion. It is not possible to add a positive keyword via API at campaign level.

Hope this helps. If you have any more queries, please feel free to get back to us.

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-08-14 21:32:24Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01sz9hW:ref" (ADR-00329995)



Reply all
Reply to author
Forward
0 new messages