list_meta_ad_sets

Meta Ads Read

User wants to see the ad sets within a specific Meta campaign, including their targeting, budgets, and optimization settings

Endpoint

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

Headers

Description

User wants to see the ad sets within a specific Meta campaign, including their targeting, budgets, and optimization settings. This tool retrieves ad sets for a given campaign with their status, budget, optimization goal, and billing event. Returns: - Ad set list with name, ID, status, budget, optimization goal, billing event - Next step guidance for editing ad sets or viewing ads When to use this tool: - "Show me the ad sets in campaign [ID]" - "What ad sets are running in my campaign?" - "List the ad groups for this campaign" - "Which ad sets are active/paused?" - Before using `update_meta_ad_set` when user doesn't know the ad set ID Parameters: - campaign_id: Campaign ID to list ad sets for (required) - status: Filter by status (optional) - limit: Max ad sets to return (default: 100) - ad_account_id: Optional Execution time: 2-5 seconds Data source: Meta Marketing API (live) Workflow: 1. Use `list_meta_campaigns` to find campaign IDs 2. Use `list_meta_ad_sets` with campaign_id to see ad sets 3. Use `update_meta_ad_set` to edit targeting, budget, or placements 4. Use `list_meta_ads` with ad_set_id to see individual ads

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
campaign_idstring optionalFilter ad sets to a specific campaign ID (optional - if not provided, lists all ad sets in the account)
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'
limitinteger optionalMaximum number of ad sets to return (default: 100) default: 100

Example request

{
  "arguments": {
    "campaign_id": "string",
    "ad_account_id": "string",
    "status": "string",
    "limit": 100
  }
}

Example responses

200 — Success

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

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

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