list_chatgpt_ad_groups

ChatGPT Ads Read

List ad groups under a ChatGPT Ads campaign, with status, billing event, and max bid (in the account currency)

Endpoint

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

Headers

Description

List ad groups under a ChatGPT Ads campaign, with status, billing event, and max bid (in the account currency). Supports query/status_filter/sort_by/sort_order and offset/limit pagination, with an honest matched-vs-total count.

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
querystring optionalFree-text search across name, id, description (and ad copy for ads). Case-insensitive substring.
status_filterstring optionalFilter by status — comma-separated (e.g. 'active' or 'active,paused'). Omit for all.
type_filterstring optionalFilter by bidding_type — comma-separated 'impressions','clicks','conversions'. (Campaigns only.)
start_afterstring optionalOnly rows starting on/after this date (YYYY-MM-DD).
end_beforestring optionalOnly rows starting on/before this date (YYYY-MM-DD).
sort_bystring optionalSort by any field: e.g. 'name', 'status', 'budget', 'daily_budget'.
sort_orderstring optional'asc' or 'desc'. default: "asc"
offsetinteger optionalPagination offset (skip this many matching rows). default: 0
limitinteger optionalMax rows to return per page (after filtering). default: 50
campaign_idstring requiredParent campaign ID

Example request

{
  "arguments": {
    "campaign_id": "<campaign_id>",
    "query": "string",
    "status_filter": "string",
    "type_filter": "string",
    "start_after": "string",
    "end_before": "string",
    "sort_by": "string"
  }
}

Example responses

200 — Success

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

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

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