bulk_update_ad_status

Google Ads Write

Pause or enable MANY ads in one ad group in a SINGLE call

Endpoint

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

Headers

Description

Pause or enable MANY ads in one ad group in a SINGLE call. Use this instead of calling pause_ad / resume_ad once per ad — pausing or resuming N ads here is ONE tool call (and one quota debit) instead of N. This is the tool for swapping/refreshing ads across an account without burning your monthly tool-call limit. Fully reversible: it sets status, it never removes ads. **Parameters:** - ad_group_id: The ad group containing the ads (REQUIRED). One call per ad group. - ad_ids: List of ad IDs to update, all in that ad group (REQUIRED). No limit — pass thousands if you have them; they are applied in one call (chunked internally). - status: PAUSED or ENABLED (REQUIRED) - customer_id: Optional **Get ad_ids from:** get_campaign_structure or get_ad_performance (both show ad IDs). **To pause/enable ads across several ad groups:** make one call per ad group. **Execution time:** 2-10 seconds depending on ad count. **Example:** User: "Pause all the old ads in that ad group so I can swap in the new ones" Agent: 1. get_campaign_structure to list the ads + IDs 2. bulk_update_ad_status(ad_group_id, ad_ids=[...], status="PAUSED")

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
ad_group_idstring requiredThe ad group ID the ads belong to. One call per ad group. Use get_campaign_structure to find this.
ad_idsarray requiredAd IDs to update, all in this ad group (get from get_campaign_structure or get_ad_performance). No limit — pass thousands if you have them; they are applied in one tool call.
statusstring requiredNew status for all listed ads: PAUSED or ENABLED. Reversible — this never removes ads.
customer_idstring optionalGoogle Ads customer ID. Required for multi-account users. Get from get_connections_status.

Example request

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

Example responses

200 — Success

{
  "success": true,
  "data": {
    "text": "(tool-specific textual output for bulk_update_ad_status)",
    "quota": {
      "used": 42,
      "limit": 150,
      "tier": "plus",
      "period_end": "2026-05-01"
    }
  },
  "tool": "bulk_update_ad_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_ad_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_ad_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