update_chatgpt_campaign

ChatGPT Ads Write

Update a campaign's daily budget, name, and/or status

Endpoint

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

Headers

Description

Update a campaign's daily budget, name, and/or status.

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
campaign_idstring requiredCampaign ID
daily_budgetnumber optionalNew daily budget in the ACCOUNT'S currency (NOT USD/cents; for 25/day send 25). Min 25/day.
namestring optionalNew campaign name
statusstring optional'active' or 'paused'
bidding_typestring optional'impressions', 'clicks', or 'conversions' (oCPC).
conversion_event_setting_idsarray optionalExactly one event setting id — required if switching to bidding_type='conversions'.
location_querystring optionalUpdate targeting: a location to INCLUDE by name. Only the side you specify changes — the exclusion side is preserved (merged), so you can add an include without wiping an existing exclude.
location_idsarray optionalUpdate targeting: explicit location IDs to INCLUDE (replaces the include side; exclude side preserved).
exclude_location_querystring optionalUpdate targeting: a location to EXCLUDE by name (include side preserved).
exclude_location_idsarray optionalUpdate targeting: explicit location IDs to EXCLUDE (include side preserved).
custom_audience_idsarray optionalUpdate targeting: custom audience IDs to INCLUDE (only this side changes; geo/exclude/platform sides preserved).
exclude_custom_audience_idsarray optionalUpdate targeting: custom audience IDs to EXCLUDE (other sides preserved).
platformsarray optionalUpdate targeting: restrict to these ChatGPT surfaces (android_app/android_web/desktop_web/ios_app/ios_web/web); other targeting sides preserved.
query_string_templatestring optionalUpdate the landing-page URL query string (e.g. 'utm_source=chatgpt&utm_campaign={campaign_id}'). Macros {campaign_id}/{ad_group_id}/{ad_id}/{ad_account_id} auto-fill at delivery.
clear_targetingboolean optionalSet true to REMOVE ALL targeting (locations, audiences, platforms) so the campaign serves everywhere. Use this instead of sending empty lists.

Example request

{
  "arguments": {
    "campaign_id": "<campaign_id>",
    "daily_budget": 1.0,
    "name": "string",
    "status": "string",
    "bidding_type": "string",
    "conversion_event_setting_ids": [
      "string"
    ],
    "location_query": "string"
  }
}

Example responses

200 — Success

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

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

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