bulk_update_keyword_status

Google Ads Write

๐Ÿšจ **IF THIS TOOL RETURNS A QUOTA ERROR:** - The error message will include a clickable upgrade link - Show the FULL error message to the user (it contains the upgrade link) - DO NOT attempt to work ar

Endpoint

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

Headers

Description

๐Ÿšจ **IF THIS TOOL RETURNS A QUOTA ERROR:** - The error message will include a clickable upgrade link - Show the FULL error message to the user (it contains the upgrade link) - DO NOT attempt to work around the error or use alternative data - DO NOT create campaigns or perform actions without valid tool data - STOP and direct the user to upgrade via the provided link Pause or enable MANY keywords in one ad group in a SINGLE call. Use this instead of calling update_keyword once per keyword โ€” pausing N keywords here is ONE tool call (and one quota debit) instead of N. Fully reversible: it sets status, it never removes keywords (unlike remove_keywords). **Parameters:** - ad_group_id: The ad group containing the keywords (REQUIRED). One call per ad group. - keyword_ids: List of keyword IDs to update, all in that ad group (REQUIRED). Max 300/call. - status: PAUSED or ENABLED (REQUIRED) - customer_id: Optional **Get keyword_ids from:** get_campaign_structure (shows every keyword + its ID). **To pause keywords across several ad groups:** make one call per ad group. **Execution time:** 2-6 seconds **Example:** User: "Pause all the non-core keywords in that ad group" Agent: 1. get_campaign_structure to list the keywords + IDs 2. Confirms which ones to pause 3. bulk_update_keyword_status(ad_group_id, keyword_ids=[...], status="PAUSED")

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
ad_group_idstring requiredThe ad group ID the keywords belong to. One call per ad group. Use get_campaign_structure to find this.
keyword_idsarray requiredKeyword IDs to update, all in this ad group (get from get_campaign_structure). Max 300 per call (Google's keyword ops/hour limit) โ€” split larger sets across calls.
statusstring requiredNew status for all listed keywords: PAUSED or ENABLED. Reversible โ€” this never removes keywords.
customer_idstring optionalGoogle Ads customer ID. Required for multi-account users. Get from get_connections_status.

Example request

{
  "arguments": {
    "ad_group_id": "string",
    "keyword_ids": [
      "string"
    ],
    "status": "string",
    "customer_id": "string"
  }
}

Example responses

200 โ€” Success

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

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": "bulk_update_keyword_status"
}

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": "bulk_update_keyword_status",
  "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