hermosodocs

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. Generated from the running MCP server, like the rest of the tool 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

ParameterTypeDescription
adAccountIdrequiredstringad account id (act_… or digits)
campaignIdrequiredstringthe campaign this ad set belongs to
namestringad set name
brandedContentSponsorIgIdstringPARTNERSHIP 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.
brandedContentSponsorPageIdstringPARTNERSHIP 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.
productSetIdstringCATALOG (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.
dailyBudgetUsdnumberad-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
lifetimeBudgetUsdnumbera fixed total instead of a daily budget, in the ad account's currency — REQUIRES endTime
countrystring2-letter shorthand when you are not passing full targeting (default US)
targetingobjectfull 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.geoobjectwhere the ad runs
targeting.geo.countriesstring[]2-letter codes, e.g. ["US","CA"]
targeting.geo.regionsobject[]region KEYS from find_meta_audiences(type:"adgeolocation")
targeting.geo.regions[].keyrequiredstringMeta numeric region key (the ads location search returns it)
targeting.geo.citiesobject[]city KEYS; radius works here (10–50 mi / 17–80 km)
targeting.geo.cities[].keyrequiredstringMeta numeric city key, from find_meta_audiences
targeting.geo.cities[].radiusnumberradius 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.zipsobject[]postal codes to target: list of {key}
targeting.geo.zips[].keyrequiredstringMeta postal code key (the ads location search returns it)
targeting.geo.geoMarketsobject[]DMA keys, e.g. {key:"DMA:807"}
targeting.geo.geoMarkets[].keyrequiredstringMeta geo market (DMA) key (the ads location search returns it)
targeting.geo.customLocationsobject[]drop a pin + radius
targeting.geo.customLocations[].latituderequirednumberlatitude of a custom pin location
targeting.geo.customLocations[].longituderequirednumberlongitude of a custom pin location
targeting.geo.customLocations[].radiusnumberradius 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.excludedGeoobjectplaces to exclude
targeting.excludedGeo.countriesstring[]2-letter codes, e.g. ["US","CA"]
targeting.excludedGeo.regionsobject[]region KEYS from find_meta_audiences(type:"adgeolocation")
targeting.excludedGeo.regions[].keyrequiredstringMeta numeric region key (the ads location search returns it)
targeting.excludedGeo.citiesobject[]city KEYS; radius works here (10–50 mi / 17–80 km)
targeting.excludedGeo.cities[].keyrequiredstringMeta numeric city key, from find_meta_audiences
targeting.excludedGeo.cities[].radiusnumberradius 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.zipsobject[]postal codes to target: list of {key}
targeting.excludedGeo.zips[].keyrequiredstringMeta postal code key (the ads location search returns it)
targeting.excludedGeo.geoMarketsobject[]DMA keys, e.g. {key:"DMA:807"}
targeting.excludedGeo.geoMarkets[].keyrequiredstringMeta geo market (DMA) key (the ads location search returns it)
targeting.excludedGeo.customLocationsobject[]drop a pin + radius
targeting.excludedGeo.customLocations[].latituderequirednumberlatitude of a custom pin location
targeting.excludedGeo.customLocations[].longituderequirednumberlongitude of a custom pin location
targeting.excludedGeo.customLocations[].radiusnumberradius 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.ageMinnumber13–65
targeting.ageMaxnumber13–65 (65 means 65+)
targeting.genders"all" | "men" | "women"all, men or women
targeting.interestsobject[]interest ids from find_meta_audiences(type:"adinterest")
targeting.interests[].idrequiredstringMeta interest id, from find_meta_audiences
targeting.interests[].namestringinterest name, for readability; the id is what targets
targeting.behaviorsobject[]behaviour ids from find_meta_audiences(type:"adTargetingCategory", class:"behaviors")
targeting.behaviors[].idrequiredstringMeta interest id, from find_meta_audiences
targeting.behaviors[].namestringinterest name, for readability; the id is what targets
targeting.excludedInterestsobject[]interests to exclude: list of {id, name}
targeting.excludedInterests[].idrequiredstringMeta interest id, from find_meta_audiences
targeting.excludedInterests[].namestringinterest name, for readability; the id is what targets
targeting.excludedBehaviorsobject[]behaviors to exclude: list of {id, name}
targeting.excludedBehaviors[].idrequiredstringMeta interest id, from find_meta_audiences
targeting.excludedBehaviors[].namestringinterest name, for readability; the id is what targets
targeting.flexibleSpecobject[]AND across entries, OR within one
targeting.flexibleSpec[].interestsobject[]interests in this group, matched as OR within the group: list of {id, name}
targeting.flexibleSpec[].interests[].idrequiredstringMeta interest id, from find_meta_audiences
targeting.flexibleSpec[].interests[].namestringinterest name, for readability; the id is what targets
targeting.flexibleSpec[].behaviorsobject[]behaviors in this group, matched as OR within the group: list of {id, name}
targeting.flexibleSpec[].behaviors[].idrequiredstringMeta interest id, from find_meta_audiences
targeting.flexibleSpec[].behaviors[].namestringinterest name, for readability; the id is what targets
targeting.customAudiencesobject[]saved audiences AND lookalikes — a lookalike IS a custom audience id
targeting.customAudiences[].idrequiredstringMeta interest id, from find_meta_audiences
targeting.customAudiences[].namestringinterest name, for readability; the id is what targets
targeting.excludedCustomAudiencesobject[]custom audiences to exclude: list of {id, name}
targeting.excludedCustomAudiences[].idrequiredstringMeta interest id, from find_meta_audiences
targeting.excludedCustomAudiences[].namestringinterest name, for readability; the id is what targets
targeting.localesnumber[]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.facebookPositionsstring[]feed, story, facebook_reels, marketplace, search, instream_video, right_hand_column, …
targeting.instagramPositionsstring[]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.messengerPositionsstring[]Messenger placements, e.g. sponsored_messages
targeting.audienceNetworkPositionsstring[]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.deviceExpansionbooleanonly 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.advantageAudiencebooleanlet Meta expand beyond your audience (Advantage+ audience)
pixelIdstringMeta Pixel id — with this the ad set optimizes for a real CONVERSION instead of falling back to link clicks
conversionEventstringPURCHASE | LEAD | COMPLETE_REGISTRATION | ADD_TO_CART | INITIATED_CHECKOUT | …
customConversionIdstringMeta custom conversion id (digits), from Meta Events Manager
applicationIdstringapp-promotion ads
objectStoreUrlstringapp store link for an app-install ad
optimizationGoalstringoverride, e.g. OFFSITE_CONVERSIONS / LANDING_PAGE_VIEWS / THRUPLAY / VALUE
billingEventstringdefault 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)
bidAmountUsdnumberREQUIRED for a bid cap / cost cap
minRoasnumberREQUIRED for LOWEST_COST_WITH_MIN_ROAS, e.g. 1.1
startTimestringISO-8601 with offset, e.g. 2026-08-01T09:00:00-0700
endTimestringREQUIRED with lifetimeBudgetUsd
adsetScheduleobject[]dayparting — minutes from midnight (0–1440), days 0=Sunday…6=Saturday
adsetSchedule[].startMinuterequirednumberstart of the daypart window, minutes from midnight (0 to 1440)
adsetSchedule[].endMinuterequirednumberend of the daypart window, minutes from midnight (0 to 1440)
adsetSchedule[].daysrequirednumber[]weekdays the window runs on: 0 = Sunday through 6 = Saturday
attributionSpecobject[]e.g. [{event_type:"CLICK_THROUGH",window_days:7}]
dsaBeneficiarystringEU 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
dsaPayorstringEU AD TRANSPARENCY: who pays for the ads (Meta shows it on the ad). Omit it and it matches dsaBeneficiary
pageIdstringPage 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.

All 759 Ad campaign management tools · tools.json