get_meta_ad_creatives

Meta Ads Read

User wants to see their Meta ad creatives, ad copy, media URLs, or creative performance

Endpoint

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

Headers

Description

User wants to see their Meta ad creatives, ad copy, media URLs, or creative performance. Returns ad-level data including full creative content and media URLs alongside performance metrics. Without ad_ids, only ads that have cached performance rows for the window are listed (highest spend first). To read specific ads, including a new or paused ad, pass ad_ids (or ad_id): each requested ad is returned, and one with no cached performance rows for the window comes back with its creative, status, creative ID and media IDs and the note "No cached performance rows for this window" (that note is not a statement that the ad has not delivered: today's delivery and data not collected yet are not in the cache). When to use this tool: - "Show me my Meta ad creatives" - "Show me the creative of ad 123..." / "Read back the ad I just created" (pass ad_ids) - "What ads are running and how are they performing?" - "Show me the headlines and images for my ads" - "Which ad creatives are performing best?" - "What's the creative content for campaign X?" - "Show me ad performance with creative details" - "Get me the image URLs for my ads" - "Export my ad copy" - "What images and videos are my ads using?" Returns per ad — ALWAYS display ALL of these fields when present: - Ad copy: headline, primary_text, description, call_to_action_type - Media URLs: image_url (direct CDN link to ad image), thumbnail_url, video_url (playable video source), video_id - Landing page: landing_page_url - Carousel cards: carousel_cards array with per-card image_url, headline, description, landing_page_url - Performance: spend, impressions, clicks, CTR, CPC, reach, frequency - Video engagement: 25%, 50%, 75%, 100% watched (for video ads) - Creative metadata: creative_type (image/video/carousel/dynamic_creative), first_seen_date - For an ad read live from Meta (requested by ID, no cached performance rows for the window): status, effective_status, created_time, creative_id, image_hash, video_id, object_story_id, and no performance numbers IMPORTANT: Always show the full image_url, thumbnail_url, video_url, and landing_page_url values — these are direct CDN links users need to download/export their creative media. Do not summarize or omit URLs. Parameters: - lookback_days: Number of days to analyze (7, 14, 30, 60, 90). Default: 30 - campaign_id: Optional filter to specific campaign - ad_set_id: Optional filter to specific ad set - ad_ids: Optional list of ad IDs (numeric, up to 50). Returns only these ads. IDs that are not ads of this ad account are listed as not found. Leave it out to list all ads; an empty list is refused. - ad_id: Optional single ad ID. Same as ad_ids with one entry. - ad_account_id: Required for multi-account users. Get from get_connections_status - start_date/end_date: Optional custom date range (overrides lookback_days) - limit: Max ads per page (default 20, max 50). Use for pagination. - offset: Number of ads to skip (default 0). Use with limit to page through results. These are the only filters. A call that passes another filter (for example creative_id, campaign_ids, status, an ad-name search or date_preset) is refused and returns no data, so unfiltered ads are never returned as if they matched. Other unknown arguments are ignored and named in a warning. Pagination: Results are paginated. Response includes total_ads count and has_more flag. To get next page, increase offset by limit. Execution time: 1-3 seconds Data source: Cached database (collected daily). Requested ad IDs with no cached performance rows for the window are read live from Meta (one request).

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
start_datestring optionalStart date (YYYY-MM-DD). If provided with end_date, overrides lookback_days for custom date range queries.
end_datestring optionalEnd date (YYYY-MM-DD). If provided with start_date, overrides lookback_days for custom date range queries.
date_rangestring optionalDate range preset: 'last_7_days', 'last_14_days', 'last_30_days', 'last_60_days', 'last_90_days'. Overrides lookback_days. Ignored if start_date/end_date are provided.
raw_databoolean optionalIf true, return ONLY raw metrics as a JSON code block (spend, clicks, impressions, conversions, CPA, CPC, CTR, CVR, ROAS by campaign/ad/date). Strips severity labels, suggested bids/budgets, industry benchmarks, and optimization recommendations. Use when you run your own attribution model or want to minimize token usage. default: false
campaign_idstring optionalFilter to specific campaign ID (optional)
ad_set_idstring optionalFilter to specific ad set ID (optional)
ad_account_idstring optionalMeta Ad Account ID. Required for multi-account users. Get from get_connections_status.
lookback_daysinteger optionalNumber of days to analyze (7, 14, 30, 60, or 90 days). Default is 30 days. default: 30
limitinteger optionalMaximum number of ads to return per page (default 20, max 50). Use with offset for pagination. default: 20
offsetinteger optionalNumber of ads to skip for pagination (default 0). Use with limit to page through results. default: 0
ad_idsarray optionalReturn only these ad IDs (numeric Meta ad IDs, up to 50). An ad with no cached performance rows for the window is read live from Meta and returned with its creative and status, without performance numbers. IDs that are not ads of this ad account are listed as not found. Leave it out to list all ads: an empty list is refused.
ad_idstring optionalOne ad ID (numeric). Same as ad_ids with one entry.

Example request

{
  "arguments": {
    "start_date": "string",
    "end_date": "string",
    "date_range": "string",
    "raw_data": false,
    "campaign_id": "string",
    "ad_set_id": "string"
  }
}

Example responses

200 — Success

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

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

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