Adding a Negative Keyword to a Performance Max Campaign

24 views
Skip to first unread message

Robert B

unread,
Jun 4, 2025, 4:56:46 PM (3 days ago) Jun 4
to Google Ads API and AdWords API Forum
Hi,

I am attempting to add a negative keyword (as a campaign_criterion) to a PMax Campaign. This is an operation that is supported in the Google Ads UI, but when attempting to create such a campaign criterion through the API it gives me an error that "The operation is not allowed for the given context".

Here's the request ID of one of the failed attempts: PZTXKeVOuQEqemhzhLuPLQ
I'm using the latest Google Ads API v19.

I'm using GoogleAdsService.Mutate to send the request, with one campaign_criterion_operation, containing one "create" operation with these attributes set:
- campaign (the resource name of the pmax campaign)
- status of ENABLED
- negative is true
- keyword is set, with a keyword text and match type of EXACT

Looking forward to any advice.

Cheers, Robert

Google Ads API Forum Advisor

unread,
Jun 4, 2025, 10:59:14 PM (3 days ago) Jun 4
to robert....@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for contacting the Google Ads API support team.

At the moment, you can include the criteria outlined in the documentation. Note that adding negative keywords for performance max campaigns is not supported in the Google Ads API.

However, I'll raise a feature request to be available in Google Ads API. I cannot provide a scheduled timeline for the availability of this feature in the API. I would recommend you to please follow our Release Notes and Blog post for future updates.

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-06-04 21:58:17Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01reGKs:ref" (ADR-00310080)



Message has been deleted

Robert B

unread,
Jun 5, 2025, 12:02:04 PM (3 days ago) Jun 5
to Google Ads API and AdWords API Forum
Thanks for the clarification, sad to hear it's currently not possible but looking forward to when it will be available.

Best regards,
Robert

Robert B

unread,
Jun 5, 2025, 2:10:49 PM (2 days ago) Jun 5
to Google Ads API and AdWords API Forum
By the way, for anyone researching this: The functionality to create negative keywords to PMax campaigns via API has been added just yesterday with Google Ads API v20.
Reply all
Reply to author
Forward
0 new messages