add_negative_keywords
Add negative keywords to a campaign, ad group, or shared list, skipping duplicates. Requires campaign_id for ad group scope to avoid API errors.
Instructions
Draft negatives. scope: campaign | ad_group | shared_list. keywords: [{text, match_type: Phrase|Exact}]. Checks existing negatives first and skips duplicates (check-existing-lists-first rule). Blocklist NOT applied — negating a settings-blocked term is desired. scope='ad_group' REQUIRES campaign_id (the parent campaign) — MS's read API hard-faults for AdGroup scope without it.
Live-verified 2026-07-28 at ad_group scope, including the duplicate-check read; campaign scope not separately smoked.
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": {
"scope": "<scope>",
"entity_id": "<entity_id>",
"keywords": "<keywords>"
},
"name": "add_negative_keywords"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | ||
| keywords | Yes | ||
| entity_id | Yes | ||
| campaign_id | No |