update_sp_keyword_state
Enable, pause, or archive one or more Sponsored Products keywords. Use execute_sql against the keyword_performance table to find keyword IDs first.
Supported state values: ENABLED, PAUSED, ARCHIVED. ARCHIVED permanently stops a keyword — this cannot be undone and the keyword cannot be restored. Keywords must be PAUSED before they can be archived. If any keyword in the batch is ENABLED, the entire batch is rejected — split ENABLED and PAUSED keywords into separate calls.
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": {
"keywordIds": "<keywordIds>",
"state": "<state>",
"venueId": "<venueId>"
},
"name": "update_sp_keyword_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | New state: ENABLED, PAUSED, or ARCHIVED (required). ARCHIVED permanently stops a keyword and cannot be undone. | |
| 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. | |
| keywordIds | Yes | List of keyword IDs to update (required). Use execute_sql against keyword_performance to find IDs. |