get_meta_campaign_details

Meta Ads Read

User wants to see detailed information about a specific Meta campaign, including its full structure (ad sets, ads, targeting, budgets)

Endpoint

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

Headers

Description

User wants to see detailed information about a specific Meta campaign, including its full structure (ad sets, ads, targeting, budgets). This tool retrieves comprehensive details about a single campaign. With `include_hierarchy=true`, it shows the complete campaign tree: Campaign - Ad Sets - Ads. Returns: - Campaign settings (name, status, objective, budget, bid strategy, schedule) - Performance summary (impressions, clicks, spend, reach, CTR, CPC) - Ads Manager URL - When include_hierarchy=true: Full structure with all ad sets and their ads, targeting details, hierarchy stats When to use this tool: - "Show me details for campaign [ID]" - "What's the structure of my campaign?" - "How many ad sets and ads does this campaign have?" - "What targeting is set on my campaign?" - "Show me the full campaign hierarchy" - After `list_meta_campaigns` when user wants to drill into a specific campaign Parameters: - campaign_id: The Meta Campaign ID (required) - include_hierarchy: Include ad sets and ads (default: false, set true for full view) Execution time: 3-10 seconds (longer with hierarchy due to multiple API calls) Data source: Meta Marketing API (live) Workflow: 1. Use `list_meta_campaigns` to find campaign IDs 2. Use `get_meta_campaign_details` with `include_hierarchy=true` to see everything 3. Use `update_meta_ad_set` or `update_meta_ad` to make changes to specific items

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
campaign_idstring requiredThe Meta Campaign ID to get details for (required)
include_hierarchyboolean optionalInclude full hierarchy with ad sets and ads (default: false). Set to true to see the complete campaign structure. default: false
ad_account_idstring optionalMeta Ad Account ID. Required for multi-account users. Get from list_connected_accounts.

Example request

{
  "arguments": {
    "campaign_id": "<campaign_id>",
    "include_hierarchy": false,
    "ad_account_id": "string"
  }
}

Example responses

200 — Success

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

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

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