Google Ads: attach negative keyword list
attach_negative_keyword_listAttaches a shared negative keyword list to a campaign.
The campaign stops showing for every word in the list, including words
added to the list later.
There is no matching detach tool: in the Google Ads API a campaign's
link to a list (CampaignSharedSet) has no settable status, so it cannot
be paused, and undoing it means removing the link. This connector does
not remove links; the user can detach a list in Google Ads under Tools >
Shared library > Exclusion lists. Single words can be taken out of the
list with remove_from_negative_keyword_list, which changes every
campaign the list is attached to.
Args:
customer_id: The Google Ads customer ID (numbers only, no hyphens).
campaign_id: The ID of the campaign.
shared_set_id: The ID of the negative keyword list (from
create_negative_keyword_list, or shared_set.id via search).
Returns:
Dictionary with the created campaign shared set resource name.Tools revision: 5c9bea8f.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaign_id | Yes | ||
| customer_id | Yes | ||
| shared_set_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |