create_sp_negative_keywords
Add one or more negative keywords to an existing Sponsored Products ad group. Use list_sp_ad_groups or execute_sql against ad_group_performance to find adGroupId and campaignId.
Each negative keyword requires keywordText and matchType (NEGATIVE_EXACT or NEGATIVE_PHRASE). Shorthand EXACT and PHRASE are also accepted and normalized automatically. Negative keywords are created in ENABLED state.
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": {
"adGroupId": "<adGroupId>",
"campaignId": "<campaignId>",
"keywords": "<keywords>",
"venueId": "<venueId>"
},
"name": "create_sp_negative_keywords"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| venueId | Yes | Venue ID of the storefront to change (required; never defaulted). In an agency account each venue can be a different client, so if the user has not named the venue, ask them before calling. Use get_ads_connection_status or execute_sql with 'SELECT venue_id, name, marketplace_name FROM venues' to list venue IDs. | |
| keywords | Yes | List of negative keywords to create (required) | |
| adGroupId | Yes | Ad group ID to add negative keywords to (required) | |
| campaignId | Yes | Campaign ID (required) |