list_meta_campaigns

Meta Ads Read

User wants to see their existing Meta/Facebook/Instagram campaigns, browse campaign structure, or find a campaign ID

Endpoint

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

Headers

Description

User wants to see their existing Meta/Facebook/Instagram campaigns, browse campaign structure, or find a campaign ID. This tool retrieves all campaigns in the connected Meta ad account with their status, objective, budget, and creation date. Returns: - Campaign list with name, ID, status, objective, budget - Status summary (how many ACTIVE, PAUSED, etc.) - Next step guidance for drilling into campaign details When to use this tool: - "Show me my Meta campaigns" - "List my Facebook ad campaigns" - "What campaigns do I have running?" - "Which campaigns are active?" - "Find my campaign for [product/brand]" - "I need to find a campaign ID" - Before using update/pause/resume tools when user doesn't know the campaign ID Parameters: - status: Filter by status (comma-separated: 'ACTIVE', 'PAUSED', 'DELETED', 'ARCHIVED') - effective_status: Filter by effective status (includes inherited states like 'CAMPAIGN_PAUSED') - objective: Filter by objective (OUTCOME_TRAFFIC, OUTCOME_SALES, OUTCOME_LEADS, OUTCOME_AWARENESS) - limit: Max campaigns to return (default: 100) - ad_account_id: Required for multi-account users. Get from list_connected_accounts Execution time: 2-5 seconds Data source: Meta Marketing API (live) Workflow: 1. Use `list_meta_campaigns` to find campaigns 2. Use `get_meta_campaign_details` with a campaign ID to see full structure 3. Use `update_meta_campaign` or `update_meta_ad_set` to make changes

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
ad_account_idstring optionalMeta Ad Account ID. Required for multi-account users. Get from list_connected_accounts.
statusstring optionalFilter by status: comma-separated values like 'ACTIVE,PAUSED'. Options: ACTIVE, PAUSED, DELETED, ARCHIVED
effective_statusstring optionalFilter by effective status: comma-separated values. Options: ACTIVE, PAUSED, DELETED, ARCHIVED, IN_PROCESS, WITH_ISSUES, CAMPAIGN_PAUSED
objectivestring optionalFilter by campaign objective: OUTCOME_TRAFFIC, OUTCOME_SALES, OUTCOME_LEADS, OUTCOME_AWARENESS, OUTCOME_ENGAGEMENT
limitinteger optionalMaximum number of campaigns to return (default: 100, max: 500) default: 100

Example request

{
  "arguments": {
    "ad_account_id": "string",
    "status": "string",
    "effective_status": "string",
    "objective": "string",
    "limit": 100
  }
}

Example responses

200 — Success

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

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_meta_campaigns"
}

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_meta_campaigns",
  "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