# POST /meta-ads/ad-sets

**Resource:** [META_ADS](./meta-ads.md)  
**MCP tool:** `create_meta_ad_set`  
**Scopes:** `meta-ads-manage:write`  
**Write operation:** yes

Create an ad set inside a Meta campaign: who sees the ads (targeting: locations, age, gender, interests, custom audiences, placements or Advantage+ placements), what Meta optimises for, the budget (unless the campaign has one) and the schedule. For lead-form ads use optimization_goal LEAD_GENERATION, destination_type ON_AD and promoted_object { "page_id": ... }. It is created paused and spends nothing: switching it on is a separate step (set_meta_ad_status, which needs the meta-ads-spend permission). A status field anywhere in the request is refused. Needs the meta-ads-manage scope (admins only by default); with meta-ads-manage:write-approval the request waits for a person to approve it. Logged with who made it (list_meta_ad_changes). Returns the new ad set id.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `ad_account_id` | body | string | yes | The ad account id from list_meta_ad_accounts (numbers, with or without act_). It must be switched on in the Ad Manager. |
| `campaign_id` | body | string | yes | The campaign to put it in (from create_meta_campaign or list_meta_campaigns). |
| `name` | body | string | yes | Ad set name. |
| `targeting` | body | object | yes | Who sees it, in Meta's targeting format. Needs geo_locations, e.g. { "geo_locations": { "countries": ["AU"] }, "age_min": 30, "age_max": 60, "genders": [1] } (1 men, 2 women; leave out for all). Interests: "flexible_spec": [{ "interests": [{ "id": "...", "name": "..." }] }] (ids from search_meta_targeting). Custom audiences: "custom_audiences": [{ "id": "..." }] (from list_meta_custom_audiences). Leave out publisher_platforms for Advantage+ placements (Meta chooses across Facebook, Instagram, Messenger and partner apps), or set e.g. "publisher_platforms": ["facebook", "instagram"], "facebook_positions": ["feed"], "instagram_positions": ["stream", "story"]. Advantage+ audience is off unless you send "targeting_automation": { "advantage_audience": 1 }. |
| `optimization_goal` | body | string | yes | What Meta optimises delivery for: LEAD_GENERATION (instant forms), QUALITY_LEAD, LINK_CLICKS, LANDING_PAGE_VIEWS, OFFSITE_CONVERSIONS, REACH, IMPRESSIONS, CONVERSATIONS, THRUPLAY, POST_ENGAGEMENT. |
| `billing_event` | body | string | no | What you pay for. Default IMPRESSIONS (works with every goal). LINK_CLICKS is allowed with the LINK_CLICKS goal. |
| `daily_budget` | body | number | no | Budget per day. A normal amount in the ad account's currency, like 25 or 25.50, never cents. Required (or lifetime_budget) unless the campaign has its own budget. |
| `lifetime_budget` | body | number | no | Budget for the whole run; needs end_time. A normal amount in the ad account's currency, like 25 or 25.50, never cents. |
| `confirm_large_budget` | body | boolean | no | Set true to allow a daily budget above 1000 or a lifetime budget above 20000 (this catches dollars-vs-cents mistakes). |
| `start_time` | body | string | no | When it may start, ISO 8601 with time zone, e.g. 2026-11-01T09:00:00+1100. It still will not run until it is switched on. |
| `end_time` | body | string | no | When it stops, ISO 8601. Required with lifetime_budget. |
| `promoted_object` | body | object | no | What the ad set promotes, as Meta needs it. Lead forms (OUTCOME_LEADS + LEAD_GENERATION): { "page_id": "<page id>" }. Website conversions: { "pixel_id": "...", "custom_event_type": "LEAD" }. |
| `destination_type` | body | string | no | Where people go: ON_AD for an instant lead form, WEBSITE, MESSENGER, WHATSAPP. Leave out for Meta's default. |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/meta-ads/ad-sets"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"ad_account_id":"...","campaign_id":"...","name":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`