bulk_update_ad_group_status

Google Ads Write

Pause or enable MANY ad groups in a SINGLE call

Endpoint

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

Headers

Description

Pause or enable MANY ad groups in a SINGLE call. Use this instead of calling pause_ad_group / resume_ad_group once per ad group — pausing or enabling N ad groups here is ONE tool call (and one quota debit) instead of N. Works on any campaign type (Search, PMax, Display, Demand Gen). Fully reversible: it sets status, it never removes ad groups. **Parameters:** - ad_group_ids: List of ad group IDs to update (REQUIRED). No limit. - status: PAUSED or ENABLED (REQUIRED) - campaign_id: Optional. If set, the ad groups are checked to belong to this campaign. - customer_id: Optional **Get ad_group_ids from:** get_campaign_structure or list_campaigns. **Example:** User: "Pause all the ad groups in that campaign" Agent: 1. get_campaign_structure to list the ad groups + IDs 2. bulk_update_ad_group_status(ad_group_ids=[...], campaign_id=..., status="PAUSED")

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
ad_group_idsarray requiredAd group IDs to update (get from get_campaign_structure or list_campaigns). No limit — pass thousands if you have them; applied in one tool call.
statusstring requiredNew status for all listed ad groups: PAUSED or ENABLED. Reversible — this never removes ad groups.
campaign_idstring optionalOptional. When set, ad groups are checked to belong to this campaign (an ID from another campaign is reported as not found).
customer_idstring optionalGoogle Ads customer ID. Required for multi-account users. Get from get_connections_status.

Example request

{
  "arguments": {
    "ad_group_ids": [
      "string"
    ],
    "status": "string",
    "campaign_id": "string",
    "customer_id": "string"
  }
}

Example responses

200 — Success

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