hermosodocs

Ad campaign management

Build and run paid campaigns across eleven ad platforms. Everything is created paused.

386 tools. Every name, description and parameter on this page is generated from the running MCP server — see how this reference is built.

PINTEREST DEEP ANALYTICS

pinterest_ads_async_report#

Pinterest deep (async) ad report read-only

The DEEP Pinterest ad report — Pinterest’s ASYNCHRONOUS lane, which reaches 914 DAYS back (2.5 years) where pinterest_ads_report stops at 90, and carries roughly three times the metric columns (conversion, ROAS and cross-device families the quick report does not have). Use it for anything older than three months, and for revenue questions. Levels: ADVERTISER / CAMPAIGN / AD_GROUP / PIN_PROMOTION / KEYWORD / PRODUCT_GROUP / PRODUCT_ITEM plus their *_TARGETING twins. Pinterest generates it asynchronously, so this may come back pending:true with a token — CALL AGAIN WITH THAT TOKEN to pick it up, and never re-submit without it (a second submit generates a second report). Pinterest’s own windows are enforced here with the reason rather than as an opaque 400: 914 days back over at most 186 days; at HOUR granularity 8 days back over 3; at a PRODUCT_ITEM level 92 back over 31. A finished report link is valid five minutes and the report one hour, so an EXPIRED status means run it again, not that anything failed. Read-only, 0 credits.

ParameterTypeDescription
adAccountIdstring
tokenstringRESUME a pending report — pass the token back instead of re-submitting
sincestringYYYY-MM-DD (default 30 days ago)
untilstringYYYY-MM-DD (default today)
granularity"TOTAL" | "DAY" | "HOUR" | "WEEK" | "MONTH"
levelstringADVERTISER | CAMPAIGN | AD_GROUP | PIN_PROMOTION | KEYWORD | PRODUCT_GROUP | PRODUCT_ITEM (+ _TARGETING variants) — default CAMPAIGN. An unknown level is refused with the list.
columnsstring[]Pinterest async metric columns — omit for the standard spend/impressions/clicks/CTR/conversions set
campaignIdsstring[]
adGroupIdsstring[]
adIdsstring[]
targetingTypesstring[]only valid with a *_TARGETING level
reportFormat"JSON" | "CSV"

pinterest_targeting_analytics#

Pinterest ads by audience segment read-only

WHICH AUDIENCE SEGMENT actually delivered on Pinterest — ad performance broken down by keyword, targeted interest, age bucket, gender, location, region, country, placement, app type, media type and more. targetingTypes is REQUIRED because it is what the report breaks down BY. scope:"account" covers the whole ad account; "campaign" / "adGroup" / "ad" each REQUIRE their own id list, because Pinterest publishes no all-of-them form at those levels — that is Pinterest’s shape, not a limitation here. 90 days back in windows of at most 90 days, refused locally with the reason. An unknown targeting type is refused BY NAME; note Pinterest’s four per-level enums differ slightly, so a value valid at one level can still be refused at another. Read-only, 0 credits.

ParameterTypeDescription
adAccountIdstring
scope"account" | "campaign" | "adGroup" | "ad"default account
targetingTypesrequiredstring[]REQUIRED — e.g. KEYWORD, AGE_BUCKET, GENDER, LOCATION, PLACEMENT, MEDIA_TYPE, TARGETED_INTEREST, PINNER_INTEREST, COUNTRY, REGION
campaignIdsstring[]
adGroupIdsstring[]
adIdsstring[]
sincestring
untilstring
granularity"TOTAL" | "DAY" | "HOUR" | "WEEK" | "MONTH"
columnsstring[]

pinterest_audience_insights#

Pinterest audience insights read-only

WHO the Pinterest audience IS, rather than what it did — interest categories each carrying an affinity INDEX, plus demographics (ages, countries, devices, genders, metros). Three audiences: YOUR_TOTAL_AUDIENCE, YOUR_ENGAGED_AUDIENCE, and PINTEREST_TOTAL_AUDIENCE as the baseline to compare the other two against. This is an input to a creative brief, not a performance report. SAY THIS WHEN REPORTING: an affinity index is how much MORE likely this audience is to engage with a category than Pinterest’s baseline — it is a comparison, never a count — and when Pinterest flags size_is_upper_bound the audience size is an upper bound, not a measurement. There is no date range: Pinterest returns its current snapshot and names the date it is for. Read-only, 0 credits.

ParameterTypeDescription
adAccountIdstring
insightType"YOUR_TOTAL_AUDIENCE" | "YOUR_ENGAGED_AUDIENCE" | "PINTEREST_TOTAL_AUDIENCE"default YOUR_TOTAL_AUDIENCE

search_pinterest_ads_targeting#

Find Pinterest ad targeting options read-only

THE IDS AN AD GROUP’S targetingSpec NEEDS. create_pinterest_ads_campaign and create_pinterest_ads_ad_group accept interests, locales, locations, age buckets and keywords — this is where those values come from, and guessing one is the worst option available: Pinterest ACCEPTS a well-formed but wrong interest id and the campaign then quietly targets the wrong people. Pass targetingType (INTEREST, GEO, LOCATION, LOCALE, AGE_BUCKET, GENDER, APPTYPE, KEYWORD, AUDIENCE_INCLUDE, AUDIENCE_EXCLUDE) and optionally `query` to narrow the list. INTERESTS ARE A TREE: pass interestId instead to drill into one and get its children, which is how you get from "Food" to something specific enough to target. Pinterest publishes no search parameter of its own, so `query` filters the full list HERE — the note says so, because a filter we applied is not a filter the vendor applied. Read-only, 0 credits, no new permission (it uses ads:read, already granted).

ParameterTypeDescription
adAccountIdstring
targetingType"APPTYPE" | "GENDER" | "LOCALE" | "AGE_BUCKET" | "LOCATION" | "GEO" | "INTEREST" | "KEYWORD" | "AUDIENCE_INCLUDE" | "AUDIENCE_EXCLUDE"which catalog to list — required unless you pass interestId
querystringnarrow the list to options mentioning this text (filtered here, not by Pinterest)
interestIdstringdrill INTO one interest and return its child interests — how you walk the interest tree
limitnumber1–500, default 100

Meta ad-set targeting, shared by create_meta_ad and create_m…

create_meta_ad#

Build a full Meta ad (campaign → ad set → ad, paused)

Build a complete, ready-to-run Meta ad: campaign → ad set (FULL targeting + budget + schedule + bidding) → creative → ad(s), ALL created PAUSED — it spends NOTHING until you activate the campaign with set_meta_campaign_status(confirm:true). This is the "create a campaign and put the ads on it" path. IMAGE, VIDEO (uploaded, transcoded and thumbnailed for you) and CAROUSEL (format:"carousel", 2–10 cards each with its own headline/description/link) all work. Targeting is the `targeting` object: geo down to cities with a radius, age, gender, interests, behaviours, custom audiences and lookalikes, languages, placements, devices and OS. For a conversion objective pass pixelId + conversionEvent and the ad set optimizes for that conversion. Schedule with startTime/endTime + dayparting; bid with bidStrategy + bidAmountUsd/minRoas; use lifetimeBudgetUsd (with endTime) for a fixed flight. Attach to an existing campaign with campaignId or an existing ad set with adSetId. Everything is READ BACK from Meta before you are told it exists — print the returned summary verbatim (it now carries Meta-rendered PREVIEW LINKS for the first ad, valid 24 hours — hand them to the user so they can see the ad; preview_meta_ad renders any ad in any placement). Needs ads-management on the connected account. BOOST AN EXISTING POST: pass boostPostId — a post you have ALREADY published (numeric id, the <pageId>_<postId> form, or a permalink) — INSTEAD of any creative, and the ad promotes that post exactly as published, comments and all. Meta ignores creative overrides on an existing post, so message/headline/cta/link do NOT apply; targeting, budget, schedule, bidding and PAUSED-by-default all work identically. Find ids with list_meta_posts. AN INSTAGRAM POST NEEDS boostTarget:"instagram" — an IG media id and a Facebook post id are both bare digits, so Hermoso will NOT guess which one you meant, and a Facebook boost given an IG media id is refused rather than built against a fabricated id. Instagram eligibility is checked for free before anything is created (Meta refuses to boost a post carrying licensed music or an interactive element).

ParameterTypeDescription
boostPostIdstringPromote a post that ALREADY EXISTS instead of building a new ad from media. Accepts the numeric post id, <pageId>_<postId>, or a permalink (an Instagram post is its NUMERIC media id — an instagram.com link carries only a shortcode, which Meta cannot resolve). Cannot be combined with image/video inputs, and creative fields do not apply — a boost shows the post as published.
boostTarget"facebook" | "instagram"Which surface the boosted post lives on. Default facebook. REQUIRED for an Instagram post: an IG media id and a Facebook post id are both bare digits, so this is never inferred — Meta takes a different creative for each (object_story_id for a Page post; object_id + instagram_user_id + source_instagram_media_id for an IG post). list_meta_posts(target:'instagram') returns the ids.
adAccountIdrequiredstringad account id (act_… or digits — from list_meta_pages)
format"auto" | "carousel"auto = one ad per asset (image or video); carousel = ONE multi-card ad
imageUrlstringpublic https image URL for the ad creative
imageUrlsstring[]several image URLs → one ad each, or the carousel cards in order
videoUrlstringa video URL → a real Meta VIDEO ad (uploaded + transcoded + thumbnailed for you)
thumbnailUrlstringcustom video thumbnail (otherwise Meta picks a frame)
messagestringprimary ad text
headlinestringheadline
descriptionstringthe smaller description line under the headline
cardsobject[]carousel cards in order — each may set its own headline/description/link
carouselEndCardbooleanappend the Page end card to a carousel
linkstringdestination URL (defaults to the brand domain)
ctastringcall-to-action, e.g. SHOP_NOW / LEARN_MORE / SIGN_UP (default LEARN_MORE)
leadFormIdstringLEAD ADS — attach an instant form (from list_meta_lead_forms / create_meta_lead_form) so the button opens that form INSIDE Facebook/Instagram instead of sending the click to a website. Requires objective:"OUTCOME_LEADS"; the ad set is then optimized for LEAD_GENERATION and pointed at the form automatically. Read the submissions afterwards with read_meta_leads.
objective"OUTCOME_TRAFFIC" | "OUTCOME_AWARENESS" | "OUTCOME_ENGAGEMENT" | "OUTCOME_LEADS" | "OUTCOME_SALES"default OUTCOME_TRAFFIC
dailyBudgetUsdnumberad-set daily budget USD (1–10000, default 10) — spends only once ACTIVE
lifetimeBudgetUsdnumbera fixed total instead of a daily budget — 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.
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 | …
customConversionIdstring
applicationIdstringapp-promotion ads
objectStoreUrlstring
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"
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
attributionSpecobject[]e.g. [{event_type:"CLICK_THROUGH",window_days:7}]
specialAdCategories"HOUSING" | "EMPLOYMENT" | "CREDIT" | "ISSUES_ELECTIONS_POLITICS" | "ONLINE_GAMBLING_AND_GAMING" | "FINANCIAL_PRODUCTS_SERVICES"[]legally required when the ad falls in one of these categories — it restricts targeting
instagramUserIdstringrun it on Instagram under the brand’s own handle
namestringbase name for the campaign/ad set/ads
campaignIdstringattach to an existing campaign instead of creating one
destinationTypestringWHERE A CLICK LANDS, and worth deciding for a merchant with a shop. "WEBSITE" sends it to their own site — their pixel fires, their email capture runs, their upsell flow works. "WEBSITE_AND_SHOP" lets Meta route it into the in-app Facebook/Instagram Shop instead: often fewer taps to a purchase, but the visit never reaches their site. FROM META API v26 AN ADVERTISER WITH A SHOP DEFAULTS TO WEBSITE_AND_SHOP, so pass "WEBSITE_AND_SHOP_OPT_OUT" to keep every click on their own site. Also accepts APP, MESSENGER, INSTAGRAM_DIRECT, WHATSAPP, ON_AD, ON_POST, ON_PAGE, ON_EVENT, ON_VIDEO, SHOP_AUTOMATIC. An unknown value is refused by name, and the read-back says in words where clicks will go.
adSetIdstringattach the ad(s) to an EXISTING ad set (skips ad-set creation)
pageIdstringPage id from list_meta_pages; omit = first Page

create_meta_adset#

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

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:…).

ParameterTypeDescription
adAccountIdrequiredstringad account id (act_… or digits)
campaignIdrequiredstringthe campaign this ad set belongs to
namestringad set name
dailyBudgetUsdnumberad-set daily budget USD (1–10000, default 10) — spends only once ACTIVE
lifetimeBudgetUsdnumbera fixed total instead of a daily budget — 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.
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 | …
customConversionIdstring
applicationIdstringapp-promotion ads
objectStoreUrlstring
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"
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
attributionSpecobject[]e.g. [{event_type:"CLICK_THROUGH",window_days:7}]
pageIdstringPage id; omit = first Page

find_meta_audiences#

Look up Meta targeting ids read-only

Look up the Meta targeting ids you need before building an ad set — interests, behaviours, cities/regions/zips/DMAs, languages, employers, job titles and schools. type:"adinterest" (q:"yoga") returns interest ids + audience size; type:"adTargetingCategory" with class:"behaviors" returns behaviour ids; type:"adgeolocation" (q:"Toronto", optionally locationTypes:"city") returns the geo KEYS that go in targeting.geo.cities/regions/zips; type:"adlocale" (q:"french") returns language ids for targeting.locales. Read-only and free. Use it whenever the user names an audience in words — never guess an id.

ParameterTypeDescription
typerequired"adinterest" | "adTargetingCategory" | "adgeolocation" | "adlocale" | "adcountry" | "adzipcode" | "adeducationschool" | "adeducationmajor" | "adworkemployer" | "adworkposition"what kind of targeting object to search
qstringwhat to search for
classstringfor adTargetingCategory, e.g. "behaviors" or "interests"
locationTypesstringcomma-separated: country,region,city,zip,geo_market
countryCodestring2-letter hint to disambiguate a city name
adAccountIdstringsearch with that ad account’s token
limitnumber

Meta: READ / MEASURE / EDIT / DELETE existing objects

list_meta_ads#

List Meta campaigns / ad sets / ads read-only

Read the EXISTING campaigns, ad sets, or ads on a connected Meta ad account — id, name, status, budget, objective. Pass adAccountId (from list_meta_pages) and level (campaign|adset|ad). Scope to a parent with campaignId (→ its ad sets/ads) or adsetId (→ its ads), and filter by status (ACTIVE/PAUSED/…). Read-only — use it to inspect an account before editing/deleting, or to answer "what’s running?".

ParameterTypeDescription
adAccountIdrequiredstringad account id (act_… or digits — from list_meta_pages)
level"campaign" | "adset" | "ad"what to list (default campaign)
campaignIdstringlist the ad sets / ads under this campaign
adsetIdstringlist the ads under this ad set
statusstringfilter by effective status, e.g. ACTIVE / PAUSED
limitnumbermax rows (1–200, default 50)

meta_insights#

Meta ad performance metrics read-only

Pull performance INSIGHTS (spend, impressions, reach, clicks, CTR, CPC, CPM, conversions) for a connected ad account, or a specific campaign / ad set / ad. Pass adAccountId (for auth); optionally objectId to scope to one object and level to break the numbers down. BREAKDOWNS are what make the numbers actionable — a flat total says an ad cost $X, never WHO it worked on: pass breakdowns:"age,gender", "publisher_platform,platform_position" (which placement), "country" / "region" / "dma" (where), "impression_device" / "device_platform" (what they held). Comma-separated; "placement", "device" and "geo" are accepted as aliases; an unknown value is REJECTED, never silently ignored. THREE breakdowns need an ad-account OPT-IN from 2026-08-06 — impression_device, hourly_stats_aggregated_by_audience_time_zone and frequency_value: Meta returns NO ROWS (not an error) for an account that has not opted in, so they are always ATTEMPTED, and if nothing comes back the report is re-run WITHOUT them and `droppedBreakdowns` + a note name the missing dimension and say an account admin can enable it in Ads Manager. A dropped dimension is ABSENT, never zero — never present the remaining total as if it were still split by it. Date window: datePreset OR since+until (YYYY-MM-DD). datePreset is Meta's OWN enum — today, yesterday, last_3d, last_7d, last_14d, last_28d, last_30d, last_90d, this_week_mon_today, this_week_sun_today, last_week_mon_sun, last_week_sun_sat, this_month, last_month, this_quarter, last_quarter, this_year, last_year, maximum, data_maximum. THERE IS NO "lifetime": Meta disabled it in Graph API v10.0 and replaced it with "maximum" (the last 37 months); anything unrecognised is refused by name here rather than 400ing at Meta. Read-only.

ParameterTypeDescription
adAccountIdrequiredstringad account id (act_… or digits)
objectIdstringa campaign / ad set / ad id to scope to (default: the whole account)
level"account" | "campaign" | "adset" | "ad"break the numbers down by this level
breakdownsstringcomma-separated, e.g. "age,gender" | "publisher_platform,platform_position" | "country" | "impression_device"
actionBreakdownsstringcomma-separated, e.g. "action_type,action_device" — splits the conversion/action counts
datePresetstringMeta's date_preset enum, default last_30d: today | yesterday | last_3d | last_7d | last_14d | last_28d | last_30d | last_90d | this_week_mon_today | this_week_sun_today | last_week_mon_sun | last_week_sun_sat | this_month | last_month | this_quarter | last_quarter | this_year | last_year | maximum | data_maximum. NOT "lifetime" — Meta retired it in v10.0; use "maximum" (37 months) or since+until.
sincestringstart date YYYY-MM-DD (use with until)
untilstringend date YYYY-MM-DD

Meta: SEE the ad, SIZE the audience, BUILD the audience

preview_meta_ad#

Preview a Meta ad exactly as it will appear read-only

Render a REAL preview of a Meta ad, per placement — Meta returns a link that shows exactly what a person scrolling Facebook or Instagram would see. Pass adAccountId + adId (from list_meta_ads), or creativeId. Optional placements (comma-separated): facebook_feed, facebook_feed_desktop, facebook_story, facebook_reels, facebook_profile_feed, facebook_marketplace, facebook_right_column, facebook_video_feed, instagram_feed, instagram_story, instagram_reels, instagram_explore, instagram_profile_feed, messenger_inbox, messenger_story, audience_network — default facebook_feed + instagram_feed + instagram_story + instagram_reels. Free, read-only, spends nothing. THE LINKS EXPIRE AFTER 24 HOURS — always say so when handing them to a user. Use it straight after create_meta_ad, and whenever someone wants to approve an ad before it runs.

ParameterTypeDescription
adAccountIdrequiredstringad account id (act_… or digits)
adIdstringthe ad to preview (from list_meta_ads)
creativeIdstringpreview a creative directly instead of an ad
placementsstringcomma-separated placements (see the list above)

estimate_meta_reach#

Estimate how many people a Meta audience reaches read-only

Ask Meta how many people a targeting spec can actually reach — BEFORE any budget is committed. Two ways: pass adSetId to size an ad set you already built (Meta uses its own saved targeting), or pass the same `targeting` object you would give create_meta_ad (plus optional objective / optimizationGoal / country / pixelId) to size an audience you are considering. Returns the monthly-active range, a daily-active estimate, and an explicit warning when the audience is too narrow to deliver. Free, read-only, creates nothing and spends nothing. Use it before recommending a budget and every time the user narrows a geo or piles on interests.

ParameterTypeDescription
adAccountIdrequiredstringad account id (act_… or digits)
adSetIdstringsize an EXISTING ad set using its own saved targeting
targetingobjecta targeting object, same shape as create_meta_ad.targeting
objectivestringOUTCOME_TRAFFIC | OUTCOME_SALES | … — picks the matching optimization goal
optimizationGoalstringoverride the goal, e.g. REACH / LINK_CLICKS / OFFSITE_CONVERSIONS
countrystring2-letter fallback country when targeting names no geo
pixelIdstringestimate a conversion goal against this pixel
conversionEventstringe.g. PURCHASE — used with pixelId

list_meta_audiences#

List Meta custom audiences + lookalikes read-only

List the custom audiences and lookalikes on a connected Meta ad account — id, name, type, approximate size, and whether Meta says it is ready to target. Call it before create_meta_audience (so you never build a duplicate) and before targeting one: the ids go straight into create_meta_ad’s targeting.customAudiences / excludedCustomAudiences. Read-only, free.

ParameterTypeDescription
adAccountIdrequiredstringad account id (act_… or digits)
limitnumbermax rows (1–200, default 50)

create_meta_audience#

Create a Meta custom audience or lookalike

Build a retargeting audience on a connected Meta ad account. Three kinds: kind:"website" (people whose visited URL contains urlContains, seen by pixelId — pass the brand’s own domain for "all visitors"; retentionDays up to 180), kind:"engagement" (people who did `event` on the brand’s Facebook Page, or its Instagram business profile with source:"instagram"; retentionDays up to 730), or kind:"lookalike" (sourceAudienceId + country + ratio 0.01–0.20, lookalikeType "similarity" or "reach"). CREATING AN AUDIENCE SPENDS NOTHING — it is a definition; money only moves when an ad set targets it and that campaign is activated through set_meta_campaign_status(confirm:true). Meta needs roughly 30 minutes and ~1,000 people before a new audience can be targeted, so a fresh one reporting no size is normal. Customer-list uploads are deliberately NOT supported here (hashed personal data + Meta’s Custom Audience Terms) — send the user to Ads Manager for those.

ParameterTypeDescription
adAccountIdrequiredstringad account id (act_… or digits)
kindrequired"website" | "engagement" | "lookalike"which kind of audience to build
namerequiredstringaudience name
descriptionstring
retentionDaysnumberhow long someone stays in it — website max 180, engagement max 730 (default 30)
pixelIdstringwebsite: the Meta Pixel that sees the traffic
urlContainsstringwebsite: the URL fragment that defines the audience (your domain = all visitors)
pageIdstringengagement: which connected Page (required only if the brand has several)
source"page" | "instagram"engagement: Facebook Page (default) or the linked Instagram business profile
eventstringengagement: page_engaged | page_visited | page_liked | page_messaged | page_cta_clicked | page_or_post_save | page_post_interaction — or ig_business_profile_all | ig_business_profile_engaged | ig_user_messaged_business | ig_business_profile_visit
sourceAudienceIdstringlookalike: the existing audience to model (from list_meta_audiences)
countrystringlookalike: 2-letter country to build it in
rationumberlookalike: 0.01–0.20 = the top 1%–20% most similar people in that country (default 0.01)
startingRationumberlookalike: optional lower bound, must be less than ratio
lookalikeType"similarity" | "reach"lookalike: similarity (tighter) or reach (broader) — default similarity
prefillbooleanwebsite/engagement: seed it with activity from BEFORE the audience existed (default true)

META LEAD ADS

list_meta_pixels#

List Meta Pixels on an ad account read-only

List the META PIXELS on one of the brand’s ad accounts — id, name, when it was created, and WHEN IT LAST FIRED. This is where the pixelId every conversion tool needs comes from: create_meta_ad takes it (with conversionEvent) to optimise an ad set for OFFSITE_CONVERSIONS instead of link clicks, and create_meta_audience needs it to build a website retargeting audience. Without this tool that id could only be read off a screen in Events Manager. READ lastFiredAt BEFORE YOU TRUST A PIXEL: one that has NEVER FIRED is not installed on the site, so an ad optimising against it will spend and never learn. Pass includeCode:true to get the <script> snippet for installation (it is long, so it is off by default). Read-only, free.

ParameterTypeDescription
adAccountIdrequiredstringthe ad account (from list_connector_accounts / list_meta_pages), with or without the act_ prefix
includeCodebooleanalso return the full pixel <script> snippet — only ask when the user is about to install it

create_meta_pixel#

Create a Meta Pixel

Create a META PIXEL on one of the brand’s ad accounts, so their ads can optimise for real website conversions instead of link clicks and so website retargeting audiences become possible. A pixel is a DEFINITION: it cannot serve, cannot spend, and RECORDS NOTHING until its snippet is installed on the site — the reply hands back that snippet and says so. TWO THINGS TO SAY OUT LOUD BEFORE CALLING IT: Meta allows exactly ONE pixel per ad account (a second attempt is refused and Hermoso will name the one that already exists — so call list_meta_pixels first), and Meta publishes NO WAY TO DELETE a pixel, so this is permanent. Creating it spends nothing.

ParameterTypeDescription
adAccountIdrequiredstringthe ad account (from list_connector_accounts / list_meta_pages), with or without the act_ prefix
namerequiredstringwhat it will be called in Events Manager — name it after the website or brand it measures

list_meta_lead_forms#

List Meta instant (lead) forms read-only

List the INSTANT LEAD FORMS on a connected Facebook Page — id, name, status, how many leads each has collected and what each one asks. This is where the formId every other lead tool needs comes from, and calling it before create_meta_lead_form is how you avoid building a duplicate. Read-only, free. NEEDS the pages_manage_ads permission, which Hermoso’s Meta consent screen asks for. If Meta answers "Requires pages_manage_ads", the user must RECONNECT Meta under Settings ▸ Connectors ▸ Meta — a connection made before that permission was added cannot gain it by retrying. Call the tool rather than pre-refusing: any refusal comes from Meta and names the one thing that fixes it.

ParameterTypeDescription
pageIdstringwhich connected Page (from list_meta_pages) — required only if the brand has more than one
limitnumbermax rows (1–100, default 25)

create_meta_lead_form#

Create a Meta instant (lead) form

Create an INSTANT LEAD FORM on a connected Facebook Page — the in-app form a Meta lead ad opens instead of sending someone to a website, which is why lead ads convert far better than a landing page on mobile. `questions` takes Meta’s own type names, e.g. ["FULL_NAME","EMAIL","PHONE"]; for anything bespoke pass {type:"CUSTOM", label:"What size fleet do you run?"} and add options:[…] to make it a dropdown. Ask FEWER questions than you think — every extra field costs completions. privacyPolicyUrl is REQUIRED: the form collects real people’s contact details and has to say where their data goes. Optional: headline, contextCard {title, bullets[], buttonText} for the why-should-I screen, thankYou {title, body, buttonType, buttonText, websiteUrl}, locale, followUpActionUrl. CREATING A FORM SPENDS NOTHING and publishes nothing — it is invisible to the public until an ad points at it (create_meta_ad with objective:"OUTCOME_LEADS" + leadFormId), and that ad is created PAUSED. Read the submissions with read_meta_leads. NEEDS pages_manage_ads — see list_meta_lead_forms for what to do if Meta refuses it.

ParameterTypeDescription
namerequiredstringinternal name for the form — not shown to the person filling it in
questionsrequiredobject[]Meta question types as strings ("FULL_NAME","EMAIL","PHONE","COMPANY_NAME","JOB_TITLE","CITY","ZIP","WORK_EMAIL","DATE_TIME"…) or objects {type,label,key,options[]} for CUSTOM
privacyPolicyUrlrequiredstringREQUIRED — the business’s privacy policy URL (https://…)
privacyPolicyLinkTextstring
pageIdstringwhich connected Page (required only if the brand has more than one)
headlinestringheadline shown above the questions
localestringform language, e.g. EN_US, ES_ES, PT_BR, DE_DE
followUpActionUrlstring
contextCardobject{title, bullets[], body, buttonText, style} — the screen shown before the questions
thankYouobject{title, body, buttonType, buttonText, websiteUrl} — shown after submitting
isOptimizedForQualitybooleanadds a review-and-confirm step: fewer leads, better ones
blockNonTargetedboolean
trackingParametersobject

archive_meta_lead_form#

Archive (or restore) a Meta instant form destructive

Retire an INSTANT LEAD FORM so it stops collecting — the only way to tidy a Page’s Instant Forms list, because META DOES NOT SUPPORT DELETING A LEAD FORM AT ALL, only archiving it. This is REVERSIBLE: pass status:"ACTIVE" to switch an archived form back on. Archiving publishes nothing, spends nothing and DELETES NO LEADS — everything the form already collected stays readable with read_meta_leads. CALL IT WITHOUT confirm FIRST: nothing changes and you get the form’s real name, current status and lead count READ BACK FROM META, so you can show the user exactly which form they are about to retire rather than echoing back an id they may have mistyped; then call again with confirm:true. WARNING WORTH RELAYING BEFORE ARCHIVING: if a live ad still points at this form, its button will open nothing — check the ad first. The new status is READ BACK from Meta after the change, so the summary reports what Meta actually stored and says plainly when the change did NOT take; print it verbatim rather than assuming a successful call means a changed form.

ParameterTypeDescription
formIdrequiredstringthe form to retire (from list_meta_lead_forms)
status"ARCHIVED" | "ACTIVE"default ARCHIVED; "ACTIVE" restores a form that was archived
pageIdstringwhich connected Page (required only if the brand has more than one)
confirmbooleanmust be true to actually change it — without it nothing changes and you get the read-back to show the user

read_meta_leads#

Read Meta lead-ad submissions read-only

Read the LEADS a form (formId) or a single ad (adId) has collected — the real answers people submitted, fetched live from Meta. THIS RETURNS REAL PEOPLE’S CONTACT DETAILS (names, emails, phone numbers). Treat it as the user’s own customer data: show only what they asked for, never post a lead list anywhere public, and do not copy it into an unrelated document. Hermoso PULLS these on demand and keeps no copy — nothing here watches, polls or files leads anywhere, so if the user wants this batch kept, put it somewhere THEY own in the same turn (a Google Sheet with create_sheet / append_to_sheet, a doc, or their own CRM). Meta makes each lead available for 90 days after it is submitted; anything older is handled in Meta’s own Leads Center and CRM integrations. Narrow with since/until (ISO dates), page with cursor, or pass redact:true to see counts, timestamps and which ad produced each lead WITHOUT the personal details. NEEDS leads_retrieval — see list_meta_lead_forms for what to do if Meta refuses it.

ParameterTypeDescription
formIdstringevery lead this form has ever collected (from list_meta_lead_forms)
adIdstringjust the leads this ONE ad produced (from list_meta_ads) — pass this OR formId, never both
pageIdstringwhich connected Page (required only if the brand has more than one)
sincestringISO date (2026-08-01) or epoch ms — only leads created after this
untilstringISO date or epoch ms — only leads created before this
limitnumber1–500, default 100
cursorstringpaging cursor returned by a previous call
redactbooleanmask the contact values, keeping counts / dates / attribution — use when the user only wants to know the form is working

delete_meta_audience#

Delete a Meta custom audience destructive

PERMANENTLY delete a Meta custom audience or lookalike. Meta’s own warning: "When you delete a custom audience, it will be permanently removed from your account and your ads using it will stop running." An audience is the one ad object whose value is its CONTENTS — a big retargeting list cannot be rebuilt, it has to re-accumulate — so CALL IT WITHOUT confirm FIRST: nothing is deleted, and you get its real name, how many people are in it and which lookalikes were built from it, read live from Meta. Show the user exactly that. A populated audience, or one with lookalikes, then needs confirmName set to its exact name (and confirmChildren set to the lookalike count when there are any). META REFUSES to delete an audience that has lookalikes derived from it (error 2656) — delete those first; the unconfirmed call names them. Pass adAccountId + audienceId (from list_meta_audiences). The result is READ BACK from Meta: it says deleted only when the id no longer resolves.

ParameterTypeDescription
adAccountIdrequiredstringad account id (act_… or digits)
audienceIdrequiredstringthe custom audience id (from list_meta_audiences)
confirmbooleanREQUIRED true — the deletion is permanent
confirmNamestringthe audience’s EXACT name, required when it holds people or has lookalikes
confirmChildrennumberthe exact number of derived lookalikes reported by the unconfirmed call, required when it has any

Google Ads: read + manage

register_merchant_developer#

Register Hermoso with a Merchant Center account

ONE-TIME SETUP, and the FIRST thing to run when Merchant Center calls are being refused. Google blocks every Merchant API call until Hermoso's Google Cloud project is registered against the merchant's account, and says so verbatim ("GCP project ... is not registered with the merchant account"). This performs that link. It is NOT a broken connection and reconnecting cannot fix it. Google asks for up to 5 minutes afterwards before the API starts answering.

ParameterTypeDescription
merchantCenterIdrequiredstringthe numeric id shown top-right in Merchant Center
developerEmailrequiredstringa contact address Google records against the registration; it is not used to sign in

list_merchant_accounts#

List Merchant Center accounts read-only

List the Google Merchant Center accounts this brand's connected Google account can reach. EVERY other Merchant tool needs the merchantCenterId this returns, and an agency often has several, so never guess one — ask the user which store. Read-only and free. If it is refused, the Merchant Center permission has not been granted yet; that is not a broken connection and reconnecting will not change it.

No parameters.

list_merchant_products#

List Merchant Center products read-only

Read the products in a Merchant Center feed — what the merchant actually offers, which is what Shopping and retail Performance Max campaigns serve. Needs merchantCenterId from list_merchant_accounts. Read-only and free.

ParameterTypeDescription
merchantCenterIdrequiredstringfrom list_merchant_accounts
limitnumbermax products (default 50, max 250)

MERCHANT BREADTH ON THE HELD `content` SCOPE

list_merchant_promotions#

List Merchant Center promotions read-only

The sale and discount promotions on a Merchant Center account, with each one's PER-DESTINATION status and any issues Google has raised against it. GOOGLE VALIDATES PROMOTIONS ASYNCHRONOUSLY, so 'created' and 'running' are different states and only destinationStatuses tells them apart — never report a sale as live off a successful create. Read-only, 0 credits. Needs Google Ads connected (Merchant Center rides the same connection).

ParameterTypeDescription
merchantCenterIdrequiredstringfrom list_merchant_accounts
limitnumberup to 250, default 50

create_merchant_promotion#

Create a Merchant Center promotion (sale badge)

PUT A SALE BADGE ON THE MERCHANT'S SHOPPING LISTINGS — the most seasonal thing a retail advertiser does, and until now unreachable through Hermoso. It creates the promotion and resolves (or creates) the promotion DATA SOURCE that country/language needs automatically; a promotion data source is its own kind and cannot be the product feed. IT IS NOT LIVE ON CREATE: Google validates promotions asynchronously and can take days to approve one, so report it as SUBMITTED and re-read with list_merchant_promotions. Everything Google marks Required is refused up front by name, including the pairings its own 400 does not mention — PERCENT_OFF needs percentOff, MONEY_OFF needs moneyOffAmount, GENERIC_CODE needs genericRedemptionCode — because otherwise Google accepts the promotion and disapproves it hours later where nobody is watching. 0 credits.

ParameterTypeDescription
merchantCenterIdrequiredstringfrom list_merchant_accounts
promotionIdrequiredstringYOUR OWN id for the promotion, e.g. 'black-friday-2026'
targetCountryrequiredstringtwo-letter CLDR territory code, e.g. US. Part of the promotion identity and not changeable later
contentLanguagerequiredstringtwo-letter ISO 639-1 code, e.g. en. Must match the language of the products
longTitlerequiredstringthe promotion text shoppers see, e.g. '20% off all winter coats' — describe the offer, do not name the campaign
couponValueTyperequired"MONEY_OFF" | "PERCENT_OFF" | "BUY_M_GET_N_MONEY_OFF" | "BUY_M_GET_N_PERCENT_OFF" | "BUY_M_GET_MONEY_OFF" | "BUY_M_GET_PERCENT_OFF" | "FREE_GIFT" | "FREE_GIFT_WITH_VALUE" | "FREE_GIFT_WITH_ITEM_ID" | "FREE_SHIPPING_STANDARD" | "FREE_SHIPPING_OVERNIGHT" | "FREE_SHIPPING_TWO_DAY" | "MONEY_OFF_RANGE"the kind of discount
offerTyperequired"NO_CODE" | "GENERIC_CODE"NO_CODE when the discount applies automatically, GENERIC_CODE when the shopper types a code
genericRedemptionCodestringREQUIRED when offerType is GENERIC_CODE
percentOffnumberREQUIRED for PERCENT_OFF — a plain number, e.g. 20
moneyOffAmountobjectREQUIRED for MONEY_OFF — {"amountMicros":"10000000","currencyCode":"USD"} is $10 off
redemptionChannelrequired"IN_STORE" | "ONLINE"[]at least one; ONLINE for a webshop sale
promotionDestinationsrequiredstring[]at least one, e.g. ['SHOPPING_ADS'] for paid Shopping or ['FREE_LISTINGS'] for the unpaid surface
productApplicability"ALL_PRODUCTS" | "SPECIFIC_PRODUCTS"required unless eventApplicability is set — Google allows exactly one of the two
eventApplicability"SITEWIDE" | "SPECIFIC_CATEGORIES"creates a SALES EVENT instead of a product promotion — a different thing
startDaterequiredstringISO date, e.g. 2026-11-27
endDaterequiredstringISO date; widened to the END of that day, because Google's interval end is exclusive
promotionUrlstringthe page on the merchant's site where the promotion shows
attributesobjectany other promotion attribute Google publishes — item/brand/product-type filters, minimum purchase, store filters, display period — forwarded as given
customAttributesobject[]merchant-provided attributes, {name, value}

merchant_issue_help#

Google's own fix steps for a Merchant Center issue read-only

GOOGLE'S OWN FIX STEPS, not just the name of the problem. list_merchant_issues stops at the symptom; this returns the remediation content Google writes for each issue, plus the ACTIONS available on it — request a review, claim the website, edit a named attribute — with the exact opaque ids trigger_merchant_issue_action needs. Pass an offerId (with feedLabel, and contentLanguage if it is not 'en') for one PRODUCT's issues, or leave it off for the ACCOUNT's. The fix text is Google's and is relayed verbatim: RELAY IT, do not paraphrase a remediation step into something that sounds simpler. Read-only, 0 credits.

ParameterTypeDescription
merchantCenterIdrequiredstringfrom list_merchant_accounts
offerIdstringfor one PRODUCT's issues; omit for the account's issues
feedLabelstringREQUIRED alongside offerId — from list_merchant_products. A product is addressed by contentLanguage + feedLabel + offerId
contentLanguagestringwith offerId; defaults to 'en'
languageCodestringBCP-47 language for the fix text, e.g. 'en-US'
timeZonestringIANA zone for times inside the content, e.g. 'America/Los_Angeles'

trigger_merchant_issue_action#

Fire a Merchant Center issue action

FIRE one of the actions merchant_issue_help returned — most usefully 'request a review' on a disapproval. SEVERAL OF THESE ARE ONE-SHOT and Google says so in its own dialog callout ('You can only request a review for disagreeing with this issue once. If it's not approved, you'll need to fix the issue and wait'), so read that callout back to the user before confirming: a review spent on the wrong issue cannot be spent again. WITHOUT `confirm` IT FIRES NOTHING. `actionContext` is OPAQUE by Google's own instruction — pass it back exactly as merchant_issue_help gave it; it cannot be constructed or edited. The answer is Google's own message to the business, relayed verbatim, because this endpoint returns no resource to read back. 0 credits.

ParameterTypeDescription
merchantCenterIdrequiredstringfrom list_merchant_accounts
actionContextrequiredstringthe opaque token from merchant_issue_help, on the action you are firing
actionFlowIdrequiredstringthe id of the flow you picked from that action's flows — each asks for different inputs
inputValuesobject[]values for the flow's input fields, shaped as Google described them: {inputFieldId, textInputValue|choiceInputValue|checkboxInputValue}
languageCodestringBCP-47 language for the response message
confirmbooleanmust be true to actually fire it

MERCHANT LOCAL + REGIONAL INVENTORY, REVIEWS, QUOTA

list_merchant_inventory#

Merchant store and region overrides read-only

The per-store and per-region price and availability overrides on one Shopping product. An override REPLACES the product's own price and availability for that store or region; where there is no override the product-level values apply, so an empty result is the normal answer and does NOT mean the product is missing. Needs the product's offerId plus its contentLanguage and feedLabel, because in the Merchant API those three together ARE the product's address rather than optional filters. Read-only, free.

ParameterTypeDescription
merchantCenterIdrequiredstringfrom list_merchant_accounts
offerIdrequiredstringthe product's own id in the feed, from list_merchant_products
contentLanguagerequiredstringtwo-letter feed language, e.g. "en". Part of the product's address, not a filter
feedLabelrequiredstringusually the feed target country, e.g. "US". Part of the product's address, not a filter
kind"local" | "regional"omit to read both

set_merchant_inventory#

Set store or region price and stock

SET the price, availability or stock level of one Shopping product at ONE physical store (kind:"local", keyed by storeCode) or in ONE region (kind:"regional", keyed by region). This is what stops a Shopping ad advertising something the nearest store has sold out of. Google's insert REPLACES the whole entry, so this tool reads what is already stored, merges your fields over it, and reports which stored fields it preserved; pass an explicit null to CLEAR one. The API publishes no enum for availability, so it accepts anything and only Google's local inventory data specification says which values actually serve: In stock, Limited availability, On display to order, Out of stock, submitted in English. An unrecognised value is warned about here rather than refused, because refusing would mean inventing an enum Google does not publish. Google states it can take up to 30 minutes before the product itself reflects the change, so a product read straight afterwards can still show the old value and be correct. Free.

ParameterTypeDescription
merchantCenterIdrequiredstringfrom list_merchant_accounts
offerIdrequiredstringthe product's own id in the feed
contentLanguagerequiredstringtwo-letter feed language, e.g. "en"
feedLabelrequiredstringusually the feed target country, e.g. "US"
kindrequired"local" | "regional"local = one physical store (storeCode), regional = one Google region (region)
storeCodestringrequired for kind:'local' — the store ID from the merchant's Business Profile. Immutable
regionstringrequired for kind:'regional' — the Merchant Center region id. Immutable
availabilitystring | nullno API enum exists; Google's local spec publishes In stock, Limited availability, On display to order, Out of stock, in English. Anything else is warned about, not refused. null clears it
pricestring | null"12.99 USD". A bare number is refused because a price with no currency is not a price. null clears it
salePricestring | null"9.99 USD". Google requires salePriceEffectiveDate alongside it if that is set. null clears it
quantitynumber | nulllocal only. null clears it
pickupMethodstring | nulllocal only. Must be sent WITH pickupSla unless the value is "not supported"
pickupSlastring | nulllocal only
instoreProductLocationstring | nulllocal only, max 20 bytes

MERCHANT ACCOUNT STATUS

merchant_account_status#

Merchant Center serving status read-only

WHY THE MERCHANT CENTER ACCOUNT IS OR IS NOT SERVING, in one read. Do not trust the program state on its own: an account can report Shopping ads and free listings as ENABLED and serve in ZERO countries, because Google counts a region as active only where every requirement for that program is met. This reports the active regions, the unmet requirements Google names with its own help link for each, and then the eight account settings that explain them — whether the homepage is CLAIMED (unclaimed stops the whole account serving), whether business info has an address, a verified phone and a customer service contact, whether any active shipping service covers the countries you sell to, the return policies, whether the Merchant Center terms have been accepted, plus autofeed and automatic improvements. An account with no shipping settings at all is reported as not configured, which is an account state and not a failed read. Anything that genuinely could not be read comes back null with a warning, which means unknown rather than missing. Read-only, free.

ParameterTypeDescription
merchantCenterIdrequiredstringfrom list_merchant_accounts

merchant_quota#

Merchant Center quota and limits read-only

Merchant Center API quota and account limits, which is the difference between "the API refused" and "you are out of daily quota". Two different things in one answer: quota groups are how many API CALLS each method group has left today, and account limits are how many PRODUCTS the account may hold per destination. Google resets the daily quota at 12:00 PM MIDDAY UTC, not at midnight. If one half of the read fails it comes back null with a warning, which means unknown rather than zero. Read-only, free.

ParameterTypeDescription
merchantCenterIdrequiredstringfrom list_merchant_accounts

manage_merchant_notifications#

Merchant Center push notifications

PUSH INSTEAD OF POLLING for Merchant Center product status. Google POSTs to a URL the moment a product's status changes — a disapproval is otherwise found whenever someone happens to run list_merchant_issues, which for a feed of thousands means money burning unnoticed. action:'list' shows the subscriptions, 'create' adds one, 'delete' removes one. BE HONEST ABOUT WHERE IT GOES: callBackUri must be an HTTPS endpoint THE MERCHANT runs and can decode — Hermoso does not receive these notifications, so this only helps someone with a server on the other end. 0 credits.

ParameterTypeDescription
merchantCenterIdrequiredstringfrom list_merchant_accounts
action"list" | "create" | "delete"defaults to 'list'
callBackUristringHTTPS endpoint Google will POST to (create). Not a Hermoso URL and not localhost
registeredEvent"PRODUCT_STATUS_CHANGE" | "ACCOUNT_SERVICE_CHANGE"defaults to PRODUCT_STATUS_CHANGE, the one that fires on a disapproval
allManagedAccountsbooleansubscribe for every managed account instead of just this one — mutually exclusive with targetAccount
targetAccountstringaccounts/{id} to receive notifications for; defaults to this account
subscriptionIdstringfor action:'delete', from action:'list'

manage_merchant_conversion_source#

Merchant Center conversion sources destructive

WHERE MERCHANT CENTER GETS ITS CONVERSION DATA FROM, which is what free-listing and Shopping performance reporting is built on — a merchant with no conversion source sees clicks and no outcomes, and nothing in Merchant Center says why. Two kinds, and they are different jobs: a MERCHANT CENTER DESTINATION is a Google tag target, and creating one returns a destination id (MC-…) that is the only place that id exists, so it must be read back to the user because it is what the Google tag has to send conversions to. A GOOGLE ANALYTICS LINK pulls conversions from a GA4 property instead, needs the connected Google account to be an ADMIN on that property, and Google marks it IMMUTABLE — the property cannot be changed afterwards, only deleted and re-created. action:'list' shows every source including archived ones, 'create' adds one, 'update' changes a destination's name, currency or attribution, 'delete' ARCHIVES one (confirm-gated) and 'undelete' restores it until the expiry Google reports on the archived row. Attribution lookback is 7, 30 or 40 days and nothing else. Free.

ParameterTypeDescription
merchantCenterIdrequiredstringfrom list_merchant_accounts
action"list" | "create" | "update" | "delete" | "undelete"defaults to 'list'
kind"merchant_center_destination" | "google_analytics_link"for action:'create' — which kind to make. Passing propertyId implies the Google Analytics one
displayNamestringthe name that identifies a tag destination in the Merchant Center UI, e.g. "Website purchases". Required to create one; may also name an existing source for update/delete
currencyCodestringthree-letter ISO 4217 code the conversions are reported in, e.g. USD. Required when creating a tag destination — it decides what every number reported through it means
attributionModelstringCROSS_CHANNEL_LAST_CLICK (default) | ADS_PREFERRED_LAST_CLICK | CROSS_CHANNEL_DATA_DRIVEN | CROSS_CHANNEL_FIRST_CLICK | CROSS_CHANNEL_LINEAR | CROSS_CHANNEL_POSITION_BASED | CROSS_CHANNEL_TIME_DECAY
attributionLookbackWindowDaysnumber7, 30 or 40 — Google publishes no other value. Defaults to 30
conversionTypesstring[]names of the conversion types events may be classified as. IMMUTABLE once set, and Google returns it on no read, so it can never be confirmed afterwards — leave it off and Google creates a standard "purchase" type
propertyIdstringNUMERIC GA4 property id for a Google Analytics link (from list_analytics_properties), not a G- measurement id
conversionSourceIdstringfor update, delete and undelete — from action:'list'
showDeletedbooleaninclude archived sources in a list
confirmbooleanmust be true to actually archive

list_merchant_data_sources#

List Merchant Center product feeds read-only

List the data sources (feeds) on a Merchant Center account and say which of them can actually take a product write. Do this BEFORE creating or deleting a product: writes go into a data source, and Google only accepts them into an API-input product feed — a file feed, the feed Merchant Center's own UI creates, and an autofeed all list here and all REFUSE writes, so picking the first row would pick a feed that cannot be written to. Needs merchantCenterId from list_merchant_accounts. Read-only and free.

ParameterTypeDescription
merchantCenterIdrequiredstringfrom list_merchant_accounts

create_merchant_data_source#

Create a Merchant Center product feed

Create an API product feed on a Merchant Center account — the container upsert_merchant_product writes into. Most accounts have none until one is made: a store set up through the Merchant Center UI has a UI feed, which is read-only. feedLabel and contentLanguage must be set TOGETHER or not at all and BOTH ARE IMMUTABLE — leave them off and the feed accepts products for any market and language, which is the safer default because a wrong feed label can never be corrected. Omit destinations to inherit wherever the account already sells. Creating a feed costs nothing and cannot spend.

ParameterTypeDescription
merchantCenterIdrequiredstringfrom list_merchant_accounts
displayNamerequiredstringthe name the merchant will see in Merchant Center
feedLabelstringmarket bucket, e.g. "US" — max 20 chars, A-Z/0-9/dashes. IMMUTABLE, and must be set together with contentLanguage
contentLanguagestringtwo-letter ISO 639-1, e.g. "en". IMMUTABLE, and must be set together with feedLabel
countriesstring[]CLDR territory codes the items may be shown in
destinationsstring[]omit to inherit the account's own program participation (SHOPPING_ADS, FREE_LISTINGS, …)

upsert_merchant_product#

Create or replace a Merchant Center product destructive

Create or replace a product in a Merchant Center feed — this is how a merchant's catalogue gets populated, and it is what Shopping ads, free listings and retail Performance Max actually serve. It is an UPSERT and a WHOLE-ROW write: calling it again for the same offerId REPLACES the product rather than patching it, so send every field you want kept each time. You do not have to find a feed first — omit dataSource and it resolves the account's one writable feed, creates one if there is none, and REFUSES by name if there are several rather than putting the product in a market the campaigns may not target. offerId, contentLanguage and feedLabel together ARE the product's identity and are all immutable; contentLanguage and feedLabel are taken from the feed when the feed declares them. For the product to serve at all Google needs title, description, link, imageLink, availability and price — a row missing any of them is stored and then disapproved, and the reply says so rather than letting you believe it published. The reply reports what GOOGLE STORED, not what was sent. Free: a feed edit cannot spend.

ParameterTypeDescription
merchantCenterIdrequiredstringfrom list_merchant_accounts
offerIdrequiredstringyour own unique id for the product — IMMUTABLE, and what you update or delete it by later
dataSourcestringthe feed to write into, from list_merchant_data_sources. Omit to resolve the account's one writable feed (created if there is none, refused by name if there are several)
dataSourceNamestringdisplay name for a feed created on the fly
contentLanguagestringtwo-letter, e.g. "en" — taken from the feed when the feed declares one
feedLabelstringmarket bucket, e.g. "US" — taken from the feed when the feed declares one
titlestring
descriptionstring
linkstringthe product page URL on the merchant's store
imageLinkstring
additionalImageLinksstring[]
availabilitystringin_stock | out_of_stock | preorder | backorder
conditionstringnew | refurbished | used
priceobject
salePriceobject
brandstring
gtinstring
mpnstring
identifierExistsbooleanfalse for a product with no GTIN/MPN/brand, such as a service or a bundle
googleProductCategorystring
productTypesstring[]
colorstring
sizestring
materialstring
ageGroupstring
genderstring
itemGroupIdstring
attributesobjectany other product attribute by its Merchant API name — there are 145 and only the common ones are named above
customAttributesobject[]

delete_merchant_product#

Delete a Merchant Center product destructive

Delete a product from a Merchant Center feed. CONFIRM-GATED: without confirm:true nothing is deleted and it reports the real product it WOULD delete — title, price and availability read back from Google — because the id you were given proves nothing about what is actually there. It is recoverable: re-inserting the same offerId re-creates the product. Needs the same offerId + contentLanguage + feedLabel that identify the product (contentLanguage and feedLabel come from the feed when it declares them). Free.

ParameterTypeDescription
merchantCenterIdrequiredstringfrom list_merchant_accounts
offerIdrequiredstring
dataSourcestringthe feed it lives in, from list_merchant_data_sources
contentLanguagestring
feedLabelstring
confirmbooleanmust be true to actually delete; without it nothing is deleted and the real product is reported back

update_merchant_product#

Update fields on a Merchant Center product

Change SOME fields on a product already in a Merchant Center feed — the everyday operation, because price and availability move daily. This is a PATCH: only the attributes you name are touched and everything else on the product survives, which is the difference from upsert_merchant_product (a whole-row write that wipes anything you leave out). It refuses if the product does not exist rather than quietly creating a half-populated one, and it refuses an empty change rather than sending an update mask with nothing behind it. The reply reports every field Google now holds, so you can see what survived. Free.

ParameterTypeDescription
merchantCenterIdrequiredstringfrom list_merchant_accounts
offerIdrequiredstringthe product to change
dataSourcestringthe feed it lives in, from list_merchant_data_sources
contentLanguagestring
feedLabelstring
titlestring
descriptionstring
linkstring
imageLinkstring
additionalImageLinksstring[]
availabilitystringin_stock | out_of_stock | preorder | backorder
conditionstringnew | refurbished | used
priceobject
salePriceobject
brandstring
gtinstring
mpnstring
identifierExistsboolean
googleProductCategorystring
productTypesstring[]
colorstring
sizestring
materialstring
ageGroupstring
genderstring
itemGroupIdstring
attributesobjectany other product attribute by its Merchant API name

delete_merchant_data_source#

Delete a Merchant Center product feed destructive

Delete a data source (feed) from a Merchant Center account. CONFIRM-GATED and the heavier of the two deletes: without confirm:true nothing is deleted and it reports the feed plus HOW MANY PRODUCTS would be destroyed with it, counted live from Google. This is NOT recoverable the way a product delete is — the products would have to be re-inserted into a new feed, and feedLabel/contentLanguage are immutable so a replacement may not be identical. Free.

ParameterTypeDescription
merchantCenterIdrequiredstringfrom list_merchant_accounts
dataSourcerequiredstringthe feed to delete, from list_merchant_data_sources
confirmbooleanmust be true to actually delete; without it nothing is deleted and the product count that would go with it is reported

list_google_ads_campaigns#

List Google Ads accounts / campaigns read-only

Read the connected Google Ads account(s). Call with NO customerId to list the accessible accounts (customerId + name + currency) — do this first to pick a target. Call WITH customerId to list that account’s campaigns (id, name, status, daily budget, channel) plus performance metrics (impressions, clicks, CTR, avg CPC, cost, conversions). Date window: datePreset (LAST_7_DAYS | LAST_30_DAYS | TODAY | THIS_MONTH | LAST_90_DAYS …) or since+until (YYYY-MM-DD). Read-only, free. Needs Google Ads connected (Settings ▸ Connectors ▸ Google Ads).

ParameterTypeDescription
customerIdstring10-digit account id (dashes ok) — omit to list accessible accounts
status"ENABLED" | "PAUSED" | "REMOVED"filter campaigns by status
datePresetstringmetrics window preset (default LAST_30_DAYS)
sincestringstart date YYYY-MM-DD (with until)
untilstringend date YYYY-MM-DD
metricsbooleaninclude performance metrics (default true)
loginCustomerIdstringmanager (MCC) id — only if reaching a client account through a manager
limitnumbermax campaigns (1–500, default 100)

GOOGLE ADS CHANGE HISTORY

create_google_ads_campaign#

Build a Google Ads campaign (paused)

Build a campaign on a connected Google Ads account. ALWAYS created PAUSED — it spends NOTHING until you enable it with set_google_ads_status(confirm:true). Google's object graph is campaign → ad group → ad, so a campaign ON ITS OWN CANNOT SERVE AN IMPRESSION: pass adGroup{name, ad{headlines,descriptions,finalUrls}, keywords[]} and this builds budget + campaign + location/language targeting + ad group + ad + keywords in ONE ATOMIC operation (if any part is rejected, nothing at all is created — no half-built campaign to clean up). Also here: bidding strategy, locations by NAME ("United States", "Toronto" — resolved for you), languages, and start/end dates. Google requires 3–15 headlines (≤30 chars) and 2–4 descriptions (≤90 chars) on a search ad. Everything is READ BACK from Google before you are told it exists; print the returned note verbatim, and if it says the campaign cannot serve yet, say that rather than calling it a finished ad.

ParameterTypeDescription
customerIdstring10-digit account id (from list_google_ads_campaigns) — omit to use the brand’s selected default account
namerequiredstringcampaign name
dailyBudgetUsdnumberdaily budget USD (1–100000) — creates a budget inline; required unless budgetResourceName is given
budgetResourceNamestringreuse an existing budget instead of creating one
channelType"SEARCH" | "DISPLAY"default SEARCH
searchPartnersbooleanSEARCH only — also serve on Google search partners (default false)
biddingobjecthow the campaign bids — default MANUAL_CPC
locationsstring[]location NAMES to target, e.g. ["United States"] or ["Toronto","Vancouver"]. WITHOUT this the campaign runs WORLDWIDE — the most expensive default in Google Ads
excludedLocationsstring[]location names to EXCLUDE
languagesstring[]ISO language codes, e.g. ["en","fr"]
startDatestringYYYY-MM-DD
endDatestringYYYY-MM-DD
adGroupobjectbuild the serving tree in the same atomic call — WITHOUT this you get a campaign shell that can never show an ad
containsEuPoliticalAdsbooleanEU Political Advertising Regulation declaration. Google REQUIRES one on every campaign. Default false (a normal commercial ad) — set true ONLY for genuine EU political advertising
dryRunbooleanvalidate the WHOLE tree against Google without creating anything. Nothing is written and no budget is consumed
loginCustomerIdstringmanager id if operating through an MCC

create_google_ads_ad_group#

Add an ad group to a Google Ads campaign

Add an ad group to an EXISTING Google Ads campaign — the level between a campaign and its ads. Google requires it: a campaign with no ad group cannot serve. Optionally build its ad and keywords in the same ATOMIC call. The ad-group type is taken from the campaign's channel automatically. Created PAUSED and read back from Google before you are told it exists. If the parent campaign is already LIVE (ENABLED), creating this ENABLED starts REAL AD SPEND immediately — show the user what would begin serving, get an explicit yes, then pass confirm:true. Leaving it PAUSED never needs confirmation.

ParameterTypeDescription
customerIdstringomit to use the brand’s selected default account
campaignIdrequiredstringthe campaign this ad group belongs to
namerequiredstringad group name
cpcBidUsdnumbermax CPC for this ad group — omit to inherit the campaign bidding
status"ENABLED" | "PAUSED"default PAUSED
adobjectbuild the ad in the same atomic call
keywordsobject[]a SEARCH ad group with no keywords never shows
confirmbooleanset true ONLY after the user explicitly approved starting spend — required when the parent campaign is already LIVE (ENABLED) and this object would serve immediately
dryRunboolean
loginCustomerIdstring

create_google_ads_ad#

Create a Google Ads ad

Create the actual AD inside a Google Ads ad group — this is the object that carries the creative; a campaign or ad group alone shows nothing. On a SEARCH campaign it builds a RESPONSIVE SEARCH AD: 3–15 headlines (≤30 chars), 2–4 descriptions (≤90 chars), at least one finalUrl, optional path1/path2. On a DISPLAY campaign it builds a RESPONSIVE DISPLAY AD: headlines, longHeadline, descriptions, businessName plus BOTH a landscape (1.91:1) and a square (1:1) image asset from upload_google_ads_asset. The right format is chosen from the campaign's channel. Created PAUSED and read back from Google. If the parent campaign is already LIVE (ENABLED), creating this ENABLED starts REAL AD SPEND immediately — show the user what would begin serving, get an explicit yes, then pass confirm:true. Leaving it PAUSED never needs confirmation.

ParameterTypeDescription
customerIdstringomit to use the brand’s selected default account
adGroupIdrequiredstringthe ad group this ad lives in
finalUrlsstring[]the landing page(s) — at least one is required
headlinesstring | object[]SEARCH: 3–15 headlines, each ≤30 characters. DISPLAY: 1–5. Pass a plain string, or {text, pin} to PIN one to a fixed slot (a brand name or legal line).
descriptionsstring | object[]SEARCH: 2–4 descriptions, each ≤90 characters. DISPLAY: 1–5. Pass a plain string, or {text, pin} to pin it.
path1stringSEARCH only — display-URL path segment, ≤15 chars
path2stringSEARCH only — second display-URL path segment, ≤15 chars
longHeadlinestringDISPLAY only — ≤90 characters
businessNamestringDISPLAY only — ≤25 characters
marketingImagesstring[]DISPLAY only — landscape 1.91:1 asset resource names from upload_google_ads_asset
squareMarketingImagesstring[]DISPLAY only — square 1:1 asset resource names
logoImagesstring[]DISPLAY only — logo asset resource names
status"ENABLED" | "PAUSED"default PAUSED
confirmbooleanset true ONLY after the user explicitly approved starting spend — required when the parent campaign is already LIVE (ENABLED) and this object would serve immediately
dryRunboolean
loginCustomerIdstring

add_google_ads_keywords#

Add Google Ads keywords

Add keywords — and NEGATIVE keywords — to a Google Ads ad group. A Search ad group with no keywords never shows. Each keyword takes text (≤80 chars, ≤10 words) and matchType EXACT | PHRASE | BROAD (default PHRASE). Set negative:true to BLOCK a term instead of targeting it, which is the cheapest way to stop wasted spend. Read back from Google before you are told they exist. If the parent campaign and ad group are already LIVE, a positive keyword starts bidding real money at once — get an explicit yes and pass confirm:true, or add it with paused:true. Negative keywords only restrict spend and never need confirmation.

ParameterTypeDescription
customerIdstringomit to use the brand’s selected default account
adGroupIdrequiredstringthe ad group to add them to
keywordsrequiredobject[]the keywords to add
confirmbooleanset true ONLY after the user explicitly approved starting spend — required when the parent campaign is already LIVE (ENABLED) and this object would serve immediately
dryRunboolean
loginCustomerIdstring

set_google_ads_targeting#

Add Google Ads location & language targeting

ADD locations and languages to an existing Google Ads campaign. THIS ADDS; IT DOES NOT REPLACE — Google campaign criteria are a list, this call only ever creates entries, and there is no remove operation here. So a campaign already targeting the United States that you "change to Canada" ends up targeting BOTH and still spending in the US; the read-back names every pre-existing location and language it kept, and you MUST relay that rather than reporting the new total as the answer. Removing targeting is done in Google Ads (Campaign ▸ Settings ▸ Locations). Pass locations by NAME ("United States", "California", "Toronto") — they are resolved to Google's geo target ids for you; excludedLocations adds a NEGATIVE criterion (the reliable way to stop serving somewhere from here); languages takes ISO codes ("en","fr"). A campaign with NO location targeting runs WORLDWIDE, which is the most expensive default in Google Ads. Changing a LIVE campaign's targeting moves real spend immediately, so that needs confirm:true.

ParameterTypeDescription
customerIdstringomit to use the brand’s selected default account
campaignIdrequiredstringthe campaign to target
locationsstring[]location NAMES to target
excludedLocationsstring[]location NAMES to exclude
languagesstring[]ISO language codes, e.g. ["en","es"]
countryCodestring2-letter hint to disambiguate a city name, e.g. CA for "London"
confirmbooleanREQUIRED true to change a LIVE (ENABLED) campaign
dryRunboolean
loginCustomerIdstring

set_google_ads_bidding#

Set a Google Ads bidding strategy

Change how an existing Google Ads campaign bids: MANUAL_CPC (optionally enhanced), MAXIMIZE_CLICKS (needs maxCpcUsd on an existing campaign — Google requires the CPC ceiling on that change), MAXIMIZE_CONVERSIONS, MAXIMIZE_CONVERSION_VALUE, TARGET_CPA (needs targetCpaUsd) or TARGET_ROAS (needs targetRoas, e.g. 4 = $4 revenue per $1 spent). TARGET_CPA and TARGET_ROAS are applied as Google's own v25 equivalents — maximize-conversions with a target CPA, and maximize-conversion-value with a target ROAS — so the read-back reports them as MAXIMIZE_CONVERSIONS / MAXIMIZE_CONVERSION_VALUE; report what the read-back says. The conversion-based strategies only deliver once conversion tracking is configured on the account. Changing a LIVE campaign's bidding changes what it pays immediately, so that needs confirm:true.

ParameterTypeDescription
customerIdstringomit to use the brand’s selected default account
campaignIdrequiredstringthe campaign to change
strategyrequired"MANUAL_CPC" | "MAXIMIZE_CLICKS" | "MAXIMIZE_CONVERSIONS" | "MAXIMIZE_CONVERSION_VALUE" | "TARGET_CPA" | "TARGET_ROAS"the bidding strategy
targetCpaUsdnumberREQUIRED for TARGET_CPA
targetRoasnumberREQUIRED for TARGET_ROAS — e.g. 4 = $4 revenue per $1 spent
maxCpcUsdnumberMAXIMIZE_CLICKS — the max CPC ceiling; REQUIRED when switching an existing campaign to it
enhancedCpcbooleanDO NOT SET true — Google retired Enhanced CPC for new campaigns and answers OPERATION_NOT_PERMITTED_FOR_CONTEXT (measured live 2026-08-05); Hermoso refuses it up front with the reason. Use MAXIMIZE_CONVERSIONS / TARGET_CPA instead.
confirmbooleanREQUIRED true to change a LIVE (ENABLED) campaign
dryRunboolean
loginCustomerIdstring

find_google_ads_locations#

Look up Google Ads locations read-only

Look up Google Ads location targets by name — turns "Toronto" / "California" / "United Kingdom" into the geo target ids Google needs, with each one's type (COUNTRY, STATE, CITY, POSTAL_CODE…) and reach. Use it when a location name is ambiguous, or to show the user exactly which place you are about to target. Read-only and free.

ParameterTypeDescription
queryrequiredstringone location name, or several comma-separated (up to 25)
countryCodestring2-letter hint, e.g. CA to disambiguate "London"
loginCustomerIdstring

set_google_ads_budget#

Set a Google Ads campaign budget

Create a new daily budget, or change an existing budget’s daily amount (pass budgetResourceName). Raising the budget on a LIVE (ENABLED) campaign increases real spend immediately — you MUST show the user the new daily amount, get an explicit yes, then call with confirm:true. Creating a budget or lowering one on a paused campaign is safe.

ParameterTypeDescription
customerIdstring10-digit account id (dashes ok) — omit to use the brand’s selected default account
dailyBudgetUsdrequirednumberdaily budget in USD (1–100000)
budgetResourceNamestringexisting budget to UPDATE — omit to CREATE a new budget
namestringname for a newly created budget
confirmbooleanREQUIRED true to raise the budget of a LIVE campaign
loginCustomerIdstringmanager id if operating through an MCC

set_google_ads_status#

Enable, pause or remove a Google Ads campaign / ad group / ad destructive

Turn a campaign, AD GROUP or AD ON (ENABLED), OFF (PAUSED) or REMOVED. Pass level:"campaign" + campaignId, level:"adGroup" + adGroupId, or level:"ad" + BOTH adGroupId and adId (Google keys an ad by adGroupId~adId). ENABLING STARTS REAL AD SPEND — you MUST first show the user the campaign name + its daily budget, get an explicit yes, then call with status:"ENABLED" and confirm:true. Pausing is always safe. REMOVED is PERMANENT in Google Ads and is handled by the same gate as delete_google_ads_object — call it once WITHOUT confirm to see what goes with it, and expect to echo back the object’s name and child count when it has children, is live, or has spent. The resulting status is READ BACK from Google before you are told it took.

ParameterTypeDescription
customerIdstring10-digit account id (dashes ok) — omit to use the brand’s selected default account
level"campaign" | "adGroup" | "ad"what to change — default campaign
campaignIdstringcampaign id (level:"campaign")
adGroupIdstringad group id (level:"adGroup", or with adId for level:"ad")
adIdstringad id (level:"ad" — pass adGroupId too)
campaignResourceNamestringfull resource name, e.g. customers/{cid}/campaigns/{id}
statusrequired"ENABLED" | "PAUSED" | "REMOVED"ENABLED = start spending; PAUSED = stop; REMOVED = permanent
confirmbooleanREQUIRED true to ENABLE (real spend) or to REMOVE (permanent)
loginCustomerIdstringmanager id if operating through an MCC

delete_google_ads_object#

Remove a Google Ads campaign / ad group / ad / keyword / asset link / conversion action destructive

PERMANENTLY remove a Google Ads object. Google has no HTTP delete — removal is a `remove` operation that puts the object in the terminal REMOVED state, which cannot be undone or re-enabled, so treat it as a delete. Levels: "campaign" + campaignId · "adGroup" + adGroupId · "ad" + adGroupId AND adId · "keyword" + adGroupId AND keywordId · "conversionAction" + conversionActionId · "campaignAsset"/"adGroupAsset" + the LINK’s full resourceName (get it from google_ads_report over campaign_asset / ad_group_asset — an asset id alone does not identify a link). THERE IS DELIBERATELY NO "asset" LEVEL: Google publishes no operation that deletes an Asset, only its links, so removing a link unlinks the asset and leaves it in the library. CALL IT WITHOUT confirm FIRST — nothing is removed and you get the object’s real name, status, LIFETIME SPEND and child counts read live from Google; show the user exactly that. A target with children, live delivery or real spend additionally needs confirmName (its exact name) and confirmChildren (the child count from that read-back). Removing a CAMPAIGN also removes its campaign-owned budget, and the note says whether it did. Removing the last ENABLED conversion action makes every smart-bidding campaign on the account undeliverable — the refusal says so. To stop delivery without removing, use set_google_ads_status(status:"PAUSED").

ParameterTypeDescription
customerIdstring10-digit account id (dashes ok) — omit to use the brand’s selected default account
level"campaign" | "adGroup" | "ad" | "keyword" | "campaignAsset" | "adGroupAsset" | "conversionAction"what to remove — default campaign
campaignIdstringcampaign id (level:"campaign")
adGroupIdstringad group id (level:"adGroup"; REQUIRED as the parent for "ad" and "keyword")
adIdstringad id (level:"ad" — pass adGroupId too)
keywordIdstringkeyword criterion id (level:"keyword" — pass adGroupId too)
conversionActionIdstringconversion action id (level:"conversionAction")
resourceNamestringfull resource name — REQUIRED for campaignAsset / adGroupAsset, accepted for any level
confirmbooleanREQUIRED true — REMOVED is permanent
confirmNamestringthe object’s EXACT name, required when it has children / is live / has spent
confirmChildrennumberthe exact number of children reported by the unconfirmed call, required when it has any
loginCustomerIdstringmanager id if operating through an MCC

upload_google_ads_asset#

Upload a creative to Google Ads

Add a creative to a Google Ads account’s ASSET LIBRARY so it can be used in ads. It does NOT have to be a Hermoso render — the user’s own creative is the normal case; the URL just has to be Hermoso-HOSTED because we fetch the bytes, so run any file of theirs through upload_file and pass the URL it returns. For an IMAGE, pass imageUrl (≤5MB); an arbitrary external/CDN URL is refused. For VIDEO, Google Ads uses YouTube-hosted videos — post the video to YouTube as UNLISTED first (post_to_youtube with privacy:"unlisted" — link-only, not public or searchable, and unlike "private" it CAN run as an ad), then pass its youtubeVideoId here. Returns the asset resource name. Pass customerId (from list_google_ads_campaigns).

ParameterTypeDescription
customerIdstring10-digit account id (dashes ok) — omit to use the brand’s selected default account
imageUrlstringa Hermoso-hosted image URL for an IMAGE asset (≤5MB) — a Hermoso render, or the user’s OWN creative put through upload_file first. An arbitrary external/CDN URL is refused.
youtubeVideoIdstringa YouTube video id for a VIDEO asset (post_to_youtube first)
namestringasset name
loginCustomerIdstringmanager id if operating through an MCC

Google Ads breadth

create_google_ads_conversion_action#

Create a Google Ads conversion action

Create a CONVERSION ACTION — the thing that tells Google what counts as a result on this account. This is a PREREQUISITE, not a nicety: MAXIMIZE_CONVERSIONS, MAXIMIZE_CONVERSION_VALUE, TARGET_CPA, TARGET_ROAS and every Performance Max campaign are undeliverable without one, because Google has nothing to optimise toward. type WEBPAGE (a purchase / lead / signup on the site — the normal choice), UPLOAD_CLICKS or UPLOAD_CALLS; every other Google conversion type (Firebase, Google Analytics 4, Floodlight, store visits) is READ-ONLY and is created in those products, not here. Set category to what actually happened (PURCHASE, SUBMIT_LEAD_FORM, SIGNUP, BOOK_APPOINTMENT…) and defaultValueUsd when a conversion has a known worth — TARGET_ROAS has nothing to maximise without a value. Created ENABLED and counted in "conversions" by default, because a conversion action that is neither records nothing. It CANNOT SERVE AN AD and cannot spend a cent, so it needs no confirmation. A WEBPAGE action records NOTHING until its Google tag is installed on the site — say that when you report it.

ParameterTypeDescription
customerIdstring10-digit account id (dashes ok) — omit to use the brand’s selected default account
namerequiredstringwhat the user calls this result, e.g. "Purchase", "Demo request"
type"WEBPAGE" | "UPLOAD_CLICKS" | "UPLOAD_CALLS"default WEBPAGE — a conversion that happens on the website
category"DEFAULT" | "PAGE_VIEW" | "PURCHASE" | "SIGNUP" | "DOWNLOAD" | "ADD_TO_CART" | "BEGIN_CHECKOUT" | "SUBSCRIBE_PAID" | "PHONE_CALL_LEAD" | "IMPORTED_LEAD" | "SUBMIT_LEAD_FORM" | "BOOK_APPOINTMENT" | "REQUEST_QUOTE" | "GET_DIRECTIONS" | "OUTBOUND_CLICK" | "CONTACT" | "ENGAGEMENT" | "STORE_VISIT" | "STORE_SALE" | "QUALIFIED_LEAD" | "CONVERTED_LEAD" | "YOUTUBE_FOLLOW_ON_VIEWS"what kind of result this is — default DEFAULT
status"ENABLED" | "PAUSED" | "REMOVED" | "HIDDEN"default ENABLED — anything else records nothing
countingType"ONE_PER_CLICK" | "MANY_PER_CLICK"ONE_PER_CLICK for leads, MANY_PER_CLICK for sales — defaults by category
defaultValueUsdnumberwhat one conversion is worth — required in practice for TARGET_ROAS
defaultCurrencyCodestring3-letter ISO code, e.g. USD
alwaysUseDefaultValuebooleanignore any value sent with the conversion and always use the default
clickThroughLookbackDaysnumber1–90 days
viewThroughLookbackDaysnumber1–30 days
includeInConversionsMetricbooleandefault true — false makes smart bidding IGNORE it
primaryForGoalbooleandefault true — whether this action is biddable for its category
dryRunbooleanvalidate against Google and create NOTHING
loginCustomerIdstringmanager id if operating through an MCC

list_google_ads_conversion_actions#

List Google Ads conversion actions read-only

List the conversion actions on a Google Ads account and say plainly whether smart bidding can work there. Call this BEFORE proposing MAXIMIZE_CONVERSIONS / MAXIMIZE_CONVERSION_VALUE / TARGET_CPA / TARGET_ROAS or any Performance Max campaign: an account with no ENABLED conversion action that counts toward "conversions" cannot optimise on any of them, and the campaign would spend its budget without ever learning. Shows each action’s status, type, category, counting type, and whether it counts toward "conversions". Read-only, free.

ParameterTypeDescription
customerIdstring10-digit account id (dashes ok) — omit to use the brand’s selected default account
includeRemovedbooleanalso list REMOVED conversion actions
loginCustomerIdstringmanager id if operating through an MCC

add_google_ads_assets#

Add sitelinks / callouts / structured snippets to a Google Ads campaign

Add SITELINKS, CALLOUTS or STRUCTURED SNIPPETS to a Google Ads campaign or ad group — and ATTACH them, which is the part that makes them do anything (an asset sitting in the account library shows nothing at all). Sitelinks are the highest-CTR free win on Search: extra links under the ad, each with its own landing page. Pass assetType plus assets[]: SITELINK needs {linkText (≤25 chars), finalUrl, and optionally description1 / description2}; CALLOUT needs {calloutText (≤25)}; STRUCTURED_SNIPPET needs {header, values[] — at least 3}. Or link assets that already exist with assetResourceNames[]. Assets and links go up in ONE atomic operation, so a rejected link never strands an orphan asset, and the links are READ BACK from Google before you are told they exist. Attaching a live asset to a LIVE (ENABLED) campaign changes what that ad shows on the very next auction — show the user what would appear, get an explicit yes, then pass confirm:true. On a paused campaign it never needs confirmation.

ParameterTypeDescription
customerIdstring10-digit account id (dashes ok) — omit to use the brand’s selected default account
assetTyperequired"SITELINK" | "CALLOUT" | "STRUCTURED_SNIPPET"what kind of asset to create and attach
level"campaign" | "adGroup"where to attach it — default campaign
campaignIdstringcampaign id (level:"campaign")
adGroupIdstringad group id (level:"adGroup")
assetsobject[]the assets to CREATE and attach
assetResourceNamesstring[]attach assets that ALREADY exist instead of creating new ones
status"ENABLED" | "PAUSED"the LINK status — default ENABLED
confirmbooleanset true ONLY after the user approved changing what a LIVE campaign shows
dryRunbooleanvalidate against Google and create NOTHING
loginCustomerIdstringmanager id if operating through an MCC

create_google_ads_performance_max_campaign#

Create a Google Ads Performance Max campaign

Build a PERFORMANCE MAX campaign — Google’s cross-surface campaign type (Search, YouTube, Display, Discover, Gmail, Maps) and the one Google pushes hardest at small advertisers. ALWAYS created PAUSED; it spends NOTHING until you enable it with set_google_ads_status(confirm:true). PMax has NO manual bidding and NO keywords: it bids only on conversions, so the account MUST already have a conversion action — check with list_google_ads_conversion_actions, because this REFUSES rather than build a campaign that cannot optimise. Creative lives in an ASSET GROUP, and Google’s minimums are enforced before anything is sent: 3–15 headlines (≤30 chars), 1–5 longHeadlines (≤90), 2–5 descriptions (≤90), one businessName (≤25), at least one LOGO (1:1), one MARKETING_IMAGE (1.91:1) and one SQUARE_MARKETING_IMAGE (1:1) — upload the images with upload_google_ads_asset first and pass their asset resource names. A YouTube video is optional (Google generates one from the asset group if you omit it). Brand guidelines: since Google Ads API v21 they are ON by default for new PMax campaigns, which means the businessName and LOGO assets are linked to the CAMPAIGN (CampaignAsset), not to the asset group — Hermoso does that for you. Leave brandGuidelinesEnabled alone unless the user wants the older asset-group layout, and pass false for that. Budget, campaign, location/language targeting, the asset group and every asset link go up in ONE ATOMIC operation — if any part is rejected, nothing at all is created — and the whole tree is READ BACK from Google before you are told it exists. Print the returned note verbatim; if it says the campaign cannot serve, say that instead of calling it finished. RETAIL/SHOPPING: pass merchantCenterId (from list_merchant_accounts) to make it a Shopping-feed Performance Max — it then advertises the WHOLE feed (one root listing group); feedLabel narrows it to a single feed. Partitioning the feed by brand/category/custom label is NOT built and is refused by name, so a caller can never believe they narrowed it when they did not.

ParameterTypeDescription
customerIdstring10-digit account id (dashes ok) — omit to use the brand’s selected default account
namerequiredstringcampaign name
dailyBudgetUsdnumberdaily budget in USD (1–100000) — or pass budgetResourceName
budgetResourceNamestringan existing budget to reuse
biddingobject
locationsstring[]place NAMES ("United States", "Toronto") — resolved for you
excludedLocationsstring[]places to block
languagesstring[]ISO codes, e.g. ["en"]
countryCodestring2-letter hint to disambiguate a city name
startDatestringYYYY-MM-DD
endDatestringYYYY-MM-DD
containsEuPoliticalAdsbooleantrue ONLY for genuine EU political advertising
merchantCenterIdstringmakes this a RETAIL (Shopping-feed) Performance Max — the Merchant Center account whose products it advertises, from list_merchant_accounts. It advertises the WHOLE feed; partitioning by brand/category is not built and is refused by name
feedLabelstringoptional, retail only: narrow to ONE Merchant Center feed by its feed label. Omit to use products from all feeds
brandGuidelinesEnabledbooleandefault TRUE, matching Google’s own default since v21: businessName + logos are linked to the CAMPAIGN. Pass false only for the pre-v21 layout, where they sit on the asset group instead
assetGrouprequiredobjectthe creative — Google requires every field above before a PMax campaign can serve
dryRunbooleanvalidate the whole tree against Google and create NOTHING
loginCustomerIdstringmanager id if operating through an MCC

GOOGLE ANALYTICS

list_analytics_properties#

List the GA4 properties shared with this brand read-only

The GA4 properties SHARED WITH THIS BRAND, with their numeric property ids, display names and the Analytics account each sits under. CALL THIS FIRST — every other Analytics tool needs a PROPERTY ID, which is NUMERIC (e.g. 123456789) and is NOT the "G-XXXXXXX" Measurement ID people usually know from their tracking snippet; the API accepts the numeric id and nothing else. Resolve the property yourself from this list instead of asking the user to go and find one, and only ask when two names are genuinely ambiguous. THIS IS NOT EVERY PROPERTY THE GOOGLE ACCOUNT CAN SEE, deliberately: Analytics access is handed out freely, so one login often has Viewer on many different clients' properties, and the user ticks which ones belong to THIS brand. Only ticked properties can be reported on, and any other one is refused by name. An empty list means nothing is ticked yet — say so and point the user at Settings ▸ Connectors ▸ Google Analytics ▸ Manage accounts (or call list_connector_accounts / set_connector_accounts with provider "google_analytics"); never name or guess a property. Read-only, 0 credits. Needs Google Analytics connected (Settings ▸ Connectors ▸ Google Analytics).

No parameters.

analytics_report#

Run a GA4 report read-only

WHAT HAPPENED ON THE SITE — the GA4 Data API report, and the tool that answers "where is our traffic coming from", "which campaign converted", "which landing page is working". Pass metrics by name (activeUsers, sessions, screenPageViews, conversions, totalRevenue, engagementRate, bounceRate, averageSessionDuration …) and dimensions to break them down by (sessionDefaultChannelGroup, sessionSource / sessionMedium / sessionCampaignName, landingPage, pagePath, country, deviceCategory, date, eventName …). GA4 publishes hundreds of both and each property ships its OWN custom dimensions, so names are forwarded as given rather than validated against a copied list — use list_analytics_definitions to see a property's custom ones. THE PROPERTY IS A NUMERIC ID (e.g. 123456789), NOT the G-XXXXXXX Measurement ID — run list_analytics_properties to resolve it. Dates default to the last 28 days and accept either YYYY-MM-DD or GA4's relative forms ("28daysAgo", "yesterday", "today"). Rows come back as flat named objects, and a sampled result says so. Read-only, 0 credits.

ParameterTypeDescription
propertyrequiredstringthe NUMERIC GA4 property id from list_analytics_properties (e.g. "123456789") — never the G-XXXXXXX Measurement ID, and it must be one SHARED with this brand
metricsstring[]GA4 metric names — default ["activeUsers","sessions","screenPageViews"]
dimensionsstring[]GA4 dimension names to break the metrics down by — omit for a single total row
startDatestringYYYY-MM-DD or a GA4 relative date like "28daysAgo" (default 28daysAgo)
endDatestringYYYY-MM-DD or "today" (default today)
limitnumberrows to return, 1–250000 (default 50). 250,000 is GOOGLE's per-request maximum, not ours — asking for more is silently capped there.
offsetnumberskip this many rows — how you page past `limit`. Use the nextOffset the previous call returns.
orderByMetricstringsort by this metric — must be one of the metrics requested
orderDescbooleandefault true (largest first) when orderByMetric is set
dimensionFilterobjectNARROW THE REPORT — a GA4 FilterExpression, exactly one of andGroup | orGroup | notExpression | filter. Without it a report is the WHOLE property. Example: {"filter":{"fieldName":"sessionSource","stringFilter":{"matchType":"EXACT","value":"google"}}}; combine with {"andGroup":{"expressions":[…]}}. METRICS CANNOT BE USED HERE — use metricFilter.
metricFilterobjectFilter the AGGREGATED rows, GA4's having-clause — same FilterExpression shape. Example: {"filter":{"fieldName":"sessions","numericFilter":{"operation":"GREATER_THAN","value":{"int64Value":"30"}}}}. DIMENSIONS CANNOT BE USED HERE — use dimensionFilter.

analytics_realtime#

Who is on the site right now (GA4 realtime) read-only

WHO IS ON THE SITE RIGHT NOW — GA4's realtime report, covering roughly the last 30 minutes. Use it to see a launch, a post or a campaign landing in real time. IT IS A DIFFERENT REPORT WITH A DIFFERENT METRIC SET, NOT a shortcut for analytics_report: realtime accepts activeUsers, screenPageViews, conversions and eventCount, and REJECTS `sessions` outright — asking for sessions here returns an error, not a zero. Realtime dimensions are also narrower (unifiedScreenName, country, deviceCategory, platform, eventName …) and there is no date range at all. The property is the NUMERIC id from list_analytics_properties, never the G-XXXXXXX Measurement ID. Read-only, 0 credits.

ParameterTypeDescription
propertyrequiredstringthe NUMERIC GA4 property id from list_analytics_properties — it must be one SHARED with this brand, and any other is refused by name
metricsstring[]realtime metric names — default ["activeUsers"]. NOT the same set as analytics_report; `sessions` is not a realtime metric
dimensionsstring[]realtime dimension names, e.g. ["country"] or ["unifiedScreenName"]
limitnumberrows, 1–1000 (default 50)

list_analytics_definitions#

List a GA4 property’s key events and custom dimensions read-only

What a GA4 property already MEASURES — its key events (what GA4 counts as a conversion) and its custom dimensions, with each dimension's parameter name and scope. Two reasons to call it: to learn a property's own custom dimension names before using them in analytics_report, and to CHECK BEFORE CREATING — a custom dimension can never be deleted, only archived, and a property is capped at 50 event-scoped ones, so creating a duplicate permanently burns a slot. The property is the NUMERIC id from list_analytics_properties. Read-only, 0 credits.

ParameterTypeDescription
propertyrequiredstringthe NUMERIC GA4 property id from list_analytics_properties — it must be one SHARED with this brand, and any other is refused by name

create_analytics_key_event#

Mark a GA4 event as a key event (conversion)

Mark an event GA4 ALREADY COLLECTS as a KEY EVENT — what GA4 calls a conversion since the 2024 rename (the resource is keyEvents; the old conversionEvents spelling is deprecated). This is what makes an event countable as a result in reports and importable into Google Ads as a conversion. THE EVENT NAME MUST MATCH AN EVENT THE SITE ALREADY SENDS ("purchase", "generate_lead", "sign_up", or a custom one) — marking an event that is never fired creates a key event that can never fire, so check list_analytics_definitions or an analytics_report broken down by eventName first. countingMethod ONCE_PER_EVENT counts EVERY occurrence; ONCE_PER_SESSION counts the event at most ONCE PER SESSION, however many times it fires in that session. Those are the only two GA4 accepts — there is no per-USER counting method, and asking for one is refused rather than quietly counted per event. The result is READ BACK from Google, never echoed from the request. The property is the NUMERIC id from list_analytics_properties. Needs the Google Analytics connection to have edit access on the property.

ParameterTypeDescription
propertyrequiredstringthe NUMERIC GA4 property id from list_analytics_properties — it must be one SHARED with this brand, and any other is refused by name
eventNamerequiredstringan event GA4 already collects, e.g. "purchase" / "generate_lead" / "sign_up"
countingMethod"ONCE_PER_EVENT" | "ONCE_PER_SESSION"default ONCE_PER_EVENT; ONCE_PER_SESSION counts at most once per session (GA4 publishes no per-user method)

create_analytics_custom_dimension#

Create a GA4 custom dimension

Register an event parameter the site ALREADY SENDS as a custom dimension, so reports can break down by it (plan tier, content category, logged-in state…). TWO THINGS TO TELL THE USER BEFORE CALLING: a GA4 custom dimension CANNOT BE DELETED — only archived — and a property is capped at 50 EVENT-scoped dimensions, so a duplicate or a typo permanently burns one of them. Call list_analytics_definitions first to see what already exists. GET THE TWO NAMES THE RIGHT WAY ROUND: parameterName is the event parameter GA4 is already collecting (e.g. "customer_tier") and displayName is only the label shown in reports — swapping them silently produces a dimension that always reads "(not set)". Registering a dimension is NOT retroactive: it only collects from the moment it is created. The property is the NUMERIC id from list_analytics_properties. Needs the Google Analytics connection to have edit access on the property.

ParameterTypeDescription
propertyrequiredstringthe NUMERIC GA4 property id from list_analytics_properties — it must be one SHARED with this brand, and any other is refused by name
parameterNamerequiredstringthe event parameter GA4 already collects, e.g. "customer_tier" — NOT the report label
displayNamestringthe label shown in GA4 reports — defaults to parameterName
scope"EVENT" | "USER" | "ITEM"default EVENT. The 50-dimension cap applies to EVENT scope
descriptionstringoptional description, ≤150 characters

list_analytics_metadata#

What a GA4 property can be asked read-only

THE VOCABULARY OF ONE PROPERTY — every dimension and metric analytics_report will accept on it, INCLUDING that property's own custom dimensions, each with its api name and its human label. Use this instead of guessing an api name: GA4 publishes hundreds and they are not memorable (sessions broken down by landing page is `landingPage`, revenue is `totalRevenue`, the channel grouping is `sessionDefaultChannelGroup`), and a wrong name is an error mid-conversation rather than a suggestion. analytics_report deliberately forwards names AS GIVEN — it never validates against a copied list, because that list would go stale and start refusing names Google accepts — so THIS is where a name is checked. PASS `search` almost always: unfiltered this returns several hundred rows, and a search matches both the api name and the label ("revenue", "campaign", "device"). Read-only, 0 credits.

ParameterTypeDescription
propertyrequiredstringthe NUMERIC GA4 property id from list_analytics_properties — it must be one SHARED with this brand, and any other is refused by name
searchstringsubstring filter over api name AND human label, e.g. "revenue", "campaign", "landing" — strongly recommended, since the unfiltered vocabulary is several hundred entries

archive_analytics_custom_dimension#

Archive a GA4 custom dimension destructive

THE ONLY WAY TO RETIRE A CUSTOM DIMENSION, and it is ONE-WAY. GA4 publishes no delete and no un-archive for custom dimensions anywhere in its API — archiving is permanent through every programmatic surface — so this is how a typo'd or duplicate dimension is cleared, and it also frees the slot it was holding against the 50-event-scoped cap. Reports lose the ability to break down by it. CALLED WITHOUT `confirm` IT ARCHIVES NOTHING and instead reports what the dimension actually is, read back from Google — check that against what the user asked for before confirming, because naming the right dimension is the only thing `confirm` cannot prove. Identify it by its parameterName (the event parameter), which list_analytics_definitions lists. Needs edit access on the property.

ParameterTypeDescription
propertyrequiredstringthe NUMERIC GA4 property id from list_analytics_properties
parameterNamerequiredstringthe event parameter of the dimension to archive, e.g. "customer_tier" — from list_analytics_definitions, NOT the report label
confirmbooleanmust be true to actually archive. Without it nothing changes and the dimension is described back to you

delete_analytics_key_event#

Stop counting a GA4 event as a conversion destructive

REMOVE A KEY EVENT — the reverse of create_analytics_key_event, and note the ASYMMETRY with custom dimensions: a key event really can be DELETED, where a custom dimension can only be archived. Nothing is destroyed — GA4 keeps collecting the underlying event and keeps all of its history, this only stops it counting as a conversion, and it can be marked again at any time. Use it for an event marked as a conversion by mistake, or one that should no longer be optimised toward. BE AWARE IT REACHES FURTHER THAN GA4: anything importing this conversion — Google Ads smart bidding in particular — stops receiving it, which changes how campaigns bid. Called without `confirm` it deletes nothing and describes the key event back to you. Needs edit access on the property.

ParameterTypeDescription
propertyrequiredstringthe NUMERIC GA4 property id from list_analytics_properties
eventNamerequiredstringthe key event to stop counting, e.g. "sign_up" — from list_analytics_definitions
confirmbooleanmust be true to actually delete. Without it nothing changes and the key event is described back to you

create_analytics_custom_metric#

Register a GA4 custom metric

Register an event parameter the site ALREADY SENDS as a GA4 custom METRIC, so reports can SUM or AVERAGE it. This is the other half of the pair: a custom DIMENSION makes a value something you can group BY, a custom METRIC makes it something you can TOTAL — 'order_value' as a dimension gives you a list of prices, as a metric it gives you revenue. TELL THE USER TWO THINGS BEFORE CALLING: a GA4 custom metric CANNOT be deleted, only archived, and a property is capped at 50 (125 on Analytics 360) — a duplicate or a typo permanently burns a slot, so run list_analytics_definitions first, which lists metrics beside dimensions. measurementUnit IS REQUIRED and is never guessed for you: STANDARD for a plain count or quantity, CURRENCY for money, SECONDS/MINUTES/HOURS for durations. CURRENCY additionally REQUIRES restrictedMetricType (REVENUE_DATA for money coming in, COST_DATA for money going out) and every other unit REFUSES it — both directions are refused before the call is made, because Google's own error names neither field. METRICS ARE EVENT-SCOPED ONLY, unlike dimensions, which take EVENT | USER | ITEM. Not retroactive: it collects from creation onward. The result is READ BACK from Google, never echoed from the request. Needs edit access on the property. 0 credits.

ParameterTypeDescription
propertyrequiredstringNUMERIC GA4 property id from list_analytics_properties — never the G-XXXXXXX Measurement ID
parameterNamerequiredstringthe event parameter GA4 already collects, e.g. 'order_value' — NOT the report label. Letters, digits and underscores, starting with a letter, max 40 characters
displayNamestringthe label shown in reports; defaults to parameterName, max 82 characters
measurementUnitrequired"STANDARD" | "CURRENCY" | "FEET" | "METERS" | "KILOMETERS" | "MILES" | "MILLISECONDS" | "SECONDS" | "MINUTES" | "HOURS"REQUIRED — Google marks it Required and there is no safe default
restrictedMetricType"COST_DATA" | "REVENUE_DATA"[]REQUIRED when measurementUnit is CURRENCY, and refused for every other unit
scope"EVENT"EVENT is the only scope GA4 accepts for a metric, and it is immutable
descriptionstring≤150 characters

archive_analytics_custom_metric#

Archive a GA4 custom metric (one-way) destructive

THE ONLY WAY TO RETIRE A GA4 CUSTOM METRIC, and it is ONE-WAY: GA4 publishes no delete and no un-archive for custom metrics anywhere in its API, exactly as for dimensions, so archiving is permanent through every programmatic surface. It frees the slot against the 50-per-property cap, and reports lose the ability to sum or average it. WITHOUT `confirm` IT ARCHIVES NOTHING and instead describes the metric read back from Google — check that against what the user asked for before confirming, because naming the RIGHT metric is the one thing confirm cannot prove. Identify it by parameterName (from list_analytics_definitions), not the report label. A custom DIMENSION of the same name is a DIFFERENT resource and needs archive_analytics_custom_dimension. Needs edit access. 0 credits.

ParameterTypeDescription
propertyrequiredstringNUMERIC GA4 property id
parameterNamerequiredstringthe event parameter of the metric to archive, e.g. 'order_value'
confirmbooleanmust be true to actually archive — without it nothing is archived and the metric is described back to you

check_analytics_compatibility#

Check a GA4 report will work, before running it read-only

FREE PRE-FLIGHT FOR analytics_report — ask Google whether these dimensions and metrics can appear in ONE report together, BEFORE running the report that would fail. Use it whenever a report combines fields you have not combined before, and especially when one of them is a custom dimension: GA4 has real pairs that are each perfectly valid alone and cannot be queried together, and `analytics_report` deliberately forwards names AS GIVEN (GA4 publishes hundreds of dimensions and every property ships its own custom ones, so validating against a copied list would go stale and start REFUSING names Google accepts). Pass EXACTLY what you would pass to analytics_report — same metrics, same dimensions, same filters — and it returns which fields are INCOMPATIBLE so you can drop one and run the real report once. IT DOES NOT CHECK THAT A NAME EXISTS: an unknown api name is refused by Google outright, and list_analytics_metadata is what resolves names. Read-only, 0 credits.

ParameterTypeDescription
propertyrequiredstringNUMERIC GA4 property id
metricsstring[]the same metrics you would send to analytics_report (defaults to the same three it defaults to)
dimensionsstring[]the same dimensions you would send to analytics_report
dimensionFilterobjectthe same GA4 FilterExpression you would send to analytics_report
metricFilterobjectthe same GA4 FilterExpression you would send to analytics_report
compatibilityFilter"COMPATIBILITY_UNSPECIFIED" | "COMPATIBLE" | "INCOMPATIBLE"narrow the answer — COMPATIBLE returns only the fields that CAN be added

GA4 SERVER-SIDE EVENTS

list_analytics_data_streams#

GA4 data streams read-only

The GA4 data streams on a property, with the measurement ID (G-...) each one carries and how many Measurement Protocol secrets it already has. THIS IS WHERE A GTAG OR GTM INSTALL GETS ITS ID, and it is the first call before sending any server-side event. A web stream has a measurementId; an app stream has none and uses its firebaseAppId instead, so do not report an app stream as broken for having no G- id. A stream whose secret count could not be read comes back as null, which means unknown and not zero. Read-only, free.

ParameterTypeDescription
propertyrequiredstringNUMERIC GA4 property id, from list_analytics_properties

GA4 WEB-STREAM SETUP

get_analytics_stream_setup#

GA4 install tag and stream settings read-only

THE GTAG SNIPPET TO PASTE, plus what that web stream is actually set to collect. list_analytics_data_streams gives the measurement ID and stops one step short of what someone installing GA4 needs, which is the finished <script> block — Google returns it verbatim and marks it immutable. The same call answers the two questions that come next: whether ENHANCED MEASUREMENT is collecting scrolls, outbound clicks, site search, video, downloads, form interactions and single-page-app page views, and whether client-side REDACTION is stripping emails or query parameters out of recorded URLs. Read the master switch before believing a toggle: if enhanced measurement is off for the stream, every individual toggle is inert whatever it says. WEB STREAMS ONLY — all three resources are web-stream resources, and an app stream is refused by name with what it has instead. Any half that could not be read comes back null, which means unknown and not off. Read-only, free.

ParameterTypeDescription
propertyrequiredstringNUMERIC GA4 property id, from list_analytics_properties
dataStreamstringstream id, measurement id or display name. Optional when the property has exactly one stream

manage_analytics_measurement_protocol_secret#

GA4 Measurement Protocol secrets destructive

THE SERVER-SIDE EVENT CHANNEL FOR GA4, the Google twin of the conversions APIs Hermoso already ships for Reddit, Snapchat and OpenAI Ads. A Measurement Protocol secret is the api_secret half of https://www.google-analytics.com/mp/collect; the other half is the stream's measurementId for a web stream or its firebaseAppId for an app stream, and this tool reports whichever applies. action:"list" shows every secret with its value, action:"create" mints one (displayName is required, and it is the ONLY label a secret ever gets because the values are opaque), action:"delete" revokes one and NEEDS confirm:true. TELL THE USER THIS BEFORE THEY DELETE: there is no rotation anywhere in the API, because the value is output-only and patch reaches only the display name. A delete takes effect at once, and anything still sending with the old value stops being recorded SILENTLY, since the Measurement Protocol answers a bad api_secret with a 2xx and drops the hit. Rotating safely means create the new one, move every sender across, then delete the old one. Free.

ParameterTypeDescription
propertyrequiredstringNUMERIC GA4 property id
action"list" | "create" | "delete"defaults to 'list'
dataStreamstringstream id, measurement id or display name. Optional when the property has exactly one stream; required when it has several, and an ambiguous name is refused rather than first-matched
displayNamestringREQUIRED for action:'create' — what will be sending with this secret, e.g. "Shopify webhook". It is the only label a secret ever gets. May also be used to name one for delete
secretIdstringfor action:'delete', from action:'list' — preferred over displayName because it is unambiguous
confirmbooleanmust be true to actually delete

archive_analytics_audience#

Archive a GA4 audience (one-way) destructive

ARCHIVE a GA4 audience, and it is ONE-WAY: GA4 publishes no delete and no un-archive anywhere in its API. Any Google Ads remarketing list sourced from it stops refreshing, and because the definition is IMMUTABLE the audience cannot be recovered by editing — rebuilding means a NEW audience that starts collecting members from scratch, so months of accumulated membership are gone. WITHOUT `confirm` IT ARCHIVES NOTHING and describes the audience read back from Google; check that against what the user asked for, because naming the right audience is the one thing confirm cannot prove. An ambiguous displayName is REFUSED rather than first-matched — GA4 does not enforce unique names and there is no way back. 0 credits.

ParameterTypeDescription
propertyrequiredstringthe NUMERIC GA4 property id
audienceIdstringfrom list_analytics_audiences — preferred, because it is unambiguous
displayNamestringthe audience name, if the id is not to hand. Refused when it matches more than one
confirmbooleanmust be true to actually archive

GA4 CHANNEL GROUPS + CALCULATED METRICS

manage_analytics_channel_group#

GA4 channel groups destructive

HOW GA4 DECIDES WHICH BUCKET A CLICK LANDS IN, which is the number an ad studio is judged on and the answer to "why is my campaign showing as Unassigned". action:'list' reads every group with its channels in the order GA4 tests them, including Google's own Default channel group — read that first, because a campaign landing in the wrong channel is a rule that does not match rather than missing data. 'create' authors your own group, 'update' changes one, 'delete' removes one (confirm-gated). AUTHORING: `channels` is an ordered list, each with a name and its conditions, and GA4 STOPS AT THE FIRST RULE THAT MATCHES — so a broad rule above a narrow one silently swallows it. A condition is {fieldName, matchType, value} or {fieldName, values:[…]} for a list, plus not:true to invert; an entry that is itself an ARRAY of conditions is OR'ed, and separate entries are AND'ed. THE FIELD NAMES ARE NOT THE REPORT DIMENSIONS: use eachScopeSource, eachScopeMedium, eachScopeCampaignName, eachScopeCampaignId, eachScopeSourcePlatform or eachScopeDefaultChannelGroup — sessionSource, medium and the rest are real GA4 dimensions that Google REFUSES here, and its refusal does not say what to use instead. `primary:true` makes the group the one every report is bucketed by AND unsets whichever group was primary before. Google's own Default channel group cannot be edited and is refused by name. An update REPLACES the whole rule set. Free.

ParameterTypeDescription
propertyrequiredstringNUMERIC GA4 property id, from list_analytics_properties
action"list" | "create" | "update" | "delete"defaults to 'list'
displayNamestringthe group name shown in GA4, max 80 characters. Required to create; may also name an existing group for update/delete
descriptionstringmax 256 characters
channelsobject[]ordered list of {name, conditions:[…]}. Required to create. On update it REPLACES every channel, so send the ones you want to keep
primarybooleanmake this the group reports are bucketed by. It unsets the previous primary group, changing what every report in the property shows
channelGroupIdstringfor update and delete — from action:'list', and unambiguous where a name is not
confirmbooleanmust be true to actually delete

manage_analytics_calculated_metric#

GA4 calculated metrics destructive

THE DERIVED NUMBER A MARKETER ACTUALLY REPORTS — cost per purchase, revenue per session, a margin — built from metrics GA4 already collects and then available to analytics_report like any other metric. action:'list' reads them, 'create' adds one, 'update' changes the formula, name, unit or description, 'delete' removes one (confirm-gated). THE ID IS CHOSEN ONCE AND IS PERMANENT: calculatedMetricId becomes the API name reports ask for (calcMetric:your_id), Google marks it output-only afterwards, and renaming is refused by name rather than silently ignored — so pick it deliberately. The formula takes + - * / and parentheses over metric names and plain numbers, referencing at most 5 unique custom metrics; Google answers a syntax error with the exact position. WATCH invalidMetricReference ON THE WAY BACK: a formula naming a metric this property does not collect is created happily and flagged invalid, and any report using it may fail or return unexpected numbers — report that rather than a clean success. Free.

ParameterTypeDescription
propertyrequiredstringNUMERIC GA4 property id, from list_analytics_properties
action"list" | "create" | "update" | "delete"defaults to 'list'
calculatedMetricIdstringthe API name, e.g. "cost_per_purchase". Required to create and PERMANENT; for update/delete it names the metric
displayNamestringthe name shown in GA4, max 82 characters. Required to create
formulastringe.g. "advertiserAdCost / conversions". Required to create
metricUnitstringSTANDARD | CURRENCY | FEET | MILES | METERS | KILOMETERS | MILLISECONDS | SECONDS | MINUTES | HOURS. Required to create
descriptionstringmax 4096 characters
confirmbooleanmust be true to actually delete

GOOGLE TAG MANAGER

list_tag_manager_containers#

List the Tag Manager containers shared with this brand read-only

The Google Tag Manager containers SHARED WITH THIS BRAND, with the exact containerPath every other Tag Manager tool needs. CALL THIS FIRST. A container is addressed by PATH, "accounts/<id>/containers/<id>", never by the GTM-XXXXXX public id a human reads off the snippet: no Tag Manager method accepts the public id, so passing one is refused. Each row carries the public id beside the path so you can match what the user says to what the API wants. THIS IS NOT EVERY CONTAINER THE GOOGLE ACCOUNT CAN SEE: one agency login routinely administers every client's container, and a container is not data about a client, it is control of what runs on their website, so the user ticks which containers belong to THIS brand and only those are reachable. An empty list means nothing is ticked yet: say so and point the user at Settings, Connectors, Google Tag Manager, Manage accounts. Never name or guess a container. Read-only, free. Read-only, 0 credits. Needs Google Tag Manager connected.

No parameters.

list_tag_manager_tags#

What is actually firing on the site read-only

WHAT IS ACTUALLY FIRING ON THE SITE. Every tag in the container's workspace with its type, whether it is paused, which triggers fire it by name, and the one field that matters most: whether each tag is LIVE on the website or only STAGED in a draft. Also returns the container's triggers so you can reuse one instead of creating a duplicate. USE THIS TO ANSWER "is conversion tracking actually working": a Google Ads conversion action created by create_google_ads_conversion_action records nothing until a tag in this container fires it, and this is the only way to see whether that tag exists, whether it is paused, and whether it has been published. THREE VALUES FOR live, AND THEY ARE DIFFERENT ANSWERS: true means it is in the published container version and running, false means it is staged and NOT running yet, and null means the published version could not be read so you cannot tell. Never report null as false. If the response says the container has never been published, nothing in it is running at all. Read-only, free. 0 credits. Needs Google Tag Manager connected.

ParameterTypeDescription
containerPathrequiredstringthe "accounts/<id>/containers/<id>" path from list_tag_manager_containers, never the GTM-XXXXXX public id, and it must be one SHARED with this brand
workspacestringworkspace id or name. Defaults to the Default Workspace, and the answer always states which one it read.

create_tag_manager_tag#

Install a tag in the container draft

INSTALL A TAG in the container's draft workspace: a Google Ads conversion tag, a GA4 event, or a third-party pixel. IT DOES NOT GO LIVE. Everything written here lands in a WORKSPACE, which is a draft, and it does not run on the website until a human opens Tag Manager and publishes the container. Staging NEVER publishes: making a tag live is a separate, explicitly confirmed call (publish_tag_manager_container), because publishing changes what executes for every visitor on the live site. Always tell the user the change is staged, and that it does nothing until it is published. TWO THINGS YOU MUST GET FROM THE CONTAINER RATHER THAN INVENT. (1) type is a Tag Manager type string and Google publishes no machine-readable list of them, so Hermoso forwards whatever you pass rather than validating against a list that would go stale and start refusing real types. Get the right one by calling list_tag_manager_tags and copying the type off a tag of the same kind that already exists, or read it in Tag Manager. (2) firingTriggerId is required and must name at least one real trigger id from list_tag_manager_tags, because a tag with no trigger is installed and never runs, which is worse than not installing it. Use create_tag_manager_trigger if the container has no suitable trigger. 0 credits. Needs Google Tag Manager connected.

ParameterTypeDescription
containerPathrequiredstringthe "accounts/<id>/containers/<id>" path from list_tag_manager_containers
workspacestringworkspace id or name. Defaults to the Default Workspace.
namerequiredstringwhat a human will look for in the Tag Manager UI
typerequiredstringthe Tag Manager tag type string. Copy it off a tag of the same kind already in the container (list_tag_manager_tags) rather than guessing: Google publishes no machine-readable list of these.
firingTriggerIdrequiredstring[]REQUIRED, at least one real trigger id from list_tag_manager_tags. A tag with no trigger is installed and never runs.
parameterobject[]Tag Manager parameters, each { type, key, value }. type defaults to "template", which is Tag Manager's string type.
blockingTriggerIdstring[]
tagFiringOptionstringunlimited, oncePerEvent or oncePerLoad
pausedboolean
notesstring

update_tag_manager_tag#

Change a tag in the container draft

CHANGE AN EXISTING TAG in the draft workspace: rename it, fix a wrong conversion id or label, move it onto a different trigger, or pause it. Like create_tag_manager_tag this lands in a DRAFT and does not reach the website until a human publishes the container. Hermoso reads the tag first and merges your change on top of it, because Tag Manager's update replaces the whole tag and sending only the changed field would silently strip its parameters and triggers. A tag's type cannot be changed: that is deleting one tag and creating another. If somebody edited the tag in Tag Manager after Hermoso read it the change is REFUSED rather than overwriting their edit, and the fix is to read it again and reapply. To stop a tag running, pause it rather than removing its trigger. 0 credits. Needs Google Tag Manager connected.

ParameterTypeDescription
containerPathrequiredstring
workspacestring
tagIdrequiredstringthe tagId from list_tag_manager_tags
namestring
firingTriggerIdstring[]
parameterobject[]
blockingTriggerIdstring[]
tagFiringOptionstring
pausedbooleanpause the tag rather than removing its trigger, which is how you stop one running
notesstring

create_tag_manager_trigger#

Create a trigger in the container draft

CREATE A TRIGGER, the rule that decides when a tag fires, in the container's draft workspace. Use it when list_tag_manager_tags shows no trigger matching what a conversion needs, for example a purchase confirmation page or a dataLayer purchase event. A trigger on its own fires nothing: it has to be named in a tag's firingTriggerId, so create the trigger, then create or update the tag that uses it. Like every other write here it lands in a DRAFT and does not reach the website until a human publishes the container. type must be one of Tag Manager's own trigger types, and an unrecognised one is refused by name with the accepted list, for free, before any request. A customEvent trigger with no customEventFilter fires on EVERY dataLayer event in the container rather than the one you meant, so that is refused too. 0 credits. Needs Google Tag Manager connected.

ParameterTypeDescription
containerPathrequiredstring
workspacestring
namerequiredstring
typerequiredstringone of Tag Manager's own trigger types, e.g. pageview, domReady, windowLoaded, customEvent, formSubmission, linkClick, click, historyChange, scrollDepth, elementVisibility, timer. An unknown one is refused by name with the full list.
filterobject[]Tag Manager Condition objects, each { type, parameter: [...] }
customEventFilterobject[]REQUIRED for a customEvent trigger, or it would fire on every dataLayer event in the container
notesstring

PUBLISHING

list_tag_manager_versions#

Tag Manager version history read-only

THE CONTAINER'S VERSION HISTORY, and the thing to read before proposing to publish or to roll one back. Every version with its id, its name, how many tags, triggers and variables it holds, whether it is archived, and which one is LIVE on the site right now. This is what makes a publish reversible: pass a row's path as publish_tag_manager_container's versionPath to put that version back on the site. The live flag is three-valued — true, false, or null when Google would not tell us which version is live, and null must never be read as false. Read-only. 0 credits. Needs Google Tag Manager connected.

ParameterTypeDescription
containerPathrequiredstringthe "accounts/<id>/containers/<id>" path from list_tag_manager_containers, never the GTM-XXXXXXX public id

preview_tag_manager_publish#

What would go live read-only

WHAT WOULD HAPPEN IF YOU PUBLISHED — free, read-only, and it publishes nothing. Returns the container, the version live on the site right now and what it holds, the exact list of staged changes (added, updated, deleted) as Tag Manager itself reports them, any merge conflicts, and the one sentence to show a user before asking them to agree. Use it to answer 'what is waiting to go live?' without going anywhere near the publish call. publish_tag_manager_container without confirm returns the same facts, so this is for when you want them with no chance of a publish at all. 0 credits. Needs Google Tag Manager connected.

ParameterTypeDescription
containerPathrequiredstringthe "accounts/<id>/containers/<id>" path from list_tag_manager_containers
workspacestringworkspace id or name; defaults to the Default Workspace
versionPathstringoptional — preview re-publishing an EXISTING version instead of the workspace

publish_tag_manager_container#

Publish the container to the live site destructive

PUBLISH THE CONTAINER — the ONE call in Hermoso that changes what runs on the customer's live website for every visitor, immediately. Everything else in Tag Manager is staged; this is not. TWO STEPS UNDER THE HOOD, because Tag Manager publishes a VERSION and not a workspace: Hermoso turns the draft workspace into a version and then publishes that version. CALLING IT WITHOUT confirm PUBLISHES NOTHING and is the correct first move: it returns what is live right now, how many tags, triggers and variables that live version holds, and exactly what would change — read back from Google, not echoed from your request. Show the user that, get an unambiguous yes, then call again. THE GATE SCALES WITH THE DAMAGE. A container that has NEVER been published has nothing that currently works and nothing this can break, so confirm:true alone is enough. A container that ALREADY has a live version is replacing something that works, so it additionally needs confirmPublicId set to that container's GTM-XXXXXXX public id — the id printed on the snippet installed on the website. It cannot be guessed; read it from list_tag_manager_containers or from the preview. IT REFUSES, FOR FREE AND WITHOUT PUBLISHING, in four cases you should relay rather than retry: merge conflicts in the workspace (somebody changed the same thing in the container — resolve in Tag Manager first), a workspace with no changes at all, a version Google reports a COMPILER ERROR in, and a container whose public id could not be read. TO UNDO A PUBLISH, publish the previous version again: pass versionPath (from list_tag_manager_versions) and no workspace is involved at all. The reply names the version that was live before this call in rolledBackTo for exactly that purpose, so a publish is reversible. READ verified BEFORE YOU TELL ANYONE IT IS LIVE. It is three-valued: true means the container's live version was re-read and IS the one just published; false means Google accepted it but something else is live, which can be Tag Manager's own read lag and must be reported as unconfirmed; null means the read-back could not run, so it is not known — never report false or null as published. TWO THINGS THAT SURPRISE PEOPLE: creating the version DELETES the draft workspace it was made from (Tag Manager's own behaviour) and opens a fresh empty one, whose id is in the reply, so any workspace id you were holding is stale afterwards. And publishing needs the PUBLISH right on the container in Tag Manager, Admin, User Management, which is separate from Edit — an account that can stage a tag can still be refused here, and that is a permission on the container, not a broken connection. 0 credits. Needs Google Tag Manager connected.

ParameterTypeDescription
containerPathrequiredstringthe "accounts/<id>/containers/<id>" path from list_tag_manager_containers
workspacestringworkspace id or name; defaults to the Default Workspace
versionPathstringROLLBACK / RE-PUBLISH: publish this EXISTING version instead of the workspace. From list_tag_manager_versions. Must be a version inside the same container.
versionNamestringname for the version being created; defaults to a timestamped Hermoso name
versionNotesstringnotes stored on the version, visible in Tag Manager
confirmbooleanREQUIRED to publish. Without it nothing is published and you get the blast-radius report instead.
confirmPublicIdstringthe container's GTM-XXXXXXX public id, REQUIRED when the container already has a live version. Read it from the preview; it cannot be guessed.

PRODUCT ANALYTICS: PostHog · Mixpanel · Amplitude

list_posthog_projects#

List the PostHog projects this key can see read-only

The PostHog projects the connected personal API key can see, and which ONE this brand is pointed at. Only the ACTIVE project is readable. That is deliberate: PostHog's API otherwise falls back to "the last project you visited in the UI", which would make every answer depend on the user's browsing history, so Hermoso pins a project at connect time instead of relying on their implicit default. To move this brand to a different project, the user reconnects PostHog under Settings ▸ Connectors ▸ PostHog with that project id. Read-only, 0 credits.

No parameters.

posthog_query#

Ask PostHog a question in HogQL read-only

ASK POSTHOG A QUESTION IN HogQL — their SQL dialect over the `events`, `persons` and `sessions` tables. This is the lane for per-user funnels, retention and any breakdown GA4 cannot express, e.g. `SELECT properties.$current_url, count() FROM events WHERE event = '$pageview' AND timestamp > now() - INTERVAL 7 DAY GROUP BY 1 ORDER BY 2 DESC`. IT IS NOT AN EXPORTER AND MUST NEVER BE LOOPED — PostHog's own policy, verbatim: "Third-party connectors must use batch exports, not /query. Connectors built on /query are not supported and will be rate-limited or rejected." Ask ONE bounded question. Do not paginate it, do not schedule it, and do not call it repeatedly to assemble a whole table; if the user genuinely needs bulk data, tell them to set up a PostHog batch export. Every query is capped at 1000 rows, and OFFSET is refused outright because PostHog returns HTTP 400 for it on API keys — use keyset pagination on `timestamp` (events) or `id` (persons) if a second page is truly needed. Read-only, 0 credits.

ParameterTypeDescription
queryrequiredstringa HogQL (ClickHouse-flavoured SQL) query — one bounded question, never a page of an export
limitnumberrow cap, 1–1000 (default 1000). A LIMIT already in the query is honoured and clamped to the same ceiling

posthog_insight#

Read a saved PostHog insight (funnel / retention / trend) read-only

Read back an insight the user already BUILT in their PostHog UI — funnels, retention curves, trends and paths. Call with NO id to LIST the saved insights with their names and ids; call with insightId for that insight's definition and computed result. THIS IS THE RIGHT WAY TO ANSWER A FUNNEL OR RETENTION QUESTION when the report already exists, and the reason is a documentation fact rather than a preference: PostHog's typed query kinds (FunnelsQuery, RetentionQuery, PathsQuery) are undocumented — their own docs say those "are mostly used to power PostHog internally and are not useful for you" and publish no request payload, no field table and no example for any of them, so building on them would be a private API that can change without notice. The two supported routes are HogQL (posthog_query) and a saved insight (this). Read-only, 0 credits.

ParameterTypeDescription
insightIdstringomit to list the saved insights and their ids
refreshbooleandefault true (recompute if stale); false = return the cached result even if stale

list_posthog_session_recordings#

List PostHog session replays read-only

SESSION REPLAYS — the capability GA4 has no equivalent of at all. Lists recent recordings with who they belong to, how long they ran, how many clicks / keypresses / CONSOLE ERRORS each had, the URL they started on, and a link that opens the replay in PostHog. USE THE SIGNALS RATHER THAN JUST LISTING THEM: a session with console errors and a high keypress count on a checkout page is a bug report with a video attached, and that is the insight worth surfacing. THE RAW REPLAY IS NOT AVAILABLE OVER THE API — PostHog's words: "This endpoint does not provide the raw JSON of the replays. To get the raw JSON, you need to click Export as JSON in the replay options menu in-app." So describe and link; never promise a download and never claim to have watched one. Links need the user's own PostHog login. A publicly shareable link is minted in the PostHog UI and deliberately not by an agent, because it publishes a real person's session and PostHog themselves say they "make no guarantees about sensitive information contained in the recording". Read-only, 0 credits.

ParameterTypeDescription
limitnumber1–100, default 20

posthog_persons#

Look up people in PostHog read-only

Look up PEOPLE in PostHog by distinct id, email or a free-text search, with their properties. This is the per-user half GA4 cannot do: resolve a specific customer, then use their distinct id inside posthog_query to see exactly what that one human did. Read-only, 0 credits.

ParameterTypeDescription
distinctIdstringPostHog distinct id
emailstringexact email match
searchstringfree-text search across person properties
limitnumber1–100, default 20

mixpanel_insights#

Read a saved Mixpanel report read-only

READ BACK A SAVED MIXPANEL REPORT by its bookmark id — and this is the PREFERRED Mixpanel lane, not a fallback. Mixpanel has put BOTH its Segmentation and its Funnels query APIs in maintenance mode and recommends in their place that the report is built in the Mixpanel UI and read programmatically through Insights, which is exactly what this does. THE BOOKMARK ID MUST COME FROM THE USER: Mixpanel publishes no endpoint that lists saved reports, so ask them to open the report in Mixpanel and copy the id out of its URL (the part after "report-"). Remember Mixpanel allows only 60 QUERIES PER HOUR across its entire Query API — the tightest budget of any connector here — so reuse an answer rather than re-asking. READ BACK dateRange, do not assume the window: a saved report's date range is configured in Mixpanel's own UI and not by this call, and it comes back stamped with the PROJECT's UTC offset — the only place this connector can observe that timezone at all. Read-only, 0 credits.

ParameterTypeDescription
bookmarkIdrequiredstringthe saved report's bookmark id, from its URL in Mixpanel

mixpanel_retention#

Mixpanel retention cohorts read-only

MIXPANEL RETENTION — how many of the people who did a first thing came back and did another, cohorted by day / week / month. This endpoint is FULLY SUPPORTED, unlike segmentation and funnels, which Mixpanel has put in maintenance mode — so it is the one typed Mixpanel report to reach for first. retentionType "birth" cohorts people by their FIRST occurrence of bornEvent (new-user retention, and Mixpanel's DEFAULT); "compounded" counts anyone active. ⚠️ MIXPANEL REQUIRES bornEvent WHENEVER retentionType IS "birth", AND BIRTH IS THE DEFAULT — so a call with neither is refused HERE, for free, rather than spending one of the sixty hourly queries on their 400; use list_mixpanel_events first to name a real event. TWO FILTERS, NOT ONE: bornWhere filters who ENTERS the cohort, where filters the RETURNING event. And interval is the WIDTH of each bucket while intervalCount is HOW MANY of them — different knobs. Dates are YYYY-MM-DD and BOTH ENDS ARE INCLUSIVE, resolved in the PROJECT's timezone (UTC unless its owner changed it) rather than in yours. 60 queries/hour across the whole Query API (5 concurrent) — the tightest budget of any connector here, so widen a range rather than looping over days. Read-only, 0 credits.

ParameterTypeDescription
fromDatestringYYYY-MM-DD (default 30 days ago)
toDatestringYYYY-MM-DD (default today)
retentionType"birth" | "compounded""birth" = cohort by first occurrence of bornEvent; "compounded" = anyone active
bornEventstringthe event that puts someone into the cohort — REQUIRED by Mixpanel when retentionType is "birth", which is the default
eventstringthe returning event; omitted means any event
unit"day" | "week" | "month"the interval unit (default day)
intervalnumberthe WIDTH of each bucket, in DAYS. Mixpanel cannot take this together with "unit" — it answers HTTP 500 to the pair, so pass one or the other (default: interval 1 day)
intervalCountnumberHOW MANY buckets to return (default 1). A "0th" bucket is always included for events inside the first interval
bornWherestringa Mixpanel segmentation expression filtering who ENTERS the cohort (the born event)
wherestringa Mixpanel segmentation expression filtering the RETURNING event
onstringa property expression to segment the returning event on — this is what breaks a retention curve down by e.g. plan or platform
limitnumbertop N segmentation values; does nothing unless "on" is set
unboundedRetentionbooleanaccumulate right-to-left, so day N means "retained on day N or any day after"

mixpanel_segmentation#

Mixpanel event segmentation (maintenance mode) read-only

One Mixpanel event over time, optionally broken down by a property (`on`) and filtered (`where`). ⚠️ MIXPANEL HAS PUT THIS ENDPOINT IN MAINTENANCE MODE — their words: "We recommend discontinuing new use of this endpoint. To break down and filter event data, build an Insights report in-app and query it programmatically with the Insights Query API." It still answers today, which is why it is offered rather than withheld, but SAY SO when you use it and prefer mixpanel_insights whenever the user can build the report. It takes ONE event name and not an array (the /events endpoints take an array; this one does not — an easy and silent mistake). 60 queries/hour across the whole Query API. Read-only, 0 credits.

ParameterTypeDescription
eventrequiredstringa SINGLE event name — not an array
fromDatestringYYYY-MM-DD (default 30 days ago)
toDatestringYYYY-MM-DD (default today)
onstringa segmentation expression to break down by, e.g. properties["$browser"]
wherestringa segmentation expression to filter by
unit"minute" | "hour" | "day" | "month"NOTE: Mixpanel offers no "week" on segmentation, unlike retention
intervalnumberthe number of days each bucket covers — Mixpanel offers this in lieu of "unit" when "type" is not "general"
type"general" | "unique" | "average"
limitnumbertop N property values; Mixpanel defaults to 60, max 10000, and it does nothing unless "on" is set

mixpanel_funnel#

Read a saved Mixpanel funnel (maintenance mode) read-only

A saved Mixpanel funnel. Call with NO id to LIST the saved funnels and their ids; call with funnelId to read its conversion data. ⚠️ MIXPANEL HAS PUT THE FUNNELS QUERY API IN MAINTENANCE MODE — their words: "We recommend discontinuing new use of this endpoint. To get funnel data, build a Funnels report in-app and query it programmatically with the Insights Query API." So prefer mixpanel_insights with that report's bookmark id; this is offered because it still answers and because it is the only way to LIST a project's funnels. `length` IS BOUNDED AT 90 DAYS, WHICH IS NOT THE NUMBER 90: it counts lengthUnits, so 90 days is 2160 hours or 129600 minutes, and an over-long window is REFUSED BY NAME rather than trimmed — silently shortening it would answer a different question with nothing to show that it had happened. Omit both and Mixpanel uses whatever the funnel was saved with in its own UI, which is usually what you want. Dates are YYYY-MM-DD and BOTH ENDS ARE INCLUSIVE, resolved in the PROJECT's timezone (UTC unless its owner changed it) rather than in yours. 60 queries/hour across the whole Query API (5 concurrent) — the tightest budget of any connector here, so widen a range rather than looping over days. Read-only, 0 credits.

ParameterTypeDescription
funnelIdstringomit to list the saved funnels and their ids
fromDatestringYYYY-MM-DD (default 30 days ago)
toDatestringYYYY-MM-DD (default today)
lengthnumberthe conversion window, counted in lengthUnits — the TOTAL may not exceed 90 days. Omit to use the funnel own saved value
lengthUnit"second" | "minute" | "hour" | "day"the unit "length" is counted in (Mixpanel offers no week or month here). Omit to use the funnel own saved value
unit"day" | "week" | "month"the bucket the results are grouped into
intervalnumberthe number of days each bucket covers — an alternative to "unit" (default 1)
onstringa property expression to break the funnel down by
wherestringa segmentation expression to filter by
limitnumbertop N property values; Mixpanel defaults to 255, max 10000, and it does nothing unless "on" is set

list_mixpanel_events#

List Mixpanel events (or one event’s properties) read-only

The EVENT VOCABULARY of the Mixpanel project — the most common event names over THE LAST 31 DAYS, so a query names something the project actually records rather than a guess. Start here before any other Mixpanel call. Pass `event` to list THAT event's top property names instead; the two are different questions with different answers, and a failure to read properties is reported AS a failure and never as "this event has no properties". Pass window "today" for Mixpanel's separate today-only endpoint, which carries counts and the percent change from yesterday — that is a DIFFERENT and far narrower question, and on a quiet project (or simply early in the project's own timezone day) it legitimately returns nothing while the project still records dozens of event types, so NEVER read an empty today answer as "this project has no events". 60 queries/hour across the whole Query API (5 concurrent) — the tightest budget of any connector here, so widen a range rather than looping over days. Read-only, 0 credits.

ParameterTypeDescription
eventstringpass an event name to list ITS properties instead of listing events
window"vocabulary" | "today""vocabulary" (default) = the most common events over the last 31 days, names only. "today" = today only, with counts and the change from yesterday — a much narrower question
type"general" | "unique" | "average"
limitnumberMixpanel own defaults are 255 for the vocabulary, 100 for today and 10 for properties

amplitude_segmentation#

Amplitude event segmentation read-only

AMPLITUDE EVENT SEGMENTATION — an event over time, with filters and group-bys. metric is uniques / totals / pct_dau / average / histogram / sums / value_avg / formula (and "formula" additionally REQUIRES `formula`, or Amplitude refuses it). Dates take YYYY-MM-DD or YYYYMMDD. AMPLITUDE'S RATE LIMIT IS COST-BASED, not per-request: cost = days × conditions × query type, 1000 per 5-minute window, so one very wide query can exhaust the budget on its own — the fix for a 429 here is to NARROW the range or the conditions, not to retry. AN EMPTY RESULT IS A VALID ANSWER, not a failure: a new or low-traffic Amplitude project genuinely has no data, and reporting that as a broken connection sends the user to fix something that is working. Read-only, 0 credits.

ParameterTypeDescription
eventsobject[]one or two event specs: a plain name, or {eventType, filters:[{subprop_type,subprop_key,subprop_op,subprop_value}], groupBy:[…]}
eventstringshorthand for a single event name
metric"uniques" | "totals" | "pct_dau" | "average" | "histogram" | "sums" | "value_avg" | "formula"default uniques
formulastringrequired when metric is "formula"
startstringYYYYMMDD or YYYY-MM-DD (default 30 days ago)
endstringYYYYMMDD or YYYY-MM-DD (default today)
intervalnumber-300000 realtime, -3600000 hourly, 1 daily, 7 weekly, 30 monthly
groupBystring
limitnumber≤1000

amplitude_funnel#

Amplitude funnel (conversion + drop-off) read-only

AMPLITUDE FUNNELS — the richest documented funnel surface of any analytics connector here, and the reason Amplitude is worth reaching for on a conversion question. Pass `events` as an ORDERED array of at least two steps. mode is ordered / unordered / sequential. conversionWindowSeconds is how long a user has to complete the funnel and DEFAULTS TO 2,592,000 SECONDS (30 DAYS) — ALWAYS state which window a conversion rate was measured over, because a 30-day window makes a funnel look dramatically healthier than a same-session one and the difference is invisible in the number itself. At most ONE group-by: segmentation allows two, funnels do not, and a second is refused by name rather than silently dropped. Returns step-by-step and cumulative conversion plus median and average transition times. Read-only, 0 credits.

ParameterTypeDescription
eventsrequiredobject[]ordered steps — plain event names, or {eventType, filters:[…]} objects
mode"ordered" | "unordered" | "sequential"default ordered
conversionWindowSecondsnumberAmplitude default is 2592000 (30 days) — say which window you used
startstringYYYYMMDD or YYYY-MM-DD (default 30 days ago)
endstringYYYYMMDD or YYYY-MM-DD (default today)
groupBystringat most ONE — a second is refused

amplitude_retention#

Amplitude retention read-only

AMPLITUDE RETENTION — of the people who did startEvent, how many came back and did returnEvent. The two magic values are "_new" (first-time users) and "_active" (any active user), which is what makes "new-user retention" a single call. retentionMode is n-day / bracket / rolling, and "bracket" additionally REQUIRES `brackets` — it is refused without them rather than silently switched to another mode, because a retention curve computed under a different definition than the one asked for is a wrong answer that looks right. Read-only, 0 credits.

ParameterTypeDescription
startEventstring"_new" (default) or an event name
returnEventstring"_active" (default) or an event name
startstringYYYYMMDD or YYYY-MM-DD (default 30 days ago)
endstringYYYYMMDD or YYYY-MM-DD (default today)
retentionMode"n-day" | "bracket" | "rolling"
bracketsnumber[]required when retentionMode is "bracket"
intervalnumber1 daily, 7 weekly, 30 monthly

amplitude_active_users#

Amplitude active / new users read-only

Amplitude ACTIVE or NEW user counts over a date range — the top-line "is the product growing" number, and the cheapest Amplitude call to run first after connecting because it proves the credential with no setup. metric is "active" or "new"; interval 1 daily, 7 weekly, 30 monthly. An empty series on a new project is the CORRECT answer and means the connection works and there is no data yet — never report it as a failure. Read-only, 0 credits.

ParameterTypeDescription
startstringYYYYMMDD or YYYY-MM-DD (default 30 days ago)
endstringYYYYMMDD or YYYY-MM-DD (default today)
metric"active" | "new"default active
intervalnumber1 daily, 7 weekly, 30 monthly

amplitude_user_activity#

One person’s Amplitude activity stream read-only

ONE PERSON'S ACTIVITY STREAM in Amplitude — the per-user lane, and the kind of question GA4 cannot answer at all. Pass a user id, device id or user-id PREFIX and it SEARCHES; pass a numeric Amplitude ID and it returns that user's recent events with their properties. Two steps, because Amplitude splits them across two endpoints: search resolves a human-typed identifier to an Amplitude ID, and only that id reads an activity stream. NOTE these two endpoints sit on a DIFFERENT rate limit from the rest of Amplitude — flat counts (10 concurrent, 360 queries/hour) rather than the cost model — so they do not consume the segmentation budget and are not protected by it either. Read-only, 0 credits.

ParameterTypeDescription
userrequiredstringa numeric Amplitude ID to read activity, or a user id / device id / user-id prefix to search
searchbooleanforce a search even when the value is numeric
limitnumber

list_amplitude_events#

Amplitude taxonomy (declared events and properties) read-only

The Amplitude TAXONOMY — the project's declared events, event properties, user properties or group properties, so a query names something real instead of a guess. category is event (default) / category / event-property / user-property / group-property. IF AMPLITUDE REFUSES THIS, REPORT THEIR REFUSAL AND MOVE ON. The Taxonomy API is widely believed to require an enterprise/Govern entitlement, but Amplitude documents no such gating on either the taxonomy page or the Dashboard API page (both checked), so a 403 here is surfaced as AMPLITUDE'S OWN message and is never presented as a Hermoso plan rule, as a broken connection, or as a fact about the user's plan that we cannot actually know. Every other Amplitude tool is unaffected by that refusal. Read-only, 0 credits.

ParameterTypeDescription
category"category" | "event" | "event-property" | "user-property" | "group-property"default "event"

amplitude_chart#

Read a saved Amplitude chart read-only

READ BACK A SAVED AMPLITUDE CHART by its id — the chart the user already built in Amplitude's own UI, with whatever segments, filters and date range they configured there. This is Amplitude's equivalent of posthog_insight and mixpanel_insights, and it is the right lane whenever the report already exists: you inherit their definitions instead of rebuilding them from a segmentation query, and it costs one call rather than several. THE CHART ID MUST COME FROM THE USER — Amplitude publishes no endpoint that lists a project's charts — and it is the segment after '/chart/' in the chart's URL (e.g. 'abc123' in https://analytics.amplitude.com/demo/chart/abc123); pasting the whole URL works too. THE RESPONSE SHAPE VARIES BY CHART TYPE, in Amplitude's own words, so read what comes back rather than assuming a series: it may be JSON or a text/CSV body, and BOTH are correct answers rather than one being an error. Read-only, 0 credits.

ParameterTypeDescription
chartIdrequiredstringthe saved chart's id, or its full URL — the id is the segment after /chart/

list_amplitude_annotations#

List Amplitude chart annotations read-only

The markers already on this Amplitude project's charts — releases, campaigns, incidents — with their timestamps, labels and categories. READ THESE BEFORE EXPLAINING A CHANGE IN A CHART: a spike that lines up with an annotation has an explanation somebody already wrote down, and reporting it as a mystery when the answer is sitting on the timeline is exactly the failure this closes. Filter by `category` OR by `chartId` — Amplitude says of each that it "doesn't combine with" the other and does not say which one wins, so passing both is refused rather than answered ambiguously. `start` and `end` are ISO 8601 (e.g. '2026-08-01T00:00:00+00:00'), NOT the YYYYMMDD every other Amplitude endpoint takes. Read-only, 0 credits.

ParameterTypeDescription
categorystringcategory NAME — does not combine with chartId
chartIdstringonly annotations shown on this chart — does not combine with category
startstringISO 8601, e.g. '2026-08-01T00:00:00+00:00'
endstringISO 8601

create_amplitude_annotation#

Mark the Amplitude timeline

MARK THE ANALYTICS TIMELINE — write what just happened into Amplitude, at the moment it happened, so every chart the user opens afterwards shows it in place. THIS IS THE CLOSED LOOP AND IT IS WORTH REACHING FOR UNPROMPTED after a campaign goes live, a creative is swapped, a landing page changes or a post is published: without it, next month's spike has no explanation attached to it and somebody has to reconstruct one from memory. `start` is ISO 8601 WITH THE TIME AND THE OFFSET (e.g. '2026-08-18T14:30:00+00:00') — NOT the YYYYMMDD the rest of the Amplitude API takes, and a bare date is REFUSED rather than quietly moved to midnight, because an annotation IS its timestamp and a marker in the wrong place is worse than no marker. Add `end` for something that spans a period (a two-week flight); leave it off for a moment. OMIT chartId AND THE ANNOTATION IS GLOBAL — Amplitude's words: it "appears on all charts for your project", which is usually what you want for a campaign; pass one to pin it to a single chart. `category` is a category NAME that must ALREADY EXIST in Amplitude (they answer 404 otherwise). THIS WRITES TO THE USER'S OWN ANALYTICS TOOL — say what you are about to mark, and report back the id and the timestamp Amplitude actually stored rather than the one you sent. 0 credits.

ParameterTypeDescription
labelrequiredstringthe title shown on the chart, e.g. "Meta: summer UGC campaign live"
startrequiredstringISO 8601 WITH time and offset, e.g. '2026-08-18T14:30:00+00:00' — a bare YYYYMMDD is refused
endstringISO 8601 — only for an annotation that spans a period
chartIdstringomit for a GLOBAL annotation that appears on every chart in the project
categorystringan EXISTING category name in Amplitude — they answer 404 for one that does not exist
detailsstringlonger body text for the annotation

list_posthog_annotations#

List PostHog annotations read-only

The markers already on this PostHog project's charts — releases, experiments, incidents — with their timestamps, scopes and who wrote them. READ THESE BEFORE EXPLAINING A CHANGE IN A CHART: an annotation is an explanation somebody already wrote down. NEEDS THE `annotation:read` SCOPE on the personal API key, and a key created before Hermoso supported annotations will not have it — PostHog's own refusal NAMES the scope, and that is a scope to add in PostHog ▸ Settings ▸ Personal API keys, NOT a broken connection and NOT a reason to reconnect. Returns ONE page and hands back the next offset rather than paging for you, because PostHog's policy is that a third-party connector is not an exporter. Read-only, 0 credits.

ParameterTypeDescription
limitnumber1–100, default 25
offsetnumberfor the next page — this tool does not paginate for you
searchstringfree-text search over annotation content

create_posthog_annotation#

Mark the PostHog timeline

MARK THE POSTHOG TIMELINE — write what just happened into PostHog at the moment it happened, so every chart afterwards shows it in place. The same closed loop as create_amplitude_annotation, and worth reaching for unprompted after a campaign goes live, a creative is swapped or a landing page changes. `dateMarker` is what POSITIONS the marker on the x-axis (ISO 8601); omit it and NOW is used, which is right for "this just went live" — and the timestamp PostHog actually STORED is reported back rather than the one sent. `scope` is project (the default — shows on everything) / organization / dashboard / dashboard_item, and `dashboard` and `dashboard_item` each need their id or the annotation attaches to nothing and appears nowhere. PostHog also publishes a `recording` scope which THEY THEMSELVES REJECT, so it is refused by name here rather than sent. `creationType` USR means a person wrote it, GIT means a bot or a deployment did. NEEDS THE `annotation:write` SCOPE on the personal API key — a key made before Hermoso supported annotations will not have it; PostHog names it in their refusal, and it is added in PostHog ▸ Settings ▸ Personal API keys without reconnecting. THIS WRITES TO THE USER'S OWN ANALYTICS TOOL. 0 credits.

ParameterTypeDescription
contentrequiredstringthe text shown on the chart, ≤8192 characters
dateMarkerstringISO 8601 — defaults to now, which is right for "this just went live"
scope"project" | "organization" | "dashboard" | "dashboard_item"default project. PostHog's `recording` scope is deprecated and rejected by PostHog
creationType"USR" | "GIT"USR = a person wrote it, GIT = a bot or deployment did
dashboardIdnumberREQUIRED when scope is "dashboard"
insightIdnumberREQUIRED when scope is "dashboard_item" — the numeric id of the insight

list_mixpanel_cohorts#

List saved Mixpanel cohorts read-only

THE SAVED COHORTS in the Mixpanel project — each with its id, name, description and CURRENT MEMBER COUNT. Two uses, and both matter for advertising: the counts alone answer "how big is our converted audience", and the id is what mixpanel_profiles needs to read the PEOPLE in one. A cohort hidden in Mixpanel's UI is still listed and flagged rather than dropped, because hidden is a display choice and it is still queryable by id. ONE CALL, and the cheapest thing on this connector — worth calling before mixpanel_profiles rather than guessing an id. Remember Mixpanel allows only 60 QUERIES PER HOUR across its entire Query API (5 concurrent), the tightest budget of any connector here, and this shares it with every other Mixpanel tool. Read-only, 0 credits.

No parameters.

mixpanel_profiles#

Read the people in a Mixpanel cohort read-only

THE PEOPLE THEMSELVES in Mixpanel — the per-user lane, and the question GA4 structurally cannot answer at all. Pass `cohortId` (from list_mixpanel_cohorts) for "who is in the Converted cohort and what do we know about them", or `where` for an ad-hoc filter over profile properties, or `distinctId` for one person. PASS `outputProperties` ALMOST ALWAYS: it cuts the payload to the properties you actually need, and Mixpanel says it "can drastically reduce the amount of data returned" and "can speed up queries significantly". RETURNS ONE PAGE AND DOES NOT PAGINATE FOR YOU — it hands back page, pageSize, total and a sessionId, and Mixpanel REQUIRES that sessionId alongside any page above 0, so a second page is a deliberate second call. DO NOT LOOP IT: Mixpanel allows 60 queries per hour across its ENTIRE Query API and each page spends one of them. REPORT `total` (the whole cohort) SEPARATELY FROM `count` (this page) — quoting only the page size understates the audience, which is the number a targeting decision gets made on. Read-only, 0 credits.

ParameterTypeDescription
cohortIdstringa numeric cohort id from list_mixpanel_cohorts
wherestringa Mixpanel segmentation expression over profile properties, e.g. properties["$city"] == "London"
distinctIdstringone person
distinctIdsstring[]several people by distinct id
outputPropertiesstring[]only return these properties — strongly recommended, it is much faster and much smaller
dataGroupIdstringgroup key — for GROUP profiles rather than user profiles
pagenumberpages start at ZERO; any page above 0 REQUIRES sessionId
sessionIdstringfrom the previous page — required for page > 0
includeAllUsersbooleanonly applies alongside cohortId; false = only distinct ids that actually have a profile

Microsoft Advertising

list_microsoft_ads_campaigns#

List Microsoft Advertising accounts / campaigns read-only

Read the brand’s connected Microsoft Advertising (Bing Ads) account(s). Call with NO accountId to list the accounts shared with this brand — do this first to pick a target. Call WITH accountId to list that account’s campaigns (id, name, status, daily budget, campaign type, and whether the budget is SHARED). Microsoft statuses are Active / Paused — never Google’s ENABLED — and Microsoft also sets BudgetPaused, BudgetAndManualPaused and Suspended on its own, so report the status you read rather than assuming a paused campaign was paused by a person. Read-only, free. Needs Microsoft Advertising connected (Settings ▸ Connectors ▸ Microsoft Advertising).

ParameterTypeDescription
accountIdstringMicrosoft ad account id — omit to list the accounts shared with this brand

microsoft_ads_report#

Microsoft Advertising performance report read-only

Performance for a Microsoft Advertising account — impressions, clicks, CTR, average CPC, spend, conversions. `reportType` picks WHICH report, and that is the whole Microsoft reporting surface, not just campaigns: AdGroupPerformance, AdPerformance, KeywordPerformance, SearchQueryPerformance (the actual search terms people typed), GeographicPerformance, UserLocationPerformance, AgeGenderAudience and ProfessionalDemographicsAudience (LinkedIn-sourced job function and industry, inside Bing), ConversionPerformance, DestinationUrlPerformance, ShareOfVoice, AssetPerformance, ProductDimensionPerformance, SearchCampaignChangeHistory ("what changed on Tuesday") and ~30 more — an unknown name is refused WITH the full list rather than forwarded. `aggregation` controls the row grain (Summary / Daily / Hourly / Weekly / Monthly / Yearly / HourOfDay / DayOfWeek). Two reports keep far less history than the usual 36 months — AssetPerformance 30 days, ShareOfVoice 6 — and the reply says so, because an empty short-retention report is a retention limit, not an absence of delivery. Window via timePeriod (Today | Yesterday | LastSevenDays | Last14Days | Last30Days | ThisWeek | LastWeek | LastFourWeeks | ThisMonth | LastMonth | LastThreeMonths | LastSixMonths | ThisYear | LastYear | ThisWeekStartingMonday | LastWeekStartingMonday | LastFourWeeksStartingMonday) or since+until (YYYY-MM-DD) — default Last30Days. An unrecognised timePeriod is REFUSED, never silently swapped for another window. Microsoft generates reports ASYNCHRONOUSLY: this can return pending:true with a reportRequestId, and you must call again rather than reporting any numbers. A report that succeeds with ZERO rows genuinely means there was no delivery in that window — say exactly that; never present zeros as measured performance. Read-only, free.

ParameterTypeDescription
accountIdstringMicrosoft ad account id — omit to use the brand’s single shared account
timePeriodstringpredefined Microsoft window, default Last30Days — must be one of the values in the description; anything else is rejected
sincestringYYYY-MM-DD custom range start (with until)
untilstringYYYY-MM-DD custom range end
columnsstring[]report columns — defaults to campaign performance. Each report type accepts only its OWN column set; Microsoft also refuses impression-share columns alongside BidMatchType / BudgetName / DeviceOS / Goal / TopVsOther in the same request.
reportTypestringwhich report — default CampaignPerformanceReportRequest. An unknown name is refused with the full list.
aggregation"Summary" | "Hourly" | "Daily" | "Weekly" | "Monthly" | "Yearly" | "HourOfDay" | "DayOfWeek" | "WeeklyStartingMonday"default Summary. Hourly accepts only Today/Yesterday or a custom range.
reportRequestIdstringpick up a report that came back pending — pass it back and this RESUMES that exact report instead of submitting a new one

MICROSOFT AD INSIGHT

microsoft_ads_keyword_ideas#

Microsoft Advertising keyword planner read-only

Microsoft Advertising’s KEYWORD PLANNER — real monthly search volume, competition, suggested bid and ad impression share, expanded from seed keywords, a landing-page URL to mine, or a category. Run it BEFORE choosing keywords for a Microsoft campaign, exactly as you would google_ads_keyword_ideas for Google. Unlike Google’s Keyword Planner there is NO planning-tier gate here — a developer token is sufficient. locationIds is REQUIRED and deliberately not defaulted: a search volume with no market attached is a number nobody can act on, and inventing a country would silently answer about the wrong market — use microsoft_ads_geo_search to resolve a country or city name to an id, free. SAY THIS WHEN REPORTING: Competition is Microsoft’s Low/Medium/High bucket, NOT a percentage; MonthlySearchCounts is a per-month series rather than one number; SuggestedBid is in the account currency. An empty result means Microsoft found no ideas for those seeds, never that nobody searches for them. Read-only, 0 credits.

ParameterTypeDescription
accountIdstring
keywordsstring[]seed terms to expand from
urlstringa landing page for Microsoft to mine ideas from
categoryIdnumber
locationIdsrequiredstring[]REQUIRED — Microsoft location ids (microsoft_ads_geo_search resolves names to ids, free)
languagestringdefault English
network"OwnedAndOperatedAndSyndicatedSearch" | "OwnedAndOperatedOnly" | "SyndicatedSearchOnly"
competitionstring[]filter to Low | Medium | High
minSearchVolumenumber
maxSearchVolumenumber
attributesstring[]which idea attributes to return — omit for all
expandIdeasbooleanfalse = do not expand; then keywords[] is mandatory

microsoft_ads_traffic_estimates#

Microsoft Advertising traffic estimates read-only

What a set of keywords would DELIVER on Microsoft Advertising at a given bid — estimated impressions, clicks, CTR, average CPC, average position and total cost. maxCpc is REQUIRED because a traffic estimate IS a function of the bid; estimating without one would be inventing the input. locationIds is REQUIRED for the same reason a search volume needs a market. SAY THIS WHEN REPORTING: Microsoft returns a MINIMUM and a MAXIMUM per keyword — quote the range, never average the two into a single figure — and every number here is a FORECAST, so never present it as measured performance. Read-only, 0 credits.

ParameterTypeDescription
accountIdstring
keywordsrequiredstring[]the keywords to estimate
maxCpcrequirednumberREQUIRED — the max CPC bid to estimate at, in the account currency
matchType"Exact" | "Phrase" | "Broad"default Exact
locationIdsrequiredstring[]REQUIRED — Microsoft location ids
languagestring
networkstring
dailyBudgetnumber

microsoft_ads_budget_opportunities#

Where Microsoft says budget is capping delivery read-only

Where a Microsoft Advertising campaign is BUDGET-CONSTRAINED — Microsoft’s own recommended budget against the current one, the estimated WEEKLY click and impression gain from raising it, and a budget/return curve. Omit campaignId for the whole account. SAY THIS WHEN REPORTING: these are Microsoft’s FORECASTS, never measurements — a projected increase has not happened — and acting on one spends real money, so it takes set_microsoft_ads_budget and an explicit yes from the user. Microsoft EXCLUDES user-paused campaigns from this analysis, so a paused campaign is absent by design rather than well-funded. Read-only, 0 credits.

ParameterTypeDescription
accountIdstring
campaignIdstringomit for the whole account

create_microsoft_ads_campaign#

Build a Microsoft Advertising campaign (paused)

Build a campaign on a connected Microsoft Advertising (Bing Ads) account. ALWAYS created Paused — it spends NOTHING until you activate it with set_microsoft_ads_status(confirm:true). Microsoft’s object graph is campaign → ad group → responsive search ad → keywords, so a campaign ON ITS OWN CANNOT SERVE AN IMPRESSION: pass adGroup{name, ad{headlines,descriptions,finalUrls}, keywords[]} and this builds the whole tree. Microsoft has NO atomic multi-object write (unlike Google), so the levels are created in sequence and the campaign is DELETED again if anything below it is rejected — you never inherit a half-built campaign. Microsoft requires 3–15 headlines (≤30 chars) and 2–4 descriptions (≤90 chars); expanded text ads can no longer be created at all. dailyBudget is in the ACCOUNT’S currency, not necessarily USD. LOCATION TARGETING: pass locations[] (country / region / city names, ISO country codes, or numeric Microsoft location ids). A Microsoft campaign has NO geo targeting unless it is set, and Microsoft does not require any — so if you pass none, the campaign IS CREATED and serves WORLDWIDE (Microsoft’s own default), and the returned note says so loudly. That is safe at this stage because the campaign is Paused and spends nothing; it is NOT safe to activate without telling the user, so relay the warning. Nothing is created when a location you DID name cannot be resolved (call microsoft_ads_geo_search to disambiguate, then pass the id). Pass worldwide:true to record that everywhere was deliberate and suppress the nudge. The locations are written and READ BACK inside the same rollback as the rest of the tree, so a campaign is either targeted as asked or does not exist. Everything is READ BACK from Microsoft before you are told it exists; print the returned note verbatim, and if it says the campaign cannot serve yet, say that rather than calling it a finished ad.

ParameterTypeDescription
accountIdstringMicrosoft ad account id — omit to use the brand’s single shared account
namerequiredstringcampaign name, ≤128 characters
dailyBudgetrequirednumberdaily budget in the account’s currency
budgetType"DailyBudgetStandard" | "DailyBudgetAccelerated" | "LifetimeBudgetStandard"default DailyBudgetStandard; Accelerated is Audience-campaign only
campaignTypestringSearch (default), Shopping, DynamicSearchAds, Audience or PerformanceMax. ONLY "Search" builds the full tree here — the ad group, responsive search ad and keywords below are Search-shaped. Any other type is created as a campaign on its own (finish it in Microsoft Advertising), and passing `adGroup` with it is refused before anything is created.
timeZonestringMicrosoft time-zone enum — Microsoft requires one; default PacificTimeUSCanadaTijuana
locationsstring[]where the ads may serve — omit for worldwide (Microsoft’s default, warned about in the read-back), e.g. ["United States"] or ["Seattle, Washington, United States","CA"]. Resolved to Microsoft location ids BEFORE anything is created; an ambiguous or unknown one refuses the whole create and names it
excludeLocationsstring[]locations to EXCLUDE from the targeted set
locationIntent"PeopleInOrSearchingForOrViewingPages" | "PeopleIn"default PeopleInOrSearchingForOrViewingPages — someone OUTSIDE the target still sees the ad if they search for the place; PeopleIn restricts to people physically there
worldwidebooleanset true when the user DELIBERATELY wants to serve everywhere. Omitting locations already creates a worldwide campaign; this only records that it was intended, so the read-back stops nudging you to add locations
languagesstring[]campaign languages, e.g. ["English"]
adGroupobjectbuild the serving tree in the same call — WITHOUT this you get a campaign shell that can never show an ad

create_microsoft_ads_ad_group#

Add a Microsoft Advertising ad group

Add an ad group to an existing Microsoft Advertising campaign — optionally with its responsive search ad and keywords in the same call. Created Paused by default. If the parent campaign is already LIVE (Active), creating this ad group Active starts REAL AD SPEND on the next auction, exactly like activating it — show the user what would begin serving, get an explicit yes, then pass confirm:true. Leaving it Paused never needs confirmation. Read back from Microsoft before you are told it exists.

ParameterTypeDescription
accountIdstringMicrosoft ad account id — omit to use the brand’s single shared account
campaignIdrequiredstringthe campaign this ad group belongs to
namerequiredstringad group name, ≤256 characters
status"Active" | "Paused"default Paused
cpcBidnumberdefault max CPC in the account currency
languagestringrequired if the campaign has no language set
adobjectcreate the responsive search ad in the same call
keywordsobject[]
confirmbooleanREQUIRED true to create this Active under a LIVE campaign

create_microsoft_ads_ad#

Create a Microsoft responsive search ad

Create the actual AD inside a Microsoft Advertising ad group — this is the object that carries the creative; a campaign or ad group alone shows nothing. It builds a RESPONSIVE SEARCH AD: 3–15 headlines (≤30 chars), 2–4 descriptions (≤90 chars), at least one finalUrl, optional path1/path2. Expanded text ads CANNOT be created any more — Microsoft rejects them outright. Created Paused; if the parent ad group and campaign are both Active, creating this Active starts REAL AD SPEND immediately — get an explicit yes and pass confirm:true. Read back from Microsoft, including its editorial status, before you are told it exists.

ParameterTypeDescription
accountIdstringMicrosoft ad account id — omit to use the brand’s single shared account
adGroupIdrequiredstringthe ad group this ad lives in
headlinesstring[]3–15 headlines, each ≤30 characters
descriptionsstring[]2–4 descriptions, each ≤90 characters
finalUrlsstring[]the landing page(s) — at least one is required
path1stringdisplay-URL path segment, ≤15 chars, no "/"
path2stringsecond display-URL path segment (only with path1)
status"Active" | "Paused"default Paused
confirmbooleanREQUIRED true to create this Active in a LIVE ad group

add_microsoft_ads_keywords#

Add Microsoft Advertising keywords

Add keywords to a Microsoft Advertising ad group. Match types are Exact, Phrase and Broad — Microsoft has no broad-match-modifier. Keywords are added Paused unless you set status:"Active"; an Active keyword on a live ad group makes the campaign bid on a new term immediately, so that needs confirm:true. Note that per-keyword bids are honoured but ad-group / keyword BID STRATEGIES are silently ignored by Microsoft — they inherit the campaign’s. Only the keywords Microsoft confirms on the read-back are reported as added.

ParameterTypeDescription
accountIdstringMicrosoft ad account id — omit to use the brand’s single shared account
adGroupIdrequiredstringthe ad group to add them to
keywordsrequiredobject[]the keywords
confirmbooleanREQUIRED true to add an Active keyword to a LIVE ad group

set_microsoft_ads_budget#

Set a Microsoft Advertising daily budget

Change a Microsoft Advertising campaign’s DAILY BUDGET (in the account’s currency). Raising it on a LIVE (Active) campaign increases real spend immediately — you MUST show the user the new daily amount, get an explicit yes, then call with confirm:true. If the campaign is on a SHARED budget its amount is read-only here and this refuses with an explanation rather than pretending to change it. Read back after the change.

ParameterTypeDescription
accountIdstringMicrosoft ad account id — omit to use the brand’s single shared account
campaignIdrequiredstringthe campaign whose budget changes
dailyBudgetrequirednumbernew daily budget in the account’s currency
confirmbooleanREQUIRED true to change the budget of a LIVE campaign

set_microsoft_ads_status#

Activate or pause a Microsoft Advertising campaign / ad group / ad

Turn a Microsoft Advertising campaign, AD GROUP or AD on (Active) or off (Paused). Pass level:"campaign" + campaignId, level:"adGroup" + adGroupId, or level:"ad" + BOTH adGroupId and adId. ACTIVATING STARTS REAL AD SPEND — you MUST first show the user the campaign name + its daily budget, get an explicit yes, then call with status:"Active" and confirm:true. Pausing is always safe. Microsoft has only these two statuses — its Deleted state is internal-only and cannot be SET — so to remove something use delete_microsoft_ads_object, which is a real delete operation, not a status. The resulting status is READ BACK from Microsoft before you are told it took — and Microsoft may report BudgetPaused / BudgetAndManualPaused / Suspended instead, which the note names explicitly.

ParameterTypeDescription
accountIdstringMicrosoft ad account id — omit to use the brand’s single shared account
level"campaign" | "adGroup" | "ad"what to change — default campaign
campaignIdstringcampaign id (level:"campaign")
adGroupIdstringad group id (level:"adGroup", or with adId for level:"ad")
adIdstringad id (level:"ad" — pass adGroupId too)
statusrequired"Active" | "Paused"Active = start spending; Paused = stop
confirmbooleanREQUIRED true to set Active (real spend)

delete_microsoft_ads_object#

Delete a Microsoft Advertising campaign / ad group / ad / keyword destructive

PERMANENTLY delete a Microsoft Advertising campaign, ad group, ad or keyword. This is a real delete — Microsoft removes the object and it stops being returned by every read, with no undelete and no documented recovery window. Pass level:"campaign" + campaignId, level:"adGroup" + adGroupId, level:"ad" + adGroupId AND adId, or level:"keyword" + adGroupId AND keywordId. CALL IT WITHOUT confirm FIRST: nothing is deleted, and you get back the object’s real name, its status and how many ad groups / ads / keywords go with it, read live from Microsoft — show the user exactly that. If the object has children, is Active, or has spent, confirming alone is NOT enough: you must also pass confirmName set to its exact name and confirmChildren set to the child count from that read-back, which is what proves you are deleting the object you think you are. A campaign that is paused, empty and never ran deletes on plain confirm:true. To stop delivery WITHOUT deleting, use set_microsoft_ads_status(status:"Paused") instead. The result is READ BACK from Microsoft: it says "deleted" only when the object no longer resolves, "not confirmed" if it does, and "could not tell" if the check itself failed — repeat that verbatim rather than claiming success.

ParameterTypeDescription
accountIdstringMicrosoft ad account id — omit to use the brand’s single shared account
level"campaign" | "adGroup" | "ad" | "keyword"what to delete — default campaign
campaignIdstringcampaign id (level:"campaign"; also the parent for level:"adGroup" if you know it)
adGroupIdstringad group id (level:"adGroup"; REQUIRED as the parent for level:"ad" and level:"keyword")
adIdstringad id (level:"ad" — pass adGroupId too)
keywordIdstringkeyword id (level:"keyword" — pass adGroupId too)
confirmbooleanREQUIRED true — the delete is permanent
confirmNamestringthe object’s EXACT name, required when it has children / is Active / has spent
confirmChildrennumberthe exact number of children reported by the unconfirmed call, required when it has any

Microsoft Merchant Center

list_microsoft_merchant_stores#

List Microsoft Merchant Center stores read-only

List the brand's MICROSOFT MERCHANT CENTER stores — the product-feed side of Microsoft Advertising, the exact twin of Google Merchant Center. THIS IS WHERE THE merchantId COMES FROM: every other Microsoft Merchant tool needs it and there is no other way to discover it (Content API's own Store resource is closed-beta only, so Hermoso reads the list from Campaign Management instead, which is open to everyone). Each row carries the store name, its URL, and whether it is active, has a catalog and has product ads enabled. Microsoft's own caveat, which the note repeats: those flags are set inside Merchant Center and are read-only here — an inactive store can still be referenced by a Shopping campaign. An account with NO store has no product feed at all, and a store cannot be created through the API. Read-only, free, 0 credits.

ParameterTypeDescription
accountIdstringMicrosoft ad account id — omit to use the brand’s single shared account

list_microsoft_merchant_products#

List Microsoft Merchant Center product offers read-only

Read the product offers in a Microsoft Merchant Center store — the feed a Microsoft Shopping campaign serves from. Pass productId to fetch ONE offer, or omit it to page the store (limit up to 250, then pass the returned pageToken). MICROSOFT'S PRODUCT IDS ARE COMPOSED AND CASE SENSITIVE: the id is channel:contentLanguage:targetCountry:offerId (e.g. Online:en:US:Sku123), not the bare offerId, and a re-cased id addresses nothing — always use the id this tool returned. Read-only, free, 0 credits.

ParameterTypeDescription
accountIdstringMicrosoft ad account id — omit to use the brand’s single shared account
merchantIdstringMicrosoft Merchant Center store id from list_microsoft_merchant_stores — omit when the account has exactly one store
productIdstringfully qualified id (channel:contentLanguage:targetCountry:offerId, e.g. Online:en:US:Sku123) to fetch ONE offer
limitnumberup to 250, default 25
pageTokenstringthe nextPageToken from a previous call

upsert_microsoft_merchant_product#

Add or update Microsoft Merchant Center product offers

Add or update product offers in a Microsoft Merchant Center store. THE ONE THING TO KNOW BEFORE CALLING IT: Microsoft has NO partial update — 'because an update is an insert operation, you must include all fields of the offer in the request' — so a title-only 'update' CLEARS every other field. Always send the whole offer. Ten fields are required: availability, channel, condition, contentLanguage, imageLink, link, offerId, price, targetCountry, title; brand/gtin/mpn are strongly recommended and their absence is set as identifierExists:false for you. Pass product for one offer or products[] for a batch (Hermoso caps a batch at 300 — Microsoft publishes two contradictory ceilings for this and we take the lower). Pass dryRun:true to validate against Microsoft without writing anything; Microsoft returns no ids on a dry run, so none is claimed. Feed edits cannot spend and cannot start an auction, but an offer goes through editorial review — being STORED is not the same as being served. Everything is read back from Microsoft. 0 credits.

ParameterTypeDescription
accountIdstringMicrosoft ad account id — omit to use the brand’s single shared account
merchantIdstringMicrosoft Merchant Center store id from list_microsoft_merchant_stores — omit when the account has exactly one store
productobjectONE whole offer — availability, channel, condition, contentLanguage, imageLink, link, offerId, price{value,currency}, targetCountry, title are required; brand/gtin/mpn strongly recommended
productsobject[]several whole offers in one batch, maximum 300
catalogIdstringwrite into a specific catalog instead of the store default
dryRunbooleanvalidate against Microsoft and write nothing — Microsoft returns no ids for a dry run, so none is claimed

delete_microsoft_merchant_product#

Delete a Microsoft Merchant Center product offer destructive

Delete one product offer from a Microsoft Merchant Center store. Pass productId as the FULLY QUALIFIED id (channel:contentLanguage:targetCountry:offerId), not the offerId. Call without confirm first — nothing is deleted and you get Microsoft's own better advice back: deleted products can take UP TO 12 HOURS to stop delivering, so if the goal is to stop showing it today, upsert it with availability 'out of stock' instead. The outcome is READ BACK by re-fetching the offer, and says 'deleted', 'not confirmed' or 'could not tell' — repeat that verbatim rather than claiming success from the delete's own empty response. 0 credits.

ParameterTypeDescription
accountIdstringMicrosoft ad account id — omit to use the brand’s single shared account
merchantIdstringMicrosoft Merchant Center store id from list_microsoft_merchant_stores — omit when the account has exactly one store
productIdrequiredstringthe FULLY QUALIFIED id (channel:contentLanguage:targetCountry:offerId), not the offerId
confirmbooleanREQUIRED true — call without it first to see Microsoft’s own advice about the 12-hour delivery tail

list_microsoft_merchant_issues#

Why Microsoft Merchant Center products are not serving read-only

Why a Microsoft Merchant Center store's products are NOT serving — the approved / disapproved / expiring counts plus the per-offer disapprovals and warnings with Microsoft's own issue codes. This is the tool to reach for when a Microsoft Shopping campaign is live and showing nothing. TWO CAVEATS THAT LOOK LIKE FAILURES AND ARE NOT, both repeated in the note: Microsoft returns detail rows ONLY for offers that are Disapproved or in Warning, so an EMPTY detail list is the healthy state; and a status change takes up to two hours to reach the summary, so a fresh upload legitimately shows as nothing yet. Read-only, free, 0 credits.

ParameterTypeDescription
accountIdstringMicrosoft ad account id — omit to use the brand’s single shared account
merchantIdstringMicrosoft Merchant Center store id from list_microsoft_merchant_stores — omit when the account has exactly one store
limitnumberup to 250, default 25
pageTokenstring

list_microsoft_merchant_catalogs#

List Microsoft Merchant Center catalogs read-only

List the catalogs inside a Microsoft Merchant Center store. Catalogs logically group products, and a Shopping campaign's product scope points at them. Each row says whether publishing is ENABLED — products in a catalog with publishing off do not serve at all, which is a common and invisible reason a feed appears healthy and delivers nothing. Products go into the store's default catalog unless a call names catalogId. Read-only, free, 0 credits.

ParameterTypeDescription
accountIdstringMicrosoft ad account id — omit to use the brand’s single shared account
merchantIdstringMicrosoft Merchant Center store id from list_microsoft_merchant_stores — omit when the account has exactly one store

manage_microsoft_merchant_catalog#

Create, update or delete a Microsoft Merchant Center catalog destructive

Create, update or delete a catalog in a Microsoft Merchant Center store. Creating needs name + market + isPublishingEnabled; updating needs catalogId + name + isPublishingEnabled (market is not settable after creation). isPublishingEnabled is NEVER defaulted on — products serve only when it is true, so publishing a catalogue is always an explicit choice. Names must be unique within the store and are capped at 70 characters. Pass deleteIt:true with catalogId and confirm:true to remove one. Every outcome is READ BACK from Microsoft. 0 credits.

ParameterTypeDescription
accountIdstringMicrosoft ad account id — omit to use the brand’s single shared account
merchantIdstringMicrosoft Merchant Center store id from list_microsoft_merchant_stores — omit when the account has exactly one store
catalogIdstringset to UPDATE or DELETE an existing catalog; omit to create a new one
namestringunique within the store, maximum 70 characters
marketstringREQUIRED when creating — where the products are served, e.g. en-US. Not settable afterwards
isPublishingEnabledbooleanproducts serve ONLY when this is true — never defaulted on
deleteItbooleantrue to delete the catalog named by catalogId
confirmbooleanREQUIRED true to delete

list_microsoft_ads_audiences#

List Microsoft Advertising audiences (Customer Match lists) read-only

List a Microsoft Advertising account's audiences — by default the CUSTOMER LISTS (Customer Match), with each row's membership duration and its current Search and Audience-network sizes. TWO MICROSOFT CAVEATS THAT LOOK LIKE FAILURES AND ARE NOT: a size is nil or empty for UP TO 48 HOURS while a list is being built, and Microsoft will not use an audience of fewer than 300 people at all — so never report a fresh list's 0 as a failed upload. Pass types[] to ask for other audience types. Read-only, free, 0 credits.

ParameterTypeDescription
accountIdstringMicrosoft ad account id — omit to use the brand’s single shared account
audienceIdsstring[]up to 100 specific ids — omit for all of the requested type
typesstring[]audience types, default CustomerList

create_microsoft_ads_customer_list#

Create an empty Microsoft Advertising Customer Match list

Create an EMPTY Customer Match list on a Microsoft Advertising account, ready for apply_microsoft_ads_customer_list to fill. membershipDuration is 1–390 days, or -1 for no expiration (Microsoft's default is 30). scope 'Account' (the default) makes it usable only by that ad account; scope 'Customer' makes it usable by every account under the manager — Hermoso derives the right parent id for whichever you choose, because getting that pair wrong mis-parents the list silently. An audience is a definition: it cannot spend and it cannot serve on its own. Read back from Microsoft. 0 credits.

ParameterTypeDescription
accountIdstringMicrosoft ad account id — omit to use the brand’s single shared account
namerequiredstringmaximum 128 characters
descriptionstringmaximum 1024 characters
membershipDurationnumber1–390 days, or -1 for no expiration. Microsoft’s default is 30
scope"Account" | "Customer"Account (default) = this ad account only; Customer = every account under the manager

apply_microsoft_ads_customer_list#

Upload customer emails into a Microsoft Customer Match list

Upload customer emails into a Microsoft Advertising Customer Match list so campaigns can target or exclude them. YOU PASS PLAIN EMAIL ADDRESSES — Hermoso normalizes and SHA-256 hashes them locally and sends ONLY the digests, so no plaintext ever leaves the server; values that arrive already hashed (64 hex characters) are passed through untouched. Microsoft's own normalization is applied exactly as published: trim, remove all dots from the user portion, remove any +alias, lowercase, then SHA-256. YOU MUST GET THE USER'S AGREEMENT FIRST: show them https://about.ads.microsoft.com/en-us/legal/customer-match-terms and only then call with acceptTerms:true, which Microsoft says 'eliminates the need to accept terms through the Microsoft Advertising UI' — without it nothing is uploaded and nothing is hashed. action is Add (additive, the default), Remove or Replace. Maximum 1000 items per call; page larger lists. Email is the only supported identifier — Microsoft publishes Phone and CRM as 'Not currently supported' and both are refused by name. DO NOT read a size of 0 afterwards as a failure: Microsoft leaves it empty for up to 48 hours while the audience builds. 0 credits.

ParameterTypeDescription
accountIdstringMicrosoft ad account id — omit to use the brand’s single shared account
audienceIdrequiredstringthe customer list to write into
emailsstring[]PLAIN email addresses — normalized and SHA-256 hashed inside Hermoso, never sent as plaintext. Already-hashed 64-hex values pass through untouched. Maximum 1000 per call
action"Add" | "Remove" | "Replace"Add (default) is additive across calls
subType"Email"Email is the only identifier Microsoft supports here — it publishes Phone and CRM as “Not currently supported”
acceptTermsbooleanREQUIRED true — the user must agree to Microsoft’s Customer Match terms first. Without it nothing is uploaded and nothing is hashed

ChatGPT Ads

list_openai_ads_campaigns#

List ChatGPT Ads account / campaigns / ad groups / ads read-only

Read the brand’s connected ChatGPT Ads account — the ads that appear below ChatGPT answers. Call with NO ids to get the ad account itself (name, currency, status, review state) plus its campaigns; with campaignId to list that campaign’s ad groups; with adGroupId to list that ad group’s ads, including each ad’s REVIEW status, which is what decides whether it can ever show. Statuses here are active / paused / archived. Read-only, free, zero spend risk. Needs ChatGPT Ads connected (Settings ▸ Connectors ▸ ChatGPT Ads): the user pastes an Advertiser API key from ChatGPT Ads Manager ▸ Settings — there is no OAuth and no manager account, and one key is scoped to one ad account.

ParameterTypeDescription
campaignIdstringlist this campaign’s ad groups
adGroupIdstringlist this ad group’s ads
limitnumberpage size, default 100
afterstringpagination cursor from a previous page

openai_ads_report#

ChatGPT Ads performance report read-only

Performance for ChatGPT Ads — impressions, clicks, spend, CTR, CPC, CPM. The scope follows the id you pass: none = the whole ad account, or campaignId / adGroupId / adId. granularity is hourly, daily, monthly or none (default daily); the default window is the last 30 days; segment by country or device for a breakdown, and level rolls the rows up by campaign / ad group / ad. A report with NO rows genuinely means there was NO delivery in that window — say exactly that; never present zeros as measured performance. Read-only and free, so run it FIRST after connecting: it proves the key works with zero spend risk.

ParameterTypeDescription
campaignIdstring
adGroupIdstring
adIdstring
sincestringYYYY-MM-DD
untilstringYYYY-MM-DD
granularity"hourly" | "daily" | "monthly" | "none"default daily
level"ad_account" | "campaign" | "ad_group" | "ad"roll rows up to this level
segment"product" | "country" | "device"extra group-by dimension (at most one)
limitnumber

list_x_ads_accounts#

List X ad accounts read-only

List the X (Twitter) ad accounts this brand can act on, with the PERMISSION LEVEL held on each so you can tell an admin grant from a read-only one before attempting a write. X grants API access PER AD ACCOUNT, not per app: the customer adds Hermoso’s X user to their ad account at business.x.com → Account access, and it appears here. Read-only, free.

No parameters.

list_x_ads_campaigns#

List X ads campaigns read-only

List campaigns on an X ad account — status, budgets, and whether X considers each servable. Omit accountId when only one account is reachable and it resolves itself. Read-only, free.

ParameterTypeDescription
accountIdstring
limitnumber

create_x_ads_campaign#

Build an X ads campaign (paused)

Create a campaign on X (Twitter). ALWAYS CREATED PAUSED with no override — it spends NOTHING until set_x_ads_status(confirm:true). A CAMPAIGN ALONE CANNOT SERVE ON X: it needs a line item and a promoted post underneath it, and the read-back says so rather than letting you call it a finished ad. Requires a funding instrument (a payment method on the X ad account) — omit fundingInstrumentId to be shown the usable ones, and if there are none this refuses with that reason instead of failing at X. Budgets are in the ad account’s own currency. Everything is READ BACK from X before you are told it exists; print the returned note verbatim.

ParameterTypeDescription
accountIdrequiredstringfrom list_x_ads_accounts
namerequiredstring
fundingInstrumentIdstringomit to be shown the account’s usable funding instruments
dailyBudgetnumberin the ad account’s currency
totalBudgetnumber
startTimestringISO 8601
endTimestring

set_x_ads_status#

Pause or activate an X campaign or line item

Pause or ACTIVATE an X ads CAMPAIGN (campaignId) or ONE LINE ITEM inside it (lineItemId) — pass exactly one. ACTIVATING STARTS REAL SPEND on the next auction, so it requires confirm:true — this is the only switch on X that arms money. Tell the user the budget and what will start spending BEFORE you pass confirm. DELIVERY ON X IS THE AND OF BOTH LEVELS: an ACTIVE line item under a PAUSED campaign serves nothing, so the result reads the PARENT back too and states whether anything can actually spend rather than letting you infer it. Pausing a line item is the REVERSIBLE way to take one ad group out of delivery — deleting it is not.

ParameterTypeDescription
accountIdrequiredstring
campaignIdstringthe whole campaign — pass this OR lineItemId
lineItemIdstringone ad group — pass this OR campaignId
statusrequired"ACTIVE" | "PAUSED"
confirmbooleanrequired to set ACTIVE — real money

MICROSOFT BULK SERVICE + MEASUREMENT

microsoft_ads_bulk_download#

Export a Microsoft Advertising account as a bulk file read-only

Export a Microsoft Advertising account as a BULK FILE — one spreadsheet holding whatever slice of the account you ask for. This is the ONLY way to read most of a Microsoft account: roughly 185 of Microsoft’s record types are reachable here and nowhere else in Hermoso — sitelink / callout / structured-snippet / image / logo / price / promotion ad extensions, labels, shared negative keyword lists, bid strategies, audiences and their associations, experiments, seasonality adjustments, conversion goals, asset groups and listing groups, feeds. Pass entities[] (default Campaigns, AdGroups, Ads, Keywords), campaignIds[] to narrow it, or since for a DELTA of what changed (Microsoft refuses anything older than 30 days). The reply carries the WHOLE FILE as a string in `file` — edit that and pass it straight to microsoft_ads_bulk_upload, which is the round trip this exists for. A bulk export is a SNAPSHOT of what Microsoft held when it ran, never a live view, so do not quote a status from it as current after a change. Microsoft builds it asynchronously: a large account can come back pending:true with a downloadRequestId — call again with that id rather than resubmitting, which would export the whole account a second time. Read-only, 0 credits.

ParameterTypeDescription
accountIdstringMicrosoft ad account id — omit to use the brand’s single shared account
entitiesstring[]Microsoft DownloadEntity names — Campaigns, AdGroups, Ads, Keywords (the default), plus SitelinkAdExtensions, CalloutAdExtensions, Labels, Budgets, BidStrategies, AssetGroups, ConversionGoal, Experiments, Audiences and ~180 more. An unknown one is refused BY NAME, because Microsoft answers it with a deserialization error that names no field and reads like an outage
campaignIdsstring[]export only these campaigns (max 1000) instead of the whole account
sincestringISO date — export only what CHANGED since then. Microsoft refuses a delta older than 30 days, and refuses one at all alongside QualityScoreData / BidSuggestionsData
fileType"Csv" | "Tsv"default Csv
compression"GZip" | "Zip"default GZip
dataScopestring[]EntityData (default), QualityScoreData, BidSuggestionsData — the last two force a FULL export
limitnumberhow many rows to return inline, default 200 (the full file is still in `file`)
allowUnlistedEntitiesbooleansend an entity name we do not recognise verbatim — for a record type Microsoft added after our copy of its list was read
downloadRequestIdstringpick up an export that came back pending. Valid 2 days, and far cheaper than exporting the account again
waitMsnumberhow long to wait for Microsoft to build the file before returning pending, max 120000

microsoft_ads_bulk_upload#

Apply a Microsoft Advertising bulk file (spend-gated) destructive

Apply a Microsoft Advertising BULK FILE — edit hundreds of campaigns, ad groups, ads, keywords, extensions or labels in one request. Pass `file` as the CSV/TSV string; microsoft_ads_bulk_download returns exactly that shape in its `file` field. THE SPEND GATE, AND IT IS UNLIKE EVERY OTHER TOOL HERE. A bulk file carries a Status column, so one upload can turn campaigns ON — and confirm:true ALONE IS NOT ENOUGH for a file: it proves you meant to upload something, not that you know what THIS file does, and it reads identically for a file that changes two bids and one that activates fifty campaigns. So: call it ONCE with no confirmation. Nothing is uploaded, and you are told exactly how many objects the file would ACTIVATE (they can then spend real money) and DELETE (which Microsoft never undoes — a deleted object is never returned by any read again), each named with its row number, type, id and name. SHOW THAT LIST TO THE USER, get an explicit yes, then call again with confirm:true, confirmActivations:<n> and confirmDeletions:<n>. If the activations are incidental — a file you round-tripped out of a download and only meant to edit bids in — pass pauseInstead:true instead and those rows are written as Paused, so everything else lands with nothing armed; it is refused when the file also deletes, because pausing is a safe substitute for activating and there is none for deleting. Partial success is normal on this API: rows Microsoft rejects come back listed individually and the correct ones ARE applied, so never describe a CompletedWithErrors upload as a failure. 0 credits.

ParameterTypeDescription
accountIdstringMicrosoft ad account id — omit to use the brand’s single shared account
filerequiredstringthe bulk file itself, CSV or TSV, whose first column header must be "Type"
fileType"Csv" | "Tsv"inferred from the file when omitted
confirmbooleanthe user has SEEN what this file activates and deletes and said yes. Not sufficient on its own — the two echo counts below are also required
confirmActivationsnumberecho back how many objects this file ACTIVATES — the exact count the un-confirmed call reported
confirmDeletionsnumberecho back how many objects this file DELETES — the exact count the un-confirmed call reported
pauseInsteadbooleanrewrite every activation to Paused so the rest of the file uploads with nothing armed. Never applied unless asked: an unrequested rewrite would PAUSE A LIVE CAMPAIGN
dryRunbooleanreport what the file would do and upload nothing at all
responseMode"ErrorsAndResults" | "ErrorsOnly"default ErrorsAndResults, so the outcome can be read back rather than assumed
uploadRequestIdstringread the outcome of an upload that came back pending. NEVER re-upload the file — it is already queued, and a second upload applies every row twice
waitMsnumberhow long to wait for Microsoft to apply the file before returning pending, max 120000

list_microsoft_ads_conversion_goals#

Microsoft Advertising conversion goals read-only

The conversion goals on a Microsoft Advertising account — what the account COUNTS as a conversion, and therefore what every conversion-optimised bid strategy on it is optimising toward. Flags which ones are OFFLINE goals: those are the only goals send_microsoft_ads_offline_conversions can post to, and its conversionName must match one of their names EXACTLY, including case and spacing. An account with no goals at all has no conversion tracking — say that plainly rather than reporting an empty list, because it means smart bidding there has nothing to aim at. Read-only, 0 credits.

ParameterTypeDescription
accountIdstring
goalIdsstring[]specific goal ids — omit for all of them
goalTypestringfilter to one Microsoft ConversionGoalType, e.g. OfflineConversion

send_microsoft_ads_offline_conversions#

Send offline + enhanced conversions to Microsoft

Tell Microsoft Advertising about conversions that happened OFF the website — a phone sale, an in-store purchase, a lead that closed weeks after the click — so smart bidding on that account stops optimising against only what converted online. Each row needs conversionName (an existing OFFLINE conversion goal, matched by name — list_microsoft_ads_conversion_goals shows them), conversionTime (within the last 90 days AND after the click), and an identifier: either microsoftClickId (the msclkid Microsoft appends to the landing-page URL) or, for ENHANCED conversions, a plain email and/or phone. YOU PASS PLAIN VALUES AND THE HASHING HAPPENS SERVER-SIDE: emails are normalized and SHA-256’d to Microsoft’s own published five-step spec, which is verified against Microsoft’s own worked digests. A PHONE MUST ALREADY CARRY ITS COUNTRY CODE (+14255551234) and is refused otherwise — Microsoft’s spec says "normalize to E.164 format with country code" and stops there, and guessing which country a bare 4255551234 belongs to is not a mistake you would ever see: the upload succeeds and matches nobody. SAY THIS WHEN REPORTING: accepted is not the same as visible. Microsoft takes up to 6 hours to show offline conversion data and applies nothing at all in the first 2 hours after a goal is created, and a conversion only counts inside the goal’s own conversion window. Duplicates are silently ignored (the first wins), so re-sending a batch is safe and changes nothing. 0 credits.

ParameterTypeDescription
accountIdstring
conversionNamestringdefault goal name for every row that does not carry its own
conversionsrequiredobject[]up to 1000 per request — Microsoft applies each request independently

microsoft_ads_auction_insights#

Who else is bidding on the same Microsoft auctions read-only

Who ELSE is competing for the same Microsoft Advertising auctions — the other advertisers’ domains with their impression share, overlap rate, position-above rate, top-of-page rate and outranking share. microsoft_ads_report tells you what the account did; this tells you who it did it against, which is the input to a bid or a creative decision rather than a report. Scope it with entityType Account (default, the whole account) / Campaign / AdGroup / Keyword plus entityIds (max 200), and optionally segment by up to three of Day, DayOfWeek, Device. SAY THIS WHEN REPORTING: every figure is a share of the auctions YOUR ads entered, never a measure of a competitor’s whole account or budget — a competitor missing from the list did not necessarily not bid. An empty result means there was no delivery to compare in that window, which is MISSING data; never report it as "nobody is bidding against you". Read-only, 0 credits.

ParameterTypeDescription
accountIdstring
entityType"Account" | "Campaign" | "AdGroup" | "Keyword"default Account
entityIdsstring[]REQUIRED for Campaign / AdGroup / Keyword, max 200. Microsoft only defaults to the whole account for entityType Account
sincestringYYYY-MM-DD, default 30 days back
untilstringYYYY-MM-DD, default today
segments"Day" | "DayOfWeek" | "Device"[]at most three — Microsoft’s own limit

MICROSOFT AD INSIGHT RECOMMENDATIONS + AUTO-APPLY

microsoft_ads_recommendations#

What Microsoft suggests changing on the account read-only

What Microsoft Advertising ITSELF suggests changing on the account: budget raises, new keywords, broad-match widenings, conflicting negative keywords to remove, and responsive search ads or extra headlines Microsoft has written. Each row carries the campaign and ad group it touches plus Microsoft’s OWN estimate of what applying it would add to clicks, impressions, conversions and COST; a budget recommendation states the current and the recommended daily amount, so the money is a vendor fact rather than a guess. SAY THIS WHEN REPORTING: every Microsoft recommendation INCREASES what the account buys, that is what they are for, so none of them is a free win, and an empty list means Microsoft has no ADVICE (usually too little delivery to compute any), never that the account is optimal. Dismissed recommendations are hidden unless you ask for them. Read-only, 0 credits.

ParameterTypeDescription
accountIdstringMicrosoft ad account id, omit to use the brand’s single shared account
typesstring[]narrow to some of ADD_BROAD_MATCH_KEYWORD, CAMPAIGN_BUDGET, KEYWORD, REMOVE_CONFLICTING_NEGATIVE_KEYWORD, RESPONSIVE_SEARCH_AD, RESPONSIVE_SEARCH_AD_ASSET, all six by default. An unknown name is refused BY NAME, because Microsoft answers one with a deserialization error that names no field
limitnumberMicrosoft’s MaxCount, omit for everything
includeDismissedbooleanalso show recommendations already dismissed

apply_microsoft_ads_recommendations#

Apply Microsoft recommendations (spend-gated) destructive

Apply Microsoft Advertising recommendations by id. THIS SPENDS REAL MONEY AND HAS NO UNDO. It raises daily budgets, adds keywords, widens keywords to broad match, DELETES negative keywords so the account buys more searches, and publishes Microsoft-written ads under the brand’s name, all live at the next auction. THE GATE IS UNLIKE THE OTHER MICROSOFT SPEND SWITCHES, AND confirm:true ALONE IS REFUSED: it proves you meant to apply something, not that you know what THESE ones do, and it reads identically for one keyword suggestion and forty budget raises. So call it ONCE with no confirmation. Nothing is applied, and you get every recommendation named with its campaign, exactly what it changes, the current → recommended budget where there is one, and Microsoft’s own cost estimate. SHOW THAT LIST TO THE USER, get an explicit yes, then call again with confirm:true, confirmCount:<n> and confirmCostIncrease:<n>. BOTH NUMBERS ARE RECOMPUTED FROM A FRESH READ at that moment, so a recommendation Microsoft has withdrawn, already applied or re-priced since you looked fails the check instead of being applied unseen. If ANY id you name is no longer on offer, NOTHING is applied, not even the ones that still are, because applying part of a set you inspected whole is not what you asked for. Microsoft can reject individual items and apply the rest, so the result reports per item: never call a partial apply a failure, and never call it a success. 0 credits to us; the spend lands on the ad account.

ParameterTypeDescription
accountIdstringMicrosoft ad account id, omit to use the brand’s single shared account
recommendationIdsrequiredstring[]ids from microsoft_ads_recommendations, max 100. There is deliberately no "apply everything"
confirmbooleanthe user has SEEN the pre-flight list and said yes. Not sufficient on its own, both echo numbers below are also required
confirmCountnumberecho back how many recommendations this applies: the exact count the un-confirmed call reported
confirmCostIncreasenumberecho back Microsoft’s own summed cost estimate for them: the exact number the un-confirmed call reported
dryRunbooleanreport what would happen and apply nothing at all

dismiss_microsoft_ads_recommendations#

Dismiss Microsoft recommendations

Dismiss Microsoft Advertising recommendations by id so Microsoft stops offering them. IT CANNOT SPEND and it changes nothing about what the account runs (it takes advice off the list), so it takes no confirmation at all, which is the point: reach for this rather than applying something just to clear it. Nothing is destroyed either: Microsoft still returns a dismissed recommendation from a read, flagged as dismissed, and microsoft_ads_recommendations will show it again with includeDismissed. Ids Microsoft has already withdrawn are reported and are not an error, they are already off the list, which is the outcome you wanted. 0 credits.

ParameterTypeDescription
accountIdstringMicrosoft ad account id, omit to use the brand’s single shared account
recommendationIdsrequiredstring[]ids from microsoft_ads_recommendations, max 100

microsoft_ads_auto_apply#

Is Microsoft changing this ad account by itself? read-only

Whether Microsoft is allowed to change this ad account BY ITSELF, unattended: the auto-apply opt-in status for each of the five recommendation types Microsoft supports. THIS IS THE READ THAT ANSWERS "is something changing my account when nobody is looking?", and it is worth running on any Microsoft account you inherit: an account can already be opted in without anyone at the brand having done it, and there is no other way to find out from here. A type Microsoft returns no status for is reported as UNKNOWN, never as off. TWO THINGS THAT CATCH PEOPLE OUT AND ARE STATED IN THE REPLY: these five type names are a DIFFERENT, case-sensitive vocabulary from the six microsoft_ads_recommendations uses (Microsoft cannot auto-apply a budget recommendation at all, there is no such type), and three of the five have no readable recommendation, so there is no way to preview what auto-apply would do for those. Read-only, 0 credits.

ParameterTypeDescription
accountIdstringMicrosoft ad account id, omit to use the brand’s single shared account
typesstring[]narrow to some of ResponsiveSearchAdsOpportunity, MultiMediaAdsOpportunity, RemoveConflictingNegativeKeywordOpportunity, FixConversionGoalSettingsOpportunity, CreateConversionGoalOpportunity, all five by default

set_microsoft_ads_auto_apply#

Let Microsoft change the account by itself, or stop it (per type) destructive

Switch Microsoft’s auto-apply on or off, per recommendation type. SWITCHING ONE ON IS UNLIKE EVERY OTHER WRITE IN HERMOSO: it is STANDING PERMISSION FOR MICROSOFT TO CHANGE THIS AD ACCOUNT ON ITS OWN, indefinitely, with nobody watching, publishing search and multimedia ads it wrote under the brand’s name, DELETING negative keywords so the account starts buying searches it currently blocks, or creating and changing conversion goals so every smart-bidding strategy on the account re-aims. It has no expiry and no schedule you can inspect, and nothing in Hermoso will ever turn it off for the user. AND THERE IS NOTHING TO PREVIEW: Microsoft decides later, on evidence that does not exist yet, so no count, no dry run and no list can tell you what it will do, which is exactly why a blast-radius echo would be meaningless here and each type has to be named instead. To turn any type ON: confirm:true AND confirmTypes listing every type being turned on, individually. There is no "all" and no default; naming four of five leaves the fifth refused BY NAME. TURNING IT OFF IS NEVER GATED, set those types to false and it goes straight through, because that only ever reduces what Microsoft does unattended. A type already in the state you asked for is not sent at all. THE ANSWER IS THE READ-BACK: the result re-reads Microsoft and says done / not done / could not tell PER TYPE, and you report that, never the fact that the call returned. 0 credits.

ParameterTypeDescription
accountIdstringMicrosoft ad account id, omit to use the brand’s single shared account
optInsrequiredobjectmap of Microsoft auto-apply type name to true/false, e.g. {"RemoveConflictingNegativeKeywordOpportunity": false}. Case-sensitive keys: ResponsiveSearchAdsOpportunity, MultiMediaAdsOpportunity, RemoveConflictingNegativeKeywordOpportunity, FixConversionGoalSettingsOpportunity, CreateConversionGoalOpportunity
confirmbooleanrequired to turn ANY type ON, after the user has been told what Microsoft will be allowed to do unattended. Never needed to turn one off
confirmTypesstring[]every type you are turning ON, named individually. That is the echo which proves you know WHICH permission you are granting, where a count could not

APPLE ADS

list_apple_ads_campaigns#

List Apple Ads campaigns read-only

Read the brand’s connected Apple Ads (Apple Search Ads) campaigns — App Store search ads, on Apple’s Platform API. Each row carries status, the system-computed displayStatus, the daily budget, the bid strategy, the countries and placements it runs in and, when a campaign cannot run, systemStatusReasons stating exactly why. Read-only, free, zero spend risk. Needs Apple Ads connected (Settings ▸ Connectors ▸ Apple Ads): there is no OAuth — Hermoso generates an EC signing key, the user pastes the public half into Apple Ads ▸ Account Settings ▸ API and pastes back clientId / teamId / keyId. To BUILD on this account, use create_apple_ads_campaign / create_apple_ads_ad_group / add_apple_ads_keywords: everything is created PAUSED and only set_apple_ads_status(confirm:true) can arm spend.

ParameterTypeDescription
limitnumberpage size, default 100, Apple’s max is 1000
offsetnumberoffset pagination

list_apple_ads_ad_groups#

List Apple Ads ad groups read-only

Ad groups on the brand’s Apple Ads account — status, the system-computed displayStatus, pricing model, the bid off the ad group’s bidStrategy, and whether Search Match (Apple’s automated keyword matching) is on. campaignId is OPTIONAL: with it, the ad groups of that one campaign; WITHOUT it, every ad group in the ad account, each row carrying its own campaignId. (Apple’s older API had no account-wide ad-group list and required the campaign id; its Platform API does, and this now uses it.) Read-only, free.

ParameterTypeDescription
campaignIdstringoptional — from list_apple_ads_campaigns. Omit for every ad group in the ad account.
limitnumber
offsetnumber

list_apple_ads_keywords#

List Apple Ads targeting or negative keywords read-only

Targeting or negative keywords with their match type, status and bid. THE TWO RESOURCES SCOPE DIFFERENTLY and Apple enforces it: TARGETING keywords (the default) need campaignId OR adGroupId — campaignId alone now returns every targeting keyword in the campaign, which Apple’s older API had no way to ask for. NEGATIVE keywords (negative:true) always need one of the two as well, and Apple splits them by LEVEL: campaignId alone returns the CAMPAIGN-level negatives that suppress the whole campaign (scope ‘campaign’, the default), scope ‘adgroup’ returns every AD-GROUP-level negative across that campaign in one call, and naming an adGroupId returns just that ad group’s. The reply states which level it counted, because the row shapes are identical and the number means different things. There is no account-wide keyword list. Apple allows up to 5000 keywords per ad group. Read-only, free.

ParameterTypeDescription
campaignIdstringthe campaign — required unless you pass adGroupId
adGroupIdstringnarrow to one ad group. Outranks scope on both resources.
negativebooleanlist negative keywords instead of targeting keywords
scope"campaign" | "adgroup"NEGATIVE keywords only, with campaignId and no adGroupId: "campaign" (default) = the campaign-level negatives; "adgroup" = every ad-group-level negative across the campaign.
limitnumber
offsetnumber

apple_ads_report#

Apple Ads performance report read-only

Apple Ads performance — impressions, taps, installs, spend, TTR, CPT, CPA. level is campaign / adgroup / ad / keyword / searchterm; promotedObjectType is apps (App Store, the default) or business-brands (Ads on Apple Maps). startTime and endTime are REQUIRED, as YYYY-MM-DD. campaignId is REQUIRED for every level except campaign — it moved from the URL into a filter, but Apple still enforces it (measured: “campaignId filter is required for AD_GROUP reports when promotedObjectType is APPS”), so only a campaign-level report may be account-wide. adGroupId narrows it further. groupBy is restricted PER LEVEL and an unsupported dimension is refused by name, never dropped: campaign and adgroup take deviceClass/ageRange/gender/countryCode/adminArea/locality/storefront/countryOrRegion, keyword and searchterm take only deviceClass/storefront/countryOrRegion, and ad takes only storefront/countryOrRegion. granularity is optional and carries Apple’s own date rules (HOURLY reaches back 7 days and is unavailable on ad and searchterm reports; DAILY 90 days and needs a range longer than one day; WEEKLY 365 days with an end date at least 14 days ago; MONTHLY needs an end date at least 90 days ago). FOR A SINGLE DAY, OMIT granularity — the totals come back in each row’s totalMetrics. Search-term reports are ORTZ-only. grandTotals adds a summary row; emptyMetrics includes entities with no delivery — App Store reports only, never together with groupBy, and never on a search-term report. A report with NO rows genuinely means there was NO delivery in that window and scope: say exactly that, and never present zeros as measured performance. Read-only and free, so run it first after connecting — it proves the credentials work with zero spend risk.

ParameterTypeDescription
level"campaign" | "adgroup" | "keyword" | "searchterm" | "ad"default campaign
promotedObjectType"apps" | "business-brands"apps = App Store (default), business-brands = Ads on Apple Maps
campaignIdstringREQUIRED for every level except campaign. It moved from the URL into a filter in the Platform API, but Apple still enforces it — only a campaign-level report may be account-wide.
adGroupIdstringoptional second filter — v5 had no path for this
startTimerequiredstringYYYY-MM-DD (required)
endTimerequiredstringYYYY-MM-DD (required)
granularity"HOURLY" | "DAILY" | "WEEKLY" | "MONTHLY"omit entirely for a single day, or for totals only
groupBystring[]restricted per level — see the description; an unsupported value is refused by name
timeZone"ORTZ" | "UTC"ORTZ = the organization time zone, Apple’s default. Search-term reports accept ORTZ only.
grandTotalsbooleanadd a summary row across all result rows
emptyMetricsbooleaninclude entities with no delivery. App Store reports only, and never together with groupBy.
fieldsstring[]limit the returned fields. Omit for all of them.
offsetnumberrow to start at (default 0). hasMore is now MEASURED against Apple’s own pagination.totalCount rather than inferred from a full page, and the default ordering is localSpend DESCENDING — so omitted rows are the LOW-SPEND tail.
limitnumberrows per page, up to 5000 (default 100)

list_apple_ads_orgs#

List Apple Ads organizations read-only

The Apple Ads ad accounts these credentials can act as, with the roles held on each, plus the organization’s currency, time zone and payment model. NAMING: Apple’s older API called these “organizations” (campaign groups) and its Platform API calls them AD ACCOUNTS — the id is the same number, and `orgId` and `adAccountId` on each row are equal. One login can cover several: an agency managing multiple clients has one per client. Reading this does NOT switch account: Apple Ads is pinned to the ONE chosen when the connection was made, so an agent can never act as another client’s. To use a different one, pick it in Settings ▸ Connectors ▸ Apple Ads ▸ Manage accounts, with set_connector_accounts, or by reconnecting. A payment model of null is worth reporting: Apple states that without one, campaigns cannot run. Read-only, free.

No parameters.

APPLE ADS: BUILDING, NOT JUST READING

create_apple_ads_campaign#

Create an Apple Ads campaign

Create an Apple Ads (Apple Search Ads) campaign promoting an iOS app on the App Store. CREATED PAUSED ALWAYS — there is no override, so nothing can spend until you separately call set_apple_ads_status(status:"ENABLED", confirm:true). REQUIRED: name (unique across the whole Apple Ads ORGANIZATION, not just this ad account — Apple 400s DUPLICATE_CAMPAIGN_NAME, and the org can contain campaigns you cannot see), appAdamId (the App Store id, e.g. "6752439949" — read it off any existing campaign’s promotedObjectId), dailyBudget (decimal string, e.g. "25.00"), countries (ISO 3166-1 alpha-2). placements defaults to APPSTORE_SEARCH_RESULTS, the classic Search Ads placement, which needs NO creative — Apple renders your App Store product page. bidStrategyType defaults to MANUAL_CPT (a fixed price per tap); MAX_CONVERSIONS optimizes for installs and is the only strategy that takes a campaign-level bid, where it means the target CPA. A MANUAL_CPT per-tap bid does NOT belong here: Apple refuses it at campaign level with an error naming a field you never sent — pass defaultBid to create_apple_ads_ad_group instead. Free.

ParameterTypeDescription
namerequiredstringREQUIRED. Unique across the entire Apple Ads organization.
appAdamIdrequiredstringREQUIRED. App Store id of the promoted app, e.g. "6752439949".
dailyBudgetrequiredstringREQUIRED. Decimal string, e.g. "25.00".
countriesrequiredstring[]REQUIRED. ISO 3166-1 alpha-2 codes, e.g. ["US","CA"].
placementsstring[]Default ["APPSTORE_SEARCH_RESULTS"]. Also APPSTORE_SEARCH_TAB, APPSTORE_TODAY_TAB, APPSTORE_PRODUCT_PAGES, or MAPS_SEARCH_RESULTS / MAPS_SEARCH_HOME. One campaign cannot mix App Store and Maps placements.
bidStrategyType"MANUAL_CPT" | "MAX_CONVERSIONS"Default MANUAL_CPT.
bidstringMAX_CONVERSIONS only — the target CPA. Refused on MANUAL_CPT.
currencystringDefaults to the connected ad account’s currency; an account cannot mix currencies.
startTimestring
endTimestringOmit to run indefinitely.
budgetOrderIdsstring[]budget order id(s) from list_apple_ads_budget_orders to assign this campaign to — a budget order is a spend CEILING SHARED across every campaign assigned to it, and it works ALONGSIDE dailyBudget rather than instead of it. Without this a budget order can never be drawn from.

create_apple_ads_ad_group#

Create an Apple Ads ad group

Create an ad group inside an Apple Ads campaign — this is where the bid and the keywords live. CREATED PAUSED ALWAYS. REQUIRED: campaignId, name. defaultBid is the most you will pay per tap (decimal string, e.g. "1.50") and applies to every keyword with no bid of its own. startTime is optional here and defaults to now: Apple documents it as optional and then REJECTS the create without it, so Hermoso always supplies one. searchMatch:true opts into Apple’s automated keyword matching, which targets relevant search terms beyond your keyword list. pricingModel defaults to CPT and must match the campaign’s billing event. Keywords cannot be created inline — make the ad group, then call add_apple_ads_keywords. targeting is who and where it reaches: FOR AN APPLE MAPS AD GROUP, targeting.locationGroupIds is the only field that says WHICH of the brand’s shops this ad group promotes, and an ad group with none stops serving rather than reaching everywhere — build the group first with create_apple_ads_location_group. Radius and geo targeting cannot be combined in one ad group and that is refused here rather than delivered on terms nobody chose. Like the campaign it lives in, it stays PAUSED until set_apple_ads_status(status:"ENABLED", confirm:true) arms it. Free.

ParameterTypeDescription
campaignIdrequiredstringREQUIRED.
namerequiredstringREQUIRED.
defaultBidstringMax cost per tap, e.g. "1.50".
currencystring
startTimestringDefaults to now.
endTimestringOmit to inherit the campaign end date.
searchMatchbooleanOpt into Apple’s automated keyword matching.
pricingModel"CPT" | "CPM" | "CPA"Default CPT; must match the campaign billing event.
targetingobjectWho and where this ad group reaches. For Apple Maps, locationGroupIds is what says which shops it promotes.

add_apple_ads_keywords#

Add Apple Ads keywords

Add targeting keywords to an Apple Ads ad group. keywords is [{text, matchType, bid}] — matchType EXACT (default), BROAD, PHRASE or CATEGORY, and bid optionally overrides the ad group default for that one term. Up to 1000 per call and 5000 per ad group. They are sent ONE AT A TIME on purpose: a single term Apple refuses cannot take the rest of the batch down, and the reply names every refusal with Apple’s own reason, then reads the ad group’s keywords back to prove what actually landed. Keyword text and match type are IMMUTABLE — to change either, delete the keyword and add it again. A keyword is created ENABLED because it cannot serve unless its ad group and campaign are enabled too; if the ad group is ALREADY live, adding keywords serves on the next auction and therefore takes confirm:true. Free.

ParameterTypeDescription
adGroupIdrequiredstringREQUIRED.
keywordsrequiredobject[]REQUIRED. Up to 1000.
matchType"EXACT" | "BROAD" | "PHRASE" | "CATEGORY"Default for entries that do not set one.
currencystring
confirmbooleanRequired ONLY when the ad group is already ENABLED.

add_apple_ads_negative_keywords#

Add Apple Ads negative keywords

Add negative keywords to an Apple Ads campaign or ad group — search terms your ads must NOT show for. Pass exactly one of campaignId (campaign-wide) or adGroupId (that ad group only); Apple rejects a request carrying both. keywords is [{text, matchType}] with matchType BROAD (default) or EXACT. Never confirm-gated and never a spend risk, because a negative keyword only ever RESTRICTS where you show. Text and match type are immutable — delete and re-add to change either. Free.

ParameterTypeDescription
campaignIdstringCampaign-wide. Pass this OR adGroupId, never both.
adGroupIdstringOne ad group. Pass this OR campaignId, never both.
keywordsrequiredobject[]REQUIRED.
matchType"EXACT" | "BROAD" | "PHRASE" | "CATEGORY"Default BROAD.

update_apple_ads_object#

Edit an Apple Ads campaign, ad group, keyword or location group

Edit an existing Apple Ads campaign, ad group, keyword, creative or ad. Pass level and id plus ONLY the fields you want to change — Apple leaves every field you omit exactly as it is. Campaign: name, dailyBudget, startTime, endTime, countries, bidStrategyType. Ad group: name, defaultBid, startTime, endTime, searchMatch. Keyword: bid only — its text and match type are immutable, so delete and re-add to change either. Creative: name, plus (Apple Maps creatives only) a new creativeSpec — a creative’s type and destination are locked at creation, so pointing at a different app or product page means creating a NEW creative. Ad: name only — its creative and ad group are locked too, and Apple’s own instruction for serving a different creative is to create a new ad and delete the old one. Location group: name, description, and locationIds or rules. WARNING, AND IT APPLIES TO EVERY ARRAY HERE: AN ARRAY REPLACES RATHER THAN MERGES. The countries you send become the campaign’s entire geographic targeting, the targeting dimensions you send become the ad group’s entire setting for those dimensions, and Apple states it for location groups in terms — to add ONE shop to a group, read its current locationIds, append, and send the whole list back, or you have just removed every other shop. Send everything you want to keep, never just the new one. This tool deliberately CANNOT change a status: enabling arms real spend, so it lives behind set_apple_ads_status and its confirmation. Free.

ParameterTypeDescription
levelrequired"campaign" | "adgroup" | "keyword" | "creative" | "ad" | "location_group"REQUIRED.
idrequiredstringREQUIRED.
namestring
dailyBudgetstringCampaign only.
defaultBidstringAd group only.
bidstringKeyword only.
countriesstring[]Campaign only. REPLACES the whole list.
bidStrategyType"MANUAL_CPT" | "MAX_CONVERSIONS"Campaign only.
searchMatchbooleanAd group only.
targetingobjectAd group only. Same shape as create_apple_ads_ad_group.targeting — locationGroupIds, radius, adminAreaIds, daypart and the rest. REPLACES the dimensions you name.
locationIdsstring[]Location group only (STATIC). REPLACES the whole membership.
rulesobject[]Location group only (DYNAMIC). REPLACES every rule and puts the group back to PENDING.
descriptionstringLocation group only.
startTimestring
endTimestring
currencystring
budgetOrderIdsstring[]budget order id(s) from list_apple_ads_budget_orders to assign this campaign to — a budget order is a spend CEILING SHARED across every campaign assigned to it, and it works ALONGSIDE dailyBudget rather than instead of it. Without this a budget order can never be drawn from.

set_apple_ads_status#

Pause or enable an Apple Ads object

Pause or enable an Apple Ads campaign, ad group, keyword or ad. PAUSING is immediate and needs no confirmation. ENABLING IS THE ONE SWITCH THAT ARMS REAL MONEY: it requires confirm:true, and without it nothing changes and the refusal names the object Apple actually holds under that id — read back from Apple, never echoed from your input, because aiming at the wrong campaign is invisible until money moves. An object serves only when it AND every parent above it are ENABLED, so enabling a keyword inside a paused campaign spends nothing. Prefer pausing to deleting: pausing is reversible and Apple’s delete is not. A CREATIVE, AN ASSET AND A LOCATION GROUP ARE DELIBERATELY ABSENT from the levels here and that is not an oversight: none of them has an advertiser status — a creative and a location group carry only a read-only systemStatus Apple computes — so to stop a creative serving, pause the ADS that reference it, and to stop promoting a set of shops, pause the AD GROUP that targets the location group. The reply reports the status Apple STORED, which is a different claim from the one it accepted. Free.

ParameterTypeDescription
levelrequired"campaign" | "adgroup" | "keyword" | "negative_keyword" | "ad"REQUIRED.
idrequiredstringREQUIRED.
statusrequired"ENABLED" | "PAUSED"REQUIRED.
confirmbooleanREQUIRED to ENABLE — it arms real spend. Pausing needs none.

delete_apple_ads_object#

Delete an Apple Ads object destructive

Delete an Apple Ads campaign, ad group, keyword, negative keyword, ad, creative, asset, location group or budget order. Requires confirm:true, and optionally confirmName echoed back to prove you aimed at the right object. THIS CASCADES AND CANNOT BE UNDONE: Apple soft-deletes with no undelete, and deleting a campaign takes every ad group, keyword and ad underneath it. THE BLAST RADIUS DIFFERS BY LEVEL and the refusal states the right one for the object you named: deleting a CREATIVE does not delete the ads that use it — it makes every one of them stop serving, permanently, with no way back but a new creative; deleting an ASSET makes any Apple Maps creative using it INVALID; deleting an AD leaves its creative untouched and available; deleting a LOCATION GROUP is permanent with no restore, and every ad group targeting it loses that constraint immediately — an ad group left targeting no location group STOPS serving rather than reaching everywhere. In almost every case set_apple_ads_status(status:"PAUSED") is what you actually want — it stops all spend and is reversible — but a creative, an asset, a location group and a budget order have NO status, so for those the reversible move is pausing whatever references them. DELETING A BUDGET ORDER CASCADES TO NOTHING — it is a spend ceiling, not a parent — but every campaign assigned to it loses that ceiling, and Apple REFUSES the delete outright while any campaign is still assigned, or once the order has started, or if it is cancelled, completed or exhausted; the refusal names whichever applies before anything is sent. The reply is confirmed by RE-READING the object: for a delete, an absent or deleted-flagged row is the proof, never the HTTP 200. Free.

ParameterTypeDescription
levelrequired"campaign" | "adgroup" | "keyword" | "negative_keyword" | "ad" | "creative" | "asset" | "location_group" | "budget_order"REQUIRED.
idrequiredstringREQUIRED.
confirmbooleanREQUIRED. Nothing is deleted without it.
confirmNamestringOptional — echo the object’s exact name to prove you aimed at the right one.

APPLE ADS: CREATIVES AND ADS

search_apple_ads_apps#

Find an App Store app to advertise read-only

Find the App Store app to advertise and its adamId — the id every other Apple Ads tool needs (create_apple_ads_campaign’s appAdamId, a creative’s destination, an eligibility check). Call it with NO arguments to list the apps THIS Apple Ads organization owns, which is what a first-time advertiser wants: only an app you own can be promoted, so a public app you merely found by name cannot be used as promotedObjectId. Pass query to search the App Store catalogue by name or developer, or adamId to fetch one app’s full details — including availableStorefronts, the definitive list of countries the app can be advertised in and the set a campaign’s countries must be a subset of. Read-only, free.

ParameterTypeDescription
querystringApp name or developer to search the App Store for.
adamIdstringFetch one app’s full details instead of searching.
ownedOnlybooleanDefault true — only apps this organization owns (the only ones that can be promoted). false searches the whole catalogue. Apple’s own default is false; Hermoso flips it because only an owned app can be advertised.
storeFrontsstring[]App Store country/region codes to search in, e.g. ["US","GB"].
cpidsstringComma-separated iTunes content provider ids to scope the search to.
limitnumber
offsetnumber

check_apple_ads_app_eligibility#

Check whether an app may be advertised read-only

Ask Apple whether an app may be advertised at all, PER PLACEMENT AND PER COUNTRY — the check Apple tells you to run before building a campaign around an app. Each row is ELIGIBLE or INELIGIBLE for one combination of placement, country or region and device class, with the minimum age rating for that market. A campaign targeting a country the app is INELIGIBLE in simply will not deliver there and nothing in the campaign build says so, so this is how you find out for free beforehand. adamId is REQUIRED. NO ROWS IS NOT THE SAME AS INELIGIBLE — it usually means the app is not owned by this organization; report that distinction rather than presenting it as a refusal. Read-only, free.

ParameterTypeDescription
adamIdrequiredstringREQUIRED — from search_apple_ads_apps.
supplyPlacementstring[]Narrow to placements, e.g. ["APPSTORE_SEARCH_RESULTS","APPSTORE_SEARCH_TAB"].
countryOrRegionstring[]ISO 3166-1 alpha-2 codes.
deviceClassstring[]IPHONE and/or IPAD.
limitnumber

list_apple_ads_product_pages#

List App Store product pages read-only

The App Store product pages this ad account can advertise — the post-tap destination a creative points at. Every app has exactly one DEFAULT product page (its standard listing, needing no setup) plus any CUSTOM PRODUCT PAGES the developer built in App Store Connect, each with its own productPageId (a UUID, not an integer) that a CUSTOM_PRODUCT_PAGE creative requires. Filter by adamId. Pass localeDetails:true to read the per-language content instead — appName, subtitle, promotional text and the screenshots and preview videos by device class — for a custom page (productPageId) or for the app’s default listing (adamId); Hermoso picks the right one of Apple’s two endpoints for you. READ-ONLY BY DESIGN: product pages are authored in App Store Connect, not through any API, and a page you just published appears here only after a short propagation delay. Free.

ParameterTypeDescription
adamIdstringApp Store id — one app’s pages, or its DEFAULT listing’s locale details.
productPageIdstringA specific custom product page (UUID).
localeDetailsbooleanRead per-language content instead of the page list.
languageCodestringWith localeDetails — one locale, e.g. "en-US". Omit for all.
languagestringWith localeDetails — a language, e.g. "en".
statestringFilter by page state; the typical live value is PUBLISHED.
limitnumber
offsetnumber

list_apple_ads_creatives#

List Apple Ads creatives read-only

The ad creatives on this Apple Ads account, each with its type, the app and product page it points at, its systemStatus (VALID / INVALID / PENDING) and its eligibility per ad placement. A creative is reusable — one can back ads in several ad groups and campaigns. Filter by creativeType, systemStatus, a name prefix or eligibility, pass id for a single one, or includeDeleted:true to see deleted records (Apple excludes them by default). AN EMPTY LIST IS NORMAL on an account that only runs classic Search Results campaigns: those need no creative at all, because Apple renders the App Store product page itself. Read-only, free.

ParameterTypeDescription
idstringFetch one creative.
creativeType"DEFAULT_PRODUCT_PAGE" | "CUSTOM_PRODUCT_PAGE" | "LOCAL_ADS_SEARCH_CREATIVE"
systemStatus"VALID" | "INVALID" | "PENDING"
namestringName prefix.
eligibility"ELIGIBLE" | "INELIGIBLE"
includeDeletedboolean
limitnumber
offsetnumber

create_apple_ads_creative#

Create an Apple Ads creative

Create an Apple Ads creative — what a person sees before and after tapping the ad. Pick creativeType: DEFAULT_PRODUCT_PAGE renders the app’s standard App Store listing and needs only adamId; CUSTOM_PRODUCT_PAGE renders a custom page built in App Store Connect and needs adamId AND productPageId (from list_apple_ads_product_pages); LOCAL_ADS_SEARCH_CREATIVE is Apple Maps and needs brandId (from list_apple_ads_brands) plus assetIds you uploaded with upload_apple_ads_asset — that is the one creative type where YOUR OWN IMAGE is the ad. YOU CANNOT SUPPLY YOUR OWN IMAGERY FOR AN APP STORE AD — Apple renders the pre-tap ad from the product page itself, so the way to change how an App Store ad LOOKS is to edit that page (or build a Custom Product Page) in App Store Connect; say that plainly rather than looking for a parameter that does not exist. The destination type is derived from the creative type and never asked for. A creative SPENDS NOTHING and has no status of its own: it serves only once an ad references it and that ad, its ad group and its campaign are all ENABLED. Apple validates asynchronously, so a fresh creative is usually PENDING for a moment and an ad may only reference a VALID one — that is a wait, not a failure. Type and destination are immutable afterwards. Free.

ParameterTypeDescription
namerequiredstringREQUIRED.
creativeType"DEFAULT_PRODUCT_PAGE" | "CUSTOM_PRODUCT_PAGE" | "LOCAL_ADS_SEARCH_CREATIVE"Default DEFAULT_PRODUCT_PAGE.
adamIdstringREQUIRED for App Store creatives — the App Store id.
productPageIdstringREQUIRED for CUSTOM_PRODUCT_PAGE; refused on DEFAULT_PRODUCT_PAGE, which is the app’s standard listing.
brandIdstringApple Maps only — the brand this creative belongs to.
creativeSubtype"BUSINESS_LOGO" | "BUSINESS_ASSET"Apple Maps only. Default BUSINESS_LOGO.
assetIdsstring[]Apple Maps only — ids from upload_apple_ads_asset.
localizedTextobjectApple Maps only — promo copy per locale, e.g. {"en-US":"Visit us today"}.
defaultLocalestringApple Maps only, e.g. "en-US".

list_apple_ads_ads#

List Apple Ads ads read-only

The ads on this Apple Ads account — the serving units that put a creative into an ad group. Each row carries the advertiser status, the rolled-up displayStatus, Apple’s own systemStatus and, when an ad is not serving, systemStatusReasons saying exactly why: AD_APPROVAL_PENDING while Apple reviews it, CREATIVE_PENDING, CREATIVE_LOCALE_INCOMPATIBLE, PRODUCT_PAGE_HIDDEN, PAUSED_BY_USER and more. READ THAT FIELD BEFORE CONCLUDING ANYTHING IS BROKEN — a brand-new ad awaiting Apple’s review is NOT_RUNNING by design, and systemStatusLimitingReasons means it IS running but throttled. Filter by adGroupId, campaignId, creativeId or status, or pass id for one. Read-only, free.

ParameterTypeDescription
idstringFetch one ad.
adGroupIdstring
campaignIdstring
creativeIdstring
status"ENABLED" | "PAUSED"
includeDeletedboolean
limitnumber
offsetnumber

create_apple_ads_ad#

Create an Apple Ads ad

Create an Apple Ads ad — the object that shows one creative in one ad group. REQUIRED: adGroupId, creativeId (from create_apple_ads_creative) and name. CREATED PAUSED ALWAYS, with no override, so it cannot spend until set_apple_ads_status(level:"ad", status:"ENABLED", confirm:true) and its parents are enabled too. THE PLACEMENT RULE, which Apple documents nowhere and which is checked FOR FREE before anything is written: an ad attaches only to a campaign whose placement is APPSTORE_SEARCH_TAB. Apple refuses ads on APPSTORE_SEARCH_RESULTS, APPSTORE_TODAY_TAB and APPSTORE_PRODUCT_PAGES campaigns with AD_CAMPAIGN_SUPPLY_SOURCES_NOT_SUPPORTED — and a SEARCH RESULTS campaign needs no ad and no creative at all, because Apple renders your App Store product page itself, so such a campaign is already complete. The creative must be VALID; a PENDING one is a wait, not a failure. Only ONE ad per ad group can be ENABLED at a time, so enabling this one means pausing whichever ad serves there now. Its creative and ad group are locked at creation: to serve a different creative, create a NEW ad and delete this one, which is Apple’s own instruction so delivery history stays traceable. NO CONFIRMATION IS NEEDED even inside a live ad group, and that is deliberate rather than an oversight: a paused ad cannot serve and does not displace whichever ad is serving there, so gating it would be friction with no safety behind it. Free.

ParameterTypeDescription
adGroupIdrequiredstringREQUIRED.
creativeIdrequiredstringREQUIRED — from create_apple_ads_creative.
namerequiredstringREQUIRED.

upload_apple_ads_asset#

Upload an Apple Ads image asset

Upload an image into the Apple Ads asset library for an APPLE MAPS brand creative. APPLE MAPS ONLY, and that is Apple’s rule rather than ours: it refuses uploads for App Store apps outright, because an App Store ad is rendered from the app’s product page in App Store Connect and not from an image anyone uploads. That refusal is stated up front instead of being sent and rejected, so if you want a different-looking App Store ad the answer is App Store Connect, not this tool. PNG, JPG or HEIC. Pass imageUrl (upload_file turns a local file into one) and brandId, which list_apple_ads_brands returns. Apple processes the upload asynchronously, so re-read it with list_apple_ads_assets until its eligibility says it is ready before referencing it in a creative. Uploading spends nothing. Free.

ParameterTypeDescription
imageUrlrequiredstringREQUIRED — a PNG, JPG or HEIC image Hermoso can fetch.
brandIdrequiredstringREQUIRED — the Apple Maps brand this asset belongs to.
filenamestringDecides the format Apple is told; defaults to the name in the URL.
promotedObjectType"BUSINESS_BRAND"Only BUSINESS_BRAND is accepted.

list_apple_ads_assets#

List Apple Ads image assets read-only

Images in the Apple Ads asset library with format, orientation, dimensions and eligibility — use it to check whether an uploaded asset has finished processing before referencing it in a creative. Filter by brandId (Apple’s promotedObjectId), promotedObjectType or assetType, or pass id for one. CROPS AND OTHER VARIANTS NEVER APPEAR IN A LIST: Apple omits them from query results, so a variant has to be fetched by its own id. Querying covers both App Store apps and Apple Maps brands even though only Maps assets can be uploaded. Read-only, free.

ParameterTypeDescription
idstringFetch one asset — the only way to see a crop or variant.
brandIdstringScope to one brand or app (promotedObjectId).
promotedObjectType"APPSTORE_APP" | "BUSINESS_BRAND"
assetType"IMAGE"
limitnumber
offsetnumber

APPLE ADS: APPLE MAPS

list_apple_ads_brands#

List Apple Maps brands read-only

The Apple Maps brands on this Apple Ads account. A BRAND IS THE ROOT OF EVERY ADS-ON-APPLE-MAPS CAMPAIGN and its id is what three other calls need: it is the promotedObjectId of a BUSINESS_BRAND campaign, the brandId upload_apple_ads_asset uploads against, and the brandId a LOCAL_ADS_SEARCH_CREATIVE carries. A brand must read eligibility ELIGIBLE before Apple will let a campaign use it. YOU CANNOT CREATE A BRAND HERE and that is Apple’s design, not a gap: brands come from Apple Business Connect, and Ads on Apple Maps additionally need the ad account to carry productFeatures BUSINESS_BRAND_MANUAL plus a BUSINESS_BRAND delegation, neither of which any API can grant. AN EMPTY LIST IS THE NORMAL ANSWER FOR AN APP STORE ADVERTISER and does not mean anything is broken — App Store campaigns need no brand at all. Read-only, free.

ParameterTypeDescription
brandIdstringFetch one brand by id.
namestring
countryOrRegionstringTwo-letter code, e.g. "US".
eligibilityStatusstringUsually ELIGIBLE — only an ELIGIBLE brand can be used in a campaign.
limitnumber
offsetnumber

list_apple_ads_locations#

List Apple Maps business locations read-only

The physical business locations behind an Apple Maps brand — the shops, restaurants or service centres an Ads-on-Apple-Maps campaign promotes. Filter by brandId (do: without it Apple returns every location across every brand, which can be a very large page), plus status, eligibility or address. LOCATIONS ARE READ-ONLY THROUGH THIS API BY APPLE’S DESIGN: Apple Business Connect creates and maintains them, so a missing shop, a wrong address or a closure is fixed there and appears here afterwards — there is no create, update or delete to look for. Only a location with status OPEN and eligibility ELIGIBLE is targetable. You do not target locations directly: collect the ids you want, put them in a location group with create_apple_ads_location_group, then point an ad group at that group. Read-only, free.

ParameterTypeDescription
idstringFetch one location.
brandIdstringStrongly recommended — scopes to one brand.
status"OPEN" | "OPENING_SOON" | "CLOSED" | "MOVED" | "TEMPORARILY_CLOSED"Usually OPEN — only OPEN locations are targetable.
eligibilityStatus"ELIGIBLE" | "INELIGIBLE" | "LIMITED" | "PENDING" | "UNDEFINED"
countryOrRegionstringTwo-letter code.
adminAreastringFull state or province name, e.g. "California".
localitystringCity name.
postalCodestring
namestring
limitnumber
offsetnumber

list_apple_ads_location_groups#

List Apple Maps location groups read-only

The location groups on this Apple Ads account — named sets of a brand’s shops that an ad group targets. Each row carries its type (STATIC or DYNAMIC), Apple’s systemStatus and groupTotal, the number of locations currently in it. READ groupTotal BEFORE TARGETING A GROUP: a DYNAMIC group sits at PENDING while Apple evaluates its rules, and a group that evaluated to ZERO is Apple’s one silent failure here — it reports no error, so a rule spelled "CA" instead of "California" builds an empty group that looks fine. Soft-deleted groups are excluded unless you pass includeDeleted. There is no filter for "which groups contain this location": query by brandId and inspect membership. Read-only, free.

ParameterTypeDescription
idstringFetch one group.
brandIdstring
namestringSubstring match.
groupType"STATIC" | "DYNAMIC"
includeDeletedbooleanDeleted groups are hidden by default.
eligibilityStatusstring
limitnumber
offsetnumber

create_apple_ads_location_group#

Create an Apple Maps location group

Create a location group — the set of a brand’s shops an Apple Maps ad group promotes. TWO KINDS. STATIC takes an explicit locationIds list (from list_apple_ads_locations) and is VALID immediately. DYNAMIC takes rules and maintains itself as the brand opens and closes shops, but starts PENDING while Apple evaluates them — wait for systemStatus VALID before targeting it. A RULE THAT MATCHES NOTHING IS APPLE’S ONE SILENT FAILURE HERE: it returns no error and simply builds a group with groupTotal 0, so adminArea must be the FULL English name ("California", never "CA") and locality must be countryOrRegion|adminArea|locality ("US|New York|Brooklyn", never "Brooklyn") — both shapes are refused here before the group is built. A group SPENDS NOTHING and does not decide who sees the ad or how near they are: it only scopes WHICH shops the ad group promotes, while radius and geo targeting on the ad group decide reach. brandId and the ad account are locked in permanently at creation. Target it afterwards with create_apple_ads_ad_group(targeting.locationGroupIds) or update_apple_ads_object(level:"adgroup"). Free.

ParameterTypeDescription
namerequiredstringREQUIRED.
brandIdrequiredstringREQUIRED — from list_apple_ads_brands. Immutable afterwards.
groupType"STATIC" | "DYNAMIC"Default STATIC. Immutable afterwards.
locationIdsstring[]REQUIRED for STATIC — ids from list_apple_ads_locations.
rulesobject[]REQUIRED for DYNAMIC. value is a string for EQUALS/NOT_EQUALS and an array for IN/NOT_IN.
descriptionstring

SUGGESTIONS · RECOMMENDATIONS · INSIGHTS · CHANGE HISTORY ·…

apple_ads_keyword_suggestions#

Apple Ads keyword, phrase and category suggestions read-only

Apple’s OWN search data for an app you advertise — the fastest way to build a real Apple Search Ads keyword list instead of guessing. THE THREE KINDS DO NOT SHARE A FILTER VOCABULARY and Apple 400s any field that is not an attribute of the one you query, so each takes different parameters. kind:"keyword" (the default) returns suggested keyword strings and accepts `terms` + `countriesOrRegions` — it has NO queryType, and passing one is refused. kind:"phrase" returns longer search phrases and REQUIRES `phrases` (the phrases to look up); kind:"category" returns App Store categories and REQUIRES `categories`. Neither accepts `terms`. POPULARITY IS RELATIVE, NOT A VOLUME: it ranks terms against each other and cannot be read as searches per month. queryType defaults to "SEARCH", which looks up phrases/categories you name; "SUGGESTION" asks Apple to discover new ones and IS CURRENTLY BROKEN AT APPLE — measured 2026-08-17, it hangs ~34s and returns a server error for a request identical to Apple’s own published example, so retrying will not clear it. REQUIRED: promotedObjectId — the app’s adamId (search_apple_ads_apps with no arguments lists the apps this organization owns) or an Apple Maps brandId. An empty result is about the APP, not the account. Feed the winners straight into add_apple_ads_keywords or bulk_apple_ads_keywords. Read-only, free, spends nothing.

ParameterTypeDescription
kind"keyword" | "phrase" | "category"Default keyword. Each kind takes DIFFERENT filters — see the description.
promotedObjectIdrequiredstringREQUIRED — the app’s adamId, or an Apple Maps brandId.
promotedObjectType"APPSTORE_APP" | "BUSINESS_BRAND"Default APPSTORE_APP.
termsstring[]kind:"keyword" ONLY. Seed search terms to expand from, e.g. ["productivity","task management"]. Refused on phrase/category.
phrasesstring[]kind:"phrase" ONLY, and REQUIRED there on the SEARCH route — the phrases to look up, e.g. ["best productivity app"].
categoriesstring[]kind:"category" ONLY, and REQUIRED there on the SEARCH route — the App Store categories to look up, e.g. ["Utilities"].
countriesOrRegionsstring[]ISO 3166-1 alpha-2, e.g. ["US","GB"].
queryType"SUGGESTION" | "SEARCH"phrase/category ONLY (refused on keyword). Default SEARCH. SUGGESTION is measured BROKEN at Apple — ~34s then a server error.
limitnumber
offsetnumber

apple_ads_target_cpa_suggestion#

Apple Ads suggested target CPA read-only

What Apple thinks an install should cost you. Returns the suggested target CPA for an app — the MAXIMUM tap-install CPI Apple observed across that app’s eligible markets over the last 28 days, together with the market that produced it. Only markets with at least 10 installs in that window qualify, so a brand-new or low-volume app legitimately has no suggestion yet and that is an answer, not a failure. This is the number to put on a MAX_CONVERSIONS campaign, where the campaign-level bid IS the target CPA — it is NOT a per-tap bid and does not belong on a MANUAL_CPT campaign, which refuses a campaign-level bid outright. Scope it with countriesOrRegions to ask about specific markets. Read-only, free, spends nothing.

ParameterTypeDescription
promotedObjectIdrequiredstringREQUIRED — the app’s adamId.
promotedObjectType"APPSTORE_APP" | "BUSINESS_BRAND"Default APPSTORE_APP.
countriesOrRegionsstring[]ISO 3166-1 alpha-2 markets to consider, e.g. ["US","GB","CA"].

list_apple_ads_recommendations#

List Apple Ads recommendations read-only

Apple’s own optimisation engine for this account: campaigns it thinks are budget-capped, and campaigns whose target CPA it thinks should move. type:"daily_budget" returns DAILYCAP recommendations, each carrying the current and suggested budget plus the historical installs/taps/spend behind it AND Apple’s projection if you raise it; type:"target_cpa" returns TCPA recommendations, which Apple produces ONLY for campaigns on a Maximize Conversions bid strategy — a MANUAL_CPT campaign will never have one. Defaults to state AVAILABLE because that is the only actionable state: APPLIED and DISMISSED are terminal and can never be re-actioned (pass state:"ALL" to see the history). Apple names only two recommendation categories with endpoints; its enum also mentions keyword and bid categories but this API version publishes no way to query or act on those. Read-only, free — reading changes nothing.

ParameterTypeDescription
type"daily_budget" | "target_cpa"Default daily_budget.
promotedObjectIdrequiredstringREQUIRED — the app’s adamId, or an Apple Maps brandId.
promotedObjectType"APPSTORE_APP" | "BUSINESS_BRAND"Default APPSTORE_APP.
statestringAVAILABLE (default), APPLIED, DISMISSED, DELETE, or "ALL" to skip the filter.
limitnumber
offsetnumber

apply_apple_ads_recommendation#

Apply an Apple Ads recommendation

THIS CHANGES WHAT A LIVE CAMPAIGN MAY SPEND, and it is the only tool in the Apple Ads suggestion/recommendation family that touches money. Applying a daily-budget recommendation raises that campaign’s daily budget to Apple’s suggested amount; applying a target-CPA recommendation moves the CPA its auto-bidder chases. REQUIRES confirm:true, and the refusal you get without it is built from the recommendation READ BACK FROM APPLE — it names the campaign, states current → recommended, and quotes Apple’s own projected spend at the new level — so you are confirming a specific change to a specific campaign rather than confirming that you pressed a button. Pass amount to apply a DIFFERENT number than Apple suggested; omit it to take Apple’s. The campaign’s STATUS IS NOT TOUCHED: this moves a ceiling, it never enables or pauses anything, and it does not make a paused campaign start spending. Only an AVAILABLE recommendation can be applied and applying is TERMINAL. The reply is confirmed by re-reading the CAMPAIGN, not by Apple’s acknowledgement. Free to call; the spending it enables is real.

ParameterTypeDescription
type"daily_budget" | "target_cpa"Default daily_budget.
idrequiredstringREQUIRED — the recommendation id from list_apple_ads_recommendations.
promotedObjectIdrequiredstringREQUIRED — the same app or brand id the recommendation was queried for.
promotedObjectType"APPSTORE_APP" | "BUSINESS_BRAND"Default APPSTORE_APP.
amountstringOverride Apple’s suggestion with your own decimal amount, e.g. "500.00". Omit to apply what Apple suggested.
currencystringISO 4217; defaults to the ad account’s currency.
confirmbooleanREQUIRED true. Without it nothing changes and the refusal states the campaign and the exact budget or CPA change.

dismiss_apple_ads_recommendation#

Dismiss an Apple Ads recommendation

Decline an Apple Ads recommendation. NOTHING ABOUT THE CAMPAIGN CHANGES — no budget moves, no CPA moves, no status changes — it records that you reviewed the recommendation and said no, and Apple stops offering that particular one (it may generate a new one later). No confirmation is needed and that is deliberate rather than an oversight: dismissing cannot spend money, and gating the safe direction is what teaches people to pass confirm reflexively on the direction that matters. Only an AVAILABLE recommendation can be dismissed; APPLIED and DISMISSED are terminal, and trying to re-action one is refused for free. Free.

ParameterTypeDescription
type"daily_budget" | "target_cpa"Default daily_budget.
idrequiredstringREQUIRED — the recommendation id.
promotedObjectIdrequiredstringREQUIRED — the same app or brand id the recommendation was queried for.
promotedObjectType"APPSTORE_APP" | "BUSINESS_BRAND"Default APPSTORE_APP.

apple_ads_impression_share#

Apple Ads impression share read-only

COMPETITIVE INTELLIGENCE: what fraction of the available impressions your app actually captures for each search term, by market and day or week. This is the report that finds where you are being out-bid or out-budgeted — a LOW share on a term with high search popularity means budget, bid or eligibility is capping your reach on a term people are really searching, which is the most actionable row Apple publishes. READ THE ENCODING BEFORE QUOTING A NUMBER: lowImpressionShare and highImpressionShare are TIERED, not continuous. Below 91% the two are equal and read as a single percentage; a row where they diverge to 0.91 and 1.0 means ">90%", not "91 to 100". granularity DAILY covers at most 30 days; WEEKLY_SUN_SAT covers at most 4 weeks and its start date MUST be a Sunday (both are refused for free before any request). reportType FIRST_SLOT (default) is the top ad position only; ALL_SLOTS aggregates every position. Timezone is fixed to UTC by Apple. Read-only, free.

ParameterTypeDescription
promotedObjectIdrequiredstringREQUIRED — the app’s adamId. Apple answers 400 without it.
countryOrRegionstring[]ISO 3166-1 alpha-2, e.g. ["US"].
startrequiredstringREQUIRED YYYY-MM-DD. Must be a SUNDAY when granularity is WEEKLY_SUN_SAT.
endrequiredstringREQUIRED YYYY-MM-DD.
granularity"DAILY" | "WEEKLY_SUN_SAT"Default DAILY (max 30-day window). WEEKLY_SUN_SAT allows at most 4 weeks.
reportType"FIRST_SLOT" | "ALL_SLOTS"Default FIRST_SLOT.
limitnumber
offsetnumber

apple_ads_search_term_popularity#

Apple Ads search term popularity read-only

The most-searched App Store terms in a genre and market — MARKET-WIDE DEMAND, not your own performance, so it works for finding terms to target before you have spent anything. Cross-read it against apple_ads_impression_share: a term ranking high here where your impression share is low is exactly where budget or bid is leaving installs on the table. genre is a FREE-TEXT App Store genre name (e.g. "PRODUCTIVITY_UTILITIES", "TRAVEL") and Apple publishes no fixed enum, so it is forwarded as given rather than validated against a list that would go stale. granularity WEEKLY_SUN_SAT uses fixed Sunday–Saturday weeks generated Mondays at 07:00 UTC with 65 weeks of retention; MONTHLY uses calendar months refreshed on the 5th UTC with 15 months of retention — an empty result for a very recent window usually means Apple has not generated that period yet rather than that there is no demand. NOTE THE GRANULARITY SETS DIFFER between the two insights reports: DAILY exists on impression share and NOT here. Read-only, free.

ParameterTypeDescription
countryOrRegionstring[]ISO 3166-1 alpha-2, e.g. ["US","GB","DE"].
genrestring[]App Store genre names, free text, e.g. ["PRODUCTIVITY_UTILITIES"].
startrequiredstringREQUIRED YYYY-MM-DD. Must be a SUNDAY when granularity is WEEKLY_SUN_SAT.
endrequiredstringREQUIRED YYYY-MM-DD.
granularity"WEEKLY_SUN_SAT" | "MONTHLY"Default WEEKLY_SUN_SAT. DAILY does NOT exist on this report.
limitnumber
offsetnumber

apple_ads_change_history#

Apple Ads change history read-only

Who changed what on this Apple Ads account, and when. Call it with start and/or end to get one row per TRANSACTION GROUP — a single user action that may have touched several fields, which is what changeCount counts — with the user, the entity and the event type (CREATE / UPDATE / DELETE). Then pass a row’s detailId back as detailId to get the field-by-field before and after. THE TIME BOUND IS MANDATORY: Apple answers 400 without one, so pass start (meaning "since then"), end ("up to then"), or both. Narrow with campaignId, adGroupId, entityType, eventType or userId. Useful for "why did this campaign’s budget change overnight" and for reconstructing what an agent did on the account. On a CREATE event the old values are empty by design; a DELETE is implemented as a record update so its old values ARE populated. Read-only, free.

ParameterTypeDescription
detailIdstringFetch field-level detail for ONE change. This is a COMPOSITE id ({transactionId}-{entityType}-{entityId}) that appears on each summary row — not a campaign or ad group id.
startstringYYYY-MM-DD. Required unless end or an explicit eventTime filter is given.
endstringYYYY-MM-DD.
filtersobject[]Extra conditions, e.g. [{"field":"campaignId","operator":"EQUALS","value":"123"}]. Non-time fields accept only EQUALS and IN.
limitnumber
offsetnumber

list_apple_ads_budget_orders#

List Apple Ads budget orders read-only

Budget orders on this Apple Ads account — a spend CEILING SHARED ACROSS CAMPAIGNS, which is how an agency caps a client for a quarter: total spend across every campaign assigned to one cannot exceed its value, however generous the individual daily budgets are. Each row carries the value, the active window, the systemStatus and, when it is blocking, the systemStatusReasons saying why (EXHAUSTED, EXPIRED, CANCELLED). Pass id for one. AN EMPTY LIST IS NORMAL: a budget order is optional, and without one each campaign is capped only by its own dailyBudget. Read-only, free.

ParameterTypeDescription
idstringFetch one budget order, including its invoice details and assigned ad accounts.
filtersobject[]Query conditions, e.g. [{"field":"name","operator":"CONTAINS","value":"Q3"}].
limitnumber
offsetnumber

create_apple_ads_budget_order#

Create an Apple Ads budget order

A BUDGET ORDER NEEDS A LINE OF CREDIT ORGANIZATION. Measured on prod 2026-08-17 against org 19534840 (PAYG): Apple answers 403 “The organization does not have a Line of Credit(LOC). Creating Budget Order is permissible only for LOC Organizations. [FORBIDDEN]” — so on a pay-as-you-go account this whole family is unusable and no request shape fixes it. That is Apple’s account tier, not a Hermoso limit and not something to reconnect over. Create a shared spending ceiling that campaigns can draw from. A BUDGET ORDER SPENDS NOTHING AND CANNOT MAKE ANYTHING SERVE — it is a cap, so creating one can only ever reduce what campaigns may spend, never raise it, which is why it takes no confirmation. Nothing draws from it until you set a campaign’s budgetOrderId. TWO APPLE RULES ARE ENFORCED FOR FREE BEFORE ANYTHING IS SENT, because Apple’s own 400s name the field rather than the rule: startTime must be TOMORROW OR LATER at midnight UTC (today is rejected outright), and exactly ONE ad account may be attached — which is why adAccountId is a single value and defaults to the account this connection is pinned to. Omit endTime for an open-ended budget. Apple requires invoice contact details, so primaryBuyerEmail and billingEmail are required and are never invented. Free.

ParameterTypeDescription
namerequiredstringREQUIRED.
startTimerequiredstringREQUIRED. Must be TOMORROW or later (midnight UTC) — Apple rejects today.
endTimestringOmit for an open-ended budget.
amountrequiredstringREQUIRED total budget as a decimal string, e.g. "50000.00".
currencystringISO 4217; defaults to the ad account’s currency, which it must match.
primaryBuyerEmailrequiredstringREQUIRED — Apple bills and notifies this address.
billingEmailrequiredstringREQUIRED.
invoiceNamestring
orderNumberstring
clientNamestring
primaryBuyerNamestring

update_apple_ads_budget_order#

Update an Apple Ads budget order

Change a budget order: its name, window, total value, attached ad account or invoice details. Only the fields you send change; everything omitted keeps its value. RAISING `amount` IS HOW YOU EXTEND A BUDGET APPROACHING EXHAUSTION — an exhausted budget order stops every campaign drawing from it, so this is the tool to reach for when campaigns stop serving with budget left on their own daily caps. AN END DATE ON AN ACTIVE BUDGET ORDER CAN ONLY BE SHORTENED, NEVER EXTENDED; the one exception is openEnded:true, which clears the end date entirely and makes the budget run indefinitely. startTime, if changed, must still be tomorrow or later. Free.

ParameterTypeDescription
idrequiredstringREQUIRED.
namestring
startTimestringMust still be TOMORROW or later.
endTimestringCan only SHORTEN an active budget order’s window.
openEndedbooleantrue clears the end date entirely, making the budget open-ended. This is the only way to extend rather than shorten.
amountstringNew total, e.g. "75000.00". Raise it to extend a budget nearing exhaustion.
currencystring
adAccountIdstringExactly one — Apple rejects more.
orderNumberstring
invoiceNamestring
clientNamestring
primaryBuyerNamestring
primaryBuyerEmailstring
billingEmailstring

bulk_apple_ads_keywords#

Bulk create or update Apple Ads keywords

Create or update up to 1,000 Apple Ads keywords or negative keywords in ONE call — how you seed a whole campaign structure from apple_ads_keyword_suggestions, or re-bid a list after a performance review, instead of one call per keyword. A single request can span DIFFERENT AD GROUPS. op:"create" takes full keyword rows; op:"update" takes ids and can change ONLY bid and status, because a keyword’s text and matchType are immutable after creation — changing either means deleting it and creating a new one. ALLOW-PARTIAL-SUCCESS MATTERS AND APPLE’S DEFAULT IS ALL-OR-NOTHING: with it unset, one bad item (a duplicate text/matchType, say) rejects the ENTIRE batch and nothing is written; pass allowPartialSuccess:true to let the good ones land and read the per-item errors. The reply is the per-item read-back Apple returns — each row carries the stored id, text, matchType and status, so you can see exactly which items landed rather than trusting a 200. Adding keywords into an ENABLED ad group can serve on the next auction and therefore takes confirm:true, the same guard add_apple_ads_keywords uses. Apple caps 1,000 per call and 5,000 per ad group in total. Free.

ParameterTypeDescription
kind"keyword" | "negative_keyword"Default keyword.
op"create" | "update"Default create.
itemsrequiredobject[]REQUIRED. create: [{adGroupId,text,matchType,bid?}] for keywords, or [{campaignId|adGroupId,text,matchType}] for negatives. update: [{id,bid?,status?}].
allowPartialSuccessbooleantrue keeps the items that succeeded when others fail. Apple’s default is all-or-nothing.
currencystringISO 4217 for bids; defaults to the ad account’s currency.
confirmbooleanRequired only when the target ad group or campaign is already ENABLED, where the new keywords could serve immediately.

search_apple_ads_geo#

Search Apple Ads geo locations read-only

Resolve a place NAME into the geo id an Apple Ads ad group actually targets. THIS IS THE ONLY WAY TO GET THOSE IDS: an ad group’s targeting takes adminAreaIds / localityIds / postalCodeIds / countryIds, it does NOT accept place names, and nothing else in Hermoso produces one — so without this tool those targeting fields cannot be used at all. (A campaign’s own `countries` field is a different thing and takes plain ISO country codes.) supplySource is REQUIRED and is not a formality: APPSTORE has NO PostalCode entity (postal codes are a Maps-level geo), and MAPS has NO Country entity and covers only the US and Canada — both are refused for free with the reason. Pass query with at least 2 characters, or "*" to list everything at an entity level. Rows flagged soft-blocked (low search volume, sparse coverage) are still targetable — Apple returns them by default with their eligibility attached. To go the other way and look UP ids you already have, pass geos:[{id|legacyId, entity}] instead of query. Read-only, free.

ParameterTypeDescription
supplySourcerequired"APPSTORE" | "MAPS"REQUIRED. APPSTORE for App Store campaigns, MAPS for Apple Maps. Decides which entity types exist.
querystringName to search, minimum 2 characters. "*" returns everything at the entity level.
entity"Country" | "AdminArea" | "Locality" | "PostalCode"Narrow to one granularity.
countryCodestringISO 3166-1 alpha-2 to scope the search.
eligiblebooleanfalse excludes soft-blocked geos entirely. Default includes them with eligibility data.
geosobject[]Look UP known geos instead of searching by name: [{"id":"12345","entity":"Locality"}] or [{"legacyId":"US|CA|SanFrancisco","entity":"Locality"}]. Exactly one of id or legacyId per entry.
limitnumber
offsetnumber

list_apple_ads_supported_languages#

List Apple Ads supported languages read-only

Every country and region Apple Ads serves, with the languages supported in each market. Use it to VALIDATE A LOCALE BEFORE setting it on an Apple Maps creative’s localizedText or defaultLocale, or on an ad group — a locale a market does not support makes the creative INVALID after it is built, which surfaces as a serving failure long after the mistake was made. Also the definitive answer to "can we advertise in this market and in what language" when expanding a campaign. Read-only, free.

ParameterTypeDescription
filtersobject[]Scope to specific markets, e.g. [{"field":"countryCode","operator":"IN","value":["US","DE"]}].
limitnumber
offsetnumber

get_apple_ads_ad_account#

Get an Apple Ads ad account read-only

The full record for an Apple Ads ad account — its name, currency, timezone, payment model, productFeatures and the advertiser resources delegated to it. Called with no id it returns the account this connection is pinned to. THE FIELD THAT DECIDES WHAT THIS ACCOUNT CAN DO IS productFeatures, and it is IMMUTABLE: APPSTORE_APP_MANUAL can never run Apple Maps ads and BUSINESS_BRAND_MANUAL can never run App Store ads, so an organization that needs both keeps a separate ad account for each. currency, timeZone and paymentModel are inherited from the organization and are immutable too — which is why a campaign’s amounts must be in this currency and cannot be mixed. Read-only, free.

ParameterTypeDescription
idstringDefaults to the ad account this Apple Ads connection resolved.

list_apple_ads_advertiser_resources#

List Apple Ads advertiser resources read-only

The brands and content providers this Apple Ads ORGANIZATION can delegate to an ad account — the ids create_apple_ads_ad_account and update_apple_ads_ad_account need. resourceType CONTENT_PROVIDER returns App Store Connect content providers, each identified by its CPID, which is what links an ad account to App Store advertising; BUSINESS_BRAND returns Apple Maps brands by Brand ID. resourceType is REQUIRED — Apple errors without it. This list is ORGANIZATION-WIDE and is deliberately not scoped to any one ad account, which is why a resource can appear here that no account has claimed yet. Read-only, free.

ParameterTypeDescription
resourceTyperequired"CONTENT_PROVIDER" | "BUSINESS_BRAND"REQUIRED. CONTENT_PROVIDER = App Store (CPID); BUSINESS_BRAND = Apple Maps (Brand ID).

create_apple_ads_ad_account#

Create an Apple Ads ad account

Create a new ad account under this Apple Ads organization — the container an agency opens per client, or a business opens to run Apple Maps ads alongside App Store ones. AN AD ACCOUNT SPENDS NOTHING: it holds campaigns, and every campaign inside it is still born PAUSED. productFeatures is REQUIRED, is a CHOICE OF ONE, and is IMMUTABLE FOREVER — APPSTORE_APP_MANUAL for App Store advertising or BUSINESS_BRAND_MANUAL for Apple Maps, never both, and an organization needing both keeps two accounts. Delegations must MATCH that choice: an App Store account delegates a CONTENT_PROVIDER (a CPID from list_apple_ads_advertiser_resources), a Maps account delegates a BUSINESS_BRAND — a mismatch is refused for free here, because Apple accepts it and you get an account that cannot advertise anything. currency, timeZone and paymentModel are inherited from the organization and cannot be set. NOTE: Hermoso keeps writing to the ONE ad account this connection is pinned to — reconnect Apple Ads and choose the new account to build inside it. Free.

ParameterTypeDescription
namerequiredstringREQUIRED.
productFeaturesrequired"APPSTORE_APP_MANUAL" | "BUSINESS_BRAND_MANUAL"REQUIRED and IMMUTABLE. App Store or Apple Maps, never both.
delegationsobject[][{"resourceType":"CONTENT_PROVIDER","resourceId":"<CPID>"}] for App Store, or BUSINESS_BRAND + Brand ID for Maps. Must match productFeatures.

update_apple_ads_ad_account#

Update an Apple Ads ad account

Rename an Apple Ads ad account or change which advertiser resources it delegates — how you link App Store Connect (a CONTENT_PROVIDER / CPID) to an account that cannot yet advertise an app, or attach a brand for Apple Maps. WARNING: DELEGATIONS REPLACE RATHER THAN MERGE. The list you send becomes the account’s ENTIRE delegation set and anything omitted is removed, so to ADD one, read the current set with get_apple_ads_ad_account, append to it, and send the whole list back. productFeatures cannot be changed and Apple ignores it on update — an App Store account can never be converted into an Apple Maps one; create a second ad account instead. currency, timeZone and paymentModel are immutable, inherited from the organization. Free.

ParameterTypeDescription
idstringDefaults to the ad account this connection resolved.
namestring
delegationsobject[]REPLACES the entire set. [{"resourceType":"CONTENT_PROVIDER","resourceId":"<CPID>"}].

X: managing what you built

update_x_ads_campaign#

Change an X campaign budget or settings

Change a LIVE X campaign — budget, name, delivery pacing. THIS IS HOW YOU THROTTLE OR RAISE SPEND on a running campaign without rebuilding it, and lowering dailyBudget is the fastest way to slow money down short of pausing. Budgets are in the ad account's own currency. Only fields X actually applies are offered: startTime/endTime are DEPRECATED on an X campaign (its schedule lives on the LINE ITEM — use update_x_ads_line_item) and frequency capping needs an X account feature we cannot enable, so both are refused BY NAME with the reason instead of being sent and silently ignored. THE READ-BACK IS A DIFF against the before-state: a field X did not move is reported as REFUSED, never counted as applied. Print the returned note verbatim.

ParameterTypeDescription
accountIdrequiredstring
campaignIdrequiredstringfrom list_x_ads_campaigns
namestring
dailyBudgetnumberin the ad account's currency
totalBudgetnumber
standardDeliverybooleanfalse = accelerated: spend the budget as fast as the auction allows
purchaseOrderNumberstring

update_x_ads_line_item#

Change an X line item (ad group)

Change an X line item — BID, bid strategy, SCHEDULE, goal or name. An X campaign's start and end times are deprecated, so the schedule genuinely lives HERE. Lowering `bidAmount` is also the fix when X refuses a campaign budget with “Bid is too close to Budget”. NOT changeable after creation: `objective` and `productType` — X answers 200 and silently keeps the old value (measured), so both are refused BY NAME here and a different objective means a NEW line item. Changing `goal` also requires `bidAmount` (X refuses the goal alone) and that is stated up front rather than relayed. A line-item dailyBudget/totalBudget is only legal when the parent campaign is NOT budget-optimised — that is the campaign's setting, so those two are forwarded and X's own refusal names the remedy rather than Hermoso blocking a legal edit. THE READ-BACK IS A DIFF against an independent re-read: a field X accepted but did not move is reported as REFUSED. Print the returned note verbatim.

ParameterTypeDescription
accountIdrequiredstring
lineItemIdrequiredstringfrom list_x_ads_line_items
namestring
bidAmountnumberin the ad account's currency
bidStrategy"AUTO" | "GUARANTEED" | "MAX" | "TARGET"
goal"APP_CLICKS" | "APP_INSTALLS" | "APP_PURCHASES" | "ENGAGEMENT" | "FOLLOWERS" | "LINK_CLICKS" | "MAX_REACH" | "PREROLL" | "PREROLL_STARTS" | "REACH_WITH_ENGAGEMENT" | "SITE_VISITS" | "SOCIAL_ENGAGEMENT" | "VIDEO_VIEW" | "VIEW_15S" | "VIEW_3S_100PCT" | "VIEW_6S" | "WEBSITE_CONVERSIONS" | "WEBSITE_CONVERSIONS_V2"requires bidAmount too
startTimestringISO 8601
endTimestring
dailyBudgetnumberonly if the campaign is not budget-optimised
totalBudgetnumberonly if the campaign is not budget-optimised

list_x_ads_promoted_tweets#

List X promoted posts read-only

List the promoted posts (the CREATIVES) attached to an X line item, or across the whole ad account. Two things only this can tell you: each post's APPROVAL STATUS, so an ad X rejected — which can never serve however the statuses are set — is visible rather than mysterious; and the promoted-tweet ID, which is the only way to remove one. NOTE a promoted post cannot be PAUSED on X (its PUT accepts only an approval appeal), so the reversible way to stop it is to pause its LINE ITEM. Read-only, free.

ParameterTypeDescription
accountIdrequiredstring
lineItemIdstringscope to one line item
limitnumber

list_x_ads_targeting#

List an X line item’s targeting read-only

List every targeting criterion an X line item carries, WITH THE ID of each — the id needed to remove one with delete_x_ads_object. READ THE EMPTY CASE CORRECTLY: no targeting criteria on X means the line item is UNRESTRICTED and will reach the broadest possible audience once ACTIVE — it does NOT mean it cannot serve. Read-only, free.

ParameterTypeDescription
accountIdrequiredstring
lineItemIdrequiredstring

list_x_ads_funding_instruments#

List X ad account payment methods read-only

List the funding instruments (payment methods) on an X ad account — type, currency, credit limit, credit remaining, and whether each can currently fund a campaign. THIS IS THE ANSWER TO “why is my X campaign not delivering?” whenever the cause is a cancelled card or an exhausted credit line, which is invisible from the campaign itself, and it shows what a campaign will spend against BEFORE anyone activates it. Hermoso cannot add a payment method — that is done at ads.x.com. Read-only, free.

ParameterTypeDescription
accountIdrequiredstring

delete_x_ads_object#

Delete an X ads object (permanent, cascades) destructive

PERMANENTLY delete an X campaign, line item, promoted post or targeting criterion. X CASCADES AND PUBLISHES NO UNDO: deleting a campaign destroys its line items and their promoted posts too — verified live, the children answer 404 the moment the parent is deleted. RUN IT WITHOUT confirm FIRST: that deletes nothing and reports the REAL blast radius read back off X (what is underneath it, whether it is live, whether it has spent). Show the user exactly that, get an unambiguous yes, then call again with confirm:true — and, for anything with children / live delivery / real spend, also confirmName set to its exact name and confirmChildren set to the real count, because confirm:true alone proves you meant to delete SOMETHING and cannot prove you aimed at the right object. TO STOP DELIVERY WITHOUT DESTROYING ANYTHING use set_x_ads_status PAUSED, which is reversible — except for a promoted post, which cannot be paused on X at all, so pause its LINE ITEM instead. Removing a targeting criterion WIDENS the audience rather than narrowing it. The result is confirmed by re-reading the object, never by X's 200.

ParameterTypeDescription
accountIdrequiredstring
typerequired"campaign" | "line_item" | "promoted_tweet" | "targeting_criterion"
idrequiredstringcampaign/line-item id, or the id from list_x_ads_promoted_tweets / list_x_ads_targeting
lineItemIdstringREQUIRED for type "targeting_criterion" — X cannot look one up without its line item
confirmbooleanomit on the first call to see the blast radius
confirmNamestringthe target's exact name — required once it has children, is live, or has spent
confirmChildrennumberthe real number of children, from the unconfirmed call

X: the rest of the tree

list_x_ads_line_items#

List X ads line items read-only

List the line items on an X ad account — X's name for an ad group, and the level that carries the objective, the placements, the bid, the targeting and the creatives. Pass campaignId to scope it to one campaign. `servable` is X's own verdict on whether the line item could run. Read-only, free.

ParameterTypeDescription
accountIdrequiredstringfrom list_x_ads_accounts
campaignIdstring
limitnumber

create_x_ads_line_item#

Build an X ads line item (paused)

Create a line item — X's ad group — under a campaign. ALWAYS CREATED PAUSED with no override. THE TREE ON X IS campaign → line item → promoted post, and a campaign ALONE CANNOT SERVE: this is the middle level, and it still cannot serve until you attach a post with create_x_ads_promoted_tweet. Targeting attaches HERE (add_x_ads_targeting), never to the campaign. `objective` is validated before dispatch because X answers an invalid one with a 500 that reads like an outage; note that WEBSITE_CONVERSIONS and SITE_VISITS are `goal` values and are NOT objectives. `bidStrategy` MAX/TARGET require a bidAmount; AUTO lets X set it. Omitting startTime records now, and the read-back says so. Everything is READ BACK from X before you are told it exists; print the returned note verbatim.

ParameterTypeDescription
accountIdrequiredstringfrom list_x_ads_accounts
campaignIdrequiredstringfrom create_x_ads_campaign or list_x_ads_campaigns
namestring
objectiverequired"APP_ENGAGEMENTS" | "APP_INSTALLS" | "ENGAGEMENTS" | "FOLLOWERS" | "LEAD_GENERATION" | "PREROLL_VIEWS" | "REACH" | "VIDEO_VIEWS" | "WEBSITE_CLICKS"
productType"MEDIA" | "PROMOTED_ACCOUNT" | "PROMOTED_TWEETS"default PROMOTED_TWEETS
placements"ALL_ON_TWITTER" | "PUBLISHER_NETWORK" | "TAP_BANNER" | "TAP_FULL" | "TAP_FULL_LANDSCAPE" | "TAP_MRECT" | "TAP_NATIVE" | "TWITTER_MEDIA_VIEWER" | "TWITTER_PROFILE" | "TWITTER_REPLIES" | "TWITTER_SEARCH" | "TWITTER_TIMELINE"[]default ALL_ON_TWITTER
goal"APP_CLICKS" | "APP_INSTALLS" | "APP_PURCHASES" | "ENGAGEMENT" | "FOLLOWERS" | "LINK_CLICKS" | "MAX_REACH" | "PREROLL" | "PREROLL_STARTS" | "REACH_WITH_ENGAGEMENT" | "SITE_VISITS" | "SOCIAL_ENGAGEMENT" | "VIDEO_VIEW" | "VIEW_15S" | "VIEW_3S_100PCT" | "VIEW_6S" | "WEBSITE_CONVERSIONS" | "WEBSITE_CONVERSIONS_V2"
bidStrategy"AUTO" | "GUARANTEED" | "MAX" | "TARGET"
bidAmountnumberrequired for MAX/TARGET; in the ad account's currency
totalBudgetnumber
startTimestringISO 8601; defaults to now
endTimestring

create_x_ads_promoted_tweet#

Attach a post to an X line item (paused)

Attach an existing X post to a line item so the line item has a creative — the LAST piece of the tree, and without it nothing can ever serve however the statuses are set. The tweet id is the number at the end of the post URL (x.com/<handle>/status/<id>), not the URL. Several ids may be attached at once; X creates one promoted-tweet row per post. ATTACHMENT IS VERIFIED by re-reading the line item's own promoted posts rather than by trusting X's echo, and if that read cannot run the note says UNCONFIRMED instead of claiming success. Everything Hermoso built above this is PAUSED, so attaching a post starts no spend. Print the returned note verbatim.

ParameterTypeDescription
accountIdrequiredstring
lineItemIdrequiredstringfrom create_x_ads_line_item
tweetIdsrequiredstring[]post ids — digits only, from the end of the post URL

add_x_ads_targeting#

Target an X ads line item

Add targeting criteria to an X LINE ITEM. Targeting does NOT attach to a campaign on X — a campaign carries only budget and funding. Pass locationIds resolved with x_ads_geo_search, and/or criteria[] for any of X's other 37 targeting vocabularies when you already hold the ids. X takes ONE criterion per API call, so a set is several calls: each is reported individually, a partial failure NAMES what did not apply, and the line item's FULL targeting is read back afterwards so the answer is what the line item carries rather than what was sent. Adds no spend — the line item stays PAUSED.

ParameterTypeDescription
accountIdrequiredstring
lineItemIdrequiredstring
locationIdsstring[]opaque ids from x_ads_geo_search
criteriaobject[][{targetingType, targetingValue, operatorType?}] — operatorType defaults to EQ

x_ads_report#

X ads performance report read-only

Performance stats for X campaigns, line items or promoted posts. `placement` here is SINGULAR and comes from a FOUR-value set (ALL_ON_TWITTER / PUBLISHER_NETWORK / SPOTLIGHT / TREND) — deliberately not the twelve placements a line item accepts; do not carry one across. THE TRAP THIS REPORTS: an entity id that does not exist on the account answers 200 with every metric null, which is indistinguishable from a real zero, so an all-null response is FLAGGED rather than narrated as zero performance. Max 20 ids per call. Read-only, free.

ParameterTypeDescription
accountIdrequiredstring
entity"ACCOUNT" | "CAMPAIGN" | "FUNDING_INSTRUMENT" | "LINE_ITEM" | "MEDIA_CREATIVE" | "ORGANIC_TWEET" | "PROMOTED_ACCOUNT" | "PROMOTED_TWEET"default CAMPAIGN
entityIdsrequiredstring[]max 20
startTimestringISO 8601; defaults to 7 days before endTime
endTimestringISO 8601; defaults to now
granularity"HOUR" | "DAY" | "TOTAL"default TOTAL
placement"ALL_ON_TWITTER" | "PUBLISHER_NETWORK" | "SPOTLIGHT" | "TREND"default ALL_ON_TWITTER
metricGroups"BILLING" | "ENGAGEMENT" | "LIFE_TIME_VALUE_MOBILE_CONVERSION" | "MEDIA" | "MOBILE_CONVERSION" | "VIDEO" | "WEB_CONVERSION"[]default ENGAGEMENT

list_openai_ads_conversion_events#

List ChatGPT Ads conversion events read-only

List the conversion event settings on the connected ChatGPT Ads account. Their ids are what a campaign points at (conversionEventSettingIds) so it optimises for CONVERSIONS rather than raw clicks — without one, conversion-optimised bidding has nothing to optimise toward. Read-only, free.

ParameterTypeDescription
limitnumber

create_openai_ads_pixel#

Create a ChatGPT Ads pixel

Create a ChatGPT Ads web pixel — the thing that observes actions on the site. IT RECORDS NOTHING until its snippet is installed on the site, so say that rather than implying tracking is live. A pixel is a measurement definition and cannot spend. The next step is create_openai_ads_conversion_event, which says WHICH observed action counts as a conversion. AUTOMATIC ADVANCED MATCHING IS ON BY DEFAULT — that is OpenAI’s own default for pixels created through the Ads API since 2026-08-17, and it means the Pixel COLLECTS AND HASHES CUSTOMER INFORMATION (email, phone) from the page. Tell the user that in plain words, and pass automaticAdvancedMatching:false if they want it off. The reply reports what OpenAI actually stored: there is no endpoint to read a pixel back afterwards, so that one reply is the only record you will ever get.

ParameterTypeDescription
namerequiredstringa name for the pixel
automaticAdvancedMatchingbooleandefault true (OpenAI’s own default). false stops the Pixel collecting and hashing customer information from the page.

create_openai_ads_conversion_event#

Define a ChatGPT Ads conversion

Define what counts as a conversion on ChatGPT Ads, measured from one or more pixels. THIS IS THE PREREQUISITE for a conversion-optimised campaign: pass the returned id as conversionEventSettingIds to create_openai_ads_campaign. Creating one cannot spend and cannot serve — it is a definition, so it is not confirm-gated.

ParameterTypeDescription
namerequiredstring
eventTyperequiredstringe.g. order_created, lead_created, registration_completed — the plausible words "purchase", "lead" and "signup" are all REFUSED by ChatGPT Ads
sourceIdsrequiredstring[]pixel id(s) this event is measured from — from create_openai_ads_pixel
customEventNamestringfor a non-standard event
attributionWindowDaysnumber1-90

list_openai_ads_audiences#

List ChatGPT Ads custom audiences read-only

List the custom audiences on the connected ChatGPT Ads account. Read-only, free.

ParameterTypeDescription
limitnumber

create_openai_ads_audience#

Create a ChatGPT Ads custom audience

Create a ChatGPT Ads custom audience from a customer list. Pass plain emails and/or phone numbers: Hermoso NORMALISES AND SHA-256 HASHES THEM LOCALLY and uploads only the digests, so no plaintext personal data leaves Hermoso. MEASURED 2026-08-09: OpenAI’s ads file endpoint only accepts IMAGE mimetypes (gif/jpeg/png/webp) and rejects a customer-list CSV under every upload purpose, so audiences are UI-only for now — this tool reports OpenAI’s verbatim refusal and points the user at ChatGPT Ads Manager, and will start working unchanged the day a data-file path opens. Values that are neither an email nor a phone number are skipped and counted, never silently dropped. An audience is a definition and cannot spend.

ParameterTypeDescription
namerequiredstring
membersrequiredstring[]emails and/or phone numbers (already-SHA256-hashed emails are passed through as-is)
descriptionstring

create_openai_ads_campaign#

Build a ChatGPT Ads campaign (paused)

Build a campaign on the connected ChatGPT Ads account — the ads that appear below ChatGPT answers. ALWAYS created PAUSED at every level, with no override: it spends NOTHING until you activate it with set_openai_ads_status(confirm:true). The object graph is campaign → ad group → ad, and a campaign ON ITS OWN CANNOT SERVE AN IMPRESSION, so pass adGroup{name, maxBid, contextHints, ad{creative}} and this builds the whole tree. THE CREATIVE IS A TEXT + IMAGE CARD AND NOTHING ELSE — title 3–50 characters, body 100 maximum, one landing page, one still image. THERE IS NO VIDEO ON THIS CHANNEL: never offer a video ad here, and if the brand only has video, pull a frame from it first. TARGETING IS SEMANTIC: context hints are natural-language descriptions of the conversations where this ad belongs (up to 2,000 per ad group). Geo (countries / locationIds) and PLATFORMS (which of the iOS app, Android app and web the ad runs on) are the only other dimensions — leave platforms out to run on all three. They guide matching, they are NOT exact-match keywords, and they do not guarantee delivery. OpenAI’s own guidance is BREADTH — many genuinely distinct hints and many distinct title/body angles beat one message repeated — which is exactly what plan_variations and mine_angles produce. OpenAI has no atomic multi-object write available here, so the whole tree is VALIDATED before the first write; if a level below the campaign is still rejected, the campaign is left PAUSED (spending nothing) and the note says exactly what exists — nothing is archived behind your back, because archiving is irreversible. Everything is READ BACK from OpenAI before you are told it exists: print the returned note verbatim, and if it says the campaign cannot serve yet, say that rather than calling it a finished ad.

ParameterTypeDescription
namerequiredstringcampaign name, at least 3 characters
descriptionstring
dailyBudgetnumberdaily cap in the AD ACCOUNT’S currency — ChatGPT Ads’ own minimum for a DAILY budget is 25.00
lifetimeBudgetnumberlifetime cap in the account currency — no 25.00 floor applies here, so use this to spend less than that in total. Pass this and/or dailyBudget; a budget is required.
biddingType"impressions" | "clicks" | "conversions"default clicks (CPC). OpenAI suggests starting at a 3–5 max bid per click. "conversions" is oCPC — you still pay per click, but ChatGPT Ads optimises toward a conversion event, and it REQUIRES conversionEventSettingIds naming exactly one active event setting.
countriesstring[]2-letter country codes
locationIdsstring[]ids from openai_ads_geo_search — up to 2,500
platforms"ios_app" | "android_app" | "web"[]WHICH CHATGPT SURFACES THIS CAMPAIGN RUNS ON — OpenAI’s “Eligible platforms”: any of ios_app (the ChatGPT iOS app), android_app (the Android app) and web (chatgpt.com in a browser). OMIT IT to run on all three, which is the default and almost always right; naming a subset STOPS the ad serving everywhere else. There is no empty state — ChatGPT Ads refuses an empty list — so widening back means naming all three.
customAudienceIdsstring[]TARGET a CUSTOM AUDIENCE — ids from list_openai_ads_audiences (created with create_openai_ads_audience, then filled with members). Until 2026-08-12 an audience could be created AND uploaded and then pointed at nothing: this is the field that consumes them. Combines with geo — the ad reaches people in the named locations who are ALSO in these audiences.
excludedCustomAudienceIdsstring[]EXCLUDE custom audiences — same ids, opposite effect (suppressing existing customers, say). An id in BOTH lists is refused rather than resolved by a guess, because OpenAI does not document which side wins.
startTimenumberunix seconds
endTimenumberunix seconds
adGroupobjectbuild the ad group (and its ad) in the same call — a campaign alone cannot serve

create_openai_ads_ad_group#

Add a ChatGPT Ads ad group

Add an ad group to an existing ChatGPT Ads campaign. Created PAUSED by default. Bidding: pass maxBid for a fixed bid, or bidStrategy "maximize_clicks" / "maximize_conversions" to let ChatGPT Ads set the bid for the budget (OpenAI’s "Maximize results"), in which case maxBid is optional. Its context hints ARE the targeting on this platform: up to 2,000 natural-language descriptions of the conversations, topics or questions where this offering is relevant — not exact-match keywords, and no guarantee of delivery. Write many distinct ones rather than variations of the same phrase. If the parent campaign is already LIVE (active), creating this ad group active starts REAL AD SPEND on the next auction, exactly like activating it — show the user what would begin serving, get an explicit yes, then pass confirm:true. Leaving it paused never needs confirmation. The whole tree is READ BACK from OpenAI before you are told it exists.

ParameterTypeDescription
campaignIdrequiredstring
namerequiredstring
descriptionstring
maxBidnumbermax bid in the account currency — REQUIRED unless bidStrategy is a maximize_* one, which sets the bid itself
bidStrategy"fixed_bid" | "maximize_clicks" | "maximize_conversions"HOW THIS AD GROUP BIDS — OpenAI’s “Maximize results”. fixed_bid (default) uses your maxBid as a hard cap; maximize_clicks and maximize_conversions let ChatGPT Ads set the bid to get the most of that outcome for the budget, and with either of those maxBid is OPTIONAL. maximize_conversions additionally needs the CAMPAIGN on biddingType "conversions" with a conversion event setting attached.
billingEvent"click" | "impression"default click
contextHintsstring[]up to 2,000, deduplicated server-side
status"active" | "paused"default paused
confirmbooleanREQUIRED true to create this ACTIVE under a live campaign (real spend)

create_openai_ads_ad#

Create a ChatGPT Ads ad

Create the actual AD inside a ChatGPT Ads ad group — the object that carries the creative; a campaign or ad group alone shows nothing at all. The creative is a TEXT + IMAGE CARD: a title of 3–50 characters, body copy of 100 characters maximum, one landing page URL and one still image. THERE IS NO VIDEO FORMAT ON THIS PLATFORM — a video URL is refused outright, so never offer one. Created paused; creating it active inside a live ad group starts REAL AD SPEND, so that needs confirm:true. OpenAI REVIEWS every ad (usually a few minutes) and the ad is read back with its review status: until that says approved the ad CANNOT show, so report the review status rather than calling it live. The landing page is also checked against robots.txt for OAI-AdsBot / OAI-SearchBot blocks — a page that blocks those agents cannot run ChatGPT ads at all, and the note says so.

ParameterTypeDescription
adGroupIdrequiredstring
namestringinternal name — defaults to the title
creativerequiredobject
status"active" | "paused"default paused
confirmbooleanREQUIRED true to create this ACTIVE in a live ad group (real spend)

openai_ads_bulk#

ChatGPT Ads bulk create/update job

Create or update up to 1,000 ChatGPT Ads campaigns, ad groups and ads in ONE asynchronous job — the direct analogue of a Google Ads atomic mutate, and the only way to build a whole tree in a single call. Each operation is {operation_id, type, idempotency_key|target_resource_id, input}. Types: campaign.create, campaign.update, ad_group.create, ad_group.update, ad.create, ad.update. FORWARD REFERENCES are the point: set input.campaign_idempotency_key / input.ad_group_idempotency_key to another CREATE operation’s idempotency_key and the child attaches to the parent made in the same job (a key no operation mints is refused here, for free, rather than failing the whole job at OpenAI). EVERYTHING CREATED IS PAUSED and spends nothing — status:"active" on a create is overridden, and an UPDATE that would set "active" is REFUSED BY NAME, because one job could otherwise arm a thousand objects in a single call that no confirmation ever saw; turn things on one at a time with set_openai_ads_status. Use validateOnly:true for a FREE dry run (it checks fields and dependencies but NOT update-target existence, image fetching or entity limits, so a validated job can still fail for real). Returns a jobId — poll it with openai_ads_bulk_job; an operation’s result is only final once the job is completed, partially_failed or failed. LIMITS (OpenAI’s own): 1–1000 operations, 16 MiB body, 512 KiB per operation, 10 job creates per 10 seconds per ad account, campaign budget ≥ 1000000 micros, names 3–1000 chars, ad titles 3–50, bodies ≤100, URLs ≤2048, ≤2500 location ids, ≤2000 context hints. THE BULK API IS IN LIMITED PREVIEW AND ENABLED PER AD ACCOUNT: a 404 means this account has not been granted it (not a wrong path), and the refusal says so and names the per-object tools that do the same work.

ParameterTypeDescription
operationsrequiredobject[]1–1000 operations: {operation_id, type, idempotency_key (creates) or target_resource_id (updates), input:{…}}
validateOnlybooleantrue = FREE dry run; nothing is created or changed
partialFailurebooleandefault true (independent operations continue after an error). false skips later operations after a failure and does NOT roll back what already completed.
idempotencyKeystringrequest-level key that makes an uncertain retry safe. Reusing it with a DIFFERENT body is an error at OpenAI. To rerun a failed job, submit the same body with a NEW request-level key.

openai_ads_bulk_job#

Read a ChatGPT Ads bulk job read-only

Poll a ChatGPT Ads bulk job and read the result of EVERY operation in it. Reports the job status (pending, in_progress, completed, partially_failed, failed — the last three are terminal) plus a per-operation verdict: created, updated, validated, failed or skipped, each with the new resource id or the error. THE VERDICT COMES FROM THE OPERATIONS, NEVER FROM THE JOB STATUS — "the job finished" and "your ad was created" are different questions, and a partially_failed job answers yes to one and no to the other. While a job is still running the results are an INCOMPLETE SNAPSHOT and there is no cursor to page with; once complete is true, page with `after` set to the last operation_id. A failed operation that reports retryable names retry_after_seconds — reuse the ORIGINAL create idempotency_key when resubmitting or the retry creates a duplicate. Free, read-only.

ParameterTypeDescription
jobIdrequiredstringthe id openai_ads_bulk returned
limitnumber1–100 results per page, default 100
afterstringthe last operation_id from the previous page — only available once complete is true

update_openai_ads_feed_products#

Update ChatGPT Ads product-feed variants

Update the PRICE, TITLE or AVAILABILITY of variants already in a ChatGPT Ads product feed — send only what changed instead of re-uploading the catalog. This is what stops a stale feed serving ads for out-of-stock items. Pass feedId and products:[{id, variants:[{id, title?, price?:{amount,currency}, availability?:{available|status}}]}], where products[].id is the PARENT product id and variants[].id the existing variant id, both from the catalog already in the feed. price.amount is an INTEGER IN MINOR UNITS — 8999 means $89.99 — so a decimal is a hundredfold error in the price you advertise, and is refused. IT UPDATES EXISTING VARIANTS ONLY: it never creates a feed, uploads a catalog, or adds a product that is not already there. ACCEPTED IS NOT LIVE — OpenAI applies the change asynchronously and returns no completion timestamp and no downstream result, so an out-of-stock product keeps serving until it propagates; say that rather than reporting it as done. A 403 naming product_feed_api_disabled / product_feed_delta_api_disabled means the ACCOUNT lacks Feeds access — nothing about the request was wrong and retrying it unchanged will not help. A 404 means the feed id is wrong, the feed is not linked to this ad account, or Feeds is not enabled.

ParameterTypeDescription
feedIdrequiredstringthe product feed already linked to this ad account
productsrequiredobject[][{id, variants:[{id, title?, price?:{amount:int minor units, currency}, availability?:{available:bool}|{status:"in_stock"|"out_of_stock"}}]}]

update_openai_ads_object#

Edit a ChatGPT Ads campaign / ad group / ad

EDIT an existing ChatGPT Ads object in place — rename it, change a campaign’s budget or geo targeting, rewrite an ad group’s context hints or bid, or replace an ad’s title, body, landing page or image. Pass level:"campaign" + campaignId, level:"adGroup" + adGroupId, or level:"ad" + adId. Only the fields you pass are changed, but note that context hints, bidding, TARGETING and the creative are REPLACED WHOLESALE rather than merged, so send the complete list. A patch that would silently DESTROY something is refused by name with what would have been lost, rather than going through: dropping a campaign’s geo, custom audiences or PLATFORM targeting, deleting an ad group’s max bid, or demoting a maximize_* bid strategy to a fixed bid. Changing the budget, the bid or the creative of a LIVE (active) object changes what real money buys immediately — show the user the old and new values, get an explicit yes, then pass confirm:true. The object is READ BACK after the change.

ParameterTypeDescription
level"campaign" | "adGroup" | "ad"inferred from which id you pass
campaignIdstring
adGroupIdstring
adIdstring
namestring
descriptionstring
dailyBudgetnumber
lifetimeBudgetnumber
countriesstring[]
locationIdsstring[]
endTimenumber
platforms"ios_app" | "android_app" | "web"[]REPLACES which ChatGPT surfaces the campaign runs on (ios_app / android_app / web). Wholesale like the rest of targeting: a patch that changes geo or audiences on a campaign that already restricts platforms is REFUSED by name rather than silently widening it back to every surface. There is no [] — name all three to go back to everywhere.
customAudienceIdsstring[]REPLACES the campaign’s targeted custom audiences. TARGETING IS REPLACED WHOLESALE, not merged — a patch that omits something the campaign already targets is REFUSED by name rather than silently dropping it, so restate it here or pass [] to clear it deliberately.
excludedCustomAudienceIdsstring[]REPLACES the campaign’s excluded custom audiences — same wholesale rule as customAudienceIds.
contextHintsstring[]REPLACES the existing list
maxBidnumber
billingEvent"click" | "impression"required alongside maxBid — bidding is replaced wholesale
bidStrategy"fixed_bid" | "maximize_clicks" | "maximize_conversions"CHANGE HOW THIS AD GROUP BIDS (OpenAI’s “Maximize results”). BIDDING IS REPLACED WHOLESALE, so a patch that moves the bid without restating the strategy would DEMOTE a maximize_* ad group to a fixed bid, and one that sets a strategy without restating maxBid DELETES the cap — both are refused by name with what would have been lost.
creativeobjectREPLACES the ad’s creative (text + image card only)
confirmbooleanREQUIRED true to change budget / bid / creative on a LIVE object

set_openai_ads_budget#

Set a ChatGPT Ads campaign budget

Change a ChatGPT Ads campaign’s budget — a daily cap, a lifetime cap, or both, in the ad account’s currency. ChatGPT Ads’ own minimum for a DAILY budget is 25.00 (measured live 2026-08-05; a LIFETIME budget has no such floor, so use one to spend less than that in total). Raising it on a LIVE (active) campaign increases real spend immediately, so you MUST show the user the old and new amounts, get an explicit yes, then call with confirm:true. Lowering it or changing a paused campaign is safe. The campaign is READ BACK after the change and the note is built from that.

ParameterTypeDescription
campaignIdrequiredstring
dailyBudgetnumber
lifetimeBudgetnumber
confirmbooleanREQUIRED true when the campaign is live

openai_ads_conversions#

ChatGPT Ads attributed conversions read-only

ATTRIBUTED CONVERSIONS for ChatGPT Ads — the number the whole pixel + conversion-event setup exists to produce, and the one openai_ads_report structurally cannot give you (that endpoint family carries impressions, clicks, spend, CTR, CPC and CPM and no conversions at all). Pass entityIds — the campaign / ad group / ad ids to report on — with a matching level; the default window is the last 30 days. NEVER ADD conversions AND viewThroughConversions TOGETHER: OpenAI states that "conversions is always equal to click_through_conversions" and that view-through is "a separate, supplemental metric" NOT added to that total, and that view-through is reporting-only because CPA, post-click CVR, bidding, billing and conversion optimization all remain click-through-based. NO ROWS means no attributed conversion was recorded, not that data is missing — say exactly that, and check that an event setting exists (list_openai_ads_conversion_events) and that its pixel snippet is actually live on the site. Read-only, free.

ParameterTypeDescription
level"ad_account" | "campaign" | "ad_group" | "ad"inferred from which id you pass — default ad_account
entityIdsstring[]the ids to report on — REQUIRED (ChatGPT Ads has no "everything" mode)
campaignIdstring
adGroupIdstring
adIdstring
sincestringYYYY-MM-DD
untilstringYYYY-MM-DD

preview_openai_ads_ad#

Preview a ChatGPT Ads ad read-only

Render a real preview of an existing ChatGPT Ads ad, so a human can LOOK at what will run instead of reading a list of ids back. Returns a hosted preview URL. THE LINK EXPIRES 24 HOURS AFTER IT IS CREATED — state that whenever you hand it to anyone, and generate a fresh one rather than re-sending an old one, because a dead link given to a client is worse than no link. Changes nothing about the ad; free.

ParameterTypeDescription
adIdrequiredstringthe ad to preview — list_openai_ads_campaigns with an adGroupId lists them

send_openai_ads_conversions#

Send server-side conversion events to ChatGPT Ads

Send conversion events to ChatGPT Ads from a SERVER (the Conversions API). This is the only way a conversion that did not happen in the browser — an offline sale, a webhook, a mobile backend, a CRM — is ever counted, and it is the half of the measurement loop that create_openai_ads_pixel and create_openai_ads_conversion_event exist to set up. TWO IDS LOOK ALIKE AND ONLY ONE WORKS: pass `pixelSnippetId`, which is OpenAI’s `pixel_id` and is what create_openai_ads_pixel returns under that name — NOT the `pixelId` (their `clidsrc_…` value), which is the conversion SOURCE id that an event setting takes as sourceIds. OpenAI’s own words: "Use `id` as a `source_ids` value when you create an event setting. Use `pixel_id` … when you send Conversions API events." THE KEY IS ALSO NOT THE ONE YOU THINK: `apiKey` is the CONVERSIONS API key from create_openai_ads_conversion_api_key, not the Advertiser API key this workspace is connected with — OpenAI return it exactly once so Hermoso holds no copy and it must be passed in. Each event needs an `id` and a `type`, plus `source_url` for a web event; the data SHAPE is fixed by the event type and Hermoso fills it in, and MONEY IS AN INTEGER IN THE CURRENCY’S MINOR UNIT (4250 means $42.50 — sending 42.50 is refused, not rounded). Timestamps must be inside the last 7 days and no more than 10 minutes ahead. ONE BAD EVENT FAILS THE WHOLE BATCH of up to 1,000, so Hermoso validates locally first and names the offending event and field instead of letting OpenAI discard all of them. Use validateOnly:true for a free dry run that VALIDATES AND SAVES NOTHING — never tell a user a validate-only run was measured. If the browser pixel and the server both send the same conversion, give them the SAME id so OpenAI deduplicates it. Attribution is not instant: read openai_ads_conversions later rather than promising a number now. Free — costs no credits.

ParameterTypeDescription
pixelSnippetIdrequiredstringOpenAI’s pixel_id — create_openai_ads_pixel returns it as pixelSnippetId. NOT the clidsrc_… pixelId, which is the conversion source id.
apiKeyrequiredstringthe Conversions API key (create_openai_ads_conversion_api_key) — NOT the Advertiser API key the connector stores
eventsrequiredobject[]up to 1000 events. Each: {id, type (order_created / lead_created / page_viewed / custom / …), timestamp_ms?, source_url? (required for web), action_source?, user? {email or externalId — Hermoso hashes them locally, plus country/city/zip_code/ip_address/user_agent/obref}, data? {amount as an INTEGER in minor units, currency, contents[]}}
validateOnlybooleantrue validates the batch against ChatGPT Ads and SAVES NOTHING — no conversion is recorded
integrationSourcestringstable identifier for the integration sending the batch; defaults to "hermoso"

create_openai_ads_conversion_api_key#

Create a ChatGPT Ads Conversions API key

Create a ChatGPT Ads Conversions API key — the credential a SERVER uses to send conversion events, which is the only way a conversion that happens off the page (an offline sale, a webhook, a mobile backend) can be counted at all. PERMANENT AND UNREPEATABLE, and both halves of that are why it is confirm-gated even though a key cannot spend: ChatGPT Ads publishes NO way to list, rotate or delete a key, so it exists on the ad account forever and Hermoso cannot clean it up; and OpenAI returns the secret EXACTLY ONCE. Tell the user both facts, get an explicit yes, then call with confirm:true — and tell them to store it in a server-side secret manager and never place it in browser code, client-visible environment variables, logs or source control. If OpenAI answers that key creation is not enabled for this ad account, that is an account-enablement answer from OpenAI (they say to contact your partner representative) — the connection is fine and nothing is broken on Hermoso’s side.

ParameterTypeDescription
namerequiredstringa descriptive name, 3–1000 characters — it can never be listed or renamed afterwards
confirmbooleanREQUIRED true — the key is permanent and its secret is shown once

update_openai_ads_account#

Update the ChatGPT Ads account brand (name / URL / favicon)

Update the ChatGPT Ads AD ACCOUNT’s brand metadata — its display name, its primary destination URL and/or its favicon — and start a new brand review. THIS IS THE GATE IN FRONT OF EVERY IMPRESSION: OpenAI states that an account whose review status is not "approved" CANNOT SERVE ADS, so this is how an account stuck in review gets fixed without leaving Hermoso. Pass any of name, url, faviconUrl (a public image URL — or just the brand’s home page, which OpenAI will resolve a favicon from; minimum 128×128) or faviconFileId. A brand change RESTARTS the review, so re-read the account (list_openai_ads_campaigns returns it) until it says approved before promising that anything will run. If OpenAI answers that programmatic brand updates are not enabled for this ad account, that is their account setting and not a Hermoso failure — they say to contact your partner representative.

ParameterTypeDescription
namestringnew account display name
urlstringthe account’s primary destination — a public http(s) URL. OpenAI accepts this field even though their published parameter table omits it.
faviconUrlstringpublic image URL (or the brand home page) to upload and assign as the account favicon — minimum 128×128
faviconFileIdstringan already-uploaded favicon file id, if you have one

set_openai_ads_status#

Activate, pause or archive a ChatGPT Ads account / campaign / ad group / ad destructive

Turn a ChatGPT Ads AD ACCOUNT, campaign, AD GROUP or AD on (active), off (paused), or ARCHIVE it. Pass level:"account" (NO id — the connection IS the account), level:"campaign" + campaignId, level:"adGroup" + adGroupId, or level:"ad" + adId. LEVEL "account" IS THE EMERGENCY STOP AND BEHAVES DIFFERENTLY FROM EVERY OTHER LEVEL: BOTH directions take confirm:true, because pausing it stops ALL ChatGPT Ads delivery for the brand at once and activating it un-suppresses EVERY active campaign underneath — Hermoso cannot tell you in advance which of them will start spending. An account cannot be archived. ACTIVATING STARTS REAL AD SPEND — you MUST first show the user the object and its budget, get an explicit yes, then call with status:"active" and confirm:true. Pausing is always safe and stops all spend. ARCHIVING IS IRREVERSIBLE: it is this platform’s only teardown (there is no delete and no un-archive, and OpenAI’s own guidance is "only archive objects you have no further use for"), so it ALSO requires confirm:true — prefer pausing unless the user is certain. Remember an ad only serves when the ad, its ad group AND its campaign are all active and the ad has passed OpenAI’s review. The resulting status is READ BACK from OpenAI before you are told it took.

ParameterTypeDescription
level"account" | "campaign" | "adGroup" | "ad"inferred from which id you pass — default campaign. "account" is the whole ad account and takes no id.
campaignIdstring
adGroupIdstring
adIdstring
statusrequired"active" | "paused" | "archived"active = start spending; paused = stop; archived = permanent (not available at level "account")
confirmbooleanREQUIRED true to activate (real spend), to archive (irreversible), or for EITHER direction at level "account"

delete_openai_ads_object#

Archive (ChatGPT Ads’ delete) a campaign / ad group / ad destructive

Retire a ChatGPT Ads campaign, ad group or ad. THE OPENAI ADVERTISER API HAS NO DELETE — archiving is its only teardown, and OpenAI’s own guidance is "only archive objects you have no further use for, as archiving isn’t reversible": there is no un-archive, not even through support. So say ARCHIVED, never "deleted". Pass level:"campaign" + campaignId, level:"adGroup" + adGroupId, or level:"ad" + adId. CALL IT WITHOUT confirm FIRST — nothing is archived and you get the object’s real name, status and child count read live from OpenAI; show the user exactly that. A target with children or live delivery additionally needs confirmName (its exact name) and confirmChildren (the count from that read-back). PAUSING stops all spend and keeps the object editable — offer that first whenever the user only wants delivery to stop. Archiving a campaign is not documented to cascade, so archive the children yourself if they should stop too. The result is READ BACK: it says archived only when OpenAI reports the archived status.

ParameterTypeDescription
level"campaign" | "adGroup" | "ad"what to archive — default campaign
campaignIdstring
adGroupIdstring
adIdstring
confirmbooleanREQUIRED true — archiving cannot be undone
confirmNamestringthe object’s EXACT name, required when it has children or is live
confirmChildrennumberthe exact number of children reported by the unconfirmed call, required when it has any

PINTEREST ADS

list_pinterest_ads_campaigns#

List Pinterest ad accounts / campaigns read-only

Read the brand’s connected Pinterest AD account(s). Call with NO adAccountId to list the ad accounts shared with this brand — do this first to pick a target. Call WITH adAccountId to list that account’s campaigns (id, name, status, objective, budget, and Pinterest’s own summary status). Add campaignId to get that ONE campaign’s whole tree — its AD GROUPS and ADS with their ids, statuses and review status. That is the only way to enumerate them, and it matters: Pinterest has no delete, so an ad group you cannot see is one you cannot even archive. All money is in the AD ACCOUNT’S currency, which is not necessarily dollars. Pinterest’s own list default hides DRAFT and ARCHIVED objects; this asks for all four statuses so nothing is silently missing. Read-only, free. Needs Pinterest connected (Settings ▸ Connectors ▸ Pinterest) and the ad account ticked under Manage accounts.

ParameterTypeDescription
adAccountIdstringPinterest ad account id — omit to list the ad accounts shared with this brand
campaignIdstringone campaign → its ad groups and ads too (the only way to enumerate them)
statuses"ACTIVE" | "PAUSED" | "ARCHIVED" | "DRAFT"[]

pinterest_ads_report#

Pinterest ads performance report read-only

Performance for a Pinterest ad account — spend, impressions, clicks, CTR, effective CPC and conversions — at ANY of Pinterest’s four levels: the whole ACCOUNT, by CAMPAIGN, by AD GROUP, or by individual AD. Ad level is how you answer "WHICH AD IS WINNING". EVERY SUB-ACCOUNT LEVEL NEEDS ITS IDS — this was measured, not read: Pinterest refuses campaign level without campaignIds, ad-group level without adGroupIds, AND ad level without adIds ("Either ads id filter or both pin id and campaign id filters must be specified"), so there is NO account-wide per-ad call. Get the ids from list_pinterest_ads_campaigns (name a campaignId and it returns that campaign’s ad groups and ads), or use level:"account" for a whole-account total with no ids at all. At AD level Pinterest publishes one alternative its own refusal names: pinIds AND campaignIds TOGETHER, which reports every ad promoting those Pins — half of that pair is refused here naming the missing half. The level is inferred from whichever ids you pass, so naming campaignIds still reports by campaign. Default columns lead with that level’s OWN id and name, because a report whose rows cannot be told apart answers nothing. Window via since/until (YYYY-MM-DD) and granularity. Pinterest keeps only 90 days and refuses ranges longer than 90 days (at HOUR granularity: 8 days back, 3-day windows) — this refuses those up front with the reason rather than letting Pinterest return an opaque error. A report with ZERO rows genuinely means nothing delivered in that window; say exactly that and never present zeros as measured performance. Read-only, free.

ParameterTypeDescription
adAccountIdstring
level"account" | "campaign" | "adGroup" | "ad"which level to report at — omit and it is inferred from the ids you pass (none → the whole account)
campaignIdsstring[]REQUIRED for campaign level; also the second half of the ad-level pinIds pair
adGroupIdsstring[]REQUIRED for ad-group level — Pinterest has no all-of-them form there
adIdsstring[]REQUIRED for ad level — Pinterest refuses /ads/analytics without it, unless you pass pinIds AND campaignIds instead
pinIdsstring[]ad level only, and only TOGETHER with campaignIds — every ad promoting these Pins
sincestringYYYY-MM-DD, default 30 days ago
untilstringYYYY-MM-DD, default today
granularity"TOTAL" | "DAY" | "HOUR" | "WEEK" | "MONTH"default TOTAL
columnsstring[]Pinterest metric column names — omit for the standard set for that level

create_pinterest_ads_campaign#

Build a Pinterest ad campaign (paused)

Build a campaign on a connected Pinterest ad account. ALWAYS created PAUSED — worth knowing that Pinterest’s own API defaults new campaigns to ACTIVE, so this deliberately overrides that; it spends NOTHING until you activate it with set_pinterest_ads_status(confirm:true). Pinterest’s object graph is campaign → ad group → ad, and an ad PROMOTES AN EXISTING PIN, so a campaign ON ITS OWN CANNOT SERVE AN IMPRESSION: pass adGroup{name, targetingSpec, ad{pinId}} and this builds the whole tree. Pinterest has NO atomic multi-object write, so the levels are created in sequence and the campaign is ARCHIVED again if anything below it is rejected (Pinterest has no delete) — you never inherit a half-built campaign. Budgets are ordinary amounts in the ad account’s currency; the micro-currency conversion Pinterest requires is handled for you. Every ad group must target at least one place. Everything is READ BACK from Pinterest before you are told it exists; print the returned note verbatim, and if it says the campaign cannot serve yet, say that rather than calling it a finished ad.

ParameterTypeDescription
adAccountIdstring
namerequiredstringcampaign name, ≤255 characters
objectiverequired"AWARENESS" | "CONSIDERATION" | "WEB_CONVERSION" | "CATALOG_SALES" | "VIDEO_COMPLETION" | "APP_INSTALL" | "SALES" | "LEADS" | "CTV_CONSIDERATION"Pinterest requires an objective and will not guess one
dailyBudgetnumberdaily cap in the ad account’s currency
lifetimeBudgetnumberlifetime cap instead of a daily one — Pinterest then requires endTime
startTimenumberUnix timestamp in SECONDS
endTimenumberUnix timestamp in SECONDS
adGroupobjectbuild the serving tree in the same call — WITHOUT this you get a campaign shell that can never show an ad

create_pinterest_ads_ad_group#

Add a Pinterest ad group

Add an ad group to an existing Pinterest campaign — optionally with its ad in the same call. Created PAUSED by default. Pinterest REQUIRES every ad group to target at least one place, so targetingSpec must carry a GEO array or a LOCATION object. If the parent campaign is already LIVE (ACTIVE), creating this ad group ACTIVE starts REAL AD SPEND on the next auction, exactly like activating it — show the user what would begin serving, get an explicit yes, then pass confirm:true. Leaving it paused never needs confirmation. Read back from Pinterest before you are told it exists.

ParameterTypeDescription
adAccountIdstring
campaignIdrequiredstringthe campaign this ad group belongs to
namerequiredstringad group name
billableEvent"CLICKTHROUGH" | "IMPRESSION" | "VIDEO_V_50_MRC"LEAVE THIS OUT unless you know better — Pinterest ties it to the campaign objective and refuses a mismatch: CONSIDERATION takes CLICKTHROUGH; AWARENESS, SALES, LEADS, WEB_CONVERSION, VIDEO_COMPLETION and APP_INSTALL take IMPRESSION; CATALOG_SALES takes either. Omitted → the right one for the objective is used.
bidnumberREQUIRED — what you pay per billable event, in the ad account’s currency. Pinterest rejects an ad group without one and Hermoso will not invent a bid. It must also be BELOW the campaign budget and above Pinterest’s own bid floor for the placement, both of which Pinterest states in its refusal.
budgetnumberad-group budget — only valid when the campaign is NOT budget-optimized (Pinterest optimizes at campaign level by default)
placementGroup"ALL" | "SEARCH" | "BROWSE" | "OTHER"
pacing"STANDARD" | "ACCELERATED"
targetingSpecobjectPinterest targeting object, e.g. {"GEO":["US"],"AGE_BUCKET":["25-34","35-44"]} — at least one GEO or LOCATION is REQUIRED by Pinterest. Age: use AGE_BUCKET, or MINIMUM_AGE and MAXIMUM_AGE TOGETHER (18–65, with "65+" allowed as the maximum) — a minimum on its own is refused.
status"ACTIVE" | "PAUSED" | "DRAFT"default PAUSED
adobjectcreate the ad in the same call
confirmbooleanREQUIRED true to create this ACTIVE under a LIVE campaign

create_pinterest_ads_ad#

Create a Pinterest ad

Create the actual AD inside a Pinterest ad group — this is the object that carries the creative; a campaign or ad group alone shows nothing. A Pinterest ad PROMOTES AN EXISTING PIN, so pass pinId (post_to_pinterest returns one). Created PAUSED; if the parent ad group and campaign are both ACTIVE, creating this ACTIVE starts REAL AD SPEND immediately — get an explicit yes and pass confirm:true. Pinterest reviews ads: the read-back reports the review status and any rejection reason, and a REJECTED ad never serves until it is fixed.

ParameterTypeDescription
adAccountIdstring
adGroupIdrequiredstringthe ad group this ad lives in
pinIdrequiredstringthe numeric id of an existing Pin — a Pinterest ad PROMOTES a Pin, so create one with post_to_pinterest first if there is nothing to promote
creativeType"REGULAR" | "VIDEO" | "SHOPPING" | "CAROUSEL" | "MAX_VIDEO" | "COLLECTION" | "IDEA" | "SHOWCASE" | "QUIZ" | "COLLAGE" | "APP"default REGULAR
namestring
destinationUrlstringwhere the click goes
status"ACTIVE" | "PAUSED" | "DRAFT"default PAUSED
confirmbooleanREQUIRED true to create this ACTIVE in a live ad group

update_pinterest_ads_ad_group#

Edit a Pinterest ad group

EDIT an existing Pinterest ad group in place — its name, bid, budget, pacing, placement and, above all, its TARGETING. Before this, targeting was frozen the moment an ad group was created: a mistyped bid or a missing country meant building the whole tree again, and because PINTEREST HAS NO DELETE every correction left a permanent archived shell behind. This is a PARTIAL edit — a field you do not name is left exactly as Pinterest has it, so send only what changes, and never re-send everything you just read (that would overwrite a concurrent edit). targetingSpec is the exception: it REPLACES the whole targeting object, so include every criterion you still want. IT DOES NOT CHANGE STATUS — set_pinterest_ads_status owns ACTIVE / PAUSED / ARCHIVED, and passing status here is refused by name. Changing the bid, the budget, or which campaign it spends from WHILE IT IS LIVE moves real money on the next auction: show the user the exact new value, get an explicit yes, then pass confirm:true. Pinterest refuses targetingTemplateIds alongside targetingSpec / trackingUrls / autoTargeting / placementGroup, which is refused here naming the conflicting pair. The ad group is READ BACK from Pinterest afterwards and the note describes what Pinterest actually stored — print it verbatim. Free.

ParameterTypeDescription
adAccountIdstring
adGroupIdrequiredstringthe ad group to edit
status"ACTIVE" | "PAUSED" | "ARCHIVED" | "DRAFT"REFUSED HERE ON PURPOSE — use set_pinterest_ads_status, which confirm-gates real spend and Pinterest’s archive-as-delete
namestring
bidnumberwhat you pay per billable event, in the ad account’s currency
budgetnumberonly on a campaign that is NOT budget-optimized
budgetType"DAILY" | "LIFETIME" | "CBO_ADGROUP"
billableEvent"CLICKTHROUGH" | "IMPRESSION" | "VIDEO_V_50_MRC"Pinterest ties this to the campaign objective and refuses a mismatch
placementGroup"ALL" | "SEARCH" | "BROWSE" | "OTHER"
pacing"STANDARD" | "ACCELERATED"
autoTargetingboolean
targetingSpecobjectREPLACES the whole targeting spec — get ids from search_pinterest_ads_targeting, never guess one
trackingUrlsobject
targetingTemplateIdsstring[]Pinterest refuses these alongside targetingSpec / trackingUrls / autoTargeting / placementGroup
optimizationGoalMetadataobject
startTimenumberUnix timestamp in SECONDS
endTimenumberUnix timestamp in SECONDS
lifetimeFrequencyCapnumberCPM (IMPRESSION-billed) ad groups only, and Pinterest requires endTime with it
campaignIdstringMOVE the ad group into a different campaign — it then spends from that budget
confirmbooleanREQUIRED true to change bid / budget / campaign on a LIVE ad group

update_pinterest_ads_ad#

Edit a Pinterest ad

EDIT an existing Pinterest ad in place — its name, DESTINATION URL, creative type, tracking URLs, deep links, lead form, or which ad group it sits in. A PARTIAL edit: a field you do not name is left exactly as Pinterest has it. THE PIN CANNOT BE SWAPPED ON A REAL AD — Pinterest documents pinId as updatable "only for draft ads", so to promote a different Pin create a new ad in the same ad group with create_pinterest_ads_ad and archive this one; that is refused up front with the way through rather than after Pinterest rejects it. IT DOES NOT CHANGE STATUS — set_pinterest_ads_status owns ACTIVE / PAUSED / ARCHIVED, and passing status here is refused by name. EDITING AN AD SENDS IT BACK THROUGH PINTEREST’S REVIEW: the read-back reports the review status and says so when it moved, and an ad in review is NOT serving — never report an edited ad as live on the strength of the edit succeeding. Free.

ParameterTypeDescription
adAccountIdstring
adIdrequiredstringthe ad to edit
status"ACTIVE" | "PAUSED" | "ARCHIVED" | "DRAFT"REFUSED HERE ON PURPOSE — use set_pinterest_ads_status, which confirm-gates real spend and Pinterest’s archive-as-delete
namestring
destinationUrlstringwhere the click goes
creativeType"REGULAR" | "VIDEO" | "SHOPPING" | "CAROUSEL" | "MAX_VIDEO" | "COLLECTION" | "IDEA" | "SHOWCASE" | "QUIZ" | "COLLAGE" | "APP"
adGroupIdstringmove the ad into a different ad group
trackingUrlsobject
clickTrackingUrlstring
viewTrackingUrlstring
leadFormIdstring
iosDeepLinkstring
androidDeepLinkstring
carouselDestinationUrlsstring[]
pinIdstringDRAFT ads only — Pinterest refuses it on any other status

set_pinterest_ads_budget#

Set a Pinterest campaign budget

Change a Pinterest campaign’s budget — a DAILY cap or a LIFETIME cap, in the ad account’s currency. Pinterest allows only one of the two per campaign, so passing both is refused rather than silently picking one. Raising it on a LIVE (ACTIVE) campaign increases real spend immediately — you MUST show the user the new amount, get an explicit yes, then call with confirm:true. Read back after the change.

ParameterTypeDescription
adAccountIdstring
campaignIdrequiredstringthe campaign whose budget changes
dailyBudgetnumber
lifetimeBudgetnumber
confirmbooleanREQUIRED true to change the budget of a LIVE campaign

set_pinterest_ads_status#

Activate, pause or archive a Pinterest campaign / ad group / ad destructive

Turn a Pinterest campaign, AD GROUP or AD on (ACTIVE) or off (PAUSED) — and, because Pinterest has NO DELETE anywhere in its API, this is also the only way to retire one (ARCHIVED). Pass level:"campaign" + campaignId, level:"adGroup" + adGroupId, or level:"ad" + adId. ACTIVATING STARTS REAL AD SPEND, and ARCHIVING is effectively a delete: both require you to show the user exactly what changes, get an explicit yes, and call again with confirm:true. Pausing is always safe. The resulting status is READ BACK from Pinterest before you are told it took.

ParameterTypeDescription
adAccountIdstring
level"campaign" | "adGroup" | "ad"what to change — default campaign
campaignIdstring
adGroupIdstring
adIdstring
statusrequired"ACTIVE" | "PAUSED" | "ARCHIVED" | "DRAFT"ACTIVE = start spending; PAUSED = stop; ARCHIVED = retire (Pinterest’s delete)
confirmbooleanREQUIRED true for ACTIVE (real spend) or ARCHIVED (irreversible retirement)

delete_pinterest_ads_object#

Archive (Pinterest’s delete) a campaign / ad group / ad destructive

Retire a Pinterest campaign, ad group or ad. PINTEREST API v5 HAS NO DELETE for any of the three — ARCHIVED is its terminal state, and Pinterest’s own campaign docs call an archived campaign "deleted" and say reversing it means filing a ticket with their customer ops team, so there is no un-archive you or the user can call. Say ARCHIVED, not "deleted": the object stays on the account with its reporting history and simply drops out of the default list view. Pass level:"campaign" + campaignId, level:"adGroup" + adGroupId, or level:"ad" + adId. CALL IT WITHOUT confirm FIRST — nothing is archived and you get the object’s real name, status and child count read live from Pinterest; show the user exactly that. A target with children or live delivery additionally needs confirmName (its exact name) and confirmChildren (the count from that read-back). PAUSING is fully reversible — offer it first whenever the user only wants delivery to stop. Pinterest documents no cascade, so archive the children yourself if they should stop too.

ParameterTypeDescription
adAccountIdstringPinterest ad account id — omit to use the brand’s single shared account
level"campaign" | "adGroup" | "ad"what to archive — default campaign
campaignIdstring
adGroupIdstring
adIdstring
confirmbooleanREQUIRED true — archiving is not self-service reversible
confirmNamestringthe object’s EXACT name, required when it has children or is live
confirmChildrennumberthe exact number of children reported by the unconfirmed call, required when it has any

REDDIT ADS

list_reddit_ads_campaigns#

List Reddit ad accounts / campaigns read-only

Read the brand’s connected Reddit AD account(s). Call with NO adAccountId to list the ad accounts shared with this brand — do this first to pick a target. Call WITH adAccountId to read that account’s whole tree at once: campaigns, ad groups and ads, each with its configured status and Reddit’s own effective status (the effective one is what says whether it could actually serve — PENDING_APPROVAL, CAMPAIGN_PAUSED, REJECTED and so on). Read-only, free. Needs Reddit Ads connected (Settings ▸ Connectors ▸ Reddit Ads) and the ad account ticked under Manage accounts.

ParameterTypeDescription
adAccountIdstringReddit ad account id (a2_…) — omit to list the ad accounts shared with this brand

reddit_ads_report#

Reddit ads performance report read-only

Performance for a Reddit ad account — impressions, clicks, spend, CTR, CPC, eCPM, reach and any of Reddit’s ~450 metric fields, optionally broken down by campaign, ad group, ad, date, hour, community, country, gender, interest, keyword, placement and more. Money comes back in WHOLE UNITS of the ad account’s currency (Reddit reports micro-currency; the conversion is done for you) — and that currency is not necessarily dollars, so check the account. Reddit only accepts HOURLY window boundaries; plain YYYY-MM-DD dates are accepted here and snapped for you. A report with ZERO rows genuinely means nothing delivered in that window — say exactly that and never present zeros as measured performance. ONE DATED LIMIT WORTH PLANNING AROUND: from 2026-10-30 Reddit caps the HOUR breakdown at windows of 7 DAYS OR FEWER and answers 400 beyond that. Hermoso warns before that date and refuses after it rather than relaying a bare vendor 400 — for a longer stretch, run one report per <=7-day window, or use the DATE breakdown for a daily series over the whole period. Read-only, free.

ParameterTypeDescription
adAccountIdstring
sincestringYYYY-MM-DD or full ISO timestamp, default 30 days ago
untilstringYYYY-MM-DD or full ISO timestamp, default today
fieldsstring[]Reddit metric names, UPPER_SNAKE (IMPRESSIONS, CLICKS, SPEND, CTR, CPC, ECPM, REACH, FREQUENCY, CONVERSION_ROAS, VIDEO_WATCHED_100_PERCENT, CONVERSION_PURCHASE_TOTAL_VALUE…). Omit for a sensible default set; if you name one Reddit does not know, its error lists every valid value.
breakdowns"AD_ACCOUNT_ID" | "AD_GROUP_ID" | "AD_ID" | "CAMPAIGN_ID" | "COUNTRY" | "DATE" | "HOUR" | "DMA" | "METRO" | "CAROUSEL_CARD" | "GALLERY_ITEM_ID" | "GENDER" | "INTEREST" | "KEYWORD" | "PLACEMENT" | "OS_TYPE" | "ASSET_ID" | "REGION" | "COMMUNITY" | "LANGUAGE"[]up to 3 (4 if both COUNTRY and REGION). Omit for one aggregate row.
filterstringReddit filter expression to restrict rows to particular ids/values
timeZoneIdstringIANA zone, e.g. America/New_York

list_reddit_ads_profiles#

List the Reddit profiles an ad account can publish as read-only

List the Reddit PROFILES attached to an ad account. A Reddit ad promotes a POST, and every post is published AS one of these profiles — so this is the first call in any Reddit creative build, and its id is what create_reddit_ads_post needs. If it comes back empty, the ad account has no profile attached and nothing can be advertised from it yet. Read-only, free.

ParameterTypeDescription
adAccountIdstring

search_reddit_ads_targeting#

Resolve Reddit communities / geolocations / interests for targeting read-only

Look up the exact values Reddit ad-group targeting expects, so none of them has to be guessed. kind:"communities" searches subreddits by keyword and returns each one’s NAME plus its subscriber count — targeting wants the bare name ("running"), NOT the t5_ id and NOT "r/running". kind:"geolocations" lists targetable places (pass country like US, or a city search) — targeting accepts a country code or one of the returned ids. kind:"interests" lists Reddit’s interest taxonomy — targeting wants the id ("pets_v3"). Read-only, free. Use this before create_reddit_ads_ad_group rather than inventing a community name.

ParameterTypeDescription
adAccountIdstring
kind"communities" | "geolocations" | "interests"default communities
querystringkeyword — required for communities, filters interests, searches cities for geolocations
countrystring2-letter country code, geolocations only
postalCodestring
limitnumbermax results, default 15

reddit_ads_forecast#

Forecast Reddit audience size and delivery read-only

Ask Reddit how big a targeting set is and roughly what a budget would buy — total reachable audience, the targeted slice, and estimated impressions, clicks and reach. Free, creates nothing, spends nothing, so run it BEFORE building an ad group to sanity-check targeting that may be far too narrow or far too broad. Budget is an ordinary amount in the ad account’s currency. These are Reddit’s estimates, not a guarantee — say so when reporting them.

ParameterTypeDescription
adAccountIdstring
budgetrequirednumberbudget in the ad account’s currency (not micro-currency — the conversion is handled)
objective"APP_INSTALLS" | "CATALOG_SALES" | "CLICKS" | "CONVERSIONS" | "IMPRESSIONS" | "LEAD_GENERATION" | "VIDEO_VIEWABLE_IMPRESSIONS"default CLICKS
goalType"DAILY_SPEND" | "LIFETIME_SPEND"
bidType"CPC" | "CPM" | "CPV" | "CPV6"
bidStrategy"BIDLESS" | "MANUAL_BIDDING" | "MAXIMIZE_VOLUME" | "TARGET_CPX"
bidAmountnumber
startTimestringISO 8601
endTimestring
targetingobjectsame shape as create_reddit_ads_ad_group targeting

reddit_ads_bid_suggestion#

Ask Reddit what to bid read-only

Reddit’s own suggested bid for a given objective, bid type and targeting — a median, a sensible range, and the hard floor below which Reddit will not accept a bid. Amounts come back in the ad account’s currency. Free, creates nothing. Use it to pick bidAmount for create_reddit_ads_ad_group instead of guessing a number that either never wins an auction or overpays.

ParameterTypeDescription
adAccountIdstring
budgetrequirednumberbudget in the ad account’s currency
objective"APP_INSTALLS" | "CATALOG_SALES" | "CLICKS" | "CONVERSIONS" | "IMPRESSIONS" | "LEAD_GENERATION" | "VIDEO_VIEWABLE_IMPRESSIONS"default CLICKS
bidType"CPC" | "CPM" | "CPV" | "CPV6"default CPC — must fit the campaign objective
bidStrategy"BIDLESS" | "MANUAL_BIDDING" | "MAXIMIZE_VOLUME" | "TARGET_CPX"
goalType"DAILY_SPEND" | "LIFETIME_SPEND"
startTimestring
endTimestring
currencystring
targetingobject

list_reddit_ads_posts#

List a Reddit profile’s ad posts read-only

List the POSTS on a Reddit profile — these are the creatives Reddit ads promote. Use it to find an existing post to advertise rather than creating a near-duplicate. Call list_reddit_ads_profiles first for redditProfileId. Read-only, free.

ParameterTypeDescription
adAccountIdstring
redditProfileIdrequiredstringthe Reddit profile id (t2_…) from list_reddit_ads_profiles
type"TEXT" | "IMAGE" | "VIDEO" | "CAROUSEL"
limitnumber

create_reddit_ads_post#

Create the Reddit post an ad will promote

Create the CREATIVE for a Reddit ad. This is the step people skip: a Reddit ad has no creative of its own — it points at a post — so a campaign and ad group with no post behind them can never serve. Types are TEXT (headline + body), IMAGE, VIDEO and CAROUSEL (up to 6 images). For image/video/carousel pass media[] with a PUBLIC mediaUrl; Reddit fetches and validates it itself (minimum 140×140), and a video also needs a thumbnailUrl. The destination for a click rides on the media entry’s destinationUrl, NOT on the ad. Reddit’s call-to-action values are human-readable strings with spaces and capitals — "Learn More", "Shop Now", "Sign Up" — not SCREAMING_SNAKE; the error lists all of them. The post is published on the profile immediately, so show the user the exact headline and body first.

ParameterTypeDescription
adAccountIdstring
redditProfileIdrequiredstringthe Reddit profile id (t2_…) to publish as — from list_reddit_ads_profiles
type"TEXT" | "IMAGE" | "VIDEO" | "CAROUSEL"default TEXT
headlinerequiredstringthe post title — this is the ad’s headline
bodystringbody copy, TEXT posts
mediaobject[]one entry for IMAGE/VIDEO, up to 6 for CAROUSEL
callToActionstringapplies to every media entry that has none
thumbnailUrlstringrequired for VIDEO posts
allowCommentsbooleanReddit ads can carry a public comment thread — decide deliberately

update_reddit_ads_post#

Turn comments on or off on a Reddit ad post

Turn comments ON or OFF on an existing Reddit ad post. THAT IS THE ONLY EDIT REDDIT ALLOWS: its post-update schema permits exactly one field, `allow_comments`, and REQUIRES it — headline and body both answer “Additional fields not permitted” once a post is published (measured live 2026-08-05). So a copy change is not an edit at all: create a new post with create_reddit_ads_post and point the ad at it with update_reddit_ads_ad, or fix the wording in Reddit’s Ads Manager. Never promise to reword a live post. A REDDIT AD POST CANNOT BE REMOVED THROUGH THE API AT ALL: Reddit publishes no delete endpoint for one and its update schema has no status, archived or deleted field (re-checked against Reddit’s own reference on 2026-08-05), so creating one is a one-way door and the only way to take it down is Reddit’s Ads Manager. Say that plainly rather than offering to delete it. Turning comments off is publicly visible on a post people may already be replying to, so confirm it with the user first.

ParameterTypeDescription
adAccountIdstring
postIdrequiredstringthe post id (t3_…)
allowCommentsrequiredbooleanREQUIRED — Reddit demands allow_comments on every post update, and it is the only field it permits

create_reddit_ads_campaign#

Create a Reddit campaign

Create the top tier of a Reddit ad — the campaign, which sets the OBJECTIVE everything under it optimises toward and (optionally) a lifetime spend cap. ALWAYS created PAUSED, with no override; it spends nothing until set_reddit_ads_status(confirm:true). Pick the objective deliberately, because the ad group’s bid type has to match it and it cannot be changed afterwards: CLICKS is Reddit’s name for traffic to a website (there is no TRAFFIC), CONVERSIONS optimises toward pixel events and needs a working pixel, LEAD_GENERATION drives in-feed lead forms, IMPRESSIONS and VIDEO_VIEWABLE_IMPRESSIONS buy reach, APP_INSTALLS and CATALOG_SALES are for apps and product feeds. A campaign on its own can never serve: create an ad group under it, then an ad pointing at a post. The result is read back from Reddit.

ParameterTypeDescription
adAccountIdstringReddit ad account id (a2_…) — omit when only one is shared
namerequiredstring
objective"APP_INSTALLS" | "CATALOG_SALES" | "CLICKS" | "CONVERSIONS" | "IMPRESSIONS" | "LEAD_GENERATION" | "VIDEO_VIEWABLE_IMPRESSIONS"default CLICKS — which is what Reddit calls website traffic
spendCapCentsnumberlifetime spend ceiling for the whole campaign, in minor units of the ad account’s currency

create_reddit_ads_ad_group#

Create a Reddit ad group (targeting, budget, bidding, schedule)

Create an ad group under an existing Reddit campaign — this is the tier that holds the budget, the bid and ALL the targeting. ALWAYS created PAUSED; it spends nothing until set_reddit_ads_status(confirm:true). Reddit requires more here than most platforms and refuses the create without it: a bidType, a bidStrategy, a startTime, a budget with its goalType, a bidAmount whenever the bid type is a paid rate, and a conversion pixel (resolved automatically when the ad account has exactly one). THE BID TYPE MUST FIT THE CAMPAIGN’S OBJECTIVE — a CLICKS campaign takes CPC and refuses CPM; Reddit’s error says which. Money is ordinary amounts in the ad account’s currency (micro-currency is handled for you). Resolve community names and interest ids with search_reddit_ads_targeting first, and consider reddit_ads_forecast + reddit_ads_bid_suggestion before committing. Everything is READ BACK from Reddit before you are told it exists — print the returned note verbatim.

ParameterTypeDescription
adAccountIdstring
campaignIdrequiredstringthe campaign this ad group belongs to
namerequiredstring
budgetrequirednumberbudget in the ad account’s currency, paired with goalType
goalType"DAILY_SPEND" | "LIFETIME_SPEND"default DAILY_SPEND
bidTyperequired"CPC" | "CPM" | "CPV" | "CPV6"must fit the campaign objective — CLICKS campaigns take CPC
bidStrategyrequired"BIDLESS" | "MANUAL_BIDDING" | "MAXIMIZE_VOLUME" | "TARGET_CPX"MANUAL_BIDDING needs bidAmount
bidAmountnumberbid in the ad account’s currency — required for paid bid types; ask reddit_ads_bid_suggestion
startTimerequiredstringISO 8601, e.g. 2026-08-15T00:00:00Z — Reddit rejects the create without one
endTimestring
conversionPixelIdstringonly needed when the ad account has more than one pixel
optimizationGoalstringcannot be changed later
savedAudienceIdstringreuse a saved audience instead of spelling targeting out — from list_reddit_ads_saved_audiences
targetingobject
scheduleobject[]weekly dayparting windows — omit to run all week

update_reddit_ads_ad_group#

Edit a Reddit ad group

Change an existing Reddit ad group’s name, budget, goal type, bid, schedule dates or targeting. Budget and bid are ordinary amounts in the ad account’s currency. Targeting MERGES KEY BY KEY — measured live 2026-08-05, and it is NOT a wholesale replace: a key you send replaces that whole list, a key you LEAVE OUT is kept exactly as it was, and an explicit empty array (geolocations: []) is the only way to clear one. So passing just {communities:[…]} does NOT drop an existing geo or interest filter on an ad group that holds the budget — name every key you want gone. This does NOT activate or pause anything; use set_reddit_ads_status for that. The result is read back from Reddit.

ParameterTypeDescription
adAccountIdstring
adGroupIdrequiredstring
namestring
budgetnumber
goalType"DAILY_SPEND" | "LIFETIME_SPEND"
bidAmountnumber
bidType"CPC" | "CPM" | "CPV" | "CPV6"
bidStrategy"BIDLESS" | "MANUAL_BIDDING" | "MAXIMIZE_VOLUME" | "TARGET_CPX"
startTimestring
endTimestring
savedAudienceIdstringpoint this ad group at a saved audience instead
targetingobjectsame shape as create_reddit_ads_ad_group — REPLACES the existing targeting
scheduleobject[]

create_reddit_ads_ad#

Create a Reddit ad

Create the ad itself — the object that binds a POST (the creative) to an AD GROUP (the targeting and budget). Create the post first with create_reddit_ads_post and pass its id as postId; without a post there is nothing to show. ALWAYS created PAUSED, and Reddit additionally has to APPROVE it, so a fresh ad reports effective status PENDING_APPROVAL — report that rather than calling it live. GOTCHA: a TEXT ("free form") post’s ad may not carry clickUrl at all — Reddit refuses it. The click destination for image and link ads lives on the POST’s media destinationUrl, not here.

ParameterTypeDescription
adAccountIdstring
adGroupIdrequiredstringthe ad group whose targeting and budget this ad runs under
namerequiredstring
postIdrequiredstringthe post to promote (t3_…) from create_reddit_ads_post or list_reddit_ads_posts
clickUrlstringleave unset for TEXT-post ads — Reddit rejects "Free form ads cannot have a click url"
redditProfileIdstringthe post author profile — required for catalog sales campaigns
eventTrackersobject[]third-party measurement URLs; only Reddit-approved providers are accepted

update_reddit_ads_ad#

Edit a Reddit ad

Rename a Reddit ad, point it at a different post, or change its click url. Does not activate or pause it — use set_reddit_ads_status. Swapping the post changes what people see, so confirm the new creative with the user first. The result is read back from Reddit.

ParameterTypeDescription
adAccountIdstring
adIdrequiredstring
namestring
postIdstringpromote a different post
clickUrlstringpass an empty string to clear it

update_reddit_ads_campaign#

Edit a Reddit campaign

Change an existing Reddit campaign’s name, spend cap, budget, goal type or flight dates. Amounts are ordinary numbers in the ad account’s currency. This does NOT activate, pause or archive anything — use set_reddit_ads_status for that. The result is read back from Reddit before you are told it took.

ParameterTypeDescription
adAccountIdstring
campaignIdrequiredstring
namestring
spendCapnumberlifetime spend ceiling in the ad account’s currency
budgetnumber
goalType"DAILY_SPEND" | "LIFETIME_SPEND"
startTimestring
endTimestring

set_reddit_ads_status#

Activate, pause, archive or delete a Reddit campaign / ad group / ad destructive

The one switch that arms real money on Reddit. Pass kind ("campaign", "ad_group" or "ad") plus the object id. ACTIVE starts real spend as soon as Reddit approves — show the user exactly what will run and get an explicit yes, then call again with confirm:true. PAUSED is always safe and never gated. REDDIT HAS NO DELETE OPERATION for these three: removal is a status, and ARCHIVED/DELETED here run the SAME blast-radius gate as delete_reddit_ads_object (call that one instead when you mean to remove something — it is the same code path and its unconfirmed call reports what goes with it). Remember Reddit’s three tiers all have to be ACTIVE for a single impression to serve: activating the campaign alone does nothing if its ad group and ad are still paused. The resulting status is READ BACK from Reddit.

ParameterTypeDescription
adAccountIdstring
kindrequired"campaign" | "ad_group" | "ad"
idrequiredstring
statusrequired"ACTIVE" | "PAUSED" | "ARCHIVED" | "DELETED"ACTIVE = start spending; PAUSED = stop; ARCHIVED = retire; DELETED = permanent, and blocked for 3h after any change
confirmbooleanREQUIRED true for ACTIVE (real spend), ARCHIVED and DELETED

delete_reddit_ads_object#

Delete or archive a Reddit campaign / ad group / ad destructive

Remove a Reddit campaign, ad group or ad. REDDIT HAS NO DELETE VERB for any of the three — its whole Ads API has exactly four HTTP DELETE endpoints and none of them is a campaign, ad group or ad — so removal is the `configured_status` field: DELETED (permanent) or ARCHIVED (out of service, and can be set back to PAUSED). DELETED is additionally TIME-GATED: Reddit refuses to delete anything modified in the last 3 hours, and the refusal names ARCHIVED as the immediate alternative. CALL IT WITHOUT confirm FIRST — nothing changes, and you get the object’s real name, status and how many ad groups / ads sit under it, read live from Reddit. A target with children or live delivery then needs confirmName (its exact name) and confirmChildren (the count from that read-back). Reddit does NOT document whether removing a campaign cascades to its ad groups and ads — each carries its own status — so remove the children yourself if they should go too. To stop delivery without removing, use set_reddit_ads_status(status:"PAUSED").

ParameterTypeDescription
adAccountIdstring
kindrequired"campaign" | "ad_group" | "ad"
idrequiredstring
status"DELETED" | "ARCHIVED"DELETED = permanent (default); ARCHIVED = out of service but reversible to PAUSED
confirmbooleanREQUIRED true
confirmNamestringthe object’s EXACT name, required when it has children or is live
confirmChildrennumberthe exact number of children reported by the unconfirmed call, required when it has any

Reddit Ads wave 2: measurement, audiences, lead forms, chang…

list_reddit_ads_pixels#

List Reddit conversion pixels (and whether they are firing) read-only

List the conversion pixels on a Reddit ad account, each with the LAST TIME IT FIRED — which is the difference between "a pixel exists" and "conversion tracking works". Call this before building anything: since 13 July 2026 Reddit REQUIRES a pixel on every ad group and every CBO campaign, so an account with none cannot run ads at all. IMPORTANT: the Reddit API has no operation that creates a pixel — if the account has none, the only fix is for the user to add it in Reddit’s Events Manager (ads.reddit.com ▸ Events Manager); never claim you can create one. Read-only, free.

ParameterTypeDescription
adAccountIdstringReddit ad account id (a2_…) — omit when only one is shared

send_reddit_ads_conversions#

Send conversions to Reddit (Conversions API)

Report conversions to Reddit server-side — purchases, leads, sign-ups, or your own custom events — so Reddit can attribute them to the ads that caused them and optimise delivery toward them. This is what makes a CONVERSIONS campaign work; without it Reddit optimises blind. Send events as close to real time as you can: Reddit REFUSES anything older than seven days, and deduplication against the browser pixel only works inside two days. Pass ordinary email addresses and phone numbers — they are canonicalised and SHA-256 hashed on our server before they reach Reddit, and a value you already hashed is passed through untouched. The more match keys per event (email, phone, clickId, uuid, externalId, IP + user agent) the better the attribution. Set conversionId on every event if you ALSO run the browser pixel, or the same purchase is counted twice. Costs no credits and spends no ad money — this is measurement. Needs the "adsconversions" permission: if Reddit answers 403, the connection predates it and the user must reconnect Reddit Ads.

ParameterTypeDescription
adAccountIdstring
pixelIdstringfrom list_reddit_ads_pixels — only needed when the account has more than one
testIdstringa test id from Events Manager ▸ Testing — events sent with it are visible there and NEVER counted in reporting
eventsrequiredobject[]up to 1,000 events per call

list_reddit_ads_audiences#

List Reddit custom audiences read-only

List the CUSTOM AUDIENCES (uploaded customer lists) on a Reddit ad account, with each one’s match-size range and status. Reddit will not deliver to an audience under about 1,000 matched redditors, and the reply says which ones fall short — an audience that is too small silently reaches nobody rather than erroring. Use an id here as customAudienceIds in ad-group targeting to retarget it, or as excludedCustomAudienceIds to suppress existing customers from a prospecting campaign. Read-only, free.

ParameterTypeDescription
adAccountIdstring
namestringfilter by name
limitnumberdefault 50, max 100

create_reddit_ads_audience#

Create a Reddit custom audience (customer list)

Create an empty custom audience on a Reddit ad account, then fill it with update_reddit_ads_audience_users. Reddit only supports ONE kind of audience through the API — an uploaded CUSTOMER LIST matched on hashed emails and mobile advertising ids; pixel-retargeting, engagement and lookalike audiences are built by Reddit itself in Ads Manager and cannot be created here. The audience arrives empty and stays unusable until it matches roughly 1,000 redditors, and Reddit takes up to 4 hours to show a size change and up to 36 hours to finish processing a list — so do not create, upload and then report success on reach in the same breath. Free.

ParameterTypeDescription
adAccountIdstring
namerequiredstringwhat this list is, e.g. "Purchasers – last 180 days"

update_reddit_ads_audience_users#

Add or remove people in a Reddit custom audience

Add people to, or remove people from, a Reddit custom audience. Pass ordinary email addresses and/or mobile advertising ids — each one is canonicalised the way Reddit specifies and SHA-256 hashed on our server before it is sent, so raw customer data never reaches Reddit, and an identifier you already hashed is passed through untouched. Up to 2,500 rows per call; send bigger lists as repeated calls and the audience accumulates. EVERY ROW MUST CARRY THE SAME FIELDS: Reddit’s upload is positional, so if some rows have an email and others do not, the values shift into the wrong column and match nobody — split those into separate calls instead. After Reddit accepts the upload the size does not move for up to 4 hours and processing can take 36, so never re-send the same batch because the count looks unchanged. Free.

ParameterTypeDescription
adAccountIdstring
customAudienceIdrequiredstringfrom create_reddit_ads_audience or list_reddit_ads_audiences
action"ADD" | "REMOVE"default ADD
usersrequiredobject[]up to 2,500 rows; every row must carry the same fields

delete_reddit_ads_audience#

Delete a Reddit custom audience destructive

Permanently delete a Reddit custom audience. This is one of the very few things Reddit really deletes — campaigns, ad groups and ads are only ever archived — and it cannot be undone: the uploaded list is gone and any ad group targeting it loses that audience. Confirm-gated: show the user the audience name and its size, get an explicit yes, then call again with confirm:true.

ParameterTypeDescription
adAccountIdstring
customAudienceIdrequiredstring
confirmbooleanREQUIRED true — the deletion is permanent

list_reddit_ads_saved_audiences#

List Reddit saved audiences read-only

List the SAVED AUDIENCES on a Reddit ad account — named, reusable targeting definitions (communities, interests, geos, devices and so on) that an ad group can point at instead of repeating the whole block. The reply says how many live ad groups each one is attached to, which is what makes editing one a decision rather than a formality. Read-only, free.

ParameterTypeDescription
adAccountIdstring
limitnumberdefault 50, max 100

create_reddit_ads_saved_audience#

Create a reusable Reddit saved audience

Save a targeting definition under a name so every ad group can reuse it — define "our people" once, then pass savedAudienceId when creating ad groups instead of retyping communities and interests each time, and one later edit re-targets every ad group using it. Takes the same targeting block as create_reddit_ads_ad_group, so resolve community names and interest ids with search_reddit_ads_targeting first. Creates targeting only: no budget, no spend. Free.

ParameterTypeDescription
adAccountIdstring
namerequiredstring
targetingrequiredobjectsame shape as create_reddit_ads_ad_group targeting — an empty block is refused, because a saved audience IS its targeting

update_reddit_ads_saved_audience#

Edit a Reddit saved audience

Rename a Reddit saved audience or replace its targeting. Targeting MERGES KEY BY KEY — measured live 2026-08-05, not a wholesale replace: a key you send replaces that whole list, a key you LEAVE OUT is kept as it was, and an explicit empty array (geolocations: []) is the only way to clear one — so name every key you want gone. Editing one that live ad groups already use re-targets all of them immediately, so say how many are affected and get a yes before changing targeting on a running account. The result is read back from Reddit.

ParameterTypeDescription
adAccountIdstring
savedAudienceIdrequiredstring
namestring
targetingobjectREPLACES the existing targeting

delete_reddit_ads_saved_audience#

Delete a Reddit saved audience destructive

Delete a Reddit saved audience — the named, reusable targeting block ad groups point at. Reddit publishes NO delete verb for one (its whole Ads API has four, and this is not among them), so removal is its `status` field set to DELETED. THE BLAST RADIUS IS THE AD GROUPS USING IT: every live ad group pointing at this audience loses that targeting definition the moment it goes, and Reddit’s own `active_ad_groups_count` is what says how many. CALL IT WITHOUT confirm FIRST — nothing is deleted and you get its real name and that count; show the user exactly that, and if any ad group uses it you must then pass confirmName (its exact name) and confirmChildren (the count). The result is READ BACK from Reddit.

ParameterTypeDescription
adAccountIdstring
savedAudienceIdrequiredstring
confirmbooleanREQUIRED true
confirmNamestringthe audience’s EXACT name, required when live ad groups use it
confirmChildrennumberthe exact number of live ad groups reported by the unconfirmed call

list_reddit_ads_lead_forms#

List Reddit lead generation forms read-only

Listing and reading forms KEEPS WORKING past the 2026-09-21 sunset — Reddit deliberately leaves GET/LIST up so advertisers can retain their records — so use this to EXPORT what exists before the deadline. Reddit exposes no API for the LEADS a form collected; those are downloaded from Ads Manager, and existing onsite-form ads are paused on 2026-09-30. List the lead generation forms on a Reddit ad account, with the fields each one asks for. Reddit publishes NO endpoint for reading the leads a form has collected — the user downloads those from Reddit’s Ads Manager. Say that plainly if asked for the leads themselves; do not imply they can be fetched. Read-only, free.

ParameterTypeDescription
adAccountIdstring
limitnumberdefault 50, max 100

create_reddit_ads_lead_form#

Create a Reddit lead generation form

REDDIT IS SUNSETTING THIS ON 2026-09-21 AND IT CANNOT BE REPLACED LIKE FOR LIKE. Reddit is removing onsite lead forms entirely — the API sunsets 2026-09-21 (their migration guide says 2026-09-30 for the same change; Hermoso stops creating on the earlier date so a form is never built that turns out not to work) and Reddit PAUSES every ad still using an onsite form on 2026-09-30. After that this tool refuses and says so. DO NOT BUILD A NEW FUNNEL ON IT: Reddit’s replacement is an OFFLINE form on the advertiser’s own landing page, measured with the Reddit Pixel or the Conversions API — list_reddit_ads_pixels and send_reddit_ads_conversions, both of which work here today. Create a lead generation form — the in-feed form redditors fill in without leaving Reddit, used by LEAD_GENERATION campaigns. Reddit requires a link to a real privacy policy on every form. Ask for the FEWEST fields that make a lead useful: every extra question costs completions. KNOW THE LIMIT BEFORE YOU PROMISE ANYTHING: Reddit exposes no way to attach a form to an ad through the API — there is no lead-form field on an ad, an ad group or a post — so the user picks this form in Reddit’s Ads Manager when building the creative, and downloads its leads from there. There is also no update and no delete, so get the questions right the first time. Free.

ParameterTypeDescription
adAccountIdstring
namerequiredstringinternal name — redditors do not see it
promptrequiredstringthe line shown above the form telling people what they are signing up for
privacyLinkrequiredstringfull https:// URL to your privacy policy — Reddit requires it
questionsrequiredobject[]at least one

reddit_ads_history#

Reddit ad account changelog read-only

Read the CHANGELOG for a Reddit ad account — what was changed, from what to what, by which member, and when. This is the tool for "performance fell off a cliff on Tuesday, what changed?" and for auditing what an agent or a teammate actually did. Call it with nothing but the ad account to get every change; narrow it with a date window, change types (BUDGET, BID, STATUS, TARGETING…) or specific campaign / ad group / ad ids. An empty result genuinely means nothing was changed in that window — say that, do not read it as missing data. Read-only, free.

ParameterTypeDescription
adAccountIdstring
sincestringYYYY-MM-DD or full ISO timestamp
untilstringYYYY-MM-DD or full ISO timestamp
changeTypes"AD_ACCOUNT" | "AD" | "AD_GROUP" | "AUDIENCE" | "BID" | "BUDGET" | "CAMPAIGN" | "STATUS" | "TARGETING"[]
entityType"AD" | "AD_GROUP" | "CAMPAIGN"required when you pass entityIds
entityIdsstring[]restrict to these objects
includeChildEntitiesbooleanalso return changes to what lives under those objects
memberIdsstring[]restrict to changes made by these Reddit members
limitnumberdefault 50, max 200

TIKTOK ADS

list_tiktok_ads_accounts#

List TikTok advertiser accounts read-only

List the TikTok ADVERTISER accounts this brand can act on — id, name, currency, timezone and status. Every other TikTok Ads tool needs an advertiserId, and this is where it comes from: call this first and let the USER pick when there is more than one. Read-only, free, spends nothing. Needs TikTok ADS connected (Settings ▸ Connectors ▸ TikTok Ads) — that is a DIFFERENT connection from the TikTok posting connector behind post_to_tiktok, so a brand that publishes to TikTok every day may still have nothing here.

No parameters.

list_tiktok_ads_campaigns#

List TikTok campaigns, ad groups and ads read-only

Read a TikTok advertiser account’s whole tree in one call — campaigns, ad groups and ads, each with the operation status that says whether it is enabled at all. Omit advertiserId when the brand reaches exactly one account; with several, the call names the choices rather than picking for you. THE THREE TIERS ARE READ SEPARATELY AND A TIER THAT FAILED IS REPORTED AS FAILED, never as empty — if the result carries a `partial` note, say which tier could not be read instead of telling the user they have no ads. Read-only, free. TikTok’s QPS is 1, so a big account reads back slowly: that is the throttle working, not a fault.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts — omit only when exactly one is reachable

list_tiktok_ads_identities#

List the TikTok identities an ad can post as read-only

List the IDENTITIES on a TikTok advertiser account — the TikTok accounts an ad is allowed to appear as. THIS IS A HARD PREREQUISITE, not a convenience: a TikTok ad carries no identity of its own and there is NO DEFAULT, so create_tiktok_ads_ad refuses without an id from here. Call it, show the user the list, and let them CHOOSE — an ad runs publicly under whichever account is named, so picking one for them is a public mistake on somebody else’s profile. If it comes back empty, no TikTok account has been authorised on this advertiser yet and nothing can be advertised from it; say that rather than guessing an id. Read-only, free.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts
eventSourceType"PIXEL" | "APP"PIXEL (default) or APP — TikTok publishes no other value
eventSourceIdstringthe pixel id (list_tiktok_ads_pixels) or app id. Omit and a single pixel is resolved for you; with several you are asked which.
searchKeywordstringfilter by Custom Conversion name (fuzzy) or id
pageSizenumber1-1000, default 10

SPARK ADS

list_tiktok_ads_identity_posts#

List the organic TikTok posts under an identity read-only

List the real ORGANIC TikTok posts published by one identity — the account itself, not the ad library. THIS IS WHERE A SPARK AD STARTS: pass an itemId from here to create_tiktok_ads_ad as tiktokItemId and the ad IS that post, with its own comments, likes and shares, running under the account that made it. Use this for an account the brand controls or has been granted (identityType TT_USER or BC_AUTH_TT); for a CREATOR’s post they authorised with a code, use list_tiktok_ads_spark_posts instead. identityId and identityType both come from list_tiktok_ads_identities, and a BC_AUTH_TT identity ALSO needs the identityAuthorizedBcId reported next to it — TikTok refuses the call without it. TikTok defaults to VIDEO posts only, so pass itemType:"CAROUSEL" to see photo posts; an account that posts only photos otherwise looks empty. Paginated by CURSOR, not page: pass back the cursor while hasMore is true. posterUrl and previewUrl EXPIRE AFTER AN HOUR — show them, never store them. Read-only, free.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts
identityIdrequiredstringREQUIRED — from list_tiktok_ads_identities
identityTyperequiredstringREQUIRED — the matching type from list_tiktok_ads_identities. Only AUTH_CODE, TT_USER and BC_AUTH_TT can front a Spark Ad; CUSTOMIZED_USER cannot and is refused here.
identityAuthorizedBcIdstringREQUIRED when identityType is BC_AUTH_TT — reported next to the id by list_tiktok_ads_identities
itemType"VIDEO" | "CAROUSEL"TikTok defaults to VIDEO only — pass CAROUSEL for photo posts
excludeAdsOnlybooleantrue hides ads-only posts (ones published as ads and hidden from the profile), returning at most the 500 most recent organic posts
cursorstringfrom the previous call, while hasMore is true
countnumber1-20; TikTok ignores anything larger and returns 20

list_tiktok_ads_spark_posts#

List TikTok posts authorised to this ad account read-only

List the TikTok posts a post OWNER has authorised this ad account to promote — the creator-collaboration half of Spark Ads. These are posts from accounts the brand does NOT control: the owner generates an authorization code in the TikTok app and authorize_tiktok_ads_spark_post applies it, after which the post appears here with the itemId create_tiktok_ads_ad needs as tiktokItemId. AN EMPTY LIST IS A NORMAL STARTING STATE, not a failure — it means nobody has authorised a post yet, and the fix is to ask a creator for a code, not to retry. Each row carries the authorization WINDOW (authStartTime / authEndTime): a Spark Ad cannot outlive its authorization, so check the end time before building a campaign around one. Read-only, free.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts
itemTypes"VIDEO" | "CAROUSEL"[]defaults to BOTH here (unlike list_tiktok_ads_identity_posts, which defaults to VIDEO alone)
keywordstringfree text (fuzzy, ≤500 chars) or an exact TikTok post id (≥19 digits)
pagenumber
pageSizenumber1-50, default 20

authorize_tiktok_ads_spark_post#

Apply a TikTok Spark Ads authorization code

Apply an authorization code so this ad account may promote somebody else’s TikTok post. THE CODE CANNOT BE MINTED FROM THE API — only the post’s owner can generate one, in the TikTok app: open the post → ⋯ → Ad settings → toggle Ad authorization → choose a duration → copy the code. Ask them for it; there is no way around this and no endpoint that creates one. Applying a code SPENDS NOTHING and creates nothing that can serve — it only grants permission — so it is deliberately not confirm-gated. If the post is a DUET or STITCH of another post, or mentions one, TikTok requires the ORIGINAL post owner’s code too: pass it as originalPostAuthCode or the call is refused. THE ANSWER IS THE READ-BACK: the reply lists the posts now authorised, because TikTok’s own response body is empty and a bare 200 proves nothing.

ParameterTypeDescription
advertiserIdstring
authCoderequiredstringthe code the post owner generated in the TikTok app. Paste it verbatim — Hermoso handles the + / %2B escaping TikTok warns about.
originalPostAuthCodestringREQUIRED when the post is a duet/stitch of, or mentions, another post — the ORIGINAL post owner’s code

unbind_tiktok_ads_spark_post#

Remove a post from the authorised Spark Ads list destructive

Remove a TikTok post from this ad account’s authorised Spark Ads list — the cleanup for an authorization that has expired or been revoked. IT IS NOT REVERSIBLE FROM OUR SIDE: re-authorising needs a FRESH code from the post’s owner, who is usually not the person making this call, so getting it wrong costs a conversation with a creator rather than a second API call — which is why it is confirm-gated even though it spends nothing. Ads already built on the post keep running; what is lost is the ability to build a NEW one. Calling it without confirm CHANGES NOTHING and returns the sentence describing exactly what would happen. THE READ-BACK INVERTS: the proof is the post’s ABSENCE from the authorised list afterwards, and an id that is still there is reported as not confirmed rather than done.

ParameterTypeDescription
advertiserIdstring
itemIdrequiredstringfrom list_tiktok_ads_spark_posts
confirmbooleanREQUIRED true — call without it first to see exactly what would change

PIXELS: what makes a TikTok CONVERSION campaign deliverable…

list_tiktok_ads_pixels#

List a TikTok advertiser’s conversion pixels read-only

List the conversion pixels on a TikTok ad account, each with the EVENTS it can optimise toward — which is the difference between "a pixel exists" and "this campaign can actually optimise". Call it before building any conversion campaign (WEB_CONVERSIONS, CONVERSIONS, PRODUCT_SALES, LEAD_GENERATION): those need optimizationGoal CONVERT, which TikTok refuses without a pixel. Only an event reported under optimizationEvent can be used — TikTok returns none for PAGE_VIEW because it "cannot be used for optimization". An EMPTY event list is not proof a pixel is idle: TikTok refreshes pixel event data every 2-4 hours, so a pixel that started firing recently still reports []. Read-only, free.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts — omit only when exactly one is reachable
pixelIdstringfilter to one pixel
namestringfuzzy name filter

create_tiktok_ads_pixel#

Create a TikTok conversion pixel

Create a new TikTok pixel on an ad account so conversion campaigns have something to optimise toward. Returns the pixel id and the pixel CODE plus the script to install. A PIXEL ALONE IS NOT ENOUGH AND THIS IS THE PART PEOPLE MISS: it measures nothing until (1) the script is installed on the website and (2) the specific conversion EVENT is defined on it — until then TikTok refuses a conversion ad group with "This pixel event type does not exist." TikTok caps the name at 40 characters, rejects emojis and rejects DUPLICATE names, and it recommends naming the pixel after the site it measures. Creating a pixel spends nothing and serves nothing — it is a measurement definition. NOTE: TikTok publishes NO endpoint that deletes a pixel, so a pixel created here is permanent on that ad account.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts
namerequiredstring≤40 characters, no emojis, and it must not duplicate an existing pixel name on the account. TikTok recommends the website or domain it measures.

tiktok_ads_pixel_stats#

Read how often a TikTok pixel’s events fired read-only

Event-level statistics for one TikTok pixel over a date range — how many times each event actually fired, which is how you tell a pixel that is installed and working from one that is installed and silent. Takes the pixel CODE (not the id) as reported by list_tiktok_ads_pixels. Read-only, free.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts
pixelCoderequiredstringthe pixelCode from list_tiktok_ads_pixels — NOT the pixelId
startDatestringYYYY-MM-DD
endDatestringYYYY-MM-DD

list_tiktok_ads_custom_conversions#

List TikTok Custom Conversions read-only

List the Custom Conversions defined on a TikTok EVENT SOURCE — narrower, rule-based conversions built on top of a pixel event (for example "Purchase, but only on /checkout/premium"). A Custom Conversion belongs to an event source, NOT to an advertiser, so TikTok requires eventSourceType and eventSourceId; with none given this resolves the single pixel on the advertiser when there is exactly one and otherwise asks which. Pass a Custom Conversion to create_tiktok_ads_ad_group as customConversionId to optimise toward the narrow rule instead of the broad standard event. TikTok accepts it ONLY alongside a pixel and only when optimizationGoal is CONVERT or IN_APP_EVENT, and only when its own optimizationEvent matches the one on the ad group; usableForAds reports whether its activity status allows it. Read-only, free.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts

REACH & FREQUENCY · LEAD MANAGEMENT · MEASUREMENT

tiktok_ads_rf_inventory_estimate#

Estimate TikTok Reach & Frequency inventory read-only

Reach & Frequency INVENTORY ESTIMATE — how many people TikTok can reach, for what budget, at what frequency, over a fixed window, before anything is booked. THIS IS THE ONLY SANCTIONED SOURCE of the three numbers create_tiktok_ads_rf_ad_group needs (budget, purchasedImpression, purchasedReach), and that matters because TikTok does NOT refuse a reservation outside the range it estimated — it silently books its own maximum instead, so an invented number buys something nobody asked for. IMPRESSIONS AND REACH COME BACK IN THOUSANDS (110 means 110,000) and the create takes the same unit, so pass them back UNSCALED. Fix ONE of the three with rfPurchasedType (FIXED_BUDGET / FIXED_SHOW / FIXED_REACH) and TikTok predicts the other two; omit it to get the whole range. Reach & Frequency is ALLOWLIST-ONLY per ad account. Read-only, free, books nothing.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts — omit only when exactly one is reachable
locationIdsrequiredstring[]REQUIRED, and from ONE country or region only — ids from search_tiktok_ads_targeting(kind:"location")
scheduleStartTimerequiredstring"YYYY-MM-DD HH:00:00" UTC. R&F is booked in whole days IN THE TARGET REGION’S time zone expressed as UTC, so an advertiser in UTC-5 starting Nov 3 passes "2020-11-03 05:00:00" — not midnight.
scheduleEndTimerequiredstring"YYYY-MM-DD HH:59:59" UTC. On THIS endpoint the window may not exceed 30 days (the create allows 90).
frequencyrequirednumberwith frequencySchedule, the cap: frequency 2 + frequencySchedule 3 means "at most twice every 3 days". Must be <= frequencySchedule and never more than 4 per day.
frequencySchedulerequirednumberthe cycle in days, at most min(campaign length, 30)
rfPurchasedTypestringFIXED_BUDGET | FIXED_SHOW | FIXED_REACH — which one you FIX. Pass its own number too (budget / purchasedImpression / purchasedReach). Omit entirely for the unconstrained range.
budgetnumberrequired with FIXED_BUDGET
purchasedImpressionnumberIN THOUSANDS — required with FIXED_SHOW
purchasedReachnumberIN THOUSANDS — required with FIXED_REACH
feedTypestringSTANDARD_FEED (large inventory, normal CPM) or TOP_FEED (limited inventory, higher CPM)
brandSafetyTypestringNO_BRAND_SAFETY (default) | EXPANDED_INVENTORY | STANDARD_INVENTORY | LIMITED_INVENTORY
ageGroupsstring[]
genderstring
languagesstring[]
operatingSystemsstring[]ANDROID, IOS, PC
interestCategoryIdsstring[]ids from search_tiktok_ads_targeting(kind:"interest")

create_tiktok_ads_rf_ad_group#

Book a TikTok Reach & Frequency ad group (confirm-gated)

Create the ad group of a REACH & FREQUENCY campaign. THIS IS THE ONE OBJECT HERMOSO CREATES THAT CANNOT BE BORN PAUSED, and that is TikTok’s doing, not ours: /adgroup/rf/create/ publishes no operation_status anywhere in its parameter table, so there is no field to force — and an R&F ad group is a RESERVATION whose budget locks 5 minutes before delivery. So it needs confirm:true, and WITHOUT confirm NOTHING IS CREATED: you get the sentence describing exactly what would be booked, which you must show the user before asking for a yes. The three reservation numbers must come from tiktok_ads_rf_inventory_estimate — TikTok silently books its own maximum rather than refusing a number outside the estimated range. REACH & FREQUENCY IS ALLOWLIST-ONLY PER AD ACCOUNT: TikTok requires the advertiser to be allowlisted by a TikTok representative and to have signed a Commercial Contract for Branding, no API reports that status, and if TikTok refuses this the remedy is a conversation with the rep rather than a different field.

ParameterTypeDescription
advertiserIdstring
campaignIdrequiredstringan RF_REACH campaign (create_tiktok_ads_campaign with objective RF_REACH and budgetMode BUDGET_MODE_INFINITE)
namerequiredstring
locationIdsrequiredstring[]one country or region only
rfPurchasedTyperequiredstringFIXED_BUDGET | FIXED_SHOW | FIXED_REACH
budgetrequirednumberfrom the estimate
purchasedImpressionrequirednumberIN THOUSANDS, from the estimate
purchasedReachrequirednumberIN THOUSANDS, from the estimate
scheduleStartTimerequiredstring"YYYY-MM-DD HH:00:00" UTC for the target region
scheduleEndTimerequiredstring"YYYY-MM-DD HH:59:59" UTC; at most 90 days after the start
frequencyrequirednumber
frequencySchedulerequirednumber
optimizationGoalstringREACH (default) | VIDEO_VIEW | CLICK | POST_ENGAGEMENT | INSTALL — must fit the campaign objective
cpvVideoDurationstringSIX_SECONDS — required when optimizationGoal is VIDEO_VIEW
requestIdstringTikTok’s own idempotency key on this endpoint. Reuse the same value on a retry after a timeout and TikTok will not double-book.
ageGroupsstring[]
genderstring
languagesstring[]
operatingSystemsstring[]
interestCategoryIdsstring[]
brandSafetyTypestring
feedTypestring
deliveryModestringSTANDARD | SCHEDULE | SEQUENCE
commentDisabledboolean
shareDisabledboolean
videoDownloadDisabledboolean
confirmbooleanREQUIRED to book. Without it nothing is created and you get the sentence to show the user.

LEADS

list_tiktok_ads_lead_forms#

List a TikTok advertiser’s Instant Forms read-only

The Instant Forms (lead forms) on a TikTok ad account — this is where the pageId every other lead tool needs comes from. A form whose status is EDITED is a DRAFT and has never been able to collect anything, which is a different thing from "a form with no leads". THERE IS NO API THAT CREATES AN INSTANT FORM: they are built in TikTok Ads Manager, so an advertiser with none needs one made there (or a LEAD_GENERATION campaign using promotionTargetType EXTERNAL_WEBSITE, which collects on your own site and has no form here). Read-only, free.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts
statusstringPUBLISHED or EDITED (draft)
titlestringexact-match name filter

list_tiktok_ads_lead_fields#

What one TikTok Instant Form asks read-only

The questions a TikTok Instant Form asks — which is exactly the set of columns download_tiktok_ads_leads will return. It is NOT a fixed schema: it is whatever that form was built to ask, so read it before promising a user which fields their leads carry. leadSource DIRECT_MESSAGE reads the fields collected in the associated Business Account’s direct messages instead, and takes no pageId (TikTok says it is "not supported" there). Read-only, free.

ParameterTypeDescription
advertiserIdstring
pageIdstringthe Instant Form, from list_tiktok_ads_lead_forms. Required for INSTANT_FORM.
leadSourcestringINSTANT_FORM (default) or DIRECT_MESSAGE

download_tiktok_ads_leads#

Download the leads from a TikTok lead ad read-only

DOWNLOAD THE ACTUAL LEADS — the names, emails and phone numbers people entered in a TikTok Instant Form. REGION IS REQUIRED AND THERE IS NO "ALL": TikTok keeps US, EEA/CH/UK and everywhere-else leads in three SEPARATE stores and returns only the one you name, so asking for the wrong one returns an empty file that reads exactly like "this ad got no leads". Run it once per region if the ad targets more than one. TikTok restricts lead download to ad-account ADMINS, so a refusal is a Business Center role rather than a broken connection and reconnecting will not fix it. Hermoso creates the download task, polls it and parses the CSV in ONE call because TikTok expires the generated file after 10 minutes. A task that has not finished, or a file TikTok zipped because it exceeded 10MB, is reported as "could not read" — never as "no leads". THE ROWS ARE PERSONAL DATA. Free.

ParameterTypeDescription
advertiserIdstring
regionrequiredstringREQUIRED. "us" = the United States · "eu" = the EEA, Switzerland and the UK · "other" = every country EXCEPT those — "other" is a third bucket, NOT "everywhere". Check the ad group’s targeting if unsure.
pageIdstringevery lead on one Instant Form, from list_tiktok_ads_lead_forms
adIdstringjust that ad’s leads. Pass this OR pageId, never both — they are different scopes and TikTok would pick for you.
maxnumberrows to return, default 200, cap 500. The `total` field always reports how many the file actually held.

manage_tiktok_ads_test_lead#

Create, read or delete a TikTok TEST lead

TikTok’s own test-lead mechanism — the way to prove a lead pipeline works end to end WITHOUT waiting for a real person to fill in a form, and the exact twin of testEventCode on send_tiktok_ads_events. action "create" makes one, "get" reads the existing one, "delete" removes it. A test lead flows through the SAME download path as a real one (so download_tiktok_ads_leads is provably wired), carries obviously-dummy campaign and ad-group names so it can never be mistaken for a customer, spends nothing and reaches nobody. TikTok allows EXACTLY ONE test lead per Instant Form, so delete the existing one before creating another. Free.

ParameterTypeDescription
advertiserIdstring
actionrequired"create" | "get" | "delete"create | get | delete
pageIdstringthe Instant Form, from list_tiktok_ads_lead_forms — required for create/get on an INSTANT_FORM
leadIdstringrequired for delete — get it from action:"get"
leadSourcestringINSTANT_FORM (default) or DIRECT_MESSAGE

MEASUREMENT

send_tiktok_ads_events#

Send server-side conversion events to TikTok (Events API 2.0)

SERVER-SIDE CONVERSION TRACKING — report a purchase, signup, form submission or lead to TikTok straight from a server, so TikTok can attribute it and optimise delivery toward it. This is what makes a pixel useful: a pixel with no events is inert, and a conversion campaign optimising toward an event nobody sends has nothing to learn from. ALWAYS OFFER testEventCode FIRST: an event carrying it lands in the Test Events tab of Events Manager and is EXCLUDED from reporting, attribution and optimisation, whereas an event sent WITHOUT it is a real, permanent conversion that TikTok will optimise against and that NO endpoint deletes. The code is copied out of Events Manager in a browser (open the pixel or event set ▸ Test Events ▸ the code button under "Test Server Events") and no API mints one, exactly like a Spark Ads authorization code. eventTime is a Unix timestamp in SECONDS — milliseconds are refused here for free, because TikTok accepts them and reads them as a date tens of thousands of years away, so the event is silently attributed to nothing. Emails, phones and external ids are trimmed, lower-cased, E.164-normalized and SHA-256 hashed by Hermoso exactly as TikTok specifies before anything leaves the process; a value that is already a 64-character hash is passed through untouched, so nothing is ever double-hashed. A phone with no "+" country code is refused rather than guessed. Free.

ParameterTypeDescription
advertiserIdstring
eventSourcerequired"web" | "app" | "offline" | "crm"web = a website pixel · app = a mobile app (TikTok gates this behind an allowlist) · offline = a physical store · crm = lead events from a CRM
eventSourceIdrequiredstringweb: the pixel CODE from list_tiktok_ads_pixels (NOT the pixelId) · app: the TikTok App ID · offline: the Offline Event Set ID · crm: the CRM Event Set ID
testEventCodestringfrom Events Manager ▸ Test Events. WITH it nothing reaches reporting or optimisation; WITHOUT it these are real permanent conversions. Offer it before sending anything live.
eventsrequiredobject[]up to 1000 per request — above that TikTok rejects the WHOLE request, not the overflow

AUDIENCE MANAGEMENT · DPA CATALOG · APP MANAGEMENT

list_tiktok_ads_audiences#

List a TikTok advertiser’s custom audiences read-only

The custom audiences on a TikTok ad account — retargeting pools built from real behaviour (website pixel, app activity, ad engagement, organic posts, leads, shop activity) plus any lookalike grown from them. Until this existed, TikTok targeting through Hermoso was interests-and-geo only. THE FIELD THAT DECIDES EVERYTHING IS usableInAdGroups: TikTok takes up to 48 HOURS to process a new audience, so isValid:false immediately after creation is the normal processing window rather than a failure, and only a valid audience changes delivery. ownership tells you whether this advertiser owns the audience or another one shared it. detail:true with audienceIds reads /dmp/custom_audience/get/ instead — adding the rule, the auto-refresh setting and any error message TikTok recorded. Read-only, free.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts — omit only when exactly one is reachable
audienceIdsstring[]up to 100 ids
detailbooleanneeds audienceIds — reads TikTok’s audience-detail endpoint instead, adding the rule and any error message it recorded
pagenumber
pageSizenumberup to 100

create_tiktok_ads_audience#

Build a TikTok retargeting audience from real behaviour

Create a TikTok custom audience from what people actually did — the thing that turns TikTok targeting from interests-and-geo into retargeting. audienceType chooses the source and EACH ONE READS A DIFFERENT ID SPACE for eventSourceIds, which is the mistake to avoid: PIXEL takes pixel ids (list_tiktok_ads_pixels), APP takes app ids (list_tiktok_ads_apps), ENGAGEMENT takes AD GROUP ids, ENGAGEMENT_ORGANIC_VIDEO takes TikTok post ids (list_tiktok_ads_identity_posts, max 10), TIKTOK_SHOP takes shop ids, OFFLINE takes offline event-set ids — and a LEAD_GENERATION audience must carry NO eventSourceIds at all, because TikTok errors if the field is present. The `event` on each rule must belong to that audience type: an event from a different family is refused here by name rather than silently building an audience that measures the wrong thing. THE AUDIENCE IS NOT USABLE IMMEDIATELY — TikTok takes up to 48 hours to process it, and until then it cannot be attached to an ad group. Creating one spends nothing: an audience is a definition. The reply is READ BACK from TikTok, because TikTok’s create returns an id and nothing else.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts
namerequiredstring≤128 characters
audienceTyperequired"ENGAGEMENT" | "ENGAGEMENT_ORGANIC_VIDEO" | "ENGAGEMENT_LIVE_VIDEO" | "APP" | "PIXEL" | "LEAD_GENERATION" | "BUSINESS_ACCOUNT" | "TIKTOK_SHOP" | "OFFLINE"
rulesrequiredobject[]inclusion rules, combined with OR. Each is {event, retentionDays, eventSourceIds?, parameterFilters?} — e.g. {event:"COMPLETE PAYMENT", retentionDays:30, eventSourceIds:["<pixelId>"]}
excludeRulesobject[]same shape; anyone matching these is removed from the audience
retentionInDaysnumberhow long the AUDIENCE itself lives, 1-365. A DIFFERENT field from each rule’s retentionDays lookback window — TikTok says itself it will rename one of them.
autoRefreshbooleandefault true at TikTok — keeps the audience updating with new matching people
identityIdstringREQUIRED for ENGAGEMENT_ORGANIC_VIDEO and ENGAGEMENT_LIVE_VIDEO — from list_tiktok_ads_identities
identityType"TT_USER" | "BC_AUTH_TT"
identityAuthorizedBcIdstringREQUIRED when identityType is BC_AUTH_TT

create_tiktok_ads_lookalike_audience#

Grow a TikTok lookalike from an existing audience

Create a TikTok Lookalike Audience — TikTok finds people who resemble a seed audience you already have. The seed must exist, must hold AT LEAST 100 people, and cannot itself be a lookalike. audienceSize trades reach against similarity: NARROW is closest to the seed, BROAD reaches furthest. includeSource has NO DEFAULT and TikTok requires it — it decides whether the seed’s own people remain inside the new audience, which matters because including them double-targets people you are already reaching. LOOKALIKE LOCATIONS ARE A SHORTER LIST THAN ORDINARY AD TARGETING (39 countries), so a location id that works on an ad group is not automatically valid here; an unsupported one is refused by name with the full list rather than sent. Takes up to 48 hours to process, and cannot be attached to a Reach & Frequency ad group. Creating one spends nothing.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts
namerequiredstring≤128 characters
sourceAudienceIdrequiredstringthe seed, from list_tiktok_ads_audiences — at least 100 people, and not itself a lookalike
audienceSizerequired"NARROW" | "BALANCED" | "BROAD"
includeSourcerequiredbooleanREQUIRED, no default — true keeps the seed’s own people inside the lookalike
mobileOs"ALL" | "IOS" | "ANDROID"default ALL
placementsrequiredstring[]one or more of "TikTok", "TopBuzz & BuzzVideo", "Pangle" — spelled exactly as TikTok publishes them
locationIdsrequiredstring[]two-letter codes from TikTok’s LOOKALIKE list, e.g. US, GB, DE, JP

update_tiktok_ads_audience#

Rename a TikTok custom audience

Rename a TikTok custom audience. THAT IS ALL IT CHANGES, and the limit is TikTok’s rather than ours: their only other update path replaces the uploaded customer FILE, which Hermoso deliberately does not build (hashed personal data under TikTok’s own Terms, over a transport this integration does not have, where a wrong hash yields a silently EMPTY audience). Changing WHO is in an audience means creating a new one. The new name is READ BACK from TikTok because their update returns an empty body, so a bare success proves nothing — if the read-back disagrees with what you sent, the reply says so and the read-back is the truth.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts
audienceIdrequiredstringfrom list_tiktok_ads_audiences
namerequiredstringthe new name, ≤128 characters

apply_tiktok_ads_audience#

Include or exclude a TikTok audience on ad groups

Attach a TikTok custom audience to ad groups as an INCLUDE or an EXCLUDE — the call that changes WHO SEES THE ADS, and the reason building audiences is worth doing at all. actionMode is exactly "Apply" or "Disconnect" (TikTok’s enum is case-sensitive), and Apply also needs usageMode "Include" or "Exclude": GETTING usageMode WRONG INVERTS THE ENTIRE AUDIENCE, showing the ads to precisely the people you meant to keep out, and nothing in TikTok’s reply would say so. One audience per call, and the audience and ad groups must be on the same advertiser. A Lookalike cannot be applied to a Reach & Frequency ad group. It spends nothing by itself — every ad group Hermoso builds is born paused — but on an ALREADY-LIVE ad group it changes delivery on the next auction, so name the ad groups to the user first. The ad groups are read back from TikTok.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts
audienceIdrequiredstringexactly one — TikTok takes a single custom_audience_id per call
adgroupIdsrequiredstring[]from list_tiktok_ads_campaigns
actionModerequired"Apply" | "Disconnect"
usageMode"Include" | "Exclude"REQUIRED when actionMode is Apply, and refused with Disconnect

delete_tiktok_ads_audience#

Delete TikTok custom audiences destructive

Delete one or more TikTok custom audiences. IRREVERSIBLE: TikTok publishes no undelete, any Lookalike seeded from one loses its seed, every ad group targeting it stops using it, and re-creating one means rebuilding the rule and waiting up to 48 hours for it to process again. WITHOUT confirm NOTHING IS DELETED — you get each audience’s real name, type and matched-user count READ BACK FROM TIKTOK, which is what you show the user before asking for a yes, because a confirm flag proves you meant to delete something and cannot tell an empty scratch audience from the one every campaign targets. Deleting MORE THAN ONE additionally needs confirmCount set to the exact number. If the audiences cannot be READ, the delete is refused outright rather than performed blind — an unknown blast radius on an irreversible action is not the same as an empty one.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts
audienceIdsrequiredstring[]up to 100
confirmbooleanREQUIRED true — without it nothing is deleted and you get the sentence describing what would be
confirmCountnumberREQUIRED, and equal to audienceIds.length, when deleting more than one

tiktok_ads_audience_overlap#

Compare how much two TikTok audiences share read-only

How much a TikTok audience overlaps with up to four others — the read that answers whether a new audience is genuinely new or is mostly the people you already target, which is what stops two ad groups bidding against each other for the same person. TIKTOK SUPPRESSES ANY AUDIENCE SIZE UNDER 1,000, so a missing or blank size here means "fewer than 1,000", never "nobody" — reporting it as a zero would be a confidently wrong answer. Read-only, free.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts
benchmarkAudienceIdrequiredstringthe audience everything else is compared against
comparisonAudienceIdsstring[]up to 4

DPA CATALOG

list_tiktok_ads_business_centers#

List the TikTok Business Centers this login administers read-only

The TikTok Business Centers reachable on this connection. THIS IS THE ONE PIECE OF STRUCTURE THAT MAKES THE CATALOG TOOLS DIFFERENT FROM EVERY OTHER TIKTOK TOOL: a product catalog belongs to a Business Center, not to an ad account, so the catalog tools take a bcId from here and an advertiserId will not work. With exactly one Business Center reachable the catalog tools resolve it themselves; with several they refuse and name them rather than guessing, because a catalog created under the wrong Business Center is invisible to the ad account that needed it and nothing in the reply would say so. Read-only, free.

ParameterTypeDescription
bcIdstringfilter to one
pagenumber
pageSizenumberup to 50

list_tiktok_ads_catalogs#

List the product catalogs in a TikTok Business Center read-only

The product catalogs in a TikTok Business Center — the containers Dynamic Product Ads sell from — each with HOW MANY OF ITS PRODUCTS ARE APPROVED, REJECTED OR STILL PROCESSING, which is the difference between "the feed ran" and "the feed worked". A products:null on a row means those counts COULD NOT BE READ for that catalog, which is not the same as a catalog with no products. Pass regions:true to also get the regions a new catalog may target — worth doing BEFORE creating one, because a catalog’s region and currency are set once and can never be changed. Read-only, free.

ParameterTypeDescription
bcIdstringfrom list_tiktok_ads_business_centers — omit only when exactly one is reachable
catalogIdstringfilter to one
regionsbooleanalso return the regions a catalog in this Business Center may target
overviewbooleanset false to skip the per-catalog product counts (one extra call each)
pagenumber
pageSizenumber

create_tiktok_ads_catalog#

Create a TikTok product catalog

Create a product catalog inside a TikTok Business Center — the container Dynamic Product Ads sell from. REGION AND CURRENCY ARE SET ONCE AND CAN NEVER BE CHANGED: TikTok’s own catalog-update endpoint changes the NAME and nothing else, so a catalog created in the wrong region or currency has to be replaced. Confirm both with the user before calling, and use list_tiktok_ads_catalogs(regions:true) to see which regions this Business Center may use. The new catalog IS EMPTY — products arrive through a scheduled feed, so the next step is always manage_tiktok_ads_catalog_feed. ENTERTAINMENT and MINI_SERIES catalogs are allowlist-only at TikTok and are offered rather than refused, because an allowlisted advertiser can use them. Creating a catalog spends nothing.

ParameterTypeDescription
bcIdstringfrom list_tiktok_ads_business_centers
namerequiredstring≤128 characters
catalogType"ECOM" | "HOTEL" | "FLIGHT" | "DESTINATION" | "ENTERTAINMENT" | "AUTO_VEHICLE" | "AUTO_MODEL" | "MINI_SERIES" | "GENERIC"default ECOM — what a shop selling physical products wants
regionCoderequiredstringIMMUTABLE. The primary targeting region, e.g. US
currencyrequiredstringIMMUTABLE. The currency for that region, e.g. USD
channel"PARTNER" | "CLIENT"also immutable once set

manage_tiktok_ads_catalog_feed#

List, create or delete a TikTok catalog product feed destructive

The scheduled import that fills a TikTok catalog from the product feed a store already publishes — Shopify, WooCommerce and BigCommerce all expose one, so this is usually the whole job of getting a merchant’s products into TikTok. THE ONE THING TO GET RIGHT IS updateMode, and it has NO DEFAULT ON PURPOSE: INCREMENTAL creates new products and updates existing ones, while OVERWRITE IS A FULL REPLACEMENT THAT REMOVES EVERY PRODUCT THE FEED OMITS — pointing a partial feed at a populated catalog in OVERWRITE mode deletes the rest of it. uri, intervalType and timezone are ALL-OR-NOTHING; TikTok requires each of the three whenever either of the others is given, so a URL with no schedule is a rejected call rather than a one-off fetch. If any additional-image URL inside the feed contains a comma it must be URL-encoded as %2C, or TikTok splits it into two URLs (Shopify-style transform parameters are the common case). Products do not appear instantly: the feed runs on its schedule and then TikTok reviews the products, so check list_tiktok_ads_catalog_products and tiktok_ads_catalog_diagnostics rather than expecting them immediately. action:"delete" is confirm-gated and stops FUTURE imports — the products already imported stay in the catalog.

ParameterTypeDescription
bcIdstringfrom list_tiktok_ads_business_centers
catalogIdrequiredstringfrom list_tiktok_ads_catalogs
action"list" | "create" | "delete"default list
feedIdstringrequired for delete; filters a list
feedNamestringrequired for create
updateMode"OVERWRITE" | "INCREMENTAL"REQUIRED on create and deliberately without a default — OVERWRITE REMOVES products missing from the feed
uristringhttp/https/ftp/sftp URL of the feed file — CSV, TSV or XML (RSS/ATOM), up to 8GB
intervalType"HOURLY" | "DAILY" | "MONTHLY"required alongside uri and timezone
intervalCountnumberHOURLY 1-23, DAILY 1-30, MONTHLY 1-12
timezonestringIANA zone, e.g. America/New_York — required alongside uri and intervalType
hournumber0-23
minutenumber0-59
dayOfMonthnumber
usernamestringonly if the feed URL is password protected
passwordstring
confirmbooleanREQUIRED true for action:"delete"

list_tiktok_ads_catalog_products#

List the products in a TikTok catalog, with why any are unadvertisable read-only

The products inside a TikTok catalog, each with whether it can ACTUALLY be advertised and — when it cannot — TikTok’s own rejection reason together with its suggested fix and which placements and countries were affected. usableInAds is true only when all three of audit approved, active status ACTIVATED and availability IN_STOCK / AVAILABLE_FOR_ORDER / PREORDER hold, so a catalog full of "approved" products can still be entirely unadvertisable and the raw audit status alone would not say so. Narrow with productIds, skuIds or productSetIds; productIds and skuIds cannot be used together (TikTok’s own rule), and TikTok returns at most 10,000 rows in total so page x pageSize is capped rather than paged into a 400. Read-only, free.

ParameterTypeDescription
bcIdstringfrom list_tiktok_ads_business_centers
catalogIdrequiredstringfrom list_tiktok_ads_catalogs
productIdsstring[]up to 1,000 — not together with skuIds
skuIdsstring[]up to 1,000 — not together with productIds
productSetIdsstring[]up to 100, from list_tiktok_ads_catalog_sets
pagenumber
pageSizenumberup to 500

list_tiktok_ads_catalog_sets#

List the product sets in a TikTok catalog read-only

The product SETS in a TikTok catalog — the slices an ad group can target instead of the whole catalog — each with its filter conditions and how many products it holds. Product sets are built in TikTok Ads Manager rather than here, and this reads what exists. On a very large set pass productCount:false, because counting products can time the call out at TikTok’s end — that is TikTok’s own caveat, not a guess. A null productCount means it was not requested or not returned, not that the set is empty. Read-only, free.

ParameterTypeDescription
bcIdstringfrom list_tiktok_ads_business_centers
catalogIdrequiredstringfrom list_tiktok_ads_catalogs
productSetIdstringfilter to one
productCountbooleandefault true; pass false on a very large set to avoid a TikTok timeout

tiktok_ads_catalog_diagnostics#

Diagnose why a TikTok catalog is not working read-only

TikTok’s own diagnosis of a catalog — every detected issue at CRITICAL or WARNING level across product attributes, product review, catalog configuration, pixel/event problems and feed or file-upload failures, each carrying the reason AND TikTok’s suggested fix. This is the tool for "the feed ran and no products showed up" and for "my products were rejected and I do not know why". IT COVERS EVERY FEED IN THE CATALOG BY DEFAULT: naming a single feedId narrows it, and simply omitting the field at TikTok would silently report on the DEFAULT feed alone, so a multi-feed catalog with one broken feed would get a clean bill of health. Diagnostics regenerate once a day, so a fix made today may not clear until tomorrow’s run, and the reply says which day’s data it is. Read-only, free.

ParameterTypeDescription
bcIdstringfrom list_tiktok_ads_business_centers
catalogIdrequiredstringfrom list_tiktok_ads_catalogs
feedIdstringdefaults to ALL feeds in the catalog
issueLevel"CRITICAL" | "WARNING"
issueCategory"PRODUCT_ATTRIBUTES" | "PRODUCT_REVIEW" | "CATALOG" | "PIXEL_OR_EVENT" | "FILE_UPLOAD_OR_FEED"
pagenumber
pageSizenumberup to 20

APP MANAGEMENT: the pixel gap, one lane over

list_tiktok_ads_apps#

List the mobile apps on a TikTok ad account read-only

The mobile apps registered on a TikTok ad account. An APP_INSTALL campaign cannot be built without one, and an APP-activity audience uses these ids as its event sources — so this is the missing lookup that made APP_INSTALL offerable and undeliverable in the same product, exactly as conversion campaigns were before pixels. Registering a NEW app is deliberately not offered here: it needs the store listing and the attribution provider, and it belongs in TikTok Ads Manager rather than being set on a user’s behalf. Read-only, free.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts

list_tiktok_ads_app_events#

List which app conversion events TikTok can optimise toward read-only

The conversion events an APP campaign may actually optimise toward on one app — the app twin of list_tiktok_ads_pixels, and the same distinction between "an event exists" and "an ad group can optimise for it". An event reporting INSUFFICIENT_POSTBACK is NOT broken and NOT misconfigured: TikTok needs more measured conversions before it will optimise toward it, and unlockThreshold says how many against conversions in the last 30 days. Only an event with usableForOptimization:true can be used today. A brand-new app with no measured conversions legitimately returns none. Read-only, free.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts
appIdrequiredstringfrom list_tiktok_ads_apps
optimizationGoalstringdefault IN_APP_EVENT
objectivestringdefault APP_INSTALL
appPromotionType"APP_INSTALL" | "APP_RETARGETING"
placementType"PLACEMENT_TYPE_AUTOMATIC" | "PLACEMENT_TYPE_NORMAL"default PLACEMENT_TYPE_AUTOMATIC
availableOnlybooleandefault true at TikTok — false also returns events that are not yet usable

AD COMMENTS · BLOCKED WORDS · AD DIAGNOSIS · BRAND SAFETY

list_tiktok_ads_comments#

Read the comments on a TikTok ad group’s ads read-only

The public comments people have left on your TikTok ads — the read that finally makes TikTok comment moderation possible through Hermoso, where Meta and YouTube moderation already shipped. Covers both paid-impression ads and Spark Ads. TWO THINGS ARE NOT NEGOTIABLE AND BOTH COME FROM TIKTOK: comments are scoped to an AD GROUP and to nothing else (their search_field accepts the single value ADGROUP_ID, so there is no way to ask for one ad or a whole campaign — get ad group ids from list_tiktok_ads_campaigns), and startTime→endTime may span AT MOST 30 DAYS. That 30-day cap is not in TikTok’s parameter table; it was measured, and asking for more answers an opaque "The maximum allowed time span is 30 days" — so an empty result means "none in these 30 days", never "none ever", and covering a longer period means one call per slice. Every row carries what the other tools need: commentId, adId, tiktokItemId, identityId and identityType, plus hitBlockedWord (caught by your blocked-word list), isPinned, likes, replies, and canDelete — TikTok’s own per-comment answer to whether YOU may delete it, which is false for anything a member of the public wrote. Read-only, free.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts — omit only when exactly one is reachable
adgroupIdrequiredstringREQUIRED — from list_tiktok_ads_campaigns. TikTok offers no other way to scope a comment read.
startTimerequiredstringYYYY-MM-DD. At most 30 days before endTime — TikTok refuses a wider window.
endTimerequiredstringYYYY-MM-DD
commentTypes"ALL" | "COMMENT" | "REPLY"[]default ALL. COMMENT is a top-level comment, REPLY is an answer to one.
sortField"CREATE_TIME" | "LIKES" | "REPLIES"default CREATE_TIME
sortType"ASC" | "DESC"default DESC
pagenumber
pageSizenumberup to 100

tiktok_ads_comment_thread#

Read one TikTok ad comment with its replies read-only

The conversation around a single comment on a TikTok ad: give it an ORIGINAL comment and you get that comment plus every reply to it; give it a REPLY and you get the reply plus the comment it answers. Use it before replying to a heated thread, so you answer what was actually said rather than the one line list_tiktok_ads_comments showed. Pages up to 1000 at a time, which is ten times what the list read allows. Read-only, free.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts
commentIdrequiredstringfrom list_tiktok_ads_comments
commentType"COMMENT" | "REPLY"what THIS comment is — default COMMENT. The row from list_tiktok_ads_comments reports it.
originalCommentIdstringonly for a REPLY — the id of the comment it answers, as reported on the row
pagenumber
pageSizenumberup to 1000

moderate_tiktok_ads_comment#

Hide or unhide comments on a TikTok ad

THE MODERATION TOOL for TikTok ads, and the TikTok twin of moderate_meta_comment. Hiding takes a comment out of public view — everyone stops seeing it except the person who wrote it, who is never told — and it works on ANYONE’s comment, which is what distinguishes it from delete_tiktok_ads_comment (that one only ever removes your own reply). IT IS FULLY REVERSIBLE: the same tool with operation PUBLIC puts a comment back, which is why it needs no confirmation. Takes a list, so a whole batch of spam goes in one call. TikTok answers this endpoint with no data at all, so the reply reports what was ACCEPTED and tells you to re-run list_tiktok_ads_comments to see commentStatus change — it is not a read-back and does not pretend to be. To hide a whole class of comment automatically and permanently, add the word to the account’s blocked-word list instead (manage_tiktok_ads_blocked_words).

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts
commentIdsrequiredstring[]from list_tiktok_ads_comments
operationrequired"HIDDEN" | "PUBLIC"HIDDEN takes them out of public view; PUBLIC puts them back

reply_to_tiktok_ads_comment#

Reply publicly to a comment on a TikTok ad

Post a public reply, as the brand, under a comment on one of your TikTok ads — the TikTok twin of reply_to_meta_comment and reply_to_youtube_comment. THE REPLY IS LIVE IMMEDIATELY AND IS PUBLIC, posted as the TikTok identity you name, so let the user approve the wording. TikTok requires FIVE ids and every one of them is on the comment row itself — pass back commentId, adId, tiktokItemId, identityId and identityType exactly as list_tiktok_ads_comments reported them rather than assembling them by hand; a mismatched identity is a public mistake. identityType on the comment endpoints is narrower than on the ad builder: only TT_USER or CUSTOMIZED_USER. The reply comes back as TikTok’s own stored row with its new comment id, so the answer is TikTok’s record and not an echo — and because it is your own comment, delete_tiktok_ads_comment can remove it.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts
commentIdrequiredstringthe comment being replied to — from list_tiktok_ads_comments
adIdrequiredstringfrom the same comment row
tiktokItemIdrequiredstringthe TikTok video id, from the same comment row
identityIdrequiredstringfrom the same comment row (or list_tiktok_ads_identities) — the account the reply is posted AS
identityTyperequired"TT_USER" | "CUSTOMIZED_USER"as reported on the comment row
textrequiredstringthe reply, exactly as it will appear in public

delete_tiktok_ads_comment#

Delete your OWN comment on a TikTok ad destructive

⚠ READ THIS BEFORE REACHING FOR IT: TikTok’s comment delete removes a comment YOUR OWN advertiser identity posted — your own reply. It CANNOT remove a comment left by a member of the public, and TikTok reports that per comment as canDelete on every row from list_tiktok_ads_comments. To take somebody else’s comment out of public view, use moderate_tiktok_ads_comment with operation HIDDEN, which is the moderation tool and is reversible. IRREVERSIBLE: TikTok publishes no undelete, the replies under it go with it, and re-posting means a new comment with a new id at the bottom of the thread rather than the one people answered. WITHOUT confirm NOTHING IS DELETED — you get the comment’s real text, author and date READ BACK FROM TIKTOK, which is what you show the user before asking for a yes. Deleting then additionally needs confirmText set to that exact text, because a confirm flag proves you meant to delete something and cannot prove you aimed at the right comment. If the comment cannot be READ, the delete is refused outright rather than performed blind.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts
commentIdrequiredstringfrom list_tiktok_ads_comments — one whose canDelete is true
adIdrequiredstringfrom the same comment row
tiktokItemIdrequiredstringfrom the same comment row
identityIdrequiredstringfrom the same comment row
identityTyperequired"TT_USER" | "CUSTOMIZED_USER"from the same comment row
commentType"COMMENT" | "REPLY"what the comment is — default REPLY, since your own comments are replies
confirmbooleanREQUIRED true — without it nothing is deleted and you get the sentence describing what would be
confirmTextstringREQUIRED with confirm — the comment’s exact text, read back from TikTok

list_tiktok_ads_blocked_words#

The words TikTok auto-hides in comments on this ad account read-only

The ad account’s blocked-word list — a standing filter that hides ANY comment containing one of these words, automatically, across every ad on the account, before a human ever sees it. NOTHING ELSE IN HERMOSO DOES THIS: Meta and YouTube moderation here are both per-comment and after the fact, so this is the only place a brand can decide once that a slur or a competitor’s name never appears under its ads again. TikTok caps the list at 500 words per ad account and the reply says how many slots are left. Pass `check` with words to ask TikTok directly whether each one is already blocked — that answer is authoritative across the whole list rather than across the page you happened to fetch. Read-only, free.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts
checkstring[]ask whether these specific words are blocked — answered by TikTok, not by searching the page
pagenumber
pageSizenumberup to 500, which is the whole account limit — one page holds every word an account can have

manage_tiktok_ads_blocked_words#

Add, remove or replace TikTok comment blocked words destructive

Change the ad account’s blocked-word list — the standing filter that auto-hides any comment containing one of these words across every ad on the account. operation "add" (up to TikTok’s 500-word account limit, refused here for free if the list would overflow rather than failing at TikTok), "remove", or "replace" one word with another. ⚠ REMOVING A WORD REPUBLISHES HISTORY: TikTok’s own words are that comments already hidden by it "will become public instead of being visible only to the commentor" — a bulk unhide across every ad on the account, for which TikTok reports no count. So a remove without confirm changes nothing and tells you which of the words are actually on the list first. EVERY WRITE HERE IS READ BACK: TikTok answers all three operations with an empty response and its delete explicitly does not error on a word that was never on the list, so reporting off the response would report a no-op as a change — the reply is the diff of the list before and after.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts
operationrequired"add" | "remove" | "replace"
wordsstring[]for add and remove
oldWordstringfor replace
newWordstringfor replace
confirmbooleanREQUIRED true for remove — without it nothing is removed and you get the list of which words are actually blocked plus what unhiding them will do

tiktok_ads_diagnosis#

TikTok’s own verdict on what is wrong with your ad groups read-only

TikTok’s issues-and-suggestions diagnosis for the ad groups on an ad account — its own read on why delivery is underperforming, in three categories: CREATIVE (no background music, video too short, resolution too low), BID_AND_BUDGET (a suggested bid or budget, a recommendation to switch to Maximum Delivery, and the full Estimated Delivery Results tables pairing nine bid levels or fifteen budget levels with their estimated cost, conversions, CPA and impressions), and EVENT_TRACK (a pixel that has recorded nothing for seven days, which means the ad group is optimising toward an event nothing is firing). Every issue code comes back with a plain sentence saying what to DO about it. ⚠ AN EMPTY ANSWER IS NOT A CLEAN BILL OF HEALTH: TikTok diagnoses ACTIVE ad groups only and omits any ad group it has no suggestions for, so a missing ad group is EITHER healthy OR not currently active and TikTok does not distinguish the two. At most 20 ad groups per call. Read-only, free.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts
adgroupIdsstring[]up to 20 — omit for every active ad group on the account
issueCategories"CREATIVE" | "BID_AND_BUDGET" | "EVENT_TRACK"[]omit for all three. An unknown category is refused rather than dropped, so you never get an answer about something other than what you asked for.

get_tiktok_ads_brand_safety#

Read a TikTok ad account’s Brand Safety Hub settings read-only

What content this TikTok ad account’s ads are allowed to appear next to — the inventory filter tier (EXPANDED / STANDARD / LIMITED / NO_BRAND_SAFETY) plus the suitability controls: which content categories are excluded and which vertical’s sensitive content is avoided. It also returns, free and in the same call, THE CATALOGUE of every category id you could set, because those ids are unguessable and there is otherwise no way to act on the setting. ⚠ THE SCOPE IS THE THING TO KNOW: TikTok applies this to future Smart+ campaigns and, in their own words, "will not apply to future regular campaigns created using /campaign/create/" — which is the endpoint create_tiktok_ads_campaign uses. So this is the ad account default and the Ads Manager setting, NOT a guarantee inherited by a campaign Hermoso builds. A NULL vertical-sensitivity catalogue means this advertiser is not on TikTok’s allowlist for that feature, never that no vertical categories exist. Read-only, free.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts
categoriesbooleandefault true — set false to skip the category catalogue and read only the current setting
objectiveType"REACH" | "VIDEO_VIEWS" | "ENGAGEMENT"which objective to look the catalogue up under — default REACH. TikTok supports only these three on the catalogue endpoint.

set_tiktok_ads_brand_safety#

Set a TikTok ad account’s Brand Safety Hub settings

Set what content this TikTok ad account’s ads may appear next to. THREE RULES TIKTOK IMPOSES AND ONE THING THAT CANNOT BE UNDONE. (1) The suitability controls move as a TRIO: TikTok requires brandSafetyType, categoryExclusionIds and verticalSensitivityId "simultaneously", so read the current values with get_tiktok_ads_brand_safety and send all three — a partial update is refused here rather than silently doing something else. (2) NO_BRAND_SAFETY is a tier TikTok REPORTS but does not ACCEPT: the write enum is EXPANDED_INVENTORY / STANDARD_INVENTORY / LIMITED_INVENTORY only, so an account can be moved off it through the API and not back onto it. (3) Category exclusions and vertical sensitivity are valid only under STANDARD or LIMITED. ⚠ coverAllObjectives IS A ONE-WAY DOOR — TikTok: "Once set to true, this setting cannot be updated back to false." Turning it on widens the settings from Reach / Video Views / Community Interaction to every objective, permanently, so that direction is confirm-gated and nothing else here is. AND MIND THE SCOPE: TikTok applies this to future Smart+ campaigns and explicitly NOT to regular campaigns created through /campaign/create/, which is what create_tiktok_ads_campaign uses. The reply is TikTok’s own stored row read back, so it reports what actually changed rather than what was sent. EXPANDED_INVENTORY is allowlist-only per advertiser; if TikTok refuses it the remedy is your TikTok rep, not a different field.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts
coverAllObjectivesrequiredbooleanREQUIRED by TikTok on every update. true is PERMANENT — it cannot be set back to false.
brandSafetyType"EXPANDED_INVENTORY" | "STANDARD_INVENTORY" | "LIMITED_INVENTORY"required whenever you change any suitability control
categoryExclusionIdsstring[]from get_tiktok_ads_brand_safety’s availableCategoryExclusions. Send [] explicitly to have none, so clearing them is something you said rather than something that happened.
verticalSensitivityIdstringfrom get_tiktok_ads_brand_safety’s availableVerticalSensitivity
confirmbooleanREQUIRED true only to turn coverAllObjectives ON for the first time, because that is irreversible

upload_tiktok_ads_creative#

Upload a video or image into a TikTok advertiser’s asset library

Put a finished creative onto the TikTok AD ACCOUNT so an ad can point at it — this is the bridge between making an ad and running one, and create_tiktok_ads_ad has no other source for the ids it needs. Pass the public https url of a Hermoso render (every render already is one) or any other public https file; TikTok fetches it from its own servers, so a local path, a data: url or anything on http:// is refused here for free. A VIDEO UPLOAD ALSO UPLOADS ITS OWN COVER and hands back coverImageId — pass that straight to create_tiktok_ads_ad as imageIds, because TikTok requires a cover on a video ad and rejects any whose dimensions differ from the video. CHECK usableInAds BEFORE BUILDING THE AD: TikTok happily accepts a creative it will then refuse to build an ad from, and says so only in this flag — a 720x1280 render is fine and a 496x864 one is not, so a false here means re-render larger, and the note says so. Uploading the same file twice is fine; TikTok refuses a repeated file NAME, so leave fileName out unless you want a specific label in TikTok Ads Manager. Free — TikTok charges nothing for storage and Hermoso bills no credits for this.

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts — omit only when exactly one is reachable
kind"video" | "image"default video
urlrequiredstringpublic https url of the file. A Hermoso render url works as-is; for a local or external file run upload_file first to get one.
fileNamestringthe label in TikTok Ads Manager. Omit it and a unique one is derived — TikTok rejects a DUPLICATE name on the same advertiser, so an explicit name that has been used before is refused.

create_tiktok_ads_ad#

Create a TikTok ad

Create the ad itself — the creative that runs under an existing TikTok ad group. CREATED PAUSED with no override (TikTok’s own default is ENABLED); it spends nothing until set_tiktok_ads_status(confirm:true), and TikTok additionally reviews it before it can ever show. WHERE THE CREATIVE COMES FROM: run upload_tiktok_ads_creative on a finished Hermoso render (or any public https video) and pass back the videoId AND the coverImageId it returns as imageIds — a TikTok video ad needs BOTH, and TikTok rejects any cover whose dimensions differ from the video, so the video’s own cover is the only one that reliably fits. A videoId with no imageIds is refused here for free rather than failing at TikTok with "Unsupported image size", which blames the image for a problem in the video. AN IDENTITY IS MANDATORY AND HAS NO DEFAULT: identityId AND identityType both come from list_tiktok_ads_identities and the ad appears publicly as that TikTok account, so let the USER pick and never guess — the call is refused outright without either. SPARK ADS — RUN A REAL ORGANIC POST INSTEAD: pass tiktokItemId (from list_tiktok_ads_identity_posts or list_tiktok_ads_spark_posts) INSTEAD OF videoId, and the ad IS that TikTok post, keeping its own comments, likes and shares under the account that made it. Spark needs an identityType of TT_USER, BC_AUTH_TT or AUTH_CODE — never CUSTOMIZED_USER, which is a Custom Identity and cannot carry one. THIS MATTERS BEYOND STYLE: TikTok is phasing Custom Identity out — ad accounts created on or after January 15, 2026 cannot create non-Spark ads at all, and existing accounts can no longer create them either, for any ad group delivering to Automatic or Select Placement with TikTok included (only Pangle / Global App Bundle campaigns are unaffected). Defaults: adFormat SINGLE_VIDEO, callToAction LEARN_MORE. THE STATUS IS READ BACK FROM TIKTOK’S OWN STORED ROW, never assumed: if it comes back anything other than DISABLE the note is a ⚠ warning that the ad would serve the moment its campaign is enabled — print that verbatim and act on it before touching anything above it.

ParameterTypeDescription
advertiserIdstring
adgroupIdrequiredstringthe ad group whose targeting, budget and schedule this ad runs under
namerequiredstringthe ad name in TikTok Ads Manager — not the copy people see
identityIdrequiredstringREQUIRED — from list_tiktok_ads_identities; the TikTok account the ad posts as
identityTyperequiredstringREQUIRED — the matching type reported next to that id by list_tiktok_ads_identities. There is NO default and guessing is refused: the plausible-looking CUSTOMIZED_USER is wrong for a plain TikTok account, which is TT_USER.
adFormatstringdefault SINGLE_VIDEO
videoIdstringthe videoId returned by upload_tiktok_ads_creative (or a video already in the advertiser’s TikTok asset library)
tiktokItemIdstringSPARK ADS — promote an EXISTING organic TikTok post instead of an uploaded video. From list_tiktok_ads_identity_posts (an account you control) or list_tiktok_ads_spark_posts (a creator post authorised by code). Mutually exclusive with videoId, and NOT supported with identityType CUSTOMIZED_USER; both are refused here for free.
identityAuthorizedBcIdstringREQUIRED when identityType is BC_AUTH_TT — the Business Center id reported next to that identity by list_tiktok_ads_identities
imageIdsstring[]for a video ad, the ONE cover image: pass [coverImageId] from the same upload_tiktok_ads_creative call. For the image formats, the images themselves.
adTextstringthe ad copy people read
callToActionstringTikTok’s CTA button value — default LEARN_MORE
landingPageUrlstringwhere the ad sends people

AUTOMATED RULES

create_tiktok_ads_rule#

Create a TikTok automated rule (created turned OFF)

AUTOMATED RULES — a standing instruction TikTok runs on the user’s ad account on TIKTOK’S schedule, with nobody watching. WHAT A RULE CAN DO UNATTENDED, depending on its actions: pause a campaign / ad group / ad (TURN_OFF), email a report (MESSAGE), LOWER a daily budget, lifetime budget or bid (DECREASE) — or TURN AN OBJECT BACK ON and RAISE a budget or bid (TURN_ON, INCREASE, ADJUST_TO). The second group is standing permission to spend the user’s money without anyone present, on objects the rule re-selects at every execution, so treat it as such and say so before creating one. EVERY RULE IS CREATED TURNED OFF AND READ BACK TO PROVE IT: TikTok publishes no status field on its create and its own example shows a fresh rule running, so Hermoso creates it and disarms it in a second call — and if that second call fails the reply says LOUDLY that a live rule is on the account and how to switch it off. ARMING IS A SEPARATE ACT (set_tiktok_ads_rule_status), which is what makes the rule inspectable in between. An INCREASE or DECREASE must carry value.limit; TikTok requires it and it IS the safety rail — an increase without a ceiling ratchets upward every time the rule fires. TWO THINGS TIKTOK ITSELF PUBLISHES ABOUT THIS ENDPOINT: it is "supported exclusively for direct advertisers" and says SaaS platforms managing multiple advertisers cannot use it, so it may simply be refused for this account — that is THEIR restriction, not a broken connection and no reconnect changes it; and every notification it generates goes to the developer address registered on the app rather than to the user, so tiktok_ads_rule_results is the only place they will see what a rule did. Free.

ParameterTypeDescription
advertiserIdstring
namerequiredstringwhat this rule is called in TikTok Ads Manager — up to 512 characters
applyObjectsrequiredobject[]what the rule watches
conditionsrequiredobject[]when it fires
actionsrequiredobject[]what it does when the conditions match
notificationrequiredobject{ notificationType: TASK_FINISH | ANY_CHANGES | NOT_NOTIFICATION, emailSetting } — note these emails go to the developer address on the app, not to the user
ruleExecInforequiredobject{ execTimeType: PER_HALF_HOUR | CUSTOM | HALF_HOUR_IN_SPECIFIC_TIME_PERIOD | SPECIFIC_TIME_ACCURATE_ONCE, execTime, timePeriodInfo } — PER_HALF_HOUR runs every thirty minutes forever
tzonestring

update_tiktok_ads_rule#

Replace a TikTok automated rule’s definition

Replace an automated rule’s WHOLE definition. TikTok’s update is a full replace rather than a patch, so send every field the rule should keep — anything omitted is gone. IF THE RULE IS CURRENTLY RUNNING AND THE NEW VERSION CAN START OR RAISE SPEND, this arms it the moment it saves, so it takes the same confirm:true plus confirmScope echo as arming one: an edit must never be a route by which a harmless rule becomes a spending rule behind a gate it passed when it meant something else. A rule that is currently OFF needs no gate here, because arming it later runs the gate against the new definition. Free.

ParameterTypeDescription
advertiserIdstring
ruleIdrequiredstringfrom list_tiktok_ads_rules
namerequiredstring
applyObjectsrequiredobject[]same shape as create_tiktok_ads_rule
conditionsrequiredobject[]
actionsrequiredobject[]
notificationrequiredobject
ruleExecInforequiredobject
tzonestring
confirmbooleanrequired when the rule is live and the new version can spend
confirmScopestringrequired in the same case — the scope token the refusal prints, computed from the version being sent

list_tiktok_ads_rules#

List TikTok automated rules, classified by whether they can spend read-only

THE AUTOMATED RULES RUNNING ON A TIKTOK AD ACCOUNT, and — the part that matters — which of them can move money. Every row carries canSpend, the specific actions that put it there (armingActions), whether its reach is UNBOUNDED (a rule targeting "all active campaigns" re-resolves that set at every run, so it covers campaigns created after it was written), and a scopeToken. That token is what set_tiktok_ads_rule_status wants echoed back before it will arm a spending rule, and it is computed from the rule AS TIKTOK STORES IT — so it also detects a rule that has been edited in TikTok Ads Manager since it was read. The reply leads with the rules that are armed AND able to spend, because "what is running on my account that I am not watching" is the actual question. Pass ruleIds for specific rules, or filter by status / dimension / name. Read-only, free.

ParameterTypeDescription
advertiserIdstring
ruleIdsstring[]specific rules — omit to list them all
status"ON" | "OFF" | "DELETED"
dimension"CAMPAIGN" | "ADGROUP" | "AD"
ruleInfostring[]rule ids or rule names to filter by
tzonestring
pagenumber
pageSizenumber

tiktok_ads_rule_results#

What TikTok’s automated rules actually did read-only

EVERY EXECUTION OF THE USER’S AUTOMATED RULES — when each ran, what it acted on and what it changed. THIS IS THE ONLY PLACE THEY WILL SEE IT: TikTok routes rule notification emails to the developer address registered on the app rather than to the advertiser, so an armed rule can pause campaigns or raise budgets on their account and nothing reaches their inbox. Call it with no ids to list executions (optionally filtered by rule, action, dimension or a UTC time window); pass ruleId AND execId TOGETHER, both taken from one row of that list, for the detail of a single run — TikTok keys a result on the pair, so half of one is refused rather than answered about the wrong thing. Read-only, free.

ParameterTypeDescription
advertiserIdstring
ruleIdstringfor the DETAIL of one run — must be sent with execId from the same row
execIdstringfor the DETAIL of one run — must be sent with ruleId from the same row
status"ON" | "OFF" | "DELETED"
action"TURN_ON" | "TURN_OFF" | "MESSAGE" | "DAILY_BUDGET" | "LIFETIME_BUDGET" | "BID"filter to one kind of action — use this to answer "has anything raised my budgets?"
ruleInfostring[]rule ids or names
timestring[]exactly two UTC datetimes: start and end
dimension"CAMPAIGN" | "ADGROUP" | "AD"
pagenumber
pageSizenumber

set_tiktok_ads_rule_status#

Arm, disarm or delete a TikTok automated rule destructive

TURN_ON IS THE SWITCH THAT HANDS A RULE TO TIKTOK TO RUN UNATTENDED, and it is gated in two classes because the two are not the same act. A rule whose only actions are TURN_OFF, MESSAGE or a DECREASE cannot start or raise spend — the worst it does is under-deliver, which is recoverable by turning it off — so it needs confirm:true and nothing else. A rule that can TURN_ON an object or INCREASE / ADJUST_TO a budget or bid is standing permission to spend real money with nobody present, so it needs confirm:true AND confirmScope set to the scopeToken that list_tiktok_ads_rules prints. That token is computed from the rule AS TIKTOK STORES IT: confirm:true proves the caller meant to arm SOMETHING, and only the echo proves they aimed at the rule they actually inspected rather than one a teammate has edited since. CALLING WITHOUT THE GATE CHANGES NOTHING and returns the sentence describing exactly what the rule will be able to do — show the user that, get an unambiguous yes, then confirm. TURN_OFF and DELETE only ever reduce what runs unattended, so both take confirm:true and no echo; prefer TURN_OFF, because TikTok publishes no way to restore a deleted rule and turning one off is reversible. THE ANSWER IS THE READ-BACK: the result carries the status TikTok stored per rule, and says so when it could not confirm. Free.

ParameterTypeDescription
advertiserIdstring
ruleIdsrequiredstring[]the rules to change
operateTyperequired"TURN_ON" | "TURN_OFF" | "DELETE"TURN_ON = start running it unattended; TURN_OFF = stop, reversible; DELETE = remove, NOT reversible
confirmbooleanREQUIRED true for every operation — call without it first to see what would happen
confirmScopestringREQUIRED as well, to arm a rule that can start or raise spend: the scopeToken from list_tiktok_ads_rules. The refusal prints the value it wants.

bind_tiktok_ads_rule#

Put objects under a TikTok automated rule, or take them out

Bind campaigns, ad groups or ads to an EXISTING automated rule, or unbind them from one. BINDING TO A RULE THAT IS RUNNING AND ABLE TO SPEND puts those objects under standing permission to have their budget or bid raised, which is the same act as arming the rule for them — so it takes the same confirm:true plus confirmScope echo, computed from the rule as TikTok stores it. UNBINDING only ever narrows a rule’s reach and needs neither. TikTok answers a bind with an empty body, so the result is read back off the rule rather than taken from the 200. Free.

ParameterTypeDescription
advertiserIdstring
ruleIdrequiredstringfrom list_tiktok_ads_rules
dimensionrequired"CAMPAIGN" | "ADGROUP" | "AD"
dimensionIdsrequiredstring[]the objects to bind or unbind
bindTyperequired"BIND" | "UNBIND"
confirmbooleanrequired to BIND onto a live rule that can spend
confirmScopestringrequired in the same case — the scopeToken from list_tiktok_ads_rules

OFFLINE EVENTS + CRM EVENT SETS

list_tiktok_ads_offline_event_sets#

List TikTok Offline Event sets read-only

The Offline Event sets on a TikTok ad account — the containers real-world conversions are reported into: an in-store purchase, a phone booking, a signed contract, a call-centre sale. An id here is what send_tiktok_ads_offline_events reports into, and what send_tiktok_ads_events wants as eventSourceId when eventSource is "offline". The reply also counts how many are AUTO-TRACKING, which matters because an auto-tracking set is attached to every campaign created afterwards and TikTok caps an advertiser at ten of them. Read-only, free.

ParameterTypeDescription
advertiserIdstring
eventSetIdsstring[]filter to specific sets
namestringfilter by exact name

manage_tiktok_ads_offline_event_set#

Create, rename or delete a TikTok Offline Event set destructive

Create, rename or delete an Offline Event set — the container in-store and other real-world conversions are reported into. AUTOTRACKING IS A STANDING SETTING RATHER THAN A PROPERTY OF THIS SET: with it on, EVERY campaign created under this advertiser afterwards attributes to it automatically, including campaigns nobody has thought of yet. TikTok caps an advertiser at ten auto-tracking sets, and once that is reached a non-auto-tracking set cannot be switched over until one is deleted — so leave it off unless the user means it. DELETING is confirm-gated, and not because of the container: every conversion already reported into it stops being available to reporting and optimisation, campaigns tracking it lose their attribution, and TikTok publishes no undelete. A create is READ BACK from TikTok, because the create response is only an id and never the stored row. Free.

ParameterTypeDescription
advertiserIdstring
actionrequired"create" | "update" | "delete"
eventSetIdstringrequired for update and delete — from list_tiktok_ads_offline_event_sets
namestringrequired for create; max 40 characters, and TikTok refuses a name already used on the account
descriptionstring
autoTrackingbooleanattach EVERY future campaign on this advertiser to this event set. Max ten per advertiser. Off unless you mean it.
confirmbooleanREQUIRED true to delete

send_tiktok_ads_offline_events#

Report in-store and other real-world conversions to TikTok

REPORT REAL-WORLD CONVERSIONS — an in-store purchase, a phone booking, a signed contract — so TikTok can attribute them to the ads that caused them and optimise delivery toward them. This is what makes a TikTok campaign measurable for a business whose sale does not happen on a website. Emails and phone numbers are normalized and SHA-256 hashed by Hermoso exactly as TikTok specifies before anything leaves the process, using the SAME implementation as send_tiktok_ads_events; a value that is already a 64-character hash is passed through untouched, and a phone with no "+" country code is refused rather than guessed. EITHER emails OR phone_numbers is REQUIRED on every event — an offline conversion identifying nobody is attributed to nothing. ⚠ THE TIMESTAMP IS AN ISO-8601 STRING HERE ("2026-08-19T19:11:01Z"), NOT the Unix-seconds NUMBER that send_tiktok_ads_events takes: TikTok accepts a wrong-shaped one, reads it as some other date and attributes the conversion to nothing, so it is refused here for free. ⚠ THERE IS NO TEST MODE: TikTok documents test_event_code on Events API 2.0 and on NEITHER offline endpoint, so everything sent here is a real, permanent conversion that no endpoint deletes. To rehearse the pipeline first, send the same events through send_tiktok_ads_events with eventSource "offline", the same event set id and a testEventCode from Events Manager — those land in the Test Events tab and are excluded from reporting, attribution and optimisation. ⚠ REPORTING NEEDS A ROLE, NOT JUST A CONNECTION: TikTok requires the connected user to be an ADMIN or OPERATOR of that advertiser account, measured live — the same token can create and delete Offline Event SETS and still be refused on the events themselves. If that happens Hermoso says so plainly rather than telling anyone to reconnect, because reconnecting cannot grant a role; it has to change in TikTok Business Center. Free.

ParameterTypeDescription
advertiserIdstring
eventSetIdrequiredstringthe Offline Event Set these belong to — from list_tiktok_ads_offline_event_sets
eventsrequiredobject[]one event goes to TikTok’s single endpoint, several to its bulk one — Hermoso picks

list_tiktok_ads_crm_event_sets#

List TikTok CRM Event sets read-only

The CRM Event sets on a TikTok ad account. A CRM Event Set is where LEAD-LIFECYCLE events go — a lead that became qualified, booked a demo, or closed — and sending those back with send_tiktok_ads_events (eventSource "crm", eventSourceId = the set’s id) is what lets TikTok optimise a LEAD_GENERATION campaign toward leads that actually convert rather than toward form fills. An advertiser is capped at fifty sets. Read-only, free.

ParameterTypeDescription
advertiserIdstring
eventSetIdsstring[]filter to specific sets — TikTok accepts at most 50 ids
namestringfilter by exact name

create_tiktok_ads_crm_event_set#

Create a TikTok CRM Event set

Create a CRM Event set — the container for lead-lifecycle events, and the id send_tiktok_ads_events needs as eventSourceId when eventSource is "crm". Making one is how a LEAD_GENERATION campaign stops optimising toward form fills and starts optimising toward leads that qualify and close. ⚠ TIKTOK PUBLISHES CREATE AND LIST FOR THESE AND NOTHING ELSE — no update and no delete anywhere in its API reference — so a set made here is PERMANENT, in the same way a TikTok pixel is, and an advertiser is capped at fifty with no API way to free a slot. Name it something the user will still recognise in a year. Free.

ParameterTypeDescription
advertiserIdstring
namerequiredstringmax 40 characters; TikTok trims it and refuses a duplicate. There is no way to rename or delete it afterwards.

set_tiktok_ads_status#

Activate, pause or delete TikTok campaigns / ad groups / ads destructive

THE ONE SWITCH THAT ARMS REAL MONEY ON TIKTOK. Pass level ("campaign", "adgroup" or "ad"), the ids, and a status: ENABLE starts real spend on the next auction, DISABLE stops it, DELETE removes the objects (TikTok models removal as a STATUS — it publishes no delete verb — which is why delete_tiktok_ads_object is a thin wrapper over this same route). EVERY status change here needs confirm:true, and CALLING IT WITHOUT confirm CHANGES NOTHING and hands back the sentence describing exactly what would happen — show the user that, get an unambiguous yes, then confirm. EVERY TIER HAS TO BE ENABLED FOR AN IMPRESSION TO SERVE: Hermoso creates all three paused, so enabling the campaign alone does nothing while its ad group and ad are still disabled, and each level is a separate call. Ids can be passed in bulk, but TikTok’s QPS is 1 and calls are serialized, so a long list is simply slow. THE ANSWER IS THE READ-BACK: the result carries what TikTok STORED per id, plus a note when the read-back did not return every id — repeat that rather than the status you asked for.

ParameterTypeDescription
advertiserIdstring
levelrequired"campaign" | "adgroup" | "ad"which tier the ids belong to
idsrequiredstring[]the campaign / ad group / ad ids to change
statusrequired"ENABLE" | "DISABLE" | "DELETE"ENABLE = start real spend; DISABLE = stop; DELETE = remove (TikTok has no delete verb, removal is a status)
confirmbooleanREQUIRED true — call without it first to see exactly what would change

set_tiktok_ads_budget#

Change a TikTok campaign or ad group budget

Change the budget on a TikTok campaign (level:"campaign") or ad group (level:"adgroup"), in the advertiser’s own currency. It needs confirm:true, and CALLING IT WITHOUT confirm CHANGES NOTHING and returns the sentence naming the object and the new amount — show the user that first. Everything Hermoso creates on TikTok is forced paused, so a budget change on one of those spends nothing; on an object somebody has ENABLED it takes effect on the next auction, and LOWERING the budget is the fastest way to slow real money down short of set_tiktok_ads_status(status:"DISABLE"). The new budget is READ BACK from TikTok — report what it returns, not what you sent, and say so plainly when the read-back could not confirm it.

ParameterTypeDescription
advertiserIdstring
level"campaign" | "adgroup"which tier holds the budget — default campaign
idrequiredstringthe campaign or ad group id
budgetrequirednumberthe new budget in the advertiser’s own currency — must be above zero
budgetModestringdefault BUDGET_MODE_DAY
confirmbooleanREQUIRED true — call without it first to see exactly what would change

delete_tiktok_ads_object#

Delete TikTok campaigns / ad groups / ads destructive

Remove TikTok campaigns, ad groups or ads. TIKTOK HAS NO DELETE VERB — removal is modelled as a STATUS, exactly like Reddit — so this posts to the same route as set_tiktok_ads_status with status:"DELETE" rather than being a second implementation with its own rules. It is permanent, TikTok publishes no undelete, and it needs confirm:true; calling it WITHOUT confirm changes nothing and returns the sentence naming how many objects go, which is what you show the user first. TikTok does NOT document whether removing a campaign takes its ad groups and ads with it — each carries its own status — so remove the children yourself if they should go too, and VERIFY with list_tiktok_ads_campaigns afterwards rather than assuming a cascade either way. TO STOP DELIVERY WITHOUT DESTROYING ANYTHING, use set_tiktok_ads_status(status:"DISABLE"): that is reversible and this is not.

ParameterTypeDescription
advertiserIdstring
levelrequired"campaign" | "adgroup" | "ad"which tier the ids belong to
idsrequiredstring[]the campaign / ad group / ad ids to remove
confirmbooleanREQUIRED true — the removal is permanent

TIKTOK ONE

list_tiktok_tto_accounts#

List the TikTok One (Creator Marketplace) accounts on this connection read-only

The TikTok One accounts this TikTok connection can act on. TikTok One is TikTok’s influencer marketplace: find creators, invite them to a campaign, get their videos tagged to it, read organic-versus-paid performance on those videos, and ask them for Spark Ads authorization so the brand can put money behind their post. THIS IS THE ONE PIECE OF STRUCTURE THAT MAKES THE CREATOR TOOLS DIFFERENT: a TikTok One account id is a THIRD id space beside an advertiser id and a Business Center id, and every creator-marketplace tool needs one from here. With exactly one reachable the other tools resolve it themselves; with several they refuse and name them. It rides the SAME connection and the SAME OAuth flow as TikTok Ads and there is nothing extra to apply for; but a connection authorized before 2026-08-19 does not carry the TikTok One permission and its owner has to reconnect. Read-only, free.

No parameters.

list_tiktok_creator_labels#

List TikTok creator category labels read-only

TikTok’s creator category labels, in two sets that are NOT interchangeable. labelType "SEARCH" gives the tags discover_tiktok_creators filters on: contentLabelIds is what a creator POSTS about, industryLabelIds the commercial categories they have actually worked in. labelType "RANKING" gives the labels tiktok_creator_leaderboard needs, and there the pairing is strict: BRANDED_CONTENT ranks by an INDUSTRY label, ORGANIC_CONTENT by a CONTENT label. Both arrive as bare numeric ids that look identical, and TikTok reports a mismatch as an invalid field rather than as the wrong kind of label, so read this first rather than guessing. Read-only, free.

ParameterTypeDescription
ttoAccountIdstringfrom list_tiktok_tto_accounts: omit only when exactly one is reachable
labelType"SEARCH" | "RANKING"default SEARCH

discover_tiktok_creators#

Search TikTok One for creators to work with read-only

Search TikTok One for creators, filtered by audience size, engagement rate, median and average views, starting price, language, content and industry category, and by their FOLLOWERS’ country, gender split and age band. FOUR THINGS THAT ARE EASY TO GET WRONG AND ARE ALL REFUSED FOR FREE BEFORE THE CALL: countryCodes is required; every country in ONE search must come from the same regional category, which TikTok defines as the US, Europe (DE/ES/FR/GB/IT) and everywhere else, so a US+UK search has to be two searches; engagement rates are 0-1 rather than percentages, so 5% is 0.05; and stateProvinces works only when the country is exactly US. THIS IS NOT A TIKTOK SEARCH: it sees only creators who have JOINED the Creator Marketplace, so a narrow filter set empties fast and the fix is to widen the follower or engagement range rather than to conclude the category is empty. Profile image URLs carry their own expiry, so show them and do not store them. Read-only, free.

ParameterTypeDescription
ttoAccountIdstring
countryCodesrequiredstring[]REQUIRED, and all from ONE regional category: US | Europe (DE ES FR GB IT) | other (AE AR AU BR CA CO EG ID IL JP KR MX MY PH SA SG TH TR TW VN)
stateProvincesstring[]US only, and only when countryCodes is exactly ["US"]
keywordSearchstringfuzzy match, ≤100 characters
contentLabelIdsstring[]what the creator posts about: from list_tiktok_creator_labels(labelType:"SEARCH")
industryLabelIdsstring[]commercial categories they have worked in: same source
languagesstring[]
minFollowersnumber
maxFollowersnumber
minEngagementRatenumber0-1, NOT a percentage
maxEngagementRatenumber
minMedianViewsnumber
maxMedianViewsnumber
minAvgViewsnumber
maxAvgViewsnumber
minCreatorPricenumberthe creator’s starting price, USD
maxCreatorPricenumber
followerCountryCodesstring[]where their AUDIENCE is, which is often not where they are
followerGenderRatio"FEMALE_50" | "FEMALE_60" | "FEMALE_70" | "MALE_50" | "MALE_60" | "MALE_70"
followerAge"18-24" | "25-34" | "35-44" | "45-54" | "55+"
sortField"RELEVANCE" | "FOLLOWERS" | "MEDIAN_VIEWS" | "ENGAGEMENT_RATE"
sortOrder"ASC" | "DESC"
pagenumber
pageSizenumber1-200, default 24

tiktok_creator_leaderboard#

Read TikTok’s Creator Leaderboard read-only

The creators ranking highest on TikTok’s own Creator Leaderboard for one category over one week or month; up to 100, best first, with how far each moved since the previous period. US ONLY: TikTok publishes ranking data for no other country. labelId must MATCH rankingType: BRANDED_CONTENT takes an INDUSTRY label and ORGANIC_CONTENT takes a CONTENT label, both from list_tiktok_creator_labels(labelType:"RANKING"): and the mismatch is refused here rather than at TikTok, which reports it only as an invalid field. A leaderboard is a SNAPSHOT taken when the rank was generated, so TikTok warns a creator may still appear under a label they have since lost. Read-only, free.

ParameterTypeDescription
ttoAccountIdstring
rankingTyperequired"BRANDED_CONTENT" | "ORGANIC_CONTENT"BRANDED_CONTENT needs an industry label, ORGANIC_CONTENT a content label
timePeriodrequired"WEEK" | "MONTH"
lookbackrequired"ONE" | "TWO" | "THREE"ONE is the most recent completed period
labelIdrequiredstringfrom list_tiktok_creator_labels(labelType:"RANKING"), matching rankingType
countryCodestringUS: the only country TikTok ranks
pagenumber
pageSizenumber1-100, default 20

check_tiktok_creator_status#

Check whether TikTok handles have joined TikTok One read-only

Whether particular TikTok handles have joined TikTok One, up to 20 at a time, with each answered IN (can be invited), NOT_IN (a real account that has not joined) or INVALID (not a handle TikTok knows). WORTH CALLING BEFORE INVITING ANYONE: a creator who has not joined cannot be invited, and TikTok reports that as a 200 with the handle in a failed list rather than as an error; so an unchecked invite looks like it worked and quietly reached nobody. Read-only, free.

ParameterTypeDescription
ttoAccountIdstring
handlesrequiredstring[]TikTok usernames WITHOUT the @, max 20

list_tiktok_tto_brand_profiles#

List TikTok One brand profiles read-only

The Brand Profiles on a TikTok One account. A Brand Profile is what a creator sees when they open an invite link; name, industry, logo, website and optionally the brand’s own TikTok account; and a brand-level campaign cannot exist without one. Read-only, free.

ParameterTypeDescription
ttoAccountIdstring
brandProfileIdsstring[]filter, max 20
pagenumber
pageSizenumber

create_tiktok_tto_brand_profile#

Create a TikTok One brand profile

Create a Brand Profile on a TikTok One account; the identity creators see when they open an invite link. THE NAME, INDUSTRY AND LOGO ARE PERMANENT: TikTok marks all three "cannot be updated" and publishes no brand-profile update endpoint anywhere in its API, so a profile is authored exactly once and a typo has to be lived with. Confirm all three with the user before calling. The logo must be a 1:1 image under 5MB at a publicly reachable URL, and the website must start with https. Adding tiktokAccountUrl lets creators see the brand’s own TikTok account on the profile, which TikTok says improves how many of them take the invitation seriously. Free.

ParameterTypeDescription
ttoAccountIdstring
brandNamerequiredstringPERMANENT: ≤60 characters
brandIndustryIdrequiredstringPERMANENT: TikTok’s Brand Profile industry id
brandWebsiterequiredstringmust start with https://
logoUrlrequiredstringPERMANENT: JPG/PNG/GIF, 1:1, ≤5MB, public URL
tiktokAccountUrlstringhttps://www.tiktok.com/@handle

list_tiktok_tto_campaigns#

List TikTok One creator campaigns read-only

The TikTok One creator campaigns on this account, each with its invite link, the creators invited, the videos linked so far, the ad accounts that automatically receive Spark Ads rights, and the COUNTRY CODES that tiktok_tto_campaign_report needs. TWO TIKTOK BEHAVIOURS WORTH KNOWING: it pages five at a time, which is its own maximum rather than ours, and it defaults to campaignType CAMPAIGN: so a brand-level campaign is invisible here unless you ask for BRAND_LINK explicitly. Read-only, free.

ParameterTypeDescription
ttoAccountIdstring
campaignIdsstring[]max 5
campaignType"CAMPAIGN" | "BRAND_LINK"TikTok defaults to CAMPAIGN: ask for BRAND_LINK to see brand-level ones
pagenumber
pageSizenumber1-5

create_tiktok_tto_campaign#

Create a TikTok One creator campaign

Create a TikTok One creator campaign and get the invite link creators tag their videos with. TWO SHAPES, AND THEY NEED DIFFERENT FIELDS: campaignType "CAMPAIGN" invites named creators by handle and produces a campaign-level link; campaignType "BRAND_LINK" requires a brandProfileId, takes no handles at all, and produces one open link anyone can tag a video with. THE FIELD WITH LASTING CONSEQUENCES IS advertiserIds: naming ad accounts means every video a creator links to this campaign AUTOMATICALLY grants those accounts Spark Ads rights for sparkAdsAuthorizationDays and is synced into their creative library; that is standing permission rather than a one-off, and TikTok requires the days whenever advertiserIds is given. sendNotification puts an invitation in a real creator’s TikTok inbox and is OFF unless you ask for it; without it the creators see the invitation only if you share the link yourself. Handles TikTok rejects come back in a failed list rather than as an error, so the reply reports which ones were ACTUALLY invited rather than which ones were asked for. Free.

ParameterTypeDescription
ttoAccountIdstring
campaignType"CAMPAIGN" | "BRAND_LINK"default CAMPAIGN
campaignNamestringrequired for CAMPAIGN; shown to creators, ≤120 characters: TikTok suggests [product name - product description]
campaignDescriptionstring≤1000 characters: positioning, audience, core features
brandProfileIdstringrequired for BRAND_LINK; optional alternative to brandName on CAMPAIGN
brandNamestring≤60 characters, when there is no Brand Profile
handleNamesstring[]required for CAMPAIGN: TikTok usernames without the @, max 100
advertiserIdsstring[]max 50: these ad accounts get AUTOMATIC Spark Ads rights on every linked video
sparkAdsAuthorizationDaysnumber0-365; REQUIRED when advertiserIds is given
anchorIdstringfrom manage_tiktok_tto_anchor
sendNotificationbooleandefault false: true puts an invitation in each creator’s TikTok inbox
businessAccountHandlestringallowlist-only at TikTok, and non-EU only: lets creators message the brand from the invite link

update_tiktok_tto_campaign#

Add creators or ad accounts to a TikTok One campaign

Add creators or ad accounts to an existing TikTok One campaign. IT ONLY EVER ADDS: TikTok appends what you pass to what the campaign already holds and publishes nothing that removes either, so there is no way to un-invite a creator or unlink an ad account through the API: the reply therefore reports what the campaign NOW HOLDS rather than what you sent. The name, description, brand and anchor cannot be changed after creation at all; TikTok’s own create endpoint accepts a campaign_id and then ignores every field except the account and the handles, which is why a rename is impossible rather than merely unsupported here. handleNames is not accepted on a BRAND_LINK campaign, because a brand-level link is open to whoever opens it. Free.

ParameterTypeDescription
ttoAccountIdstring
campaignIdrequiredstring
campaignType"CAMPAIGN" | "BRAND_LINK"default CAMPAIGN
handleNamesstring[]creators to ADD: max 100, CAMPAIGN only
advertiserIdsstring[]ad accounts to ADD: max 50
sendNotificationbooleandefault false

tiktok_tto_campaign_report#

Report on a TikTok One creator campaign read-only

How each creator video on a TikTok One campaign actually performed, with EVERY HEADLINE METRIC SPLIT ORGANIC VERSUS PAID: views, reach, engagement rate, likes, comments, shares, favourites, completion rate, average view time; plus audience breakdowns and any anchor clicks. That split is the question an influencer campaign exists to answer: did the creator’s own audience carry the video, or did the media spend. Give startDate and endDate TOGETHER to also get day-by-day figures; giving one without the other is refused, because TikTok requires each whenever the other is present. TikTok reports one country per call and will only accept one of the CAMPAIGN’s own countries, so it is read off the campaign rather than guessed. Two TikTok behaviours worth passing on: reporting is backfilled if a creator tags a video retroactively, and campaigns created through the API do NOT show their reporting on the TikTok One website, so this is the only place it appears. Read-only, free.

ParameterTypeDescription
ttoAccountIdstring
campaignIdrequiredstring
countryCodestringone of the campaign’s own country codes: resolved automatically when it has only one
startDatestringYYYY-MM-DD (UTC+0), paired with endDate: together they add per-day figures
endDatestringYYYY-MM-DD (UTC+0), paired with startDate
campaignType"CAMPAIGN" | "BRAND_LINK"
pagenumber
pageSizenumber1-100, default 25

request_tiktok_tto_spark_authorization#

Ask a TikTok One creator for Spark Ads authorization

Ask the creator of a campaign video for Spark Ads authorization, so the brand can run their organic post as an ad. THIS IS THE ONLY WAY TO OBTAIN A SPARK ADS CODE WITHOUT THE CREATOR PASTING ONE OUT OF THE TIKTOK APP BY HAND: once they accept, get_tiktok_tto_spark_authorization hands back the code that authorize_tiktok_ads_spark_post takes, which then makes the post usable by create_tiktok_ads_ad. THE NUMBER OF DAYS IS A REQUEST, NOT A SETTING: TikTok says the creator picks the actual window when approving, so read the granted dates back rather than assuming what was asked for. action "EXTEND" lengthens an authorization the creator has already approved. TikTok returns no confirmation body for this call, so the state in the reply was read back separately rather than echoed. Free.

ParameterTypeDescription
ttoAccountIdstring
videoIdrequiredstringa video the creator has already linked to the campaign
authorizationDaysnumber1-365, TikTok defaults to 30: a REQUEST, not a guarantee
action"EXTEND"EXTEND adds the days to an authorization already approved

get_tiktok_tto_spark_authorization#

Check a TikTok One Spark Ads authorization read-only

Whether a creator has approved Spark Ads authorization for their video, and if so the authorization CODE, the window it covers, and whether that code is already bound to an ad account. The code is what authorize_tiktok_ads_spark_post takes. It appears only once the creator accepts: nothing on this side can produce one; and TikTok also reports how many further requests are left. Read-only, free.

ParameterTypeDescription
ttoAccountIdstring
videoIdrequiredstring

manage_tiktok_tto_anchor#

List, create or delete TikTok webpage anchors destructive

Webpage anchors: the link that appears above a creator’s video description and in its comment section, sending viewers to a product or service page. action "list", "create" or "delete". AN ANCHOR CREATED HERE CAN NEVER BE DELETED: TikTok removes only DRAFT anchors, an anchor created through the API is born IN_REVIEW, and no API path produces a draft; so treat creating one as permanent, exactly like a TikTok pixel. An anchor is visible ONLY to viewers in its own country, and TikTok measures its performance only when the creator’s country matches too; the video still reaches everyone, the anchor does not. The landing page must be a product or service DETAIL page or TikTok rejects it during review. The thumbnail is passed as a public URL: TikTok also accepts a file upload, and that transport is deliberately not built because the URL form is documented as equivalent. Free.

ParameterTypeDescription
ttoAccountIdstring
action"list" | "create" | "delete"default list
anchorIdstringrequired for delete
anchorIdsstring[]filters a list, max 100
categoryLabelIdstringrequired for create: TikTok’s product/service category, and it decides which countries the anchor may use
countryCodestringrequired for create: the anchor is invisible outside it
landingPageUrlstringrequired for create: a product or service DETAIL page
anchorTitle"WATCH_NOW" | "LISTEN_NOW" | "READ_MORE" | "SHOW_NOW" | "GET_OFFER" | "LEARN_MORE" | "CONTACT_US" | "JOIN_NOW" | "APPLY_NOW"required for create: the call-to-action wording
anchorNamestringrequired for create: an internal label TikTok never shows viewers, ≤32 characters
thumbnailUrlstringrequired for create: public URL, exactly 210x375, under 2MB
pagenumber
pageSizenumber1-50

ONSITE COMMERCE STORE

list_tiktok_ads_stores#

List the TikTok Shops on a TikTok ad account read-only

The TikTok Shops granted to a TikTok ad account; what Shopping Ads and GMV Max campaigns sell from. Each row also names the BUSINESS CENTER that can reach the shop, and that is what list_tiktok_ads_store_products needs, because the product endpoint is keyed on a Business Center rather than on this ad account. An empty result is a real answer rather than an error: a shop has to be created in TikTok Shop Seller Center and granted to the ad account, and this reads that grant rather than creating one. Read-only, free.

ParameterTypeDescription
advertiserIdstring
storeIdstringfilter to one
storeType"TIKTOK_SHOP"

list_tiktok_ads_store_products#

List the products in a TikTok Shop read-only

The products inside a TikTok Shop, with titles, images, price ranges, currency and historical sales. Pass adCreationEligible to also learn which of them may ACTUALLY be advertised; CUSTOM_SHOP_ADS for Shopping Ads, GMV_MAX for a Product GMV Max campaign; and note that WITHOUT it TikTok does not report eligibility at all, so an absent flag means unknown rather than yes. That filter additionally requires an advertiserId, because eligibility is a fact about a product AND an ad account rather than about a product alone. This call is keyed on a BUSINESS CENTER, which list_tiktok_ads_stores reports on each store row. Read-only, free.

ParameterTypeDescription
bcIdstringfrom the store row, or from list_tiktok_ads_business_centers
storeIdrequiredstringfrom list_tiktok_ads_stores
advertiserIdstringREQUIRED when adCreationEligible is given
adCreationEligible"CUSTOM_SHOP_ADS" | "GMV_MAX"
itemGroupIdsstring[]product SPU ids, max 10
productNamestring
sortField"min_price" | "historical_sales"
sortType"ASC" | "DESC"
pagenumber
pageSizenumber1-100, default 10

BUSINESS VERIFICATION

tiktok_ads_verification_status#

Check a TikTok account’s business verification read-only

Whether a TikTok ad account or Business Center has passed business verification, when it was reviewed, and if it failed, TikTok’s own reason. AN AD ACCOUNT AND A BUSINESS CENTER ARE VERIFIED SEPARATELY and carry different statuses, so pass one or the other and never both; a verified Business Center does not verify the ad accounts inside it. Worth reading during onboarding: an unverified account meets limits that otherwise get diagnosed as something else entirely. It also reports the qualification id of any document already on file, which submit_tiktok_ads_verification can reuse. Read-only, free.

ParameterTypeDescription
advertiserIdstringan ad account: pass this OR bcId, not both
bcIdstringa Business Center: pass this OR advertiserId, not both

list_tiktok_ads_verification_documents#

List the verification documents TikTok accepts in a country read-only

Which identity or business documents TikTok accepts for verification in a given country; the list differs everywhere, so there is no useful default and the country is required. Returns each document’s name and the code submit_tiktok_ads_verification needs. business_type BUSINESS asks about company paperwork (an EIN letter, a certificate of incorporation); INDIVIDUAL asks about personal identification (passport, driver’s licence, residence card). Read-only, free.

ParameterTypeDescription
verificationType"BUSINESS" | "INDIVIDUAL"default BUSINESS
regionIsoCoderequiredstringthe ISO country of the ACCOUNT being verified, e.g. US: tiktok_ads_verification_status reports it

submit_tiktok_ads_verification#

Submit a TikTok business or identity verification request

Submit a business or individual verification request for a TikTok ad account or Business Center. IT DOES NOT UPLOAD ANY DOCUMENT AND HERMOSO NEVER HANDLES ONE: this sends the account details plus the ids of images the user already uploaded in TikTok Ads Manager, or the id of a document already on file that TikTok permits them to reuse; tiktok_ads_verification_status reports that id. A BUSINESS submission takes exactly one image id; an INDIVIDUAL one takes exactly two, the front and back of a single document. THE LEGAL NAME AND THE DOCUMENT NUMBER CANNOT BE CHANGED AFTERWARDS and must match the paperwork character for character, so this is confirm-gated: calling it without confirm sends nothing and returns a sentence naming exactly what would leave here. Submitting also needs real authority: TikTok requires admin or operator on an ad account, admin on a Business Center. Free.

ParameterTypeDescription
advertiserIdstringpass this OR bcId, not both
bcIdstring
verificationTyperequired"BUSINESS" | "INDIVIDUAL"
companyNamestringBUSINESS: the legal name, PERMANENT, must match the document exactly
individualNamestringINDIVIDUAL: the full legal name, PERMANENT
websiteUrlstringrequired for both
industryCode"NOT_APPLICABLE" | "ALCOHOL" | "OTC" | "DATING_APP" | "FINANCIAL_SERVICES"BUSINESS only
regionIsoCodestringthe account’s ISO country
fileTypeCodestringfrom list_tiktok_ads_verification_documents
licenseNostringBUSINESS: the certificate number, PERMANENT
identityNostringINDIVIDUAL: the government ID number, PERMANENT
qualificationImageIdsstring[]exactly 1 for BUSINESS, exactly 2 for INDIVIDUAL (front and back)
confirmbooleanREQUIRED true: call without it first to see exactly what would be sent

PAYMENT PORTFOLIOS

list_tiktok_ads_payment_portfolios#

List TikTok payment portfolios read-only

The payment portfolios under a TikTok Business Center; how a customer’s ad accounts are actually funded, whether the money is pooled across them (an Advanced portfolio) or held per account (a Standard one), how many accounts draw on each, and what credit line it carries. WORTH READING WHEN CAMPAIGNS STOP DELIVERING, because that is very often a funding answer rather than an ads answer, and nothing else in Hermoso can see it. By TikTok’s own default this lists every portfolio belonging to the same CLIENT as the Business Center, including ones not linked to it; pass bcRelated:true to narrow it. READ-ONLY BY DESIGN: Hermoso never creates a portfolio, moves an ad account onto one, or allocates a credit line, because each of those decides where a customer’s money sits. Free.

ParameterTypeDescription
bcIdstringfrom list_tiktok_ads_business_centers
paymentPortfolioIdsstring[]filter, max 10
type"SHARED" | "NON_SHARED"SHARED is Advanced (pooled funds), NON_SHARED is Standard (per-account)
bcRelatedbooleantrue narrows to portfolios actually linked to this Business Center
pagenumber
pageSizenumber1-50

SNAPCHAT ADS

list_snapchat_ads_accounts#

List Snapchat organizations and ad accounts read-only

List the Snapchat AD ACCOUNTS SHARED WITH THIS BRAND — the ones it may actually build on and spend from, which is NOT everything the Snapchat login can reach — id, name, currency, timezone and status. Every other Snapchat Ads tool needs an adAccountId and this is where it comes from. One call returns both tiers, because Snap nests ad accounts inside their organization. An account flagged as a TEST account is marked as such — those cannot serve real ads. Read-only, free.

No parameters.

list_snapchat_ads_campaigns#

Read the Snapchat ad tree read-only

Read the whole Snapchat ad tree for an ad account — campaigns, ad squads and ads with their statuses. The three tiers are fetched separately so one failure cannot take the tree down, and a tier that FAILED to read is reported in `partial` rather than as an empty list: an empty list here means an empty account, never a failed read. Read-only, free.

ParameterTypeDescription
adAccountIdstringfrom list_snapchat_ads_accounts — omit only when exactly one is reachable

snapchat_ads_report#

Snapchat ad performance read-only

Read Snapchat ad performance — impressions, spend, swipes and video quartiles — at ad account, campaign, ad squad or ad level. THREE THINGS TO KNOW BEFORE CALLING: granularity is required (TOTAL is the default); DAY and HOUR granularity REQUIRE startTime and endTime AND both must land exactly on the start of an hour, which Snapchat refuses otherwise and Hermoso refuses for free before spending the call; and SPEND COMES BACK IN MICRO-CURRENCY, so divide by 1,000,000 before quoting money to anyone. Read-only, free.

ParameterTypeDescription
adAccountIdstring
level"adaccount" | "campaign" | "adsquad" | "ad"default campaign
idstringthe object to report on — defaults to the ad account itself for level:adaccount
granularity"TOTAL" | "DAY" | "HOUR" | "LIFETIME"default TOTAL. DAY and HOUR need startTime and endTime, both on the hour.
startTimestringISO 8601, on the start of an hour (22:00, never 22:45)
endTimestringISO 8601, on the start of an hour
fieldsstringcomma-separated metrics — default impressions,spend,swipes
breakdownstringobject-level breakdown: ad, adsquad (campaign stats only) or campaign (ad-account stats only)
swipeUpAttributionWindow"1_DAY" | "7_DAY" | "28_DAY"how long after a SWIPE a conversion still counts. Omit to use the ad account default. Changing it changes the numbers, not just the report.
viewAttributionWindow"none" | "1_HOUR" | "3_HOUR" | "6_HOUR" | "1_DAY" | "7_DAY"how long after a VIEW (no swipe) a conversion still counts; 'none' attributes no view-throughs at all. Omit to use the ad account default.

search_snapchat_ads_targeting#

Resolve Snapchat targeting ids read-only

Resolve Snapchat targeting options to the ids an ad squad needs — countries (REQUIRED: an ad squad cannot be created without at least one), regions, metros, age groups, genders, languages, device OS or interests. NEVER invent one of these ids: invented targeting is silent and spends money on the wrong people. Region and metro lookups need a countryCode because Snapchat scopes those lists per country. Interests live in SEVERAL taxonomies at different paths (scls, vac, shp) which are not interchangeable, so name one rather than assuming. Read-only, free.

ParameterTypeDescription
kind"country" | "region" | "metro" | "age_group" | "gender" | "language" | "os_type" | "interest"default country
countryCodestringREQUIRED for region and metro — two-letter code, e.g. "us"
taxonomystringfor kind:interest — scls, vac or shp
querystringfilter the returned list to matching entries
limitnumber

list_snapchat_ads_profiles#

List Snapchat Public Profiles for an ad account read-only

FIND THE PUBLIC PROFILE ID EVERY SNAPCHAT AD CREATIVE REQUIRES. Snapchat has required profile_properties on every creative since 2024-02-26, so without one upload_snapchat_ads_creative cannot build anything — this is where the id comes from. Snapchat publishes no clean list-profiles endpoint, so this reads the ad account SHARING POLICIES (the documented mechanism by which a profile reaches an ad account) and reports which resource-type token Snapchat accepted. IT CAN LEGITIMATELY FAIL: the Public Profile API is on a different host and documents its own OAuth scope which this connection does not hold, and a failure is reported as "could not tell" with the manual way out — NEVER as "you have no profiles", because an empty list there would look like a real answer. Read-only, free.

ParameterTypeDescription
adAccountIdstring
resourceTypestringoverride the shared_resource_types token if Snapchat documents a different one — by default several are tried and the one that works is reported

upload_snapchat_ads_creative#

Upload a render to Snapchat as media + creative

PUT A FINISHED HERMOSO RENDER ONTO THE SNAPCHAT AD ACCOUNT so an ad can point at it — the bridge between making an ad and running one, and create_snapchat_ads_ad has no other source for the creativeId it needs. Pass the public https url of a render; SNAPCHAT HAS NO UPLOAD-FROM-URL, so Hermoso fetches the bytes and posts them as multipart. This does TWO things in one call — it uploads the MEDIA and then builds the CREATIVE that wraps it — because a Snapchat ad points at a CREATIVE and never at a media id, and stopping after the upload leaves an asset nothing can use. A PUBLIC PROFILE IS MANDATORY: Snapchat has required profile_properties on every ad creative since 2024-02-26, so profileId is REQUIRED and a call without one is refused BEFORE any bytes move (which is what stops an orphan media row being left on the ad account for a creative that could never be created). Get one from list_snapchat_ads_profiles, or read it in Snapchat Ads Manager. headline is required too. COPY LIMITS ARE SHORT AND ENFORCED: headline max 34 characters, brandName max 32 — far shorter than Meta or Google, and over-long copy is REFUSED rather than truncated, because shipping words nobody wrote is worse than a refusal. To build a SECOND creative on media already uploaded, pass mediaId instead of url — nothing is downloaded or uploaded again. A file over 32MB is refused by name (Snapchat requires a chunked upload flow above that which Hermoso does not implement). Free.

ParameterTypeDescription
adAccountIdstring
urlstringpublic https url of the render — a Hermoso render URL already is one; for any other file run it through upload_file first. Omit only when reusing mediaId.
mediaIdstringbuild a creative on media ALREADY uploaded to this ad account instead of uploading again — the way to reuse one video across several creatives
kind"video" | "image"default video
namestringlabel in Snapchat Ads Manager
headlinerequiredstringREQUIRED by Snapchat. MAX 34 CHARACTERS — the text shown beneath the brand name
brandNamestringMAX 32 CHARACTERS
callToActionstringthe swipe-up button label; must fit the creative type
landingPageUrlstringwhere a swipe-up goes
creativeTypestringdefault SNAP_AD
profileIdrequiredstringREQUIRED — the Snapchat Public Profile the ad posts as. Snapchat has rejected every creative without one since 2024-02-26. From list_snapchat_ads_profiles, or Snapchat Ads Manager.
creativebooleanset false to upload the MEDIA ONLY and build the creative yourself — the default true is what an ad actually needs

create_snapchat_ads_campaign#

Create a Snapchat campaign (forced paused)

Create the top tier of a Snapchat ad — the campaign. CREATED PAUSED AND THERE IS NO OVERRIDE; it spends nothing until set_snapchat_ads_status(confirm:true). A CAMPAIGN ALONE CAN NEVER SERVE: it needs an ad squad and then an ad under it, and every tier must be ACTIVE before one impression is shown. Objectives are Snapchat’s CURRENT objective_v2 set — AWARENESS_AND_ENGAGEMENT, SALES, TRAFFIC, APP_PROMOTION, LEADS. A LEGACY objective name (BRAND_AWARENESS, WEB_CONVERSION and the rest) is REFUSED BY NAME rather than silently mapped onto a v2 value, because mapping one onto the other would optimise the campaign for something the user did not ask for. The result is READ BACK from Snapchat and the note says so when the read-back could not be run.

ParameterTypeDescription
adAccountIdstringfrom list_snapchat_ads_accounts — omit only when exactly one is reachable
namerequiredstringthe campaign name in Snapchat Ads Manager — max 375 characters
objectivestringAWARENESS_AND_ENGAGEMENT, SALES, TRAFFIC, APP_PROMOTION or LEADS. A legacy name is refused by name.
buyModel"AUCTION" | "RESERVED"default AUCTION. RESERVED is Reach & Frequency booking and has its own contract.
startTimestringISO 8601 — defaults to now, which is harmless because the campaign is paused
endTimestringISO 8601

create_snapchat_ads_ad_squad#

Create a Snapchat ad squad (targeting, budget, bidding, schedule)

Create an ad squad under an existing Snapchat campaign — the tier that holds the budget, the bid, the targeting, the placements and the schedule. CREATED PAUSED with no override. TWO THINGS ARE MANDATORY AND NEITHER IS GUESSABLE: countries (at least one two-letter code — Snapchat refuses an ad squad with no geo, and search_snapchat_ads_targeting(kind:"country") resolves them), and a budget. **MONEY ON SNAPCHAT IS MICRO-CURRENCY**: state a plain amount in dailyBudget (50 means fifty dollars) and Hermoso multiplies by 1,000,000 for you. Only use dailyBudgetMicro if you have ALREADY converted, and NEVER pass both — that is refused rather than resolved by precedence, because applying the conversion twice to an already-converted amount asks for a budget a million times too large, and under-converting merely fails loudly while over-converting does not. Snapchat’s documented minimum daily budget is 5 units. A bid is required unless bidStrategy is AUTO_BID, which lets Snapchat choose it.

ParameterTypeDescription
adAccountIdstring
campaignIdrequiredstringthe campaign this ad squad belongs to
namerequiredstringmax 375 characters
countriesrequiredstring[]REQUIRED — two-letter country codes, e.g. ["us"]. Snapchat refuses an ad squad with no geo targeting.
dailyBudgetnumberin the ad account’s own currency — 50 means fifty. Hermoso converts to micro. Minimum 5.
dailyBudgetMicronumberONLY if you have already multiplied by 1,000,000. Passing this AND dailyBudget is refused.
lifetimeBudgetnumberin the ad account’s own currency — an alternative to a daily budget
lifetimeBudgetMicronumber
bidnumberin the ad account’s own currency — required unless bidStrategy is AUTO_BID
bidMicronumberONLY if already converted; never alongside bid
bidStrategy"AUTO_BID" | "LOWEST_COST_WITH_MAX_BID" | "TARGET_COST" | "MIN_ROAS"default AUTO_BID — Snapchat picks the bid, and no bid field is needed. ONLY AUTO_BID and LOWEST_COST_WITH_MAX_BID actually work: Snapchat deprecated MIN_ROAS (with roas_value_micro) on 10 February 2025 and its ad-squads reference lists BOTH MIN_ROAS and TARGET_COST as not available, so either is refused by name before anything is created. They stay in the enum because they are still in Snapchat published enum — the refusal names the vendor, not your input.
optimizationGoalstringwhat Snapchat optimises delivery toward — default IMPRESSIONS. Others include SWIPES, VIDEO_VIEWS, APP_INSTALLS, PIXEL_PURCHASE, LEAD_FORM_SUBMISSIONS.
billingEventstringIMPRESSION — the only value Snapchat documents
type"SNAP_ADS" | "LENS" | "FILTER"default SNAP_ADS
placementConfig"AUTOMATIC" | "CUSTOM"default AUTOMATIC — Snapchat places the ad across its surfaces
minAgestringe.g. "18"
maxAgestring
gender"MALE" | "FEMALE" | "OTHER"leave unset to reach everyone — an absent gender is no gender restriction, not a default
languagesstring[]language codes such as ["en","es"] — resolve them with search_snapchat_ads_targeting(kind:"language")
osType"iOS" | "ANDROID" | "WEB"device OS — resolve with search_snapchat_ads_targeting(kind:"os_type")
interestsstring[]Snapchat interest category ids such as ["SLC_1"] — resolve with search_snapchat_ads_targeting(kind:"interest", taxonomy:"scls"). Ids are NOT interchangeable between taxonomies.
regionsstring[]region/state ids INSIDE the one country named in countries — resolve with search_snapchat_ads_targeting(kind:"region", countryCode:"ca"). Refused if more than one country is given, because a region id belongs to a country.
metrosstring[]metro/DMA ids inside the one country named in countries — resolve with kind:"metro"
postalCodesstring[]postal codes inside the one country named in countries
regulatedContentbooleandeclare regulated content (alcohol, gambling and the like)
startTimestringISO 8601
endTimestringISO 8601

create_snapchat_ads_ad#

Create a Snapchat ad (forced paused)

Create the Snapchat ad itself, inside an ad squad. CREATED PAUSED with no override. THE CREATIVE COMES FROM upload_snapchat_ads_creative: pass the creativeId it returns. AN AD POINTS AT A CREATIVE, NEVER AT A MEDIA ID — passing a mediaId is refused by name rather than failing at Snapchat with a field-path error. SNAPCHAT REVIEWS EVERY AD before it can show: the returned reviewStatus says whether that has happened, and an ad Snapchat has REJECTED cannot serve even once it is activated, so relay a rejection instead of reporting a successful build. The status is READ BACK from Snapchat’s own row — if the note carries a ⚠ saying it was stored as anything other than PAUSED, relay that and pause it before anything above it is activated.

ParameterTypeDescription
adAccountIdstring
adSquadIdrequiredstringthe ad squad this ad belongs to
namerequiredstringmax 375 characters
creativeIdrequiredstringfrom upload_snapchat_ads_creative — NOT a mediaId
typestringdefault SNAP_AD. Others include REMOTE_WEBPAGE, APP_INSTALL, STORY, COLLECTION, LEAD_GENERATION.

set_snapchat_ads_budget#

Change a Snapchat ad squad budget

Change the budget on a Snapchat AD SQUAD. BUDGETS LIVE ON THE AD SQUAD, not on the campaign — a campaign-level ask is refused by name rather than silently patching nothing. NEEDS confirm:true, and without it NOTHING CHANGES: you get a sentence naming the ad squad AS READ FROM SNAPCHAT and the amount, which you must show the user first. State a plain amount in dailyBudget and Hermoso converts to micro-currency; never pass both units. The new budget is READ BACK — report what Snapchat stored, in both micro and real money, not what you sent.

ParameterTypeDescription
adAccountIdstring
level"adsquad"adsquad — the only tier that holds a budget on Snapchat
idrequiredstringthe ad squad id
dailyBudgetnumberin the ad account’s own currency — minimum 5
dailyBudgetMicronumberONLY if already multiplied by 1,000,000; never alongside dailyBudget
lifetimeBudgetnumber
lifetimeBudgetMicronumber
confirmbooleanREQUIRED true — without it nothing changes and you get the sentence to show the user

set_snapchat_ads_status#

Activate or pause Snapchat campaigns, ad squads and ads

THE ONE SWITCH THAT ARMS REAL MONEY ON SNAPCHAT. ACTIVE starts real spend on the next auction; PAUSED stops it. EVERY change needs confirm:true, and WITHOUT confirm NOTHING CHANGES — you get a sentence naming each object AS READ FROM SNAPCHAT, with its real name and its current status, which you must show the user before asking for a yes. Confirming proves the caller meant to change SOMETHING; only reading the object back proves they aimed at the right one. EVERY TIER must be ACTIVE for a single impression to serve — a live ad under a paused ad squad shows nothing. THE ANSWER IS THE READ-BACK: report what Snapchat STORED per id, never the status you asked for. Snapchat has NO delete status — removal is a real DELETE verb, so use delete_snapchat_ads_object.

ParameterTypeDescription
adAccountIdstring
levelrequired"campaign" | "adsquad" | "ad"which tier these ids belong to
idsrequiredstring[]the objects to change
statusrequired"ACTIVE" | "PAUSED"ACTIVE arms real spend
confirmbooleanREQUIRED true — without it nothing changes and you get the sentence to show the user

delete_snapchat_ads_object#

Delete a Snapchat campaign, ad squad or ad destructive

PERMANENTLY DELETE a Snapchat campaign, ad squad or ad. Snapchat publishes a REAL delete verb at every tier — unlike TikTok, where removal is a status — so this is irreversible and there is no undelete. Needs confirm:true, and the unconfirmed call changes nothing and names the objects READ FROM SNAPCHAT plus what deleting a parent takes with it (a campaign takes its ad squads and ads). TO STOP DELIVERY REVERSIBLY, use set_snapchat_ads_status with PAUSED instead — the refusal says so, because most people asking to "remove" an ad mean "stop it". The read-back is INVERTED for a delete: an id that still resolves afterwards is reported as NOT CONFIRMED, never as a success.

ParameterTypeDescription
adAccountIdstring
levelrequired"campaign" | "adsquad" | "ad"which tier these ids belong to
idsrequiredstring[]the objects to delete
confirmbooleanREQUIRED true — without it nothing is deleted and you get the blast radius to show the user

LINKEDIN COMPANY PAGES + ADS

list_linkedin_pages#

List the LinkedIn company Pages this account administers read-only

List the LinkedIn COMPANY PAGES the connected account administers — id, name and the role held on each. ALWAYS call this before post_to_linkedin_page when there is more than one Page: publishing to the wrong company Page is a public mistake and Hermoso never chooses for the user. If it comes back empty, the account holds no Page admin role, or LinkedIn has not granted this app the organization scopes — say that plainly rather than guessing an id. Read-only, free.

No parameters.

post_to_linkedin_page#

Publish to a LinkedIn company Page

Publish a post to one of the user’s LinkedIn COMPANY PAGES — text, plus optionally an image, a video, a 2–20 image CAROUSEL (LinkedIn calls it a MultiImage post; pass the slides in order as imageUrls[]), or a LINK POST with a real preview card (linkUrl). USE linkUrl WHENEVER THE POINT OF THE POST IS A LINK: LinkedIn disables URL scraping for API partners, so a url sitting in the text renders as plain text with no card, and the card’s title, description and image only exist if you pass linkTitle / linkDescription / linkThumbnailUrl — read them off the page and supply them. The media need not be a Hermoso render — it must be Hermoso-HOSTED because we upload the bytes to LinkedIn ourselves, and upload_file turns ANY file the user already has into such a URL. ORGANIC CAROUSELS ARE COMPANY-PAGE ONLY — a personal profile cannot publish one and is refused by name, so send a deck here rather than to post_to_linkedin. This is a DIFFERENT thing from post_to_linkedin, which publishes to the person’s own profile: pick the one the user actually asked for and never substitute. organizationId comes from list_linkedin_pages; omit it only when the account administers exactly one Page. This PUBLISHES immediately and PUBLICLY — ALWAYS show the user the exact text and get an explicit yes BEFORE calling. A VIDEO POST CAN CARRY CAPTIONS AND ITS OWN COVER, and both are attached only during the upload: pass captionsSrt (SubRip content — LinkedIn is watched with the sound off) and videoThumbnailUrl (otherwise LinkedIn picks a frame for you). LinkedIn does NOT allow the image, video, captions or thumbnail of a published post to be swapped afterwards, so get all of that right first (the copy can still be edited with manage_linkedin_post).

ParameterTypeDescription
hookstringWHAT ANGLE THIS POST IS BUILT ON — the single most valuable field here, and the only moment it can ever be recorded. post_performance groups on it to answer "which hooks work", and it needs 5 posts sharing ONE hook before it will call anything a winner, so REUSE THE SAME WORDING across a campaign instead of rephrasing it every time. Best of all, pass a hook id from list_hooks (e.g. "direct_callout", "mid_problem", "before_after") — those fold onto a stable key however they are spelled, so a whole brand accumulates evidence on one row. Your own wording is fine too; it just only groups when you repeat it exactly. Omitting it means this post can never vote on which hook works.
subjectstringWHAT THIS POST IS ABOUT — the product, feature, offer or theme (e.g. "winter coat", "free trial", "founder story"). The second grouping axis in post_performance. Same rule as hook: reuse the exact wording so posts about one subject land in one group.
organizationIdstringnumeric Page id from list_linkedin_pages
textrequiredstringthe post text
linkUrlstringpublish a LINK POST — LinkedIn renders a real preview card for this URL instead of leaving a bare link in the text. Mutually exclusive with imageUrl / videoUrl / imageUrls: LinkedIn’s content field is a union, so combining them is refused by name rather than one being dropped.
linkTitlestringthe headline ON the preview card. LINKEDIN NEVER SCRAPES THE PAGE — their Posts API disables URL scraping for API partners outright — so if you do not pass this the card renders UNLABELLED. Fetch the page’s own title and pass it.
linkDescriptionstringthe sub-line on the preview card. Same rule as linkTitle: absent means blank, because LinkedIn will not fetch it.
linkThumbnailUrlstringa Hermoso-hosted image used as the card’s picture (uploaded to LinkedIn for you). Without it the card has no image.
imageUrlstringa Hermoso-hosted image URL — a render (list_library), or ANY image of the user’s own passed through upload_file first. An arbitrary external host is refused.
videoUrlstringa Hermoso-hosted video URL — a render, or the user’s own footage via upload_file. LinkedIn processes it before publishing, which takes a minute.
imageUrlsstring[]CAROUSEL — an ORDERED list of image (and, where the channel allows, video) URLs published as ONE post the viewer swipes through. THIS IS NOT “post several” — it is a single post with several slides, which is what a multi-slide creative (a listicle, a “1/6 · SWIPE” deck) actually needs; publishing only its first slide tells the viewer to swipe at something that cannot. The ORDER is the product. Limits per channel: Instagram 2–10 (images, videos or a mix), Threads 2–20 (mix allowed), Facebook 2+ (Meta publishes no documented maximum; Hermoso caps the upload fan-out at 30 and says so), LinkedIn company Pages 2–20 (images only), Pinterest 2–5 (images only), TikTok up to 35. One url here is simply an ordinary single post. Anything a channel cannot do is REFUSED with the real reason — nothing is ever quietly downgraded to one slide.
idempotencyKeystringSAFE RETRIES. Publishing can take minutes (a video upload, a carousel of ten slides) and a transport can time out while the post SUCCEEDS — retrying blind is how the same thing gets posted twice. Pass any stable string here and a repeat of the SAME publish returns the ORIGINAL post id instead of posting again (24h). You do not have to: an identical publish is auto-recognised for 10 minutes anyway. If a call times out or errors ambiguously, CALL AGAIN WITH THE SAME KEY — that is the safe move, and it will either report the original post or publish it for the first time. It never posts twice.
allowDuplicatebooleanpost it even though an identical post was just made or attempted. Only pass this when the user genuinely wants the same thing posted twice, or when you have LOOKED at the account and confirmed a timed-out attempt did not land.
altTextstring | string[]accessibility alt text (max 4086 characters, ~120 recommended). A STRING describes every image; an ARRAY describes each slide of a multi-image post separately, in slide order — LinkedIn stores altText per image, and their own sample request carries a different one on each. Not available on a PERSONAL-profile post: LinkedIn’s member posting API has no alt-text field at all.
titlestringvideo title
captionsSrtstringCLOSED CAPTIONS for a videoUrl post — the SubRip (.srt) CONTENT itself, cue numbers and `00:00:00,000 --> 00:00:02,000` timing lines included, NOT a URL and NOT the plain script (a file with no timings is refused, because LinkedIn would accept it and then silently never show it). Most of LinkedIn is watched with the sound off, so an uncaptioned video is one most of the feed never hears. LinkedIn allows ONE caption file per video and ENGLISH ONLY; it can be attached only WHILE the video is uploaded, never added to a published post; and it is processed asynchronously, so the reply confirms it was UPLOADED and never that it is visible yet. Requires videoUrl — passing it on an image, carousel or link post is refused by name.
videoThumbnailUrlstringthe COVER IMAGE for a videoUrl post — a Hermoso-hosted image (a render, or any picture of the user’s via upload_file). Without it LinkedIn adds a system-generated thumbnail, which on an ad is usually whatever the first frame happens to be. Like captions this can only be set WHILE the video is uploaded, never afterwards. Requires videoUrl. This is NOT linkThumbnailUrl, which is the picture on a link-preview card.
visibility"PUBLIC" | "CONNECTIONS"default PUBLIC

manage_linkedin_post#

Edit or delete a LinkedIn post destructive

Edit or delete a published LinkedIn post — personal profile or company Page. Pass postUrn, the full urn returned when it was published. action:"edit" changes ONLY THE COPY: LinkedIn does not allow the image or video of a published post to be replaced, so a new visual means a NEW post — tell the user that instead of promising a swap. action:"delete" is immediate and public and requires confirm:true.

ParameterTypeDescription
postUrnrequiredstringthe full LinkedIn post urn returned by publishing
actionrequired"edit" | "delete"
textstringthe new copy, for action:"edit"
confirmbooleanREQUIRED true to delete

linkedin_page_analytics#

Organic performance of a LinkedIn company Page read-only

ORGANIC performance for one of the brand’s LinkedIn COMPANY PAGES: total followers, followers gained (organic vs paid) across the window, Page views (all / unique / desktop / mobile), and the impressions, unique impressions, clicks, likes, comments, shares and engagement rate of the Page’s posts. This is what answers “is our LinkedIn actually working” and “did that post land”. It is NOT linkedin_ads_report — that covers PAID campaigns; LinkedIn excludes sponsored activity from these figures entirely. Pass postUrns (the urn:li:share:… / urn:li:ugcPost:… that post_to_linkedin_page returned) for PER-POST numbers; LinkedIn forbids a date range together with named posts, so that switches to lifetime-per-post. Only Pages the user ticked in Manage accounts are readable — a Page the account merely administers is refused, by design. LinkedIn keeps 12 months, follower figures run about 2 days behind, and it OMITS posts with no recorded activity rather than returning zeros: report an absent post or an unavailable section as MISSING data, never as zero. Read-only, 0 credits. Needs LinkedIn connected with the organization scopes.

ParameterTypeDescription
organizationIdstringnumeric Page id from list_linkedin_pages — omit only when exactly one Page is shared with this brand
startDatestringYYYY-MM-DD, default 28 days ago (LinkedIn keeps 12 months)
endDatestringYYYY-MM-DD, default today
postUrnsstring[]urn:li:share:… / urn:li:ugcPost:… — switches to per-post lifetime numbers instead of the Page total

list_linkedin_ads_campaigns#

List LinkedIn ad accounts / campaigns read-only

Read the LinkedIn ad accounts this connection can reach, and — with adAccountId — that account’s campaign groups and campaigns: name, status, objective, budgets, and LinkedIn’s own servingStatuses, which explain WHY something is not delivering (billing hold, start-date hold, parent-status hold). LinkedIn’s Advertising API is an approval-gated product, and on its Development tier each ad account must ALSO be mapped to the app in LinkedIn’s Developer Portal — so if nothing is reachable, say that rather than implying the user has no ad account. Read-only, free.

ParameterTypeDescription
adAccountIdstringLinkedIn ad account id — omit to list the reachable accounts
campaignIdstringalso return the CREATIVES (the actual ads) under this campaign, each with its intendedStatus, whether it isServing, and LinkedIn’s own servingHoldReasons
campaignIdsstring[]same, for several campaigns at once
statuses"ACTIVE" | "PAUSED" | "ARCHIVED" | "DRAFT"[]

linkedin_ads_report#

LinkedIn ads performance report read-only

LinkedIn ad performance — impressions, clicks, cost, website conversions, leads and social actions — pivoted by CAMPAIGN (default), CAMPAIGN_GROUP, CREATIVE, ACCOUNT, CONVERSION, PLACEMENT_NAME, IMPRESSION_DEVICE_TYPE, SERVING_LOCATION… or by AUDIENCE DEMOGRAPHICS: MEMBER_COMPANY_SIZE, MEMBER_INDUSTRY, MEMBER_SENIORITY, MEMBER_JOB_TITLE, MEMBER_JOB_FUNCTION, MEMBER_COUNTRY_V2, MEMBER_REGION_V2, MEMBER_COMPANY. The MEMBER_* pivots are what LinkedIn is uniquely good at — job title, seniority and company size are targeting dimensions no other platform reports — and LinkedIn allows exactly ONE pivot per report, so ask for them one at a time and join the answers yourself. An unknown pivot or granularity is refused BY NAME rather than forwarded. On a demographic pivot LinkedIn returns only the top 100 values, DROPS any value under 3 events (so the rows will not sum to the campaign total) and lags 12–24 hours behind the performance numbers — the note says so, every time. Window via since/until (YYYY-MM-DD). ZERO rows genuinely means no delivery in that window; say exactly that and never present zeros as measured performance. A LinkedIn TEST ad account NEVER returns analytics, and the note says so when that is what you are looking at. Read-only, free.

ParameterTypeDescription
adAccountIdstring
campaignIdsstring[]
sincestringYYYY-MM-DD, default 30 days ago
untilstringYYYY-MM-DD
pivotstringCAMPAIGN (default), CAMPAIGN_GROUP, CREATIVE, ACCOUNT, CONVERSION, PLACEMENT_NAME, IMPRESSION_DEVICE_TYPE, SERVING_LOCATION, or one MEMBER_* demographic pivot — an unknown value is refused with the full list
granularity"ALL" | "DAILY" | "MONTHLY" | "YEARLY"default ALL
fieldsstring[]metric names — omit for the standard set (LinkedIn returns ONLY impressions and clicks if none are named)

LINKEDIN PLANNING READS

linkedin_audience_count#

How many LinkedIn members a targeting spec reaches read-only

HOW MANY LINKEDIN MEMBERS a targeting spec reaches, before any budget is committed — the cheapest sanity check there is on a B2B audience, and it needs no ad account. Pass locations plus optional include:{titles, industries, seniorities, staffCountRanges, jobFunctions, skills, …}; search_linkedin_ads_targeting resolves any of those names to the URNs LinkedIn demands, free. THE CRITICAL THING TO SAY WHEN REPORTING: a returned total of 0 means the audience is UNDER 300 PEOPLE, not that it is empty — LinkedIn suppresses any count below 300 to protect member privacy, and 300 is also the minimum audience a campaign may run against, so a 0 means this targeting is too narrow to advertise to. The figure is a rounded approximation, so quote it as an estimate and never as a headcount. Read-only, 0 credits.

ParameterTypeDescription
locationsstring[]geo URNs or bare geo ids, e.g. ["103644278"] for the United States
includeobjectmore facets ANDed onto locations, e.g. {titles:[…], industries:[…], seniorities:[…], staffCountRanges:[…]}
targetingCriteriaobjectLinkedIn’s raw targeting object — overrides locations/include

linkedin_bid_pricing#

LinkedIn suggested bid and budget range read-only

LinkedIn’s OWN suggested bid and daily-budget range for a specific audience — the suggested bid with a low/mid/high range, the hard bid limits, and the minimum, default and maximum daily budget, all in the ad account’s currency. Use it before proposing a number to a user instead of guessing what LinkedIn costs, and pair it with linkedin_audience_count to answer "can we afford this audience?" in one go. Below LinkedIn’s minimum bid it says delivery "may be poor" for Sponsored Update campaigns and is impossible for every other format. These are ESTIMATES for this audience, not prices, and nothing is committed until a campaign is activated with set_linkedin_ads_status(confirm:true). Read-only, 0 credits.

ParameterTypeDescription
adAccountIdstring
locationsstring[]
includeobject
targetingCriteriaobject
campaignType"TEXT_AD" | "SPONSORED_UPDATES" | "SPONSORED_INMAILS"default SPONSORED_UPDATES
bidType"CPM" | "CPC" | "CPV"default CPM
matchType"EXACT" | "AUDIENCE_EXPANDED"default EXACT
objectiveTypestringoptional — LinkedIn prices some objective/optimization combinations and not others
currencystring
dailyBudgetnumber
countryCodestring

create_linkedin_ads_campaign_group#

Create a LinkedIn campaign group (draft)

Create a LinkedIn CAMPAIGN GROUP — the container LinkedIn has required every campaign to live inside since 2020. Created DRAFT, which is LinkedIn’s own structural safety net: it REFUSES to hold an ACTIVE campaign inside a DRAFT group, so while the group is a draft nothing beneath it can serve whatever its own status says. Creating it ACTIVE removes that protection and therefore requires confirm:true. LinkedIn REQUIRES a run schedule on a campaign group: it starts today unless you pass startDate, and if you set totalBudget you MUST also pass endDate — that pairing is LinkedIn’s own rule and it is refused here before anything is created. Read back from LinkedIn before you are told it exists.

ParameterTypeDescription
adAccountIdstring
namerequiredstringcampaign group name
totalBudgetnumberoptional group-level total budget, in the ad account’s currency
currencyCodestringmust match the ad account’s currency or LinkedIn refuses it
status"DRAFT" | "ACTIVE" | "PAUSED" | "ARCHIVED"default DRAFT
startDatestringYYYY-MM-DD — when campaigns under this group may start; defaults to today
endDatestringYYYY-MM-DD — REQUIRED by LinkedIn whenever totalBudget is set
runScheduleobjectLinkedIn raw runSchedule object, passed through; startDate/endDate are easier
confirmbooleanREQUIRED true to create it ACTIVE

create_linkedin_ads_campaign#

Create a LinkedIn campaign (draft)

Create a LinkedIn campaign inside an existing campaign group. Created DRAFT — it spends NOTHING until activated with set_linkedin_ads_status(confirm:true) — and a campaign on its own carries no creative, so it cannot serve an impression. Budget amounts are in the ad account’s currency; tell the user that LinkedIn may spend UP TO 150% of a daily budget on a high-opportunity day before they pick a number. Two LinkedIn behaviours to repeat rather than hide: on manual, target-cost or cost-cap bidding a unitCost of 0 means the campaign never delivers, and LinkedIn DEFERS some validation on DRAFT objects, so a clean create can still fail at activation — never promise it will run. TARGETING IS MANDATORY on LinkedIn — a campaign with no audience is refused outright — so pass locations (and optionally include/exclude facets like titles, industries, seniorities or staffCountRanges), or a raw targetingCriteria. Resolve every targeting value with search_linkedin_ads_targeting first: they are opaque URNs and MUST NOT be invented. LinkedIn’s own enums for type, objectiveType and costType are passed straight through, and LinkedIn’s refusal is surfaced verbatim if one is wrong. Read back before you are told it exists.

ParameterTypeDescription
adAccountIdstring
campaignGroupIdrequiredstringthe campaign group this campaign lives in — LinkedIn requires one
namerequiredstring
typestringLinkedIn campaign type, e.g. SPONSORED_UPDATES
objectiveTypestringLinkedIn objective, e.g. WEBSITE_VISIT
costTypestringCPM / CPC / CPV
dailyBudgetnumber
totalBudgetnumber
unitCostnumberthe bid
currencyCodestring
localeobject
countrystringcampaign locale country, default US — this is the ad UI language market, NOT geo targeting. NEVER derive it from where the ad should run: targeting Canada still uses the US/en locale (LinkedIn refuses en_CA). Leave it alone unless the user explicitly asks for a different interface language.
languagestringcampaign locale language, default en
locationsstring[]REQUIRED unless targetingCriteria is given — geo URNs or bare geo ids from search_linkedin_ads_targeting
includeobjectfurther targeting facets ANDed onto locations, e.g. {titles:[…], industries:[…], seniorities:[…], staffCountRanges:[…]}
excludeobjectfacets to exclude, same shape
excludeLocationsstring[]
targetingCriteriaobjectLinkedIn’s raw targeting object — passed through and overrides locations/include/exclude
startDatestringYYYY-MM-DD; defaults to today
endDatestringYYYY-MM-DD; omit for an open-ended run
runScheduleobject
organizationIdstringthe LinkedIn company Page this campaign advertises — LinkedIn REQUIRES it for Sponsored Content, Dynamic and Lead Gen campaigns
formatstring
optimizationTargetTypestring
audienceExpansionEnabledboolean
offsiteDeliveryEnabledbooleanalso serve on the LinkedIn Audience Network; default false
politicalIntent"POLITICAL" | "NOT_POLITICAL" | "NOT_DECLARED"
status"DRAFT" | "ACTIVE" | "PAUSED" | "ARCHIVED"default DRAFT
confirmbooleanREQUIRED true to create it ACTIVE under a LIVE campaign group

set_linkedin_ads_budget#

Set a LinkedIn campaign budget

Change a LinkedIn campaign’s daily and/or total budget. On a LIVE (ACTIVE) campaign this changes real spend immediately — and LinkedIn can spend up to 150% of a daily budget on a high-opportunity day — so show the user the new amount, get an explicit yes, then call with confirm:true. The currency must match the ad account’s. Read back after the change.

ParameterTypeDescription
adAccountIdstring
campaignIdrequiredstring
dailyBudgetnumber
totalBudgetnumber
currencyCodestring
confirmbooleanREQUIRED true to change the budget of a LIVE campaign

set_linkedin_ads_status#

Activate or pause a LinkedIn campaign group / campaign / ad destructive

Turn a LinkedIn campaign group, campaign or CREATIVE (the ad itself) on (ACTIVE) or off (PAUSED). Pass level:"campaign" + campaignId, level:"campaignGroup" + campaignGroupId, or level:"creative" + creativeId. All three tiers must be ACTIVE for an ad to serve — activating only the campaign leaves a DRAFT creative sitting there showing nothing. ACTIVATING STARTS REAL AD SPEND — you MUST first show the user the campaign and its budget, get an explicit yes, then call with status:"ACTIVE" and confirm:true. Pausing is always safe. The resulting status is READ BACK from LinkedIn along with its servingStatuses before you are told it took: LinkedIn defers validation on drafts, so activation is exactly where a hidden problem surfaces, and the note reports what LinkedIn actually says rather than what was requested.

ParameterTypeDescription
adAccountIdstring
level"campaign" | "campaignGroup" | "creative"default campaign
campaignIdstring
campaignGroupIdstring
creativeIdstring
statusrequired"ACTIVE" | "PAUSED" | "ARCHIVED" | "DRAFT"
confirmbooleanREQUIRED true to set ACTIVE (real spend)

search_linkedin_ads_targeting#

Find LinkedIn targeting URNs read-only

Look up LinkedIn TARGETING entities by name and get their URNs — locations, job titles, industries, seniorities, company sizes, skills, job functions, interests, employers, degrees, fields of study, member behaviours. LinkedIn’s targeting values are opaque URNs (urn:li:geo:103644278 is the United States) with no guessable form, so ALWAYS resolve an audience here before passing it to create_linkedin_ads_campaign, and NEVER invent a URN — a made-up one either 400s or, worse, targets somebody else. If nothing matches, say so plainly. Read-only, free.

ParameterTypeDescription
adAccountIdstring
facetstringfacet name, default "locations" — e.g. locations, titles, industries, seniorities, staffCountRanges, skills, jobFunctions, interests, employers, degrees, fieldsOfStudy, memberBehaviors
queryrequiredstringthe name to search for, e.g. "United States", "Software Engineer", "Marketing"
languagestringdefault en
countrystringdefault US

create_linkedin_ads_creative#

Create a LinkedIn ad (creative, draft)

Create the AD ITSELF on LinkedIn — a CREATIVE inside an existing campaign. A LinkedIn campaign holds no copy and no visual, so until this runs the campaign CANNOT show an impression no matter what its status says; say that rather than calling a campaign "live". Two ways in: pass postUrn to sponsor a post that already exists (LinkedIn’s "boost this post"), or pass text and/or imageUrl / videoUrl to author a DIRECT SPONSORED CONTENT post — a real post by a company Page the user administers that is NEVER shown on the Page’s feed and exists only as an ad. Created DRAFT: it spends nothing until you activate it with set_linkedin_ads_status(level:"creative", status:"ACTIVE", confirm:true). Creating it ACTIVE under an already-live campaign starts REAL AD SPEND on the very next auction and therefore requires confirm:true. The whole tree — group, campaign and every creative — is read back from LinkedIn before you are told anything exists.

ParameterTypeDescription
adAccountIdstring
campaignIdrequiredstringthe campaign this ad belongs to
namestringthe creative’s name in Campaign Manager
postUrnstringsponsor an EXISTING post — urn:li:share:… / urn:li:ugcPost:… (what post_to_linkedin_page returned)
organizationIdstringthe company Page that authors the Direct Sponsored Content post; omit only when the connection administers exactly one Page
textstringthe ad copy
imageUrlstringa Hermoso-hosted image to attach — a render, or the user’s OWN creative put through upload_file first (an arbitrary external host is refused)
videoUrlstringa Hermoso-hosted video to attach — a render, or the user’s own footage via upload_file
titlestring
altTextstring
allowReshareboolean
intendedStatus"DRAFT" | "ACTIVE" | "PAUSED" | "ARCHIVED"default DRAFT
confirmbooleanREQUIRED true to create it ACTIVE under a LIVE campaign (real spend)

delete_linkedin_ads_object#

Delete a LinkedIn campaign group / campaign / ad destructive

Delete a LinkedIn campaign group, campaign or creative (level:"creative" + creativeId). LinkedIn HARD-deletes only DRAFT objects; anything that has ever run is moved to PENDING_DELETION instead — it stops serving and its reporting history is retained. The returned note says which of the two actually happened, and you must repeat that rather than claiming a clean delete. Irreversible either way, so it requires confirm:true.

ParameterTypeDescription
adAccountIdstring
level"campaign" | "campaignGroup" | "creative"default campaign
campaignIdstring
campaignGroupIdstring
creativeIdstring
confirmrequiredbooleanREQUIRED true — this is irreversible

create_linkedin_conversion_rule#

Create a LinkedIn conversion rule

Create a LinkedIn CONVERSION RULE — the object LinkedIn attributes conversions to, and the prerequisite for send_linkedin_conversions. `type` is the behaviour being tracked (LEAD, PURCHASE, SIGN_UP, QUALIFIED_LEAD, KEY_PAGE_VIEW…). THE RULE IS BORN ASSOCIATED WITH NOTHING: until you attach campaigns with associate_linkedin_conversion_campaigns it attributes nothing, which also makes it the safe place to send test events — LinkedIn has no test mode on the wire, unlike Reddit. Pass associateAllCampaigns:true to attach it to up to 200 ACTIVE campaigns instead; that spends nothing but it changes what those live campaigns optimise toward and what their reports count, so ask the user first. Attribution windows are 1, 7, 30 or 90 days (365 only for SUBMIT_APPLICATION, PURCHASE, ADD_TO_CART, QUALIFIED_LEAD and LEAD). Creating a rule cannot spend money — it is a definition. Free.

ParameterTypeDescription
adAccountIdstring
namerequiredstringshown in Campaign Manager and in every report
typerequiredstringthe conversion behaviour, e.g. LEAD, PURCHASE, SIGN_UP, QUALIFIED_LEAD, KEY_PAGE_VIEW
postClickAttributionWindowSizenumber1, 7, 30 or 90 days (365 for the five long-window types). LinkedIn default 30.
viewThroughAttributionWindowSizenumbersame allowed values. LinkedIn default 7.
attributionType"LAST_TOUCH_BY_CAMPAIGN" | "LAST_TOUCH_BY_CONVERSION"
valueType"DYNAMIC" | "FIXED" | "NO_VALUE"DYNAMIC (default) takes each event’s own value
enabledbooleandefault true. A disabled rule REFUSES streamed events.
associateAllCampaignsbooleanattach to up to 200 ACTIVE campaigns now — ask the user first
associateCampaignsByObjectivebooleanattach only to campaigns whose objective matches this conversion type

list_linkedin_conversion_rules#

List LinkedIn conversion rules read-only

List the conversion rules on a LinkedIn ad account, including ones SHARED from other accounts in the same Business Manager. Use it to find the conversionId send_linkedin_conversions needs, and to check whether a rule can actually receive API events — only a rule whose conversionMethod is CONVERSIONS_API and which is enabled can, and a rule built for the Insight Tag cannot. Zero rules genuinely means none exist; say that rather than implying a failure. Read-only, free.

ParameterTypeDescription
adAccountIdstring

update_linkedin_conversion_rule#

Update or disable a LinkedIn conversion rule

Rename a LinkedIn conversion rule, change its attribution windows or attribution model, or ENABLE/DISABLE it. Disabling is how a conversion rule is retired — LinkedIn publishes no delete for one, and while it is disabled every streamed event for it is refused. The rule’s `type` is immutable. The note quotes what LinkedIn returned on the read-back, not what was sent — repeat that. Free.

ParameterTypeDescription
adAccountIdstring
conversionIdrequiredstringthe rule id, e.g. "104012"
namestring
enabledbooleanfalse RETIRES it — streamed events are then refused
postClickAttributionWindowSizenumber
viewThroughAttributionWindowSizenumber
attributionType"LAST_TOUCH_BY_CAMPAIGN" | "LAST_TOUCH_BY_CONVERSION"

associate_linkedin_conversion_campaigns#

Attach campaigns to a LinkedIn conversion rule

Associate LinkedIn campaigns with a conversion rule — or detach them with remove:true. THIS IS WHAT MAKES A CONVERSION COUNT: LinkedIn only attributes a conversion to campaigns associated with its rule, so an unassociated rule reports zero however many events you stream to it. Associate every campaign the conversion could plausibly have come from. It spends nothing, but on a LIVE campaign it changes what the campaign optimises toward and what its report counts. The result is the PER-CAMPAIGN status LinkedIn returned, not a blanket success — repeat any that failed. Free.

ParameterTypeDescription
adAccountIdstring
conversionIdrequiredstringthe conversion rule id, or its urn:lla:llaPartnerConversion:… URN
campaignIdsrequiredstring[]LinkedIn campaign ids (list_linkedin_ads_campaigns has them)
removebooleandetach instead of attach

send_linkedin_conversions#

Send conversions to LinkedIn (Conversions API)

Stream conversion events to LinkedIn (Conversions API) — server-side conversion tracking for things that happen where the Insight Tag cannot see them: a CRM deal closing, an offline sale, a phone order, a qualified lead. Needs a rule from create_linkedin_conversion_rule, and that rule needs campaigns associated or nothing is attributed. PASS THE PERSON’S PLAIN EMAIL ADDRESS as `email` — Hermoso applies LinkedIn’s own normalization and SHA-256 hashes it on the server, and the plaintext is never stored or logged. NEVER COMPUTE THE HASH YOURSELF: an invented digest is a well-formed 64-character string that matches nobody, and LinkedIn accepts it with a 201, so the failure is completely silent (`emailSha256` exists only for a source system that already holds real digests). SEND EVERY IDENTIFIER YOU HAVE — email, liFatId (the li_fat_id click id LinkedIn appends to ad click URLs), ipAddress, firstName WITH lastName, an externalId, a lead URN — the match rate is what decides whether the conversion counts at all. Events must have happened in the past 90 DAYS. ACCEPTED IS NOT MATCHED: success means LinkedIn took the events, not that any matched a member, and no API reports the match rate — check attribution in linkedin_ads_report over the following days and never present acceptance as conversions. Up to 5000 events per call. Free.

ParameterTypeDescription
adAccountIdstring
conversionIdstringdefault conversion rule id for every event that does not name its own
eventsrequiredobject[]the conversion events — each takes conversionId, conversionHappenedAt (epoch ms or ISO, within 90 days), and at least one identifier: email (PLAIN — hashed here, never hash it yourself), emailSha256, liFatId, ipAddress (IPv4, hashed here), googleAid, acxiomId, firstName WITH lastName, companyName, title, countryCode, lead (urn:li:leadGenFormResponse:…), externalIds (max 1), plus optional amount + currencyCode and an eventId for Insight-Tag deduplication

update_meta_object#

Edit a Meta campaign / ad set / ad

Update an EXISTING campaign, ad set, or ad — rename, change its daily budget, retarget (ad sets), or change status (PAUSED / ACTIVE / ARCHIVED). Pass objectId (from list_meta_ads) + adAccountId. Setting something ACTIVE can start REAL AD SPEND — show the user what will run + its budget, get a yes, then pass confirm:true. Pausing and renaming are always safe and always reversible. ARCHIVING IS NOT: Meta treats an archived object as DELETED and refuses to bring it back — every later edit answers "This campaign has been deleted, so you can only edit the name" (measured live 2026-08-05), archiving a campaign takes its ad sets and ads down with it, and the only way back is to duplicate it as a new object. Use PAUSED unless the user has said they are finished with it for good.

ParameterTypeDescription
objectIdrequiredstringthe campaign / ad set / ad id (from list_meta_ads)
adAccountIdrequiredstringad account id (for auth + scope)
namestringnew name
status"ACTIVE" | "PAUSED" | "ARCHIVED"ACTIVE starts spend (needs confirm:true); PAUSED / ARCHIVED are safe
dailyBudgetUsdnumbernew daily budget in USD (1–10000; ad-set or campaign level)
targetingobjectreplacement targeting spec (ad sets) — a Meta targeting object
confirmbooleanREQUIRED true ONLY to set status ACTIVE (real spend)

delete_meta_object#

Delete a Meta campaign / ad set / ad destructive

PERMANENTLY delete a campaign, ad set, or ad. Pass objectId (from list_meta_ads) + adAccountId. DELETING A CAMPAIGN ALSO DELETES EVERY AD SET AND AD UNDER IT, and deleting an ad set deletes its ads — one id, the whole tree. Call it WITHOUT confirm first: it reports what the object is, its name, and how many children go with it. Show the user that, get an unambiguous yes, then call again with confirm:true plus confirmChildren set to the number it reported (only needed when there is at least one child). To stop delivery without deleting anything, use update_meta_object(status:"PAUSED") instead — that is reversible and this is not.

ParameterTypeDescription
objectIdrequiredstringthe campaign / ad set / ad id to delete
adAccountIdrequiredstringad account id (for auth + scope)
confirmbooleanREQUIRED true — deletion is permanent
confirmChildrennumberthe number of child ad sets + ads this delete also destroys, as reported by the unconfirmed call — required whenever that is above zero

manage_meta_post#

Edit or delete a published post destructive

Edit the text of, or delete, a published post. target:"facebook" → edit the message (action:"edit", message:…) OR delete (action:"delete"); target:"threads" → delete only (Threads has no edit API); target:"instagram" → DELETE ONLY — Meta lets you change nothing on a published Instagram post except whether comments are enabled, so a caption cannot be fixed; deleting covers ordinary posts, Stories, Reels and ENTIRE carousel albums (Instagram cannot remove one card out of an album — pass the album’s own media id, from list_instagram_media). Deleting is permanent. FOR INSTAGRAM, CALL IT WITHOUT confirm FIRST: nothing is deleted and you get back the post’s real caption, its likes and comments and how many carousel cards go with it — show the user exactly that, then call again with confirm:true plus confirmName (and confirmChildren for an album) if the refusal asks for them. A post nobody has liked or commented on yet stays a one-call delete. INSTAGRAM DELETE NEEDS A RECONNECT ON AN OLD CONNECTION: the `instagram_manage_contents` permission joined Hermoso’s Meta grant on 2026-08-05, so any Meta connection made before then must be reconnected (Settings ▸ Connectors ▸ Meta) before Instagram will accept a delete. Call the tool rather than pre-refusing — every refusal it can raise names the one thing that fixes it.

ParameterTypeDescription
postIdrequiredstringthe post id returned by post_to_meta — for Instagram, the media id from list_instagram_media
actionrequired"edit" | "delete"edit the text (FB only) or delete the post
target"facebook" | "threads" | "instagram"default facebook
messagestringthe new post text (action:"edit" on facebook)
pageIdstringwhich Page to use — needed when the post id has no page prefix, or when the brand has several Pages and you are deleting an Instagram post
confirmbooleanREQUIRED true to delete (permanent)
confirmNamestringInstagram only: the post’s exact caption line, exactly as the unconfirmed call reported it — required once the post has any likes or comments
confirmChildrennumberInstagram only: how many carousel cards the delete also destroys, as the unconfirmed call reported