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: d80f65c0.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"customer_id": "<customer_id>",
"shared_set_id": "<shared_set_id>",
"keywords": "<keywords>"
},
"name": "add_to_negative_keyword_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keywords | Yes | ||
| customer_id | Yes | ||
| shared_set_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |