Skip to main content

Scenario

Your Meta ad account accumulates rich demographic data — age, gender, location, device, interest categories — but it lives in aggregate dashboard charts. This job pulls breakdowns from the Insights API, identifies your strongest audience segments, maps them to existing Mavera personas where possible, and creates custom personas for unmapped segments. The result is a persona library that mirrors your actual paid audience.

Architecture

Code

Example Output

Error Handling

Insights require at least one active campaign in the date range. Use date_preset=last_90d for broader coverage. Verify the ad account has had spend.
Some breakdowns can’t be combined (e.g., age,gender works but age,placement may not). Check Meta’s breakdown matrix.
The actions field contains different action types per objective. Filter for your conversion action (e.g., purchase, lead, offsite_conversion).

Meta Ads Integration

All Meta Ads jobs

Personas

Creating and managing personas