Can I apply or remove an exclusion list from a campaign using Google Ads API?

72 views
Skip to first unread message

Lok Lam

unread,
May 13, 2025, 8:37:49 PM5/13/25
to Google Ads API and AdWords API Forum

Hi all,

I'm trying to manage campaign-level exclusion lists using Google Ads API. Specifically, I would like to know:

  1. Is it possible to apply a shared exclusion list (e.g., placement exclusion list) to one or more campaigns via API?

  2. Conversely, can I remove an existing exclusion list from a campaign using the API?

Any guidance, sample code, or links to documentation would be greatly appreciated. Thanks!

Google Ads API and AdWords API Forum

unread,
May 14, 2025, 12:23:37 AM5/14/25
to Google Ads API and AdWords API Forum

Hi,


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


Please find answers to your questions:

  • Is it possible to apply a shared exclusion list (e.g., placement exclusion list) to one or more campaigns via API?

 Yes, it is possible to apply a shared exclusion list to one or more campaigns via API. I would recommend you to kindly refer to the Create And Attach Shared Keyword Set guide as it explains clearly on how to create a shared set and attach it to the campaign using the Google Ads API. We have tried this approach in creating the shared set types as 'NEGATIVE_KEYWORDS' and were able to succeed in attaching the shared set to the campaign. You can use the customers.sharedSets method for creating the shared set and customers.campaignSharedSets method for attaching the shared set to the campaign. 

  • Conversely, can I remove an existing exclusion list from a campaign using the API?

You can remove an existing exclusion list from campaign using CampaignSharedSetService by performing a remove operation on the CampaignSharedSet resource.

Thanks
Google Ads API team.

Lok Lam

unread,
May 14, 2025, 7:09:42 PM5/14/25
to adwor...@googlegroups.com
Does this work with Video campaigns?

Lok Lam
Director, Analytics
lok...@spotter.la | 6264787211
IMPORTANT: The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email by mistake, please notify the sender immediately and do not disclose the contents to anyone or make copies thereof.
    


--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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 a topic in the Google Groups "Google Ads API and AdWords API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/phNSUR0zHYs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/adwords-api/a99f25be-9dad-4b6c-828d-cc5854132363n%40googlegroups.com.

Google Ads API and AdWords API Forum

unread,
May 15, 2025, 5:07:55 AM5/15/25
to Google Ads API and AdWords API Forum
Hi,

Kindly note that apply or remove an exclusion list from a video campaign using Google Ads API is not supported. I would recommend you to check this campaigns documentation for more information.
Thanks
Google Ads API team.


Reply all
Reply to author
Forward
0 new messages