create_adset
Create an ABO ad set by specifying daily budget, optimization goal, billing event, and targeting parameters. Ideal for video views (THRUPLAY) or lead generation campaigns.
Instructions
Create an ABO ad set. daily_budget_cents is in cents ($50/day = 5000).
advantage_audience is forced OFF (0) inside the targeting spec so the audience is the one you defined. For video views use optimization_goal THRUPLAY + billing_event IMPRESSIONS. For lead gen use LEAD_GENERATION.
targeting is the Meta targeting spec dict, e.g.: {"geo_locations": {"countries": ["AU"]}, "age_min": 28, "age_max": 55, "flexible_spec": [{"interests": [{"id": "...", "name": "..."}]}]} Pass an empty flexible_spec / omit interests for a broad ad set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| status | No | PAUSED | |
| targeting | Yes | ||
| account_id | No | ||
| campaign_id | Yes | ||
| bid_strategy | No | LOWEST_COST_WITHOUT_CAP | |
| billing_event | Yes | ||
| optimization_goal | Yes | ||
| daily_budget_cents | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||