Create Ad Set
create_adsetCreate a new ad set for a Meta campaign by defining targeting, optimization goal, budget, and status. Start targeted advertising to your selected audience.
Instructions
Create a new ad set within a campaign. Requires campaign_id, targeting, billing_event, optimization_goal, budget, and status. Targeting is a JSON string with age, gender, geo, interests, etc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Ad set name | |
| status | Yes | Initial status | |
| end_time | No | End time (ISO 8601). Required if using lifetime_budget. | |
| targeting | Yes | JSON targeting object. Example: {"age_min":25,"age_max":55,"geo_locations":{"countries":["BR"]},"publisher_platforms":["facebook","instagram"]} | |
| start_time | No | Start time (ISO 8601) | |
| campaign_id | Yes | Parent campaign ID | |
| daily_budget | No | Daily budget in cents (e.g. 5000 = R$50.00). Required if campaign has no budget. | |
| billing_event | No | Billing event (default: IMPRESSIONS) | |
| lifetime_budget | No | Lifetime budget in cents. Requires end_time. | |
| promoted_object | No | JSON promoted object. Required for conversions. Example: {"pixel_id":"123","custom_event_type":"PURCHASE"} | |
| optimization_goal | Yes | What to optimize for |