remove_negative_keywords_from_list

Google Ads Write

Remove negative keywords from a SHARED negative keyword list

Endpoint

POST https://api.adspirer.ai/api/v1/tools/remove_negative_keywords_from_list/execute

Headers

Description

Remove negative keywords from a SHARED negative keyword list. Removing a negative lets those searches trigger ads again in EVERY campaign the list is attached to. BEFORE calling, tell the user which campaigns that is (`list_negative_keyword_lists` shows each list's attached campaigns) and get their OK. Needs `confirm_delete: true` (the call is refused without it). Each keyword is named by text + match_type, or by criterion id (from `get_negative_keyword_list`). Text without a match type works only when that text is in the list once. Anything not in the list is refused and nothing is removed. After removing, the list is read back from Google and what remains is shown. For negatives on ONE campaign or ad group (not a shared list) use `remove_negative_keywords` / `remove_negative_keywords_from_ad_group` instead. **Parameters:** - shared_set_id (required — from list_negative_keyword_lists) - keywords: each {text, match_type}; and/or criterion_ids - confirm_delete: true **Use when:** "remove 'free' from my shared negative list", "take these out of the negatives list".

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
shared_set_idstring requiredThe negative keyword list ID (shared set ID). Get it from list_negative_keyword_lists.
customer_idstring optionalGoogle Ads customer ID. Required for multi-account users.
keywordsarray optionalKeywords to remove, each {text, match_type}. Use this OR criterion_ids (or both).
criterion_idsarray optionalCriterion ids of the keywords to remove (shown by get_negative_keyword_list).

Example request

{
  "arguments": {
    "shared_set_id": "string",
    "customer_id": "string",
    "keywords": [
      {
        "text": "string",
        "match_type": "string"
      }
    ],
    "criterion_ids": [
      "string"
    ]
  }
}

Example responses

200 — Success

{
  "success": true,
  "data": {
    "text": "(tool-specific textual output for remove_negative_keywords_from_list)",
    "quota": {
      "used": 42,
      "limit": 150,
      "tier": "plus",
      "period_end": "2026-05-01"
    }
  },
  "tool": "remove_negative_keywords_from_list"
}

400 — Tool-level error (bad arguments / multi-account selection)

{
  "success": false,
  "error": "You have 25 meta_ads accounts connected. Please specify which account to use by passing the ad_account_id parameter:\n  - Acme Holdings (ad_account_id=\"act_123456789\")\n  - Acme EU (ad_account_id=\"act_987654321\")",
  "is_error": true,
  "tool": "remove_negative_keywords_from_list"
}

402 — Quota exhausted

{
  "success": false,
  "error": "\ud83d\udea8 Monthly limit reached (150/150 tool calls on Plus tier).\nUpgrade to Pro at https://adspirer.ai to keep building.",
  "is_error": true,
  "tool": "remove_negative_keywords_from_list",
  "quota": {
    "used": 150,
    "limit": 150,
    "tier": "plus",
    "period_end": "2026-05-01",
    "upgrade_url": "https://adspirer.ai"
  }
}

Try it live


Adspirer REST API — get an API key at adspirer.ai/keys · adspirer.ai