create_chatgpt_campaign

ChatGPT Ads Write

Create a campaign by itself (no ad group/ad)

Endpoint

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

Headers

Description

Create a campaign by itself (no ad group/ad). Needs a name and a daily_budget (≥$1) or budget_micros; optionally a target location (location_query like 'California' or location_ids). Created PAUSED unless status='active'. Use create_chatgpt_ad_group + create_chatgpt_ad to add multiple ad groups / ads under it.

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
namestring requiredCampaign name (3–1000 chars)
daily_budgetnumber optionalDaily budget in dollars (min $1). Provide this or budget_micros / lifetime_budget.
budget_microsinteger optionalDaily budget in micros (min 1,000,000). Alternative to daily_budget.
lifetime_budgetnumber optionalLifetime budget in dollars (min $1). Use instead of a daily budget.
location_querystring optionalTarget location by name, e.g. 'California' (resolved to a location id).
location_idsarray optionalExplicit OpenAI location IDs (alternative to location_query).
statusstring optional'paused' (default) or 'active'. Created PAUSED unless you pass 'active'.
descriptionstring optionalOptional campaign description.
start_timeinteger optionalOptional unix start time.
end_timeinteger optionalOptional unix end time.

Example request

{
  "arguments": {
    "name": "string",
    "daily_budget": 1.0,
    "budget_micros": 1,
    "lifetime_budget": 1.0,
    "location_query": "string",
    "location_ids": [
      "string"
    ],
    "status": "string"
  }
}

Example responses

200 — Success

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