Google Ads: add to negative keyword list
add_to_negative_keyword_listAdds negative keywords to an existing shared negative keyword list.
Every campaign the list is attached to picks the new words up at once.
remove_from_negative_keyword_list takes words back out. Find existing
lists with the search tool, e.g.
SELECT shared_set.id, shared_set.name, shared_set.member_count
FROM shared_set WHERE shared_set.type = 'NEGATIVE_KEYWORDS'
AND shared_set.status = 'ENABLED'.
Args:
customer_id: The Google Ads customer ID (numbers only, no hyphens).
shared_set_id: The ID of the negative keyword list.
keywords: List of keyword objects, each with:
- text: The keyword text (e.g., "jobs").
- match_type: One of: EXACT, PHRASE, BROAD. Default: BROAD.
Exact duplicates are dropped; large lists are sent in batches.
Returns:
Dictionary with the created keyword resource names and count.Tools revision: 5c9bea8f.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keywords | Yes | ||
| customer_id | Yes | ||
| shared_set_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |