# Hermoso: create_meta_adset: Create a Meta ad · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/create_meta_adset/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Ad campaign management](https://hermoso.ai/docs/reference/ads/) / create_meta_adset

# `create_meta_adset`

Create a Meta ad set (audience + budget + schedule) destructive

Area: Meta ad-set targeting, shared by create_meta_ad and create_m… · [Ad campaign management](https://hermoso.ai/docs/reference/ads/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## Description

Create an AD SET on an EXISTING Meta campaign — the level that holds the audience, budget, schedule and bidding. Use it to hang SEVERAL ad sets off ONE campaign, which is how you actually test audiences on Meta (one ad set per audience, same campaign, same creative). Takes the same full `targeting`, pixelId/conversionEvent, bidStrategy, schedule and budget fields as create_meta_ad. Created PAUSED and read back from Meta. It has NO ads until you call create_meta_ad(adSetId:…). For CATALOG / ADVANTAGE+ CATALOG ads (DPA), pass productSetId here — the campaign carries productCatalogId and the ad set narrows it to a product set.

## Parameters

Parameter Type Description

`adAccountId` required `string` ad account id (act_… or digits)

`campaignId` required `string` the campaign this ad set belongs to

`name` `string` ad set name

`brandedContentSponsorIgId` `string` PARTNERSHIP AD — the Instagram account id shown as the PAID PARTNER on this ad (Meta’s `instagram_branded_content.sponsor_id`), so the ad runs as a creator collaboration rather than as a plain brand ad. The creator must already be APPROVED on this brand’s Partnership Ads list: check with list_meta_partnership_creators first, because a PENDING creator makes the ad fail for a reason nothing in Meta’s error names. Hermoso sends this id EXACTLY as given and does not work out which id belongs in which slot — Meta’s own two published examples disagree on that — so confirm the ad’s identity in Ads Manager before it is switched on.

`brandedContentSponsorPageId` `string` PARTNERSHIP AD — the Facebook Page id of the paid partner (Meta’s `facebook_branded_content.sponsor_page_id`). Give BOTH halves when the ad runs across both surfaces: supplying only one leaves the other surface’s placements with no partnership label at all, and the returned summary says which half is missing rather than letting it be discovered in Ads Manager.

`productSetId` `string` CATALOG (dynamic product) ADS — the PRODUCT SET this ad set advertises, from list_meta_product_sets. Meta binds a catalog at TWO levels and they are different ids on different objects: the CAMPAIGN takes productCatalogId, the AD SET takes productSetId. Passing a CATALOG id here is refused by name rather than moved, because Meta’s own error for a mis-placed id names neither the level nor the right field. Cannot be combined with pixelId — an ad set has exactly one promoted_object — and its conversion event is conversionEvent, which Meta defaults to PURCHASE.

`dailyBudgetUsd` `number` ad-set daily budget in the AD ACCOUNT's currency (historical name — not necessarily USD; default 10, or 1,000 in a whole-unit currency like JPY) — spends only once ACTIVE. Under a campaign that HAS its own budget (create_meta_campaign with dailyBudgetUsd, Advantage+ campaign budget) leave this and lifetimeBudgetUsd OUT: Meta allows a budget at the campaign or the ad set, never both, so the ad set then gets none and shares the campaign’s, and naming one is refused by name before anything is created

`lifetimeBudgetUsd` `number` a fixed total instead of a daily budget, in the ad account's currency — REQUIRES endTime

`country` `string` 2-letter shorthand when you are not passing full targeting (default US)

`targeting` `object` full Meta ad-set targeting — age, gender, geo, interests, behaviours, audiences, languages, placements, devices. Use EXACTLY these key names: an unrecognised one (e.g. geoLocations) is REFUSED by name — it is never dropped, because a dropped geo key used to fall back to targeting the United States.

`targeting.geo` `object` where the ad runs

`targeting.geo.countries` `string[]` 2-letter codes, e.g. ["US","CA"]

`targeting.geo.regions` `object[]` region KEYS from find_meta_audiences(type:"adgeolocation")

`targeting.geo.regions[].key` required `string` Meta numeric region key (the ads location search returns it)

`targeting.geo.cities` `object[]` city KEYS; radius works here (10–50 mi / 17–80 km)

`targeting.geo.cities[].key` required `string` Meta numeric city key, from find_meta_audiences

`targeting.geo.cities[].radius` `number` radius around the city: 10 to 50 miles or 17 to 80 kilometers

`targeting.geo.cities[].distanceUnit` `"mile" | "kilometer"` mile or kilometer; the unit the radius is measured in

`targeting.geo.zips` `object[]` postal codes to target: list of {key}

`targeting.geo.zips[].key` required `string` Meta postal code key (the ads location search returns it)

`targeting.geo.geoMarkets` `object[]` DMA keys, e.g. {key:"DMA:807"}

`targeting.geo.geoMarkets[].key` required `string` Meta geo market (DMA) key (the ads location search returns it)

`targeting.geo.customLocations` `object[]` drop a pin + radius

`targeting.geo.customLocations[].latitude` required `number` latitude of a custom pin location

`targeting.geo.customLocations[].longitude` required `number` longitude of a custom pin location

`targeting.geo.customLocations[].radius` `number` radius around the pin: 0.63 to 50 miles or 1 to 80 kilometers

`targeting.geo.customLocations[].distanceUnit` `"mile" | "kilometer"` mile or kilometer; the unit the radius is measured in

`targeting.geo.locationTypes` `"home" | "recent" | "travel_in"[]` people who LIVE there vs were recently there

`targeting.excludedGeo` `object` places to exclude

`targeting.excludedGeo.countries` `string[]` 2-letter codes, e.g. ["US","CA"]

`targeting.excludedGeo.regions` `object[]` region KEYS from find_meta_audiences(type:"adgeolocation")

`targeting.excludedGeo.regions[].key` required `string` Meta numeric region key (the ads location search returns it)

`targeting.excludedGeo.cities` `object[]` city KEYS; radius works here (10–50 mi / 17–80 km)

`targeting.excludedGeo.cities[].key` required `string` Meta numeric city key, from find_meta_audiences

`targeting.excludedGeo.cities[].radius` `number` radius around the city: 10 to 50 miles or 17 to 80 kilometers

`targeting.excludedGeo.cities[].distanceUnit` `"mile" | "kilometer"` mile or kilometer; the unit the radius is measured in

`targeting.excludedGeo.zips` `object[]` postal codes to target: list of {key}

`targeting.excludedGeo.zips[].key` required `string` Meta postal code key (the ads location search returns it)

`targeting.excludedGeo.geoMarkets` `object[]` DMA keys, e.g. {key:"DMA:807"}

`targeting.excludedGeo.geoMarkets[].key` required `string` Meta geo market (DMA) key (the ads location search returns it)

`targeting.excludedGeo.customLocations` `object[]` drop a pin + radius

`targeting.excludedGeo.customLocations[].latitude` required `number` latitude of a custom pin location

`targeting.excludedGeo.customLocations[].longitude` required `number` longitude of a custom pin location

`targeting.excludedGeo.customLocations[].radius` `number` radius around the pin: 0.63 to 50 miles or 1 to 80 kilometers

`targeting.excludedGeo.customLocations[].distanceUnit` `"mile" | "kilometer"` mile or kilometer; the unit the radius is measured in

`targeting.excludedGeo.locationTypes` `"home" | "recent" | "travel_in"[]` people who LIVE there vs were recently there

`targeting.ageMin` `number` 13–65

`targeting.ageMax` `number` 13–65 (65 means 65+)

`targeting.genders` `"all" | "men" | "women"` all, men or women

`targeting.interests` `object[]` interest ids from find_meta_audiences(type:"adinterest")

`targeting.interests[].id` required `string` Meta interest id, from find_meta_audiences

`targeting.interests[].name` `string` interest name, for readability; the id is what targets

`targeting.behaviors` `object[]` behaviour ids from find_meta_audiences(type:"adTargetingCategory", class:"behaviors")

`targeting.behaviors[].id` required `string` Meta interest id, from find_meta_audiences

`targeting.behaviors[].name` `string` interest name, for readability; the id is what targets

`targeting.excludedInterests` `object[]` interests to exclude: list of {id, name}

`targeting.excludedInterests[].id` required `string` Meta interest id, from find_meta_audiences

`targeting.excludedInterests[].name` `string` interest name, for readability; the id is what targets

`targeting.excludedBehaviors` `object[]` behaviors to exclude: list of {id, name}

`targeting.excludedBehaviors[].id` required `string` Meta interest id, from find_meta_audiences

`targeting.excludedBehaviors[].name` `string` interest name, for readability; the id is what targets

`targeting.flexibleSpec` `object[]` AND across entries, OR within one

`targeting.flexibleSpec[].interests` `object[]` interests in this group, matched as OR within the group: list of {id, name}

`targeting.flexibleSpec[].interests[].id` required `string` Meta interest id, from find_meta_audiences

`targeting.flexibleSpec[].interests[].name` `string` interest name, for readability; the id is what targets

`targeting.flexibleSpec[].behaviors` `object[]` behaviors in this group, matched as OR within the group: list of {id, name}

`targeting.flexibleSpec[].behaviors[].id` required `string` Meta interest id, from find_meta_audiences

`targeting.flexibleSpec[].behaviors[].name` `string` interest name, for readability; the id is what targets

`targeting.customAudiences` `object[]` saved audiences AND lookalikes — a lookalike IS a custom audience id

`targeting.customAudiences[].id` required `string` Meta interest id, from find_meta_audiences

`targeting.customAudiences[].name` `string` interest name, for readability; the id is what targets

`targeting.excludedCustomAudiences` `object[]` custom audiences to exclude: list of {id, name}

`targeting.excludedCustomAudiences[].id` required `string` Meta interest id, from find_meta_audiences

`targeting.excludedCustomAudiences[].name` `string` interest name, for readability; the id is what targets

`targeting.locales` `number[]` Meta language ids from find_meta_audiences(type:"adlocale")

`targeting.publisherPlatforms` `"facebook" | "instagram" | "audience_network" | "messenger" | "threads"[]` placement platforms: facebook, instagram, audience_network, messenger or threads

`targeting.facebookPositions` `string[]` feed, story, facebook_reels, marketplace, search, instream_video, right_hand_column, …

`targeting.instagramPositions` `string[]` stream, story, reels, profile_feed, profile_reels, ig_search, explore_home. "explore_home" needs "stream" beside it; the old "explore" placement is retired by Meta and refused

`targeting.messengerPositions` `string[]` Messenger placements, e.g. sponsored_messages

`targeting.audienceNetworkPositions` `string[]` Audience Network placement names, as Meta defines them

`targeting.threadsPositions` `"threads_stream"[]` Threads feed. Threads needs "instagram" in publisherPlatforms too (and "stream" if you list instagramPositions); the ad runs under the Threads profile linked to the Instagram account, found automatically

`targeting.devicePlatforms` `"mobile" | "desktop"[]` mobile or desktop

`targeting.userOs` `"iOS" | "Android"[]` iOS or Android

`targeting.deviceExpansion` `boolean` only with devicePlatforms / userOs: true lets Meta also show the ad on OTHER devices and operating systems (its "Reach more people across other mobile devices", Sales campaigns only). Default false keeps delivery to exactly the devices and OS you targeted — Hermoso sends the opt-out explicitly, because Meta turns this on by default for new Sales ad sets from Graph v27

`targeting.advantageAudience` `boolean` let Meta expand beyond your audience (Advantage+ audience)

`pixelId` `string` Meta Pixel id — with this the ad set optimizes for a real CONVERSION instead of falling back to link clicks

`conversionEvent` `string` PURCHASE | LEAD | COMPLETE_REGISTRATION | ADD_TO_CART | INITIATED_CHECKOUT | …

`customConversionId` `string` Meta custom conversion id (digits), from Meta Events Manager

`applicationId` `string` app-promotion ads

`objectStoreUrl` `string` app store link for an app-install ad

`optimizationGoal` `string` override, e.g. OFFSITE_CONVERSIONS / LANDING_PAGE_VIEWS / THRUPLAY / VALUE

`billingEvent` `string` default IMPRESSIONS

`bidStrategy` `"LOWEST_COST_WITHOUT_CAP" | "LOWEST_COST_WITH_BID_CAP" | "COST_CAP" | "LOWEST_COST_WITH_MIN_ROAS"` bidding: lowest cost, bid cap, cost cap or minimum ROAS (Meta's strategy names)

`bidAmountUsd` `number` REQUIRED for a bid cap / cost cap

`minRoas` `number` REQUIRED for LOWEST_COST_WITH_MIN_ROAS, e.g. 1.1

`startTime` `string` ISO-8601 with offset, e.g. 2026-08-01T09:00:00-0700

`endTime` `string` REQUIRED with lifetimeBudgetUsd

`adsetSchedule` `object[]` dayparting — minutes from midnight (0–1440), days 0=Sunday…6=Saturday

`adsetSchedule[].startMinute` required `number` start of the daypart window, minutes from midnight (0 to 1440)

`adsetSchedule[].endMinute` required `number` end of the daypart window, minutes from midnight (0 to 1440)

`adsetSchedule[].days` required `number[]` weekdays the window runs on: 0 = Sunday through 6 = Saturday

`attributionSpec` `object[]` e.g. [{event_type:"CLICK_THROUGH",window_days:7}]

`dsaBeneficiary` `string` EU AD TRANSPARENCY: the person or organisation this ad promotes (Meta shows it on the ad). Meta requires it whenever the ad set reaches the EU; omit it and Hermoso uses the ad account's own default, else this profile's brand name, else the Page name, and the summary says which was used

`dsaPayor` `string` EU AD TRANSPARENCY: who pays for the ads (Meta shows it on the ad). Omit it and it matches dsaBeneficiary

`pageId` `string` Page id from list_meta_pages. Omit when the brand has one Page; with several the call lists them, so ask the user which one.

## Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and `POST https://app.hermoso.ai/v1/tools/create_meta_adset`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_meta_adset","arguments":{"adAccountId":"<string>","campaignId":"<string>"}}}`
**CLI**

`hermoso call create_meta_adset --json '{"adAccountId":"<string>","campaignId":"<string>"}'`

## Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See [Credits & costs](https://hermoso.ai/docs/credits/).

## Related tools

- [create_meta_ad](https://hermoso.ai/docs/reference/ads/create_meta_ad/) Build a full Meta ad (campaign -> ad set -> ad, paused)
- [list_meta_playables](https://hermoso.ai/docs/reference/ads/list_meta_playables/) List Meta playables
- [upload_meta_playable](https://hermoso.ai/docs/reference/ads/upload_meta_playable/) Upload a playable ad to Meta

[All 759 Ad campaign management tools](https://hermoso.ai/docs/reference/ads/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
