Create a Meta ad set
meta_create_adsetCreate an ad set (always PAUSED) in a campaign: optimisation goal, budget (if the campaign has none), targeting (countries/cities, age, gender, interest IDs from meta_targeting_search, custom audiences, Advantage+ audience), automatic placements, optional pixel event and schedule. dry_run validates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| cities | No | ||
| folder | No | Client folder name. | |
| account | No | Meta ad account name or ID (act_123 or 123). Optional when only one account is enabled. | |
| age_max | No | ||
| age_min | No | ||
| dry_run | No | ||
| genders | No | ||
| page_id | No | Required for lead/conversation ad sets. | |
| campaign | Yes | ||
| end_time | No | ||
| language | No | Language of the card: the language the user is writing in (ar for any Arabic dialect). | |
| pixel_id | No | ||
| countries | No | ||
| bid_amount | No | ||
| start_time | No | ||
| daily_budget | No | ||
| interest_ids | No | ||
| lifetime_budget | No | ||
| destination_type | No | ||
| custom_event_type | No | PURCHASE, LEAD, COMPLETE_REGISTRATION, ADD_TO_CART, INITIATED_CHECKOUT, CONTACT… | |
| optimization_goal | Yes | ||
| advantage_audience | No | Let Meta expand beyond the targeting. Default true. | |
| custom_audience_ids | No | ||
| excluded_audience_ids | No |