Adspirer icon

Adspirer

Manage ad campaigns across Google, Meta, LinkedIn & TikTok Ads via the Adspirer REST API

Actions119

Analyze Meta Audiences

AI-generated

Summary

Analyze advertising audience performance on Meta Ads by retrieving metrics broken down by age, gender, or both over specified date ranges, optionally including saturation analysis for lookalike and custom audiences.

Inputs

  • Platform (required) — Select the advertising platform; 'Meta Ads' is required for this operation.
  • Ad Account Id (required) — The Meta Ad Account ID to analyze.
  • Breakdown Type — Audience breakdown type: 'age', 'gender', 'age_gender', or 'all' (default).
  • Date Range — Predefined date range presets such as 'last_7_days', 'last_14_days', 'last_30_days', 'last_60_days', or 'last_90_days'.
  • Start Date — Custom analysis start date in YYYY-MM-DD format; overrides Date Range if provided.
  • End Date — Custom analysis end date in YYYY-MM-DD format; overrides Date Range if provided.
  • Include Saturation — Boolean flag to include saturation analysis for lookalike and custom audiences, defaulting to true.
  • Lookback Days — Numeric string (7, 14, 30, 60, or 90) specifying number of days to analyze; optional alternative to Date Range.
  • Raw Data — If true, returns only raw performance metrics as a JSON code block including spend, clicks, impressions, conversions, CPA, CPC, CTR, CVR, and ROAS by campaign, ad, and date.
  • Target Roas — Optional numeric string to override target ROAS for the analysis (e.g., '3.0' for 3.0x ROAS).

Output shape

a JSON object containing analyzed audience metrics broken down by the selected criteria and date range or raw JSON metrics if requested

The output shape depends on the 'Raw Data' input: if true, returns raw performance metrics JSON; otherwise, returns processed audience breakdown analysis including optional saturation data. Date parameters are mutually exclusive—using 'Start Date' and 'End Date' will override 'Date Range'. Only applicable when 'Platform' is set to 'Meta Ads'.

Examples

Example 1: Analyze Meta Ads audiences by combined age and gender over the last 30 days including saturation data, returning processed analysis

Platform=Meta Ads, Breakdown Type=age_gender, Date Range=last_30_days, Include Saturation=true, Raw Data=false

Example 2: Retrieve raw performance metrics for a Meta Ads account over a custom date range

Platform=Meta Ads, Ad Account Id=, Start Date=2024-05-01, End Date=2024-05-31, Raw Data=true

Links

Discussion