ChatGPT Ads Write
Create a campaign by itself (no ad group/ad)
POST https://api.adspirer.ai/api/v1/tools/create_chatgpt_campaign/execute
Authorization: Bearer sk_live_... — your Adspirer API key (required)Content-Type: application/json (required)Idempotency-Key: <uuid> — recommended for write operations to make retries safeAll tool arguments are wrapped in an arguments object.
| Field | Type | Description |
|---|---|---|
name | string required | Campaign name (3–1000 chars) |
daily_budget | number optional | Daily budget in dollars (min $1). Provide this or budget_micros / lifetime_budget. |
budget_micros | integer optional | Daily budget in micros (min 1,000,000). Alternative to daily_budget. |
lifetime_budget | number optional | Lifetime budget in dollars (min $1). Use instead of a daily budget. |
location_query | string optional | Target location by name, e.g. 'California' (resolved to a location id). |
location_ids | array optional | Explicit OpenAI location IDs (alternative to location_query). |
status | string optional | 'paused' (default) or 'active'. Created PAUSED unless you pass 'active'. |
description | string optional | Optional campaign description. |
start_time | integer optional | Optional unix start time. |
end_time | integer optional | Optional unix end time. |
{
"arguments": {
"name": "string",
"daily_budget": 1.0,
"budget_micros": 1,
"lifetime_budget": 1.0,
"location_query": "string",
"location_ids": [
"string"
],
"status": "string"
}
}
{
"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"
}
{
"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"
}
{
"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"
}
}
Interactive: Swagger UI
Machine-readable: OpenAPI 3.1 spec · llms-full.txt
More tools: ChatGPT Ads · All tools
Adspirer REST API — get an API key at adspirer.ai/keys · adspirer.ai