Build and run paid campaigns across eleven ad platforms. Everything is created paused.
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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
token | string | RESUME a pending report — pass the token back instead of re-submitting |
since | string | YYYY-MM-DD (default 30 days ago) |
until | string | YYYY-MM-DD (default today) |
granularity | "TOTAL" | "DAY" | "HOUR" | "WEEK" | "MONTH" | |
level | string | ADVERTISER | CAMPAIGN | AD_GROUP | PIN_PROMOTION | KEYWORD | PRODUCT_GROUP | PRODUCT_ITEM (+ _TARGETING variants) — default CAMPAIGN. An unknown level is refused with the list. |
columns | string[] | Pinterest async metric columns — omit for the standard spend/impressions/clicks/CTR/conversions set |
campaignIds | string[] | |
adGroupIds | string[] | |
adIds | string[] | |
targetingTypes | string[] | 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
scope | "account" | "campaign" | "adGroup" | "ad" | default account |
targetingTypesrequired | string[] | REQUIRED — e.g. KEYWORD, AGE_BUCKET, GENDER, LOCATION, PLACEMENT, MEDIA_TYPE, TARGETED_INTEREST, PINNER_INTEREST, COUNTRY, REGION |
campaignIds | string[] | |
adGroupIds | string[] | |
adIds | string[] | |
since | string | |
until | string | |
granularity | "TOTAL" | "DAY" | "HOUR" | "WEEK" | "MONTH" | |
columns | string[] | |
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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
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).
| Parameter | Type | Description |
|---|
adAccountId | string | |
targetingType | "APPTYPE" | "GENDER" | "LOCALE" | "AGE_BUCKET" | "LOCATION" | "GEO" | "INTEREST" | "KEYWORD" | "AUDIENCE_INCLUDE" | "AUDIENCE_EXCLUDE" | which catalog to list — required unless you pass interestId |
query | string | narrow the list to options mentioning this text (filtered here, not by Pinterest) |
interestId | string | drill INTO one interest and return its child interests — how you walk the interest tree |
limit | number | 1–500, default 100 |
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).
| Parameter | Type | Description |
|---|
merchantCenterIdrequired | string | from list_merchant_accounts |
limit | number | up 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.
| Parameter | Type | Description |
|---|
merchantCenterIdrequired | string | from list_merchant_accounts |
promotionIdrequired | string | YOUR OWN id for the promotion, e.g. 'black-friday-2026' |
targetCountryrequired | string | two-letter CLDR territory code, e.g. US. Part of the promotion identity and not changeable later |
contentLanguagerequired | string | two-letter ISO 639-1 code, e.g. en. Must match the language of the products |
longTitlerequired | string | the 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 |
genericRedemptionCode | string | REQUIRED when offerType is GENERIC_CODE |
percentOff | number | REQUIRED for PERCENT_OFF — a plain number, e.g. 20 |
moneyOffAmount | object | REQUIRED for MONEY_OFF — {"amountMicros":"10000000","currencyCode":"USD"} is $10 off |
redemptionChannelrequired | "IN_STORE" | "ONLINE"[] | at least one; ONLINE for a webshop sale |
promotionDestinationsrequired | string[] | 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 |
startDaterequired | string | ISO date, e.g. 2026-11-27 |
endDaterequired | string | ISO date; widened to the END of that day, because Google's interval end is exclusive |
promotionUrl | string | the page on the merchant's site where the promotion shows |
attributes | object | any other promotion attribute Google publishes — item/brand/product-type filters, minimum purchase, store filters, display period — forwarded as given |
customAttributes | object[] | 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.
| Parameter | Type | Description |
|---|
merchantCenterIdrequired | string | from list_merchant_accounts |
offerId | string | for one PRODUCT's issues; omit for the account's issues |
feedLabel | string | REQUIRED alongside offerId — from list_merchant_products. A product is addressed by contentLanguage + feedLabel + offerId |
contentLanguage | string | with offerId; defaults to 'en' |
languageCode | string | BCP-47 language for the fix text, e.g. 'en-US' |
timeZone | string | IANA 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.
| Parameter | Type | Description |
|---|
merchantCenterIdrequired | string | from list_merchant_accounts |
actionContextrequired | string | the opaque token from merchant_issue_help, on the action you are firing |
actionFlowIdrequired | string | the id of the flow you picked from that action's flows — each asks for different inputs |
inputValues | object[] | values for the flow's input fields, shaped as Google described them: {inputFieldId, textInputValue|choiceInputValue|checkboxInputValue} |
languageCode | string | BCP-47 language for the response message |
confirm | boolean | must be true to actually fire it |
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.
| Parameter | Type | Description |
|---|
merchantCenterIdrequired | string | from 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.
| Parameter | Type | Description |
|---|
merchantCenterIdrequired | string | from 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.
| Parameter | Type | Description |
|---|
merchantCenterIdrequired | string | from list_merchant_accounts |
action | "list" | "create" | "delete" | defaults to 'list' |
callBackUri | string | HTTPS 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 |
allManagedAccounts | boolean | subscribe for every managed account instead of just this one — mutually exclusive with targetAccount |
targetAccount | string | accounts/{id} to receive notifications for; defaults to this account |
subscriptionId | string | for 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.
| Parameter | Type | Description |
|---|
merchantCenterIdrequired | string | from 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 |
displayName | string | the 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 |
currencyCode | string | three-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 |
attributionModel | string | CROSS_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 |
attributionLookbackWindowDays | number | 7, 30 or 40 — Google publishes no other value. Defaults to 30 |
conversionTypes | string[] | 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 |
propertyId | string | NUMERIC GA4 property id for a Google Analytics link (from list_analytics_properties), not a G- measurement id |
conversionSourceId | string | for update, delete and undelete — from action:'list' |
showDeleted | boolean | include archived sources in a list |
confirm | boolean | must 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.
| Parameter | Type | Description |
|---|
merchantCenterIdrequired | string | from 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.
| Parameter | Type | Description |
|---|
merchantCenterIdrequired | string | from list_merchant_accounts |
displayNamerequired | string | the name the merchant will see in Merchant Center |
feedLabel | string | market bucket, e.g. "US" — max 20 chars, A-Z/0-9/dashes. IMMUTABLE, and must be set together with contentLanguage |
contentLanguage | string | two-letter ISO 639-1, e.g. "en". IMMUTABLE, and must be set together with feedLabel |
countries | string[] | CLDR territory codes the items may be shown in |
destinations | string[] | 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.
| Parameter | Type | Description |
|---|
merchantCenterIdrequired | string | from list_merchant_accounts |
offerIdrequired | string | your own unique id for the product — IMMUTABLE, and what you update or delete it by later |
dataSource | string | the 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) |
dataSourceName | string | display name for a feed created on the fly |
contentLanguage | string | two-letter, e.g. "en" — taken from the feed when the feed declares one |
feedLabel | string | market bucket, e.g. "US" — taken from the feed when the feed declares one |
title | string | |
description | string | |
link | string | the product page URL on the merchant's store |
imageLink | string | |
additionalImageLinks | string[] | |
availability | string | in_stock | out_of_stock | preorder | backorder |
condition | string | new | refurbished | used |
price | object | |
salePrice | object | |
brand | string | |
gtin | string | |
mpn | string | |
identifierExists | boolean | false for a product with no GTIN/MPN/brand, such as a service or a bundle |
googleProductCategory | string | |
productTypes | string[] | |
color | string | |
size | string | |
material | string | |
ageGroup | string | |
gender | string | |
itemGroupId | string | |
attributes | object | any other product attribute by its Merchant API name — there are 145 and only the common ones are named above |
customAttributes | object[] | |
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.
| Parameter | Type | Description |
|---|
merchantCenterIdrequired | string | from list_merchant_accounts |
offerIdrequired | string | |
dataSource | string | the feed it lives in, from list_merchant_data_sources |
contentLanguage | string | |
feedLabel | string | |
confirm | boolean | must 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.
| Parameter | Type | Description |
|---|
merchantCenterIdrequired | string | from list_merchant_accounts |
offerIdrequired | string | the product to change |
dataSource | string | the feed it lives in, from list_merchant_data_sources |
contentLanguage | string | |
feedLabel | string | |
title | string | |
description | string | |
link | string | |
imageLink | string | |
additionalImageLinks | string[] | |
availability | string | in_stock | out_of_stock | preorder | backorder |
condition | string | new | refurbished | used |
price | object | |
salePrice | object | |
brand | string | |
gtin | string | |
mpn | string | |
identifierExists | boolean | |
googleProductCategory | string | |
productTypes | string[] | |
color | string | |
size | string | |
material | string | |
ageGroup | string | |
gender | string | |
itemGroupId | string | |
attributes | object | any 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.
| Parameter | Type | Description |
|---|
merchantCenterIdrequired | string | from list_merchant_accounts |
dataSourcerequired | string | the feed to delete, from list_merchant_data_sources |
confirm | boolean | must 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).
| Parameter | Type | Description |
|---|
customerId | string | 10-digit account id (dashes ok) — omit to list accessible accounts |
status | "ENABLED" | "PAUSED" | "REMOVED" | filter campaigns by status |
datePreset | string | metrics window preset (default LAST_30_DAYS) |
since | string | start date YYYY-MM-DD (with until) |
until | string | end date YYYY-MM-DD |
metrics | boolean | include performance metrics (default true) |
loginCustomerId | string | manager (MCC) id — only if reaching a client account through a manager |
limit | number | max campaigns (1–500, default 100) |
google_ads_report#
Google Ads GAQL report read-only
Run a GAQL (Google Ads Query Language) report for detailed performance breakdowns — ad groups, ads, keywords, search terms, demographics, geo. Pass customerId + a GAQL query (SELECT … FROM <resource> WHERE segments.date DURING LAST_30_DAYS). Allowed FROM resources: campaign, ad_group, ad_group_ad, keyword_view, campaign_budget, age_range_view, gender_view, geographic_view, search_term_view. cost_micros is micros — divide by 1,000,000 for the account currency. Read-only, free.
| Parameter | Type | Description |
|---|
customerId | string | 10-digit account id (dashes ok) — omit to use the brand’s selected default account |
queryrequired | string | GAQL, e.g. "SELECT ad_group.name, metrics.clicks, metrics.cost_micros FROM ad_group WHERE segments.date DURING LAST_7_DAYS" |
loginCustomerId | string | manager id if operating through an MCC |
GOOGLE ADS CHANGE HISTORY
google_ads_change_history#
What changed on a Google Ads account, and when read-only
WHAT CHANGED ON THE ACCOUNT, AND WHEN — the answer to "performance fell off a cliff on Tuesday, what happened?", and the Google twin of reddit_ads_history. source:"change_event" (default) is FIELD-LEVEL over the last 30 days: the change time, who made it, from which client (web UI, API, scripts, bulk upload, automated rule), whether it was a CREATE / UPDATE / REMOVE, and exactly which fields moved — with detail:true it also carries the old and new resource snapshots. source:"change_status" reaches 90 days and is the ONLY one that catches GOOGLE ADS EDITOR and criterion-level edits: Google documents change_event as NEVER returning Editor changes, so an Editor-managed account looks completely untouched there. CHECK BOTH BEFORE TELLING ANYONE NOTHING CHANGED. An unknown source is refused by name; the 30/90-day windows and Google’s own 10,000-row cap are enforced here with the reason instead of surfacing as an unreadable Google error, and a change takes up to three minutes to appear. Neither resource carries any metric or segment, so this says what changed, never what it cost. Read-only, 0 credits.
| Parameter | Type | Description |
|---|
customerId | string | 10-digit account id — omit to use the brand’s selected default account |
source | "change_event" | "change_status" | default change_event (30 days, field-level). change_status is 90 days and is the only one that sees Google Ads Editor. |
since | string | YYYY-MM-DD, default 14 days ago |
until | string | YYYY-MM-DD, default today |
limit | number | rows, max 10000 — Google’s own ceiling, and the clamp is reported |
detail | boolean | change_event only — include the old/new resource snapshots |
loginCustomerId | string | |
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.
| Parameter | Type | Description |
|---|
customerId | string | 10-digit account id (from list_google_ads_campaigns) — omit to use the brand’s selected default account |
namerequired | string | campaign name |
dailyBudgetUsd | number | daily budget USD (1–100000) — creates a budget inline; required unless budgetResourceName is given |
budgetResourceName | string | reuse an existing budget instead of creating one |
channelType | "SEARCH" | "DISPLAY" | default SEARCH |
searchPartners | boolean | SEARCH only — also serve on Google search partners (default false) |
bidding | object | how the campaign bids — default MANUAL_CPC |
locations | string[] | location NAMES to target, e.g. ["United States"] or ["Toronto","Vancouver"]. WITHOUT this the campaign runs WORLDWIDE — the most expensive default in Google Ads |
excludedLocations | string[] | location names to EXCLUDE |
languages | string[] | ISO language codes, e.g. ["en","fr"] |
startDate | string | YYYY-MM-DD |
endDate | string | YYYY-MM-DD |
adGroup | object | build the serving tree in the same atomic call — WITHOUT this you get a campaign shell that can never show an ad |
containsEuPoliticalAds | boolean | EU Political Advertising Regulation declaration. Google REQUIRES one on every campaign. Default false (a normal commercial ad) — set true ONLY for genuine EU political advertising |
dryRun | boolean | validate the WHOLE tree against Google without creating anything. Nothing is written and no budget is consumed |
loginCustomerId | string | manager 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.
| Parameter | Type | Description |
|---|
customerId | string | omit to use the brand’s selected default account |
campaignIdrequired | string | the campaign this ad group belongs to |
namerequired | string | ad group name |
cpcBidUsd | number | max CPC for this ad group — omit to inherit the campaign bidding |
status | "ENABLED" | "PAUSED" | default PAUSED |
ad | object | build the ad in the same atomic call |
keywords | object[] | a SEARCH ad group with no keywords never shows |
confirm | boolean | set true ONLY after the user explicitly approved starting spend — required when the parent campaign is already LIVE (ENABLED) and this object would serve immediately |
dryRun | boolean | |
loginCustomerId | string | |
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.
| Parameter | Type | Description |
|---|
customerId | string | omit to use the brand’s selected default account |
adGroupIdrequired | string | the ad group this ad lives in |
finalUrls | string[] | the landing page(s) — at least one is required |
headlines | string | 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). |
descriptions | string | object[] | SEARCH: 2–4 descriptions, each ≤90 characters. DISPLAY: 1–5. Pass a plain string, or {text, pin} to pin it. |
path1 | string | SEARCH only — display-URL path segment, ≤15 chars |
path2 | string | SEARCH only — second display-URL path segment, ≤15 chars |
longHeadline | string | DISPLAY only — ≤90 characters |
businessName | string | DISPLAY only — ≤25 characters |
marketingImages | string[] | DISPLAY only — landscape 1.91:1 asset resource names from upload_google_ads_asset |
squareMarketingImages | string[] | DISPLAY only — square 1:1 asset resource names |
logoImages | string[] | DISPLAY only — logo asset resource names |
status | "ENABLED" | "PAUSED" | default PAUSED |
confirm | boolean | set true ONLY after the user explicitly approved starting spend — required when the parent campaign is already LIVE (ENABLED) and this object would serve immediately |
dryRun | boolean | |
loginCustomerId | string | |
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.
| Parameter | Type | Description |
|---|
customerId | string | omit to use the brand’s selected default account |
adGroupIdrequired | string | the ad group to add them to |
keywordsrequired | object[] | the keywords to add |
confirm | boolean | set true ONLY after the user explicitly approved starting spend — required when the parent campaign is already LIVE (ENABLED) and this object would serve immediately |
dryRun | boolean | |
loginCustomerId | string | |
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.
| Parameter | Type | Description |
|---|
customerId | string | omit to use the brand’s selected default account |
campaignIdrequired | string | the campaign to target |
locations | string[] | location NAMES to target |
excludedLocations | string[] | location NAMES to exclude |
languages | string[] | ISO language codes, e.g. ["en","es"] |
countryCode | string | 2-letter hint to disambiguate a city name, e.g. CA for "London" |
confirm | boolean | REQUIRED true to change a LIVE (ENABLED) campaign |
dryRun | boolean | |
loginCustomerId | string | |
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.
| Parameter | Type | Description |
|---|
customerId | string | omit to use the brand’s selected default account |
campaignIdrequired | string | the campaign to change |
strategyrequired | "MANUAL_CPC" | "MAXIMIZE_CLICKS" | "MAXIMIZE_CONVERSIONS" | "MAXIMIZE_CONVERSION_VALUE" | "TARGET_CPA" | "TARGET_ROAS" | the bidding strategy |
targetCpaUsd | number | REQUIRED for TARGET_CPA |
targetRoas | number | REQUIRED for TARGET_ROAS — e.g. 4 = $4 revenue per $1 spent |
maxCpcUsd | number | MAXIMIZE_CLICKS — the max CPC ceiling; REQUIRED when switching an existing campaign to it |
enhancedCpc | boolean | DO 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. |
confirm | boolean | REQUIRED true to change a LIVE (ENABLED) campaign |
dryRun | boolean | |
loginCustomerId | string | |
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.
| Parameter | Type | Description |
|---|
queryrequired | string | one location name, or several comma-separated (up to 25) |
countryCode | string | 2-letter hint, e.g. CA to disambiguate "London" |
loginCustomerId | string | |
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.
| Parameter | Type | Description |
|---|
customerId | string | 10-digit account id (dashes ok) — omit to use the brand’s selected default account |
dailyBudgetUsdrequired | number | daily budget in USD (1–100000) |
budgetResourceName | string | existing budget to UPDATE — omit to CREATE a new budget |
name | string | name for a newly created budget |
confirm | boolean | REQUIRED true to raise the budget of a LIVE campaign |
loginCustomerId | string | manager 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.
| Parameter | Type | Description |
|---|
customerId | string | 10-digit account id (dashes ok) — omit to use the brand’s selected default account |
level | "campaign" | "adGroup" | "ad" | what to change — default campaign |
campaignId | string | campaign id (level:"campaign") |
adGroupId | string | ad group id (level:"adGroup", or with adId for level:"ad") |
adId | string | ad id (level:"ad" — pass adGroupId too) |
campaignResourceName | string | full resource name, e.g. customers/{cid}/campaigns/{id} |
statusrequired | "ENABLED" | "PAUSED" | "REMOVED" | ENABLED = start spending; PAUSED = stop; REMOVED = permanent |
confirm | boolean | REQUIRED true to ENABLE (real spend) or to REMOVE (permanent) |
loginCustomerId | string | manager 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").
| Parameter | Type | Description |
|---|
customerId | string | 10-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 |
campaignId | string | campaign id (level:"campaign") |
adGroupId | string | ad group id (level:"adGroup"; REQUIRED as the parent for "ad" and "keyword") |
adId | string | ad id (level:"ad" — pass adGroupId too) |
keywordId | string | keyword criterion id (level:"keyword" — pass adGroupId too) |
conversionActionId | string | conversion action id (level:"conversionAction") |
resourceName | string | full resource name — REQUIRED for campaignAsset / adGroupAsset, accepted for any level |
confirm | boolean | REQUIRED true — REMOVED is permanent |
confirmName | string | the object’s EXACT name, required when it has children / is live / has spent |
confirmChildren | number | the exact number of children reported by the unconfirmed call, required when it has any |
loginCustomerId | string | manager 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).
| Parameter | Type | Description |
|---|
customerId | string | 10-digit account id (dashes ok) — omit to use the brand’s selected default account |
imageUrl | string | a 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. |
youtubeVideoId | string | a YouTube video id for a VIDEO asset (post_to_youtube first) |
name | string | asset name |
loginCustomerId | string | manager 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.
| Parameter | Type | Description |
|---|
customerId | string | 10-digit account id (dashes ok) — omit to use the brand’s selected default account |
namerequired | string | what 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 |
defaultValueUsd | number | what one conversion is worth — required in practice for TARGET_ROAS |
defaultCurrencyCode | string | 3-letter ISO code, e.g. USD |
alwaysUseDefaultValue | boolean | ignore any value sent with the conversion and always use the default |
clickThroughLookbackDays | number | 1–90 days |
viewThroughLookbackDays | number | 1–30 days |
includeInConversionsMetric | boolean | default true — false makes smart bidding IGNORE it |
primaryForGoal | boolean | default true — whether this action is biddable for its category |
dryRun | boolean | validate against Google and create NOTHING |
loginCustomerId | string | manager 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.
| Parameter | Type | Description |
|---|
customerId | string | 10-digit account id (dashes ok) — omit to use the brand’s selected default account |
includeRemoved | boolean | also list REMOVED conversion actions |
loginCustomerId | string | manager 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.
| Parameter | Type | Description |
|---|
customerId | string | 10-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 |
campaignId | string | campaign id (level:"campaign") |
adGroupId | string | ad group id (level:"adGroup") |
assets | object[] | the assets to CREATE and attach |
assetResourceNames | string[] | attach assets that ALREADY exist instead of creating new ones |
status | "ENABLED" | "PAUSED" | the LINK status — default ENABLED |
confirm | boolean | set true ONLY after the user approved changing what a LIVE campaign shows |
dryRun | boolean | validate against Google and create NOTHING |
loginCustomerId | string | manager 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.
| Parameter | Type | Description |
|---|
customerId | string | 10-digit account id (dashes ok) — omit to use the brand’s selected default account |
namerequired | string | campaign name |
dailyBudgetUsd | number | daily budget in USD (1–100000) — or pass budgetResourceName |
budgetResourceName | string | an existing budget to reuse |
bidding | object | |
locations | string[] | place NAMES ("United States", "Toronto") — resolved for you |
excludedLocations | string[] | places to block |
languages | string[] | ISO codes, e.g. ["en"] |
countryCode | string | 2-letter hint to disambiguate a city name |
startDate | string | YYYY-MM-DD |
endDate | string | YYYY-MM-DD |
containsEuPoliticalAds | boolean | true ONLY for genuine EU political advertising |
merchantCenterId | string | makes 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 |
feedLabel | string | optional, retail only: narrow to ONE Merchant Center feed by its feed label. Omit to use products from all feeds |
brandGuidelinesEnabled | boolean | default 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 |
assetGrouprequired | object | the creative — Google requires every field above before a PMax campaign can serve |
dryRun | boolean | validate the whole tree against Google and create NOTHING |
loginCustomerId | string | manager id if operating through an MCC |
google_ads_keyword_ideas#
Keyword ideas with real Google search volume read-only
Google’s own KEYWORD PLANNER: real keyword ideas with average monthly search volume, competition level and top-of-page bid estimates, so keyword choices are measured instead of guessed. Seed it with keywords[] (terms you already have), url (one landing page to mine) or site (a whole domain — the fastest way to size a competitor). Narrow by locations (place NAMES, resolved for you) and language. Results come back sorted by monthly volume. Use this BEFORE add_google_ads_keywords or create_google_ads_campaign so the ad group targets terms people actually search, and quote the volumes when you propose them. Read-only, free, spends nothing and creates nothing.
| Parameter | Type | Description |
|---|
customerId | string | 10-digit account id (dashes ok) — omit to use the brand’s selected default account |
keywords | string[] | up to 20 seed terms |
url | string | one page to mine for ideas |
site | string | a whole domain to mine, e.g. example.com |
locations | string[] | place NAMES, e.g. ["United States"] |
language | string | ISO code, e.g. "en" |
countryCode | string | 2-letter hint to disambiguate a city name |
network | "GOOGLE_SEARCH" | "GOOGLE_SEARCH_AND_PARTNERS" | default GOOGLE_SEARCH |
limit | number | how many ideas to return (1–200, default 50) |
loginCustomerId | string | manager 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.
| Parameter | Type | Description |
|---|
propertyrequired | string | the 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 |
metrics | string[] | GA4 metric names — default ["activeUsers","sessions","screenPageViews"] |
dimensions | string[] | GA4 dimension names to break the metrics down by — omit for a single total row |
startDate | string | YYYY-MM-DD or a GA4 relative date like "28daysAgo" (default 28daysAgo) |
endDate | string | YYYY-MM-DD or "today" (default today) |
limit | number | rows to return, 1–250000 (default 50). 250,000 is GOOGLE's per-request maximum, not ours — asking for more is silently capped there. |
offset | number | skip this many rows — how you page past `limit`. Use the nextOffset the previous call returns. |
orderByMetric | string | sort by this metric — must be one of the metrics requested |
orderDesc | boolean | default true (largest first) when orderByMetric is set |
dimensionFilter | object | NARROW 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. |
metricFilter | object | Filter 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.
| Parameter | Type | Description |
|---|
propertyrequired | string | the NUMERIC GA4 property id from list_analytics_properties — it must be one SHARED with this brand, and any other is refused by name |
metrics | string[] | realtime metric names — default ["activeUsers"]. NOT the same set as analytics_report; `sessions` is not a realtime metric |
dimensions | string[] | realtime dimension names, e.g. ["country"] or ["unifiedScreenName"] |
limit | number | rows, 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.
| Parameter | Type | Description |
|---|
propertyrequired | string | the 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.
| Parameter | Type | Description |
|---|
propertyrequired | string | the NUMERIC GA4 property id from list_analytics_properties — it must be one SHARED with this brand, and any other is refused by name |
eventNamerequired | string | an 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.
| Parameter | Type | Description |
|---|
propertyrequired | string | the NUMERIC GA4 property id from list_analytics_properties — it must be one SHARED with this brand, and any other is refused by name |
parameterNamerequired | string | the event parameter GA4 already collects, e.g. "customer_tier" — NOT the report label |
displayName | string | the label shown in GA4 reports — defaults to parameterName |
scope | "EVENT" | "USER" | "ITEM" | default EVENT. The 50-dimension cap applies to EVENT scope |
description | string | optional 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.
| Parameter | Type | Description |
|---|
propertyrequired | string | the NUMERIC GA4 property id from list_analytics_properties — it must be one SHARED with this brand, and any other is refused by name |
search | string | substring 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.
| Parameter | Type | Description |
|---|
propertyrequired | string | the NUMERIC GA4 property id from list_analytics_properties |
parameterNamerequired | string | the event parameter of the dimension to archive, e.g. "customer_tier" — from list_analytics_definitions, NOT the report label |
confirm | boolean | must 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.
| Parameter | Type | Description |
|---|
propertyrequired | string | the NUMERIC GA4 property id from list_analytics_properties |
eventNamerequired | string | the key event to stop counting, e.g. "sign_up" — from list_analytics_definitions |
confirm | boolean | must 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.
| Parameter | Type | Description |
|---|
propertyrequired | string | NUMERIC GA4 property id from list_analytics_properties — never the G-XXXXXXX Measurement ID |
parameterNamerequired | string | the event parameter GA4 already collects, e.g. 'order_value' — NOT the report label. Letters, digits and underscores, starting with a letter, max 40 characters |
displayName | string | the 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 |
description | string | ≤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.
| Parameter | Type | Description |
|---|
propertyrequired | string | NUMERIC GA4 property id |
parameterNamerequired | string | the event parameter of the metric to archive, e.g. 'order_value' |
confirm | boolean | must 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.
| Parameter | Type | Description |
|---|
propertyrequired | string | NUMERIC GA4 property id |
metrics | string[] | the same metrics you would send to analytics_report (defaults to the same three it defaults to) |
dimensions | string[] | the same dimensions you would send to analytics_report |
dimensionFilter | object | the same GA4 FilterExpression you would send to analytics_report |
metricFilter | object | the 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 |
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.
| Parameter | Type | Description |
|---|
containerPathrequired | string | the "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 |
workspace | string | workspace 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.
| Parameter | Type | Description |
|---|
containerPathrequired | string | the "accounts/<id>/containers/<id>" path from list_tag_manager_containers |
workspace | string | workspace id or name. Defaults to the Default Workspace. |
namerequired | string | what a human will look for in the Tag Manager UI |
typerequired | string | the 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. |
firingTriggerIdrequired | string[] | REQUIRED, at least one real trigger id from list_tag_manager_tags. A tag with no trigger is installed and never runs. |
parameter | object[] | Tag Manager parameters, each { type, key, value }. type defaults to "template", which is Tag Manager's string type. |
blockingTriggerId | string[] | |
tagFiringOption | string | unlimited, oncePerEvent or oncePerLoad |
paused | boolean | |
notes | string | |
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.
| Parameter | Type | Description |
|---|
containerPathrequired | string | |
workspace | string | |
tagIdrequired | string | the tagId from list_tag_manager_tags |
name | string | |
firingTriggerId | string[] | |
parameter | object[] | |
blockingTriggerId | string[] | |
tagFiringOption | string | |
paused | boolean | pause the tag rather than removing its trigger, which is how you stop one running |
notes | string | |
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.
| Parameter | Type | Description |
|---|
containerPathrequired | string | |
workspace | string | |
namerequired | string | |
typerequired | string | one 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. |
filter | object[] | Tag Manager Condition objects, each { type, parameter: [...] } |
customEventFilter | object[] | REQUIRED for a customEvent trigger, or it would fire on every dataLayer event in the container |
notes | string | |
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.
| Parameter | Type | Description |
|---|
queryrequired | string | a HogQL (ClickHouse-flavoured SQL) query — one bounded question, never a page of an export |
limit | number | row 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.
| Parameter | Type | Description |
|---|
insightId | string | omit to list the saved insights and their ids |
refresh | boolean | default 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.
| Parameter | Type | Description |
|---|
limit | number | 1–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.
| Parameter | Type | Description |
|---|
distinctId | string | PostHog distinct id |
email | string | exact email match |
search | string | free-text search across person properties |
limit | number | 1–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.
| Parameter | Type | Description |
|---|
bookmarkIdrequired | string | the 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.
| Parameter | Type | Description |
|---|
fromDate | string | YYYY-MM-DD (default 30 days ago) |
toDate | string | YYYY-MM-DD (default today) |
retentionType | "birth" | "compounded" | "birth" = cohort by first occurrence of bornEvent; "compounded" = anyone active |
bornEvent | string | the event that puts someone into the cohort — REQUIRED by Mixpanel when retentionType is "birth", which is the default |
event | string | the returning event; omitted means any event |
unit | "day" | "week" | "month" | the interval unit (default day) |
interval | number | the 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) |
intervalCount | number | HOW MANY buckets to return (default 1). A "0th" bucket is always included for events inside the first interval |
bornWhere | string | a Mixpanel segmentation expression filtering who ENTERS the cohort (the born event) |
where | string | a Mixpanel segmentation expression filtering the RETURNING event |
on | string | a property expression to segment the returning event on — this is what breaks a retention curve down by e.g. plan or platform |
limit | number | top N segmentation values; does nothing unless "on" is set |
unboundedRetention | boolean | accumulate 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.
| Parameter | Type | Description |
|---|
eventrequired | string | a SINGLE event name — not an array |
fromDate | string | YYYY-MM-DD (default 30 days ago) |
toDate | string | YYYY-MM-DD (default today) |
on | string | a segmentation expression to break down by, e.g. properties["$browser"] |
where | string | a segmentation expression to filter by |
unit | "minute" | "hour" | "day" | "month" | NOTE: Mixpanel offers no "week" on segmentation, unlike retention |
interval | number | the number of days each bucket covers — Mixpanel offers this in lieu of "unit" when "type" is not "general" |
type | "general" | "unique" | "average" | |
limit | number | top 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.
| Parameter | Type | Description |
|---|
funnelId | string | omit to list the saved funnels and their ids |
fromDate | string | YYYY-MM-DD (default 30 days ago) |
toDate | string | YYYY-MM-DD (default today) |
length | number | the 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 |
interval | number | the number of days each bucket covers — an alternative to "unit" (default 1) |
on | string | a property expression to break the funnel down by |
where | string | a segmentation expression to filter by |
limit | number | top 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.
| Parameter | Type | Description |
|---|
event | string | pass 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" | |
limit | number | Mixpanel 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.
| Parameter | Type | Description |
|---|
events | object[] | one or two event specs: a plain name, or {eventType, filters:[{subprop_type,subprop_key,subprop_op,subprop_value}], groupBy:[…]} |
event | string | shorthand for a single event name |
metric | "uniques" | "totals" | "pct_dau" | "average" | "histogram" | "sums" | "value_avg" | "formula" | default uniques |
formula | string | required when metric is "formula" |
start | string | YYYYMMDD or YYYY-MM-DD (default 30 days ago) |
end | string | YYYYMMDD or YYYY-MM-DD (default today) |
interval | number | -300000 realtime, -3600000 hourly, 1 daily, 7 weekly, 30 monthly |
groupBy | string | |
limit | number | ≤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.
| Parameter | Type | Description |
|---|
eventsrequired | object[] | ordered steps — plain event names, or {eventType, filters:[…]} objects |
mode | "ordered" | "unordered" | "sequential" | default ordered |
conversionWindowSeconds | number | Amplitude default is 2592000 (30 days) — say which window you used |
start | string | YYYYMMDD or YYYY-MM-DD (default 30 days ago) |
end | string | YYYYMMDD or YYYY-MM-DD (default today) |
groupBy | string | at 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.
| Parameter | Type | Description |
|---|
startEvent | string | "_new" (default) or an event name |
returnEvent | string | "_active" (default) or an event name |
start | string | YYYYMMDD or YYYY-MM-DD (default 30 days ago) |
end | string | YYYYMMDD or YYYY-MM-DD (default today) |
retentionMode | "n-day" | "bracket" | "rolling" | |
brackets | number[] | required when retentionMode is "bracket" |
interval | number | 1 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.
| Parameter | Type | Description |
|---|
start | string | YYYYMMDD or YYYY-MM-DD (default 30 days ago) |
end | string | YYYYMMDD or YYYY-MM-DD (default today) |
metric | "active" | "new" | default active |
interval | number | 1 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.
| Parameter | Type | Description |
|---|
userrequired | string | a numeric Amplitude ID to read activity, or a user id / device id / user-id prefix to search |
search | boolean | force a search even when the value is numeric |
limit | number | |
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.
| Parameter | Type | Description |
|---|
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.
| Parameter | Type | Description |
|---|
chartIdrequired | string | the 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.
| Parameter | Type | Description |
|---|
category | string | category NAME — does not combine with chartId |
chartId | string | only annotations shown on this chart — does not combine with category |
start | string | ISO 8601, e.g. '2026-08-01T00:00:00+00:00' |
end | string | ISO 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.
| Parameter | Type | Description |
|---|
labelrequired | string | the title shown on the chart, e.g. "Meta: summer UGC campaign live" |
startrequired | string | ISO 8601 WITH time and offset, e.g. '2026-08-18T14:30:00+00:00' — a bare YYYYMMDD is refused |
end | string | ISO 8601 — only for an annotation that spans a period |
chartId | string | omit for a GLOBAL annotation that appears on every chart in the project |
category | string | an EXISTING category name in Amplitude — they answer 404 for one that does not exist |
details | string | longer 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.
| Parameter | Type | Description |
|---|
limit | number | 1–100, default 25 |
offset | number | for the next page — this tool does not paginate for you |
search | string | free-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.
| Parameter | Type | Description |
|---|
contentrequired | string | the text shown on the chart, ≤8192 characters |
dateMarker | string | ISO 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 |
dashboardId | number | REQUIRED when scope is "dashboard" |
insightId | number | REQUIRED 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.
| Parameter | Type | Description |
|---|
cohortId | string | a numeric cohort id from list_mixpanel_cohorts |
where | string | a Mixpanel segmentation expression over profile properties, e.g. properties["$city"] == "London" |
distinctId | string | one person |
distinctIds | string[] | several people by distinct id |
outputProperties | string[] | only return these properties — strongly recommended, it is much faster and much smaller |
dataGroupId | string | group key — for GROUP profiles rather than user profiles |
page | number | pages start at ZERO; any page above 0 REQUIRES sessionId |
sessionId | string | from the previous page — required for page > 0 |
includeAllUsers | boolean | only applies alongside cohortId; false = only distinct ids that actually have a profile |
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.
| Parameter | Type | Description |
|---|
accountId | string | |
keywords | string[] | seed terms to expand from |
url | string | a landing page for Microsoft to mine ideas from |
categoryId | number | |
locationIdsrequired | string[] | REQUIRED — Microsoft location ids (microsoft_ads_geo_search resolves names to ids, free) |
language | string | default English |
network | "OwnedAndOperatedAndSyndicatedSearch" | "OwnedAndOperatedOnly" | "SyndicatedSearchOnly" | |
competition | string[] | filter to Low | Medium | High |
minSearchVolume | number | |
maxSearchVolume | number | |
attributes | string[] | which idea attributes to return — omit for all |
expandIdeas | boolean | false = 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.
| Parameter | Type | Description |
|---|
accountId | string | |
keywordsrequired | string[] | the keywords to estimate |
maxCpcrequired | number | REQUIRED — the max CPC bid to estimate at, in the account currency |
matchType | "Exact" | "Phrase" | "Broad" | default Exact |
locationIdsrequired | string[] | REQUIRED — Microsoft location ids |
language | string | |
network | string | |
dailyBudget | number | |
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.
| Parameter | Type | Description |
|---|
accountId | string | |
campaignId | string | omit for the whole account |
microsoft_ads_geo_search#
Find Microsoft Advertising location ids read-only
Resolve country / region / city names to the Microsoft Advertising location ids that create_microsoft_ads_campaign needs. Read-only, free, 0 credits. Use it when a location ask is ambiguous ("Springfield") — this returns EVERY candidate with its id so the USER can pick, and you never guess between two places. Accepts names, ISO country codes ("CA"), or numeric location ids. Pass `query` as ONE ask (a plain string) or SEVERAL (an array of strings) — a comma is part of a place's name ("Seattle, Washington, United States"), never a separator. Postal codes and neighbourhoods are not name-searchable — pass their numeric location id straight through; the campaign read-back reports the name Microsoft resolves for it.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id — omit to use the brand’s single shared account |
queryrequired | string | string[] | ONE location ask as a plain string, or several as an array of strings — names, ISO country codes, or numeric Microsoft location ids. A comma belongs to a name ("Seattle, Washington, United States") and is NOT a separator: pass several places as several array items, never one comma-joined string. |
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.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id — omit to use the brand’s single shared account |
namerequired | string | campaign name, ≤128 characters |
dailyBudgetrequired | number | daily budget in the account’s currency |
budgetType | "DailyBudgetStandard" | "DailyBudgetAccelerated" | "LifetimeBudgetStandard" | default DailyBudgetStandard; Accelerated is Audience-campaign only |
campaignType | string | Search (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. |
timeZone | string | Microsoft time-zone enum — Microsoft requires one; default PacificTimeUSCanadaTijuana |
locations | string[] | 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 |
excludeLocations | string[] | 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 |
worldwide | boolean | set 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 |
languages | string[] | campaign languages, e.g. ["English"] |
adGroup | object | build 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.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id — omit to use the brand’s single shared account |
campaignIdrequired | string | the campaign this ad group belongs to |
namerequired | string | ad group name, ≤256 characters |
status | "Active" | "Paused" | default Paused |
cpcBid | number | default max CPC in the account currency |
language | string | required if the campaign has no language set |
ad | object | create the responsive search ad in the same call |
keywords | object[] | |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id — omit to use the brand’s single shared account |
adGroupIdrequired | string | the ad group this ad lives in |
headlines | string[] | 3–15 headlines, each ≤30 characters |
descriptions | string[] | 2–4 descriptions, each ≤90 characters |
finalUrls | string[] | the landing page(s) — at least one is required |
path1 | string | display-URL path segment, ≤15 chars, no "/" |
path2 | string | second display-URL path segment (only with path1) |
status | "Active" | "Paused" | default Paused |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id — omit to use the brand’s single shared account |
adGroupIdrequired | string | the ad group to add them to |
keywordsrequired | object[] | the keywords |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id — omit to use the brand’s single shared account |
campaignIdrequired | string | the campaign whose budget changes |
dailyBudgetrequired | number | new daily budget in the account’s currency |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id — omit to use the brand’s single shared account |
level | "campaign" | "adGroup" | "ad" | what to change — default campaign |
campaignId | string | campaign id (level:"campaign") |
adGroupId | string | ad group id (level:"adGroup", or with adId for level:"ad") |
adId | string | ad id (level:"ad" — pass adGroupId too) |
statusrequired | "Active" | "Paused" | Active = start spending; Paused = stop |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id — omit to use the brand’s single shared account |
level | "campaign" | "adGroup" | "ad" | "keyword" | what to delete — default campaign |
campaignId | string | campaign id (level:"campaign"; also the parent for level:"adGroup" if you know it) |
adGroupId | string | ad group id (level:"adGroup"; REQUIRED as the parent for level:"ad" and level:"keyword") |
adId | string | ad id (level:"ad" — pass adGroupId too) |
keywordId | string | keyword id (level:"keyword" — pass adGroupId too) |
confirm | boolean | REQUIRED true — the delete is permanent |
confirmName | string | the object’s EXACT name, required when it has children / is Active / has spent |
confirmChildren | number | the 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.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft 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.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id — omit to use the brand’s single shared account |
merchantId | string | Microsoft Merchant Center store id from list_microsoft_merchant_stores — omit when the account has exactly one store |
productId | string | fully qualified id (channel:contentLanguage:targetCountry:offerId, e.g. Online:en:US:Sku123) to fetch ONE offer |
limit | number | up to 250, default 25 |
pageToken | string | the 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.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id — omit to use the brand’s single shared account |
merchantId | string | Microsoft Merchant Center store id from list_microsoft_merchant_stores — omit when the account has exactly one store |
product | object | ONE whole offer — availability, channel, condition, contentLanguage, imageLink, link, offerId, price{value,currency}, targetCountry, title are required; brand/gtin/mpn strongly recommended |
products | object[] | several whole offers in one batch, maximum 300 |
catalogId | string | write into a specific catalog instead of the store default |
dryRun | boolean | validate 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.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id — omit to use the brand’s single shared account |
merchantId | string | Microsoft Merchant Center store id from list_microsoft_merchant_stores — omit when the account has exactly one store |
productIdrequired | string | the FULLY QUALIFIED id (channel:contentLanguage:targetCountry:offerId), not the offerId |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id — omit to use the brand’s single shared account |
merchantId | string | Microsoft Merchant Center store id from list_microsoft_merchant_stores — omit when the account has exactly one store |
limit | number | up to 250, default 25 |
pageToken | string | |
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.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id — omit to use the brand’s single shared account |
merchantId | string | Microsoft 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.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id — omit to use the brand’s single shared account |
merchantId | string | Microsoft Merchant Center store id from list_microsoft_merchant_stores — omit when the account has exactly one store |
catalogId | string | set to UPDATE or DELETE an existing catalog; omit to create a new one |
name | string | unique within the store, maximum 70 characters |
market | string | REQUIRED when creating — where the products are served, e.g. en-US. Not settable afterwards |
isPublishingEnabled | boolean | products serve ONLY when this is true — never defaulted on |
deleteIt | boolean | true to delete the catalog named by catalogId |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id — omit to use the brand’s single shared account |
audienceIds | string[] | up to 100 specific ids — omit for all of the requested type |
types | string[] | 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.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id — omit to use the brand’s single shared account |
namerequired | string | maximum 128 characters |
description | string | maximum 1024 characters |
membershipDuration | number | 1–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.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id — omit to use the brand’s single shared account |
audienceIdrequired | string | the customer list to write into |
emails | string[] | 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” |
acceptTerms | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
campaignId | string | list this campaign’s ad groups |
adGroupId | string | list this ad group’s ads |
limit | number | page size, default 100 |
after | string | pagination 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.
| Parameter | Type | Description |
|---|
campaignId | string | |
adGroupId | string | |
adId | string | |
since | string | YYYY-MM-DD |
until | string | YYYY-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) |
limit | number | |
openai_ads_geo_search#
Find ChatGPT Ads location ids read-only
Look up ChatGPT Ads location ids by name — countries, regions and DMAs — so a campaign can be geo-targeted. GEO AND CUSTOM AUDIENCES ARE THE ONLY LIST-BASED TARGETING THIS PLATFORM HAS: there are no interests, no lookalikes, no age or gender. Everything else is semantic, through an ad group’s context hints. Custom audiences are targeted with customAudienceIds / excludedCustomAudienceIds (see list_openai_ads_audiences). Pass the returned ids as locationIds when creating or updating a campaign; a campaign with no location targeting runs everywhere available. Read-only, free.
| Parameter | Type | Description |
|---|
queryrequired | string | a place name, e.g. "Toronto" or "United Kingdom" |
limit | number | |
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.
| Parameter | Type | Description |
|---|
accountId | string | |
limit | number | |
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.
| Parameter | Type | Description |
|---|
accountIdrequired | string | from list_x_ads_accounts |
namerequired | string | |
fundingInstrumentId | string | omit to be shown the account’s usable funding instruments |
dailyBudget | number | in the ad account’s currency |
totalBudget | number | |
startTime | string | ISO 8601 |
endTime | string | |
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.
| Parameter | Type | Description |
|---|
accountIdrequired | string | |
campaignId | string | the whole campaign — pass this OR lineItemId |
lineItemId | string | one ad group — pass this OR campaignId |
statusrequired | "ACTIVE" | "PAUSED" | |
confirm | boolean | required 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.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id — omit to use the brand’s single shared account |
entities | string[] | 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 |
campaignIds | string[] | export only these campaigns (max 1000) instead of the whole account |
since | string | ISO 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 |
dataScope | string[] | EntityData (default), QualityScoreData, BidSuggestionsData — the last two force a FULL export |
limit | number | how many rows to return inline, default 200 (the full file is still in `file`) |
allowUnlistedEntities | boolean | send an entity name we do not recognise verbatim — for a record type Microsoft added after our copy of its list was read |
downloadRequestId | string | pick up an export that came back pending. Valid 2 days, and far cheaper than exporting the account again |
waitMs | number | how 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.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id — omit to use the brand’s single shared account |
filerequired | string | the bulk file itself, CSV or TSV, whose first column header must be "Type" |
fileType | "Csv" | "Tsv" | inferred from the file when omitted |
confirm | boolean | the 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 |
confirmActivations | number | echo back how many objects this file ACTIVATES — the exact count the un-confirmed call reported |
confirmDeletions | number | echo back how many objects this file DELETES — the exact count the un-confirmed call reported |
pauseInstead | boolean | rewrite 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 |
dryRun | boolean | report 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 |
uploadRequestId | string | read 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 |
waitMs | number | how 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.
| Parameter | Type | Description |
|---|
accountId | string | |
goalIds | string[] | specific goal ids — omit for all of them |
goalType | string | filter 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.
| Parameter | Type | Description |
|---|
accountId | string | |
conversionName | string | default goal name for every row that does not carry its own |
conversionsrequired | object[] | 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.
| Parameter | Type | Description |
|---|
accountId | string | |
entityType | "Account" | "Campaign" | "AdGroup" | "Keyword" | default Account |
entityIds | string[] | REQUIRED for Campaign / AdGroup / Keyword, max 200. Microsoft only defaults to the whole account for entityType Account |
since | string | YYYY-MM-DD, default 30 days back |
until | string | YYYY-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.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id, omit to use the brand’s single shared account |
types | string[] | 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 |
limit | number | Microsoft’s MaxCount, omit for everything |
includeDismissed | boolean | also 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.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id, omit to use the brand’s single shared account |
recommendationIdsrequired | string[] | ids from microsoft_ads_recommendations, max 100. There is deliberately no "apply everything" |
confirm | boolean | the user has SEEN the pre-flight list and said yes. Not sufficient on its own, both echo numbers below are also required |
confirmCount | number | echo back how many recommendations this applies: the exact count the un-confirmed call reported |
confirmCostIncrease | number | echo back Microsoft’s own summed cost estimate for them: the exact number the un-confirmed call reported |
dryRun | boolean | report 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.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id, omit to use the brand’s single shared account |
recommendationIdsrequired | string[] | 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.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id, omit to use the brand’s single shared account |
types | string[] | 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.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id, omit to use the brand’s single shared account |
optInsrequired | object | map of Microsoft auto-apply type name to true/false, e.g. {"RemoveConflictingNegativeKeywordOpportunity": false}. Case-sensitive keys: ResponsiveSearchAdsOpportunity, MultiMediaAdsOpportunity, RemoveConflictingNegativeKeywordOpportunity, FixConversionGoalSettingsOpportunity, CreateConversionGoalOpportunity |
confirm | boolean | required 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 |
confirmTypes | string[] | 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.
| Parameter | Type | Description |
|---|
limit | number | page size, default 100, Apple’s max is 1000 |
offset | number | offset 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.
| Parameter | Type | Description |
|---|
campaignId | string | optional — from list_apple_ads_campaigns. Omit for every ad group in the ad account. |
limit | number | |
offset | number | |
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.
| Parameter | Type | Description |
|---|
campaignId | string | the campaign — required unless you pass adGroupId |
adGroupId | string | narrow to one ad group. Outranks scope on both resources. |
negative | boolean | list 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. |
limit | number | |
offset | number | |
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.
| Parameter | Type | Description |
|---|
level | "campaign" | "adgroup" | "keyword" | "searchterm" | "ad" | default campaign |
promotedObjectType | "apps" | "business-brands" | apps = App Store (default), business-brands = Ads on Apple Maps |
campaignId | string | REQUIRED 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. |
adGroupId | string | optional second filter — v5 had no path for this |
startTimerequired | string | YYYY-MM-DD (required) |
endTimerequired | string | YYYY-MM-DD (required) |
granularity | "HOURLY" | "DAILY" | "WEEKLY" | "MONTHLY" | omit entirely for a single day, or for totals only |
groupBy | string[] | 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. |
grandTotals | boolean | add a summary row across all result rows |
emptyMetrics | boolean | include entities with no delivery. App Store reports only, and never together with groupBy. |
fields | string[] | limit the returned fields. Omit for all of them. |
offset | number | row 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. |
limit | number | rows 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.
| Parameter | Type | Description |
|---|
namerequired | string | REQUIRED. Unique across the entire Apple Ads organization. |
appAdamIdrequired | string | REQUIRED. App Store id of the promoted app, e.g. "6752439949". |
dailyBudgetrequired | string | REQUIRED. Decimal string, e.g. "25.00". |
countriesrequired | string[] | REQUIRED. ISO 3166-1 alpha-2 codes, e.g. ["US","CA"]. |
placements | string[] | 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. |
bid | string | MAX_CONVERSIONS only — the target CPA. Refused on MANUAL_CPT. |
currency | string | Defaults to the connected ad account’s currency; an account cannot mix currencies. |
startTime | string | |
endTime | string | Omit to run indefinitely. |
budgetOrderIds | string[] | 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.
| Parameter | Type | Description |
|---|
campaignIdrequired | string | REQUIRED. |
namerequired | string | REQUIRED. |
defaultBid | string | Max cost per tap, e.g. "1.50". |
currency | string | |
startTime | string | Defaults to now. |
endTime | string | Omit to inherit the campaign end date. |
searchMatch | boolean | Opt into Apple’s automated keyword matching. |
pricingModel | "CPT" | "CPM" | "CPA" | Default CPT; must match the campaign billing event. |
targeting | object | Who 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.
| Parameter | Type | Description |
|---|
adGroupIdrequired | string | REQUIRED. |
keywordsrequired | object[] | REQUIRED. Up to 1000. |
matchType | "EXACT" | "BROAD" | "PHRASE" | "CATEGORY" | Default for entries that do not set one. |
currency | string | |
confirm | boolean | Required 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.
| Parameter | Type | Description |
|---|
campaignId | string | Campaign-wide. Pass this OR adGroupId, never both. |
adGroupId | string | One ad group. Pass this OR campaignId, never both. |
keywordsrequired | object[] | 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.
| Parameter | Type | Description |
|---|
levelrequired | "campaign" | "adgroup" | "keyword" | "creative" | "ad" | "location_group" | REQUIRED. |
idrequired | string | REQUIRED. |
name | string | |
dailyBudget | string | Campaign only. |
defaultBid | string | Ad group only. |
bid | string | Keyword only. |
countries | string[] | Campaign only. REPLACES the whole list. |
bidStrategyType | "MANUAL_CPT" | "MAX_CONVERSIONS" | Campaign only. |
searchMatch | boolean | Ad group only. |
targeting | object | Ad group only. Same shape as create_apple_ads_ad_group.targeting — locationGroupIds, radius, adminAreaIds, daypart and the rest. REPLACES the dimensions you name. |
locationIds | string[] | Location group only (STATIC). REPLACES the whole membership. |
rules | object[] | Location group only (DYNAMIC). REPLACES every rule and puts the group back to PENDING. |
description | string | Location group only. |
startTime | string | |
endTime | string | |
currency | string | |
budgetOrderIds | string[] | 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.
| Parameter | Type | Description |
|---|
levelrequired | "campaign" | "adgroup" | "keyword" | "negative_keyword" | "ad" | REQUIRED. |
idrequired | string | REQUIRED. |
statusrequired | "ENABLED" | "PAUSED" | REQUIRED. |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
levelrequired | "campaign" | "adgroup" | "keyword" | "negative_keyword" | "ad" | "creative" | "asset" | "location_group" | "budget_order" | REQUIRED. |
idrequired | string | REQUIRED. |
confirm | boolean | REQUIRED. Nothing is deleted without it. |
confirmName | string | Optional — 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.
| Parameter | Type | Description |
|---|
query | string | App name or developer to search the App Store for. |
adamId | string | Fetch one app’s full details instead of searching. |
ownedOnly | boolean | Default 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. |
storeFronts | string[] | App Store country/region codes to search in, e.g. ["US","GB"]. |
cpids | string | Comma-separated iTunes content provider ids to scope the search to. |
limit | number | |
offset | number | |
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.
| Parameter | Type | Description |
|---|
adamIdrequired | string | REQUIRED — from search_apple_ads_apps. |
supplyPlacement | string[] | Narrow to placements, e.g. ["APPSTORE_SEARCH_RESULTS","APPSTORE_SEARCH_TAB"]. |
countryOrRegion | string[] | ISO 3166-1 alpha-2 codes. |
deviceClass | string[] | IPHONE and/or IPAD. |
limit | number | |
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.
| Parameter | Type | Description |
|---|
adamId | string | App Store id — one app’s pages, or its DEFAULT listing’s locale details. |
productPageId | string | A specific custom product page (UUID). |
localeDetails | boolean | Read per-language content instead of the page list. |
languageCode | string | With localeDetails — one locale, e.g. "en-US". Omit for all. |
language | string | With localeDetails — a language, e.g. "en". |
state | string | Filter by page state; the typical live value is PUBLISHED. |
limit | number | |
offset | number | |
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.
| Parameter | Type | Description |
|---|
id | string | Fetch one creative. |
creativeType | "DEFAULT_PRODUCT_PAGE" | "CUSTOM_PRODUCT_PAGE" | "LOCAL_ADS_SEARCH_CREATIVE" | |
systemStatus | "VALID" | "INVALID" | "PENDING" | |
name | string | Name prefix. |
eligibility | "ELIGIBLE" | "INELIGIBLE" | |
includeDeleted | boolean | |
limit | number | |
offset | number | |
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.
| Parameter | Type | Description |
|---|
namerequired | string | REQUIRED. |
creativeType | "DEFAULT_PRODUCT_PAGE" | "CUSTOM_PRODUCT_PAGE" | "LOCAL_ADS_SEARCH_CREATIVE" | Default DEFAULT_PRODUCT_PAGE. |
adamId | string | REQUIRED for App Store creatives — the App Store id. |
productPageId | string | REQUIRED for CUSTOM_PRODUCT_PAGE; refused on DEFAULT_PRODUCT_PAGE, which is the app’s standard listing. |
brandId | string | Apple Maps only — the brand this creative belongs to. |
creativeSubtype | "BUSINESS_LOGO" | "BUSINESS_ASSET" | Apple Maps only. Default BUSINESS_LOGO. |
assetIds | string[] | Apple Maps only — ids from upload_apple_ads_asset. |
localizedText | object | Apple Maps only — promo copy per locale, e.g. {"en-US":"Visit us today"}. |
defaultLocale | string | Apple 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.
| Parameter | Type | Description |
|---|
id | string | Fetch one ad. |
adGroupId | string | |
campaignId | string | |
creativeId | string | |
status | "ENABLED" | "PAUSED" | |
includeDeleted | boolean | |
limit | number | |
offset | number | |
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.
| Parameter | Type | Description |
|---|
adGroupIdrequired | string | REQUIRED. |
creativeIdrequired | string | REQUIRED — from create_apple_ads_creative. |
namerequired | string | REQUIRED. |
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.
| Parameter | Type | Description |
|---|
imageUrlrequired | string | REQUIRED — a PNG, JPG or HEIC image Hermoso can fetch. |
brandIdrequired | string | REQUIRED — the Apple Maps brand this asset belongs to. |
filename | string | Decides 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.
| Parameter | Type | Description |
|---|
id | string | Fetch one asset — the only way to see a crop or variant. |
brandId | string | Scope to one brand or app (promotedObjectId). |
promotedObjectType | "APPSTORE_APP" | "BUSINESS_BRAND" | |
assetType | "IMAGE" | |
limit | number | |
offset | number | |
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.
| Parameter | Type | Description |
|---|
kind | "keyword" | "phrase" | "category" | Default keyword. Each kind takes DIFFERENT filters — see the description. |
promotedObjectIdrequired | string | REQUIRED — the app’s adamId, or an Apple Maps brandId. |
promotedObjectType | "APPSTORE_APP" | "BUSINESS_BRAND" | Default APPSTORE_APP. |
terms | string[] | kind:"keyword" ONLY. Seed search terms to expand from, e.g. ["productivity","task management"]. Refused on phrase/category. |
phrases | string[] | kind:"phrase" ONLY, and REQUIRED there on the SEARCH route — the phrases to look up, e.g. ["best productivity app"]. |
categories | string[] | kind:"category" ONLY, and REQUIRED there on the SEARCH route — the App Store categories to look up, e.g. ["Utilities"]. |
countriesOrRegions | string[] | 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. |
limit | number | |
offset | number | |
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.
| Parameter | Type | Description |
|---|
promotedObjectIdrequired | string | REQUIRED — the app’s adamId. |
promotedObjectType | "APPSTORE_APP" | "BUSINESS_BRAND" | Default APPSTORE_APP. |
countriesOrRegions | string[] | 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.
| Parameter | Type | Description |
|---|
type | "daily_budget" | "target_cpa" | Default daily_budget. |
promotedObjectIdrequired | string | REQUIRED — the app’s adamId, or an Apple Maps brandId. |
promotedObjectType | "APPSTORE_APP" | "BUSINESS_BRAND" | Default APPSTORE_APP. |
state | string | AVAILABLE (default), APPLIED, DISMISSED, DELETE, or "ALL" to skip the filter. |
limit | number | |
offset | number | |
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.
| Parameter | Type | Description |
|---|
type | "daily_budget" | "target_cpa" | Default daily_budget. |
idrequired | string | REQUIRED — the recommendation id from list_apple_ads_recommendations. |
promotedObjectIdrequired | string | REQUIRED — the same app or brand id the recommendation was queried for. |
promotedObjectType | "APPSTORE_APP" | "BUSINESS_BRAND" | Default APPSTORE_APP. |
amount | string | Override Apple’s suggestion with your own decimal amount, e.g. "500.00". Omit to apply what Apple suggested. |
currency | string | ISO 4217; defaults to the ad account’s currency. |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
type | "daily_budget" | "target_cpa" | Default daily_budget. |
idrequired | string | REQUIRED — the recommendation id. |
promotedObjectIdrequired | string | REQUIRED — 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.
| Parameter | Type | Description |
|---|
promotedObjectIdrequired | string | REQUIRED — the app’s adamId. Apple answers 400 without it. |
countryOrRegion | string[] | ISO 3166-1 alpha-2, e.g. ["US"]. |
startrequired | string | REQUIRED YYYY-MM-DD. Must be a SUNDAY when granularity is WEEKLY_SUN_SAT. |
endrequired | string | REQUIRED 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. |
limit | number | |
offset | number | |
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.
| Parameter | Type | Description |
|---|
countryOrRegion | string[] | ISO 3166-1 alpha-2, e.g. ["US","GB","DE"]. |
genre | string[] | App Store genre names, free text, e.g. ["PRODUCTIVITY_UTILITIES"]. |
startrequired | string | REQUIRED YYYY-MM-DD. Must be a SUNDAY when granularity is WEEKLY_SUN_SAT. |
endrequired | string | REQUIRED YYYY-MM-DD. |
granularity | "WEEKLY_SUN_SAT" | "MONTHLY" | Default WEEKLY_SUN_SAT. DAILY does NOT exist on this report. |
limit | number | |
offset | number | |
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.
| Parameter | Type | Description |
|---|
detailId | string | Fetch 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. |
start | string | YYYY-MM-DD. Required unless end or an explicit eventTime filter is given. |
end | string | YYYY-MM-DD. |
filters | object[] | Extra conditions, e.g. [{"field":"campaignId","operator":"EQUALS","value":"123"}]. Non-time fields accept only EQUALS and IN. |
limit | number | |
offset | number | |
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.
| Parameter | Type | Description |
|---|
id | string | Fetch one budget order, including its invoice details and assigned ad accounts. |
filters | object[] | Query conditions, e.g. [{"field":"name","operator":"CONTAINS","value":"Q3"}]. |
limit | number | |
offset | number | |
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.
| Parameter | Type | Description |
|---|
namerequired | string | REQUIRED. |
startTimerequired | string | REQUIRED. Must be TOMORROW or later (midnight UTC) — Apple rejects today. |
endTime | string | Omit for an open-ended budget. |
amountrequired | string | REQUIRED total budget as a decimal string, e.g. "50000.00". |
currency | string | ISO 4217; defaults to the ad account’s currency, which it must match. |
primaryBuyerEmailrequired | string | REQUIRED — Apple bills and notifies this address. |
billingEmailrequired | string | REQUIRED. |
invoiceName | string | |
orderNumber | string | |
clientName | string | |
primaryBuyerName | string | |
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.
| Parameter | Type | Description |
|---|
idrequired | string | REQUIRED. |
name | string | |
startTime | string | Must still be TOMORROW or later. |
endTime | string | Can only SHORTEN an active budget order’s window. |
openEnded | boolean | true clears the end date entirely, making the budget open-ended. This is the only way to extend rather than shorten. |
amount | string | New total, e.g. "75000.00". Raise it to extend a budget nearing exhaustion. |
currency | string | |
adAccountId | string | Exactly one — Apple rejects more. |
orderNumber | string | |
invoiceName | string | |
clientName | string | |
primaryBuyerName | string | |
primaryBuyerEmail | string | |
billingEmail | string | |
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.
| Parameter | Type | Description |
|---|
kind | "keyword" | "negative_keyword" | Default keyword. |
op | "create" | "update" | Default create. |
itemsrequired | object[] | REQUIRED. create: [{adGroupId,text,matchType,bid?}] for keywords, or [{campaignId|adGroupId,text,matchType}] for negatives. update: [{id,bid?,status?}]. |
allowPartialSuccess | boolean | true keeps the items that succeeded when others fail. Apple’s default is all-or-nothing. |
currency | string | ISO 4217 for bids; defaults to the ad account’s currency. |
confirm | boolean | Required 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.
| Parameter | Type | Description |
|---|
supplySourcerequired | "APPSTORE" | "MAPS" | REQUIRED. APPSTORE for App Store campaigns, MAPS for Apple Maps. Decides which entity types exist. |
query | string | Name to search, minimum 2 characters. "*" returns everything at the entity level. |
entity | "Country" | "AdminArea" | "Locality" | "PostalCode" | Narrow to one granularity. |
countryCode | string | ISO 3166-1 alpha-2 to scope the search. |
eligible | boolean | false excludes soft-blocked geos entirely. Default includes them with eligibility data. |
geos | object[] | 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. |
limit | number | |
offset | number | |
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.
| Parameter | Type | Description |
|---|
filters | object[] | Scope to specific markets, e.g. [{"field":"countryCode","operator":"IN","value":["US","DE"]}]. |
limit | number | |
offset | number | |
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.
| Parameter | Type | Description |
|---|
id | string | Defaults 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.
| Parameter | Type | Description |
|---|
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.
| Parameter | Type | Description |
|---|
namerequired | string | REQUIRED. |
productFeaturesrequired | "APPSTORE_APP_MANUAL" | "BUSINESS_BRAND_MANUAL" | REQUIRED and IMMUTABLE. App Store or Apple Maps, never both. |
delegations | object[] | [{"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.
| Parameter | Type | Description |
|---|
id | string | Defaults to the ad account this connection resolved. |
name | string | |
delegations | object[] | 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.
| Parameter | Type | Description |
|---|
accountIdrequired | string | |
campaignIdrequired | string | from list_x_ads_campaigns |
name | string | |
dailyBudget | number | in the ad account's currency |
totalBudget | number | |
standardDelivery | boolean | false = accelerated: spend the budget as fast as the auction allows |
purchaseOrderNumber | string | |
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.
| Parameter | Type | Description |
|---|
accountIdrequired | string | |
lineItemIdrequired | string | from list_x_ads_line_items |
name | string | |
bidAmount | number | in 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 |
startTime | string | ISO 8601 |
endTime | string | |
dailyBudget | number | only if the campaign is not budget-optimised |
totalBudget | number | only if the campaign is not budget-optimised |
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.
| Parameter | Type | Description |
|---|
accountIdrequired | string | |
lineItemIdrequired | string | |
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.
| Parameter | Type | Description |
|---|
accountIdrequired | string | |
x_ads_targeting_search#
Find X targeting ids (interests, devices, languages…) read-only
Resolve X targeting ids by name for every vocabulary BEYOND location — INTEREST, CONVERSATION, PLATFORM, DEVICE, LANGUAGE, APP_STORE_CATEGORY, NETWORK_OPERATOR, TV_MARKET, TV_SHOW, EVENT. X's targeting ids are opaque (an interest is a 19-digit number, a device is “96”) and X has NO name-based targeting parameter, so this is the only way to obtain one — without it add_x_ads_targeting accepts vocabularies nobody can supply a value for. Pass a result as criteria:[{targetingType, targetingValue}]. Locations have their own tool: x_ads_geo_search. TV_SHOW requires a `locale`, which comes from kind:"TV_MARKET". Read-only, free.
| Parameter | Type | Description |
|---|
kindrequired | "INTEREST" | "CONVERSATION" | "PLATFORM" | "DEVICE" | "LANGUAGE" | "APP_STORE_CATEGORY" | "NETWORK_OPERATOR" | "TV_MARKET" | "TV_SHOW" | "EVENT" | |
query | string | filter by name |
osType | "ANDROID" | "IOS" | APP_STORE_CATEGORY |
countryCode | string | NETWORK_OPERATOR, e.g. US |
locale | string | TV_SHOW — required; get one from kind:"TV_MARKET" |
eventTypes | "CONFERENCE" | "HOLIDAY" | "MOVIE_RELEASE" | "MUSIC_AND_ENTERTAINMENT" | "OLYMPICS" | "OTHER" | "POLITICS" | "RECURRING" | "SPORTS" | EVENT |
limit | number | |
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.
| Parameter | Type | Description |
|---|
accountIdrequired | string | |
typerequired | "campaign" | "line_item" | "promoted_tweet" | "targeting_criterion" | |
idrequired | string | campaign/line-item id, or the id from list_x_ads_promoted_tweets / list_x_ads_targeting |
lineItemId | string | REQUIRED for type "targeting_criterion" — X cannot look one up without its line item |
confirm | boolean | omit on the first call to see the blast radius |
confirmName | string | the target's exact name — required once it has children, is live, or has spent |
confirmChildren | number | the 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.
| Parameter | Type | Description |
|---|
accountIdrequired | string | from list_x_ads_accounts |
campaignId | string | |
limit | number | |
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.
| Parameter | Type | Description |
|---|
accountIdrequired | string | from list_x_ads_accounts |
campaignIdrequired | string | from create_x_ads_campaign or list_x_ads_campaigns |
name | string | |
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" | |
bidAmount | number | required for MAX/TARGET; in the ad account's currency |
totalBudget | number | |
startTime | string | ISO 8601; defaults to now |
endTime | string | |
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.
| Parameter | Type | Description |
|---|
accountIdrequired | string | |
lineItemIdrequired | string | |
locationIds | string[] | opaque ids from x_ads_geo_search |
criteria | object[] | [{targetingType, targetingValue, operatorType?}] — operatorType defaults to EQ |
x_ads_geo_search#
Find X ads location ids read-only
Look up X targeting location ids by name — countries, regions, metros, cities and postal codes. X location ids are opaque hashes (Canada is 3376992a082d67c7), so this is the ONLY way to obtain one and there is no name-based targeting parameter to fall back on. Pass the ids to add_x_ads_targeting as locationIds. Read-only, free.
| Parameter | Type | Description |
|---|
queryrequired | string | a place name, e.g. "Canada" or "Austin" |
locationType | "COUNTRIES" | "REGIONS" | "METROS" | "CITIES" | "POSTAL_CODES" | |
limit | number | |
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.
| Parameter | Type | Description |
|---|
accountIdrequired | string | |
entity | "ACCOUNT" | "CAMPAIGN" | "FUNDING_INSTRUMENT" | "LINE_ITEM" | "MEDIA_CREATIVE" | "ORGANIC_TWEET" | "PROMOTED_ACCOUNT" | "PROMOTED_TWEET" | default CAMPAIGN |
entityIdsrequired | string[] | max 20 |
startTime | string | ISO 8601; defaults to 7 days before endTime |
endTime | string | ISO 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.
| Parameter | Type | Description |
|---|
limit | number | |
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.
| Parameter | Type | Description |
|---|
namerequired | string | a name for the pixel |
automaticAdvancedMatching | boolean | default 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.
| Parameter | Type | Description |
|---|
namerequired | string | |
eventTyperequired | string | e.g. order_created, lead_created, registration_completed — the plausible words "purchase", "lead" and "signup" are all REFUSED by ChatGPT Ads |
sourceIdsrequired | string[] | pixel id(s) this event is measured from — from create_openai_ads_pixel |
customEventName | string | for a non-standard event |
attributionWindowDays | number | 1-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.
| Parameter | Type | Description |
|---|
limit | number | |
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.
| Parameter | Type | Description |
|---|
namerequired | string | |
membersrequired | string[] | emails and/or phone numbers (already-SHA256-hashed emails are passed through as-is) |
description | string | |
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.
| Parameter | Type | Description |
|---|
namerequired | string | campaign name, at least 3 characters |
description | string | |
dailyBudget | number | daily cap in the AD ACCOUNT’S currency — ChatGPT Ads’ own minimum for a DAILY budget is 25.00 |
lifetimeBudget | number | lifetime 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. |
countries | string[] | 2-letter country codes |
locationIds | string[] | 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. |
customAudienceIds | string[] | 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. |
excludedCustomAudienceIds | string[] | 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. |
startTime | number | unix seconds |
endTime | number | unix seconds |
adGroup | object | build 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.
| Parameter | Type | Description |
|---|
campaignIdrequired | string | |
namerequired | string | |
description | string | |
maxBid | number | max 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 |
contextHints | string[] | up to 2,000, deduplicated server-side |
status | "active" | "paused" | default paused |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
adGroupIdrequired | string | |
name | string | internal name — defaults to the title |
creativerequired | object | |
status | "active" | "paused" | default paused |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
operationsrequired | object[] | 1–1000 operations: {operation_id, type, idempotency_key (creates) or target_resource_id (updates), input:{…}} |
validateOnly | boolean | true = FREE dry run; nothing is created or changed |
partialFailure | boolean | default true (independent operations continue after an error). false skips later operations after a failure and does NOT roll back what already completed. |
idempotencyKey | string | request-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.
| Parameter | Type | Description |
|---|
jobIdrequired | string | the id openai_ads_bulk returned |
limit | number | 1–100 results per page, default 100 |
after | string | the 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.
| Parameter | Type | Description |
|---|
feedIdrequired | string | the product feed already linked to this ad account |
productsrequired | object[] | [{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.
| Parameter | Type | Description |
|---|
level | "campaign" | "adGroup" | "ad" | inferred from which id you pass |
campaignId | string | |
adGroupId | string | |
adId | string | |
name | string | |
description | string | |
dailyBudget | number | |
lifetimeBudget | number | |
countries | string[] | |
locationIds | string[] | |
endTime | number | |
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. |
customAudienceIds | string[] | 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. |
excludedCustomAudienceIds | string[] | REPLACES the campaign’s excluded custom audiences — same wholesale rule as customAudienceIds. |
contextHints | string[] | REPLACES the existing list |
maxBid | number | |
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. |
creative | object | REPLACES the ad’s creative (text + image card only) |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
campaignIdrequired | string | |
dailyBudget | number | |
lifetimeBudget | number | |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
level | "ad_account" | "campaign" | "ad_group" | "ad" | inferred from which id you pass — default ad_account |
entityIds | string[] | the ids to report on — REQUIRED (ChatGPT Ads has no "everything" mode) |
campaignId | string | |
adGroupId | string | |
adId | string | |
since | string | YYYY-MM-DD |
until | string | YYYY-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.
| Parameter | Type | Description |
|---|
adIdrequired | string | the 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.
| Parameter | Type | Description |
|---|
pixelSnippetIdrequired | string | OpenAI’s pixel_id — create_openai_ads_pixel returns it as pixelSnippetId. NOT the clidsrc_… pixelId, which is the conversion source id. |
apiKeyrequired | string | the Conversions API key (create_openai_ads_conversion_api_key) — NOT the Advertiser API key the connector stores |
eventsrequired | object[] | 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[]}} |
validateOnly | boolean | true validates the batch against ChatGPT Ads and SAVES NOTHING — no conversion is recorded |
integrationSource | string | stable 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.
| Parameter | Type | Description |
|---|
namerequired | string | a descriptive name, 3–1000 characters — it can never be listed or renamed afterwards |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
name | string | new account display name |
url | string | the account’s primary destination — a public http(s) URL. OpenAI accepts this field even though their published parameter table omits it. |
faviconUrl | string | public image URL (or the brand home page) to upload and assign as the account favicon — minimum 128×128 |
faviconFileId | string | an 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.
| Parameter | Type | Description |
|---|
level | "account" | "campaign" | "adGroup" | "ad" | inferred from which id you pass — default campaign. "account" is the whole ad account and takes no id. |
campaignId | string | |
adGroupId | string | |
adId | string | |
statusrequired | "active" | "paused" | "archived" | active = start spending; paused = stop; archived = permanent (not available at level "account") |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
level | "campaign" | "adGroup" | "ad" | what to archive — default campaign |
campaignId | string | |
adGroupId | string | |
adId | string | |
confirm | boolean | REQUIRED true — archiving cannot be undone |
confirmName | string | the object’s EXACT name, required when it has children or is live |
confirmChildren | number | the 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.
| Parameter | Type | Description |
|---|
adAccountId | string | Pinterest ad account id — omit to list the ad accounts shared with this brand |
campaignId | string | one 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
level | "account" | "campaign" | "adGroup" | "ad" | which level to report at — omit and it is inferred from the ids you pass (none → the whole account) |
campaignIds | string[] | REQUIRED for campaign level; also the second half of the ad-level pinIds pair |
adGroupIds | string[] | REQUIRED for ad-group level — Pinterest has no all-of-them form there |
adIds | string[] | REQUIRED for ad level — Pinterest refuses /ads/analytics without it, unless you pass pinIds AND campaignIds instead |
pinIds | string[] | ad level only, and only TOGETHER with campaignIds — every ad promoting these Pins |
since | string | YYYY-MM-DD, default 30 days ago |
until | string | YYYY-MM-DD, default today |
granularity | "TOTAL" | "DAY" | "HOUR" | "WEEK" | "MONTH" | default TOTAL |
columns | string[] | 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
namerequired | string | campaign 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 |
dailyBudget | number | daily cap in the ad account’s currency |
lifetimeBudget | number | lifetime cap instead of a daily one — Pinterest then requires endTime |
startTime | number | Unix timestamp in SECONDS |
endTime | number | Unix timestamp in SECONDS |
adGroup | object | build 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
campaignIdrequired | string | the campaign this ad group belongs to |
namerequired | string | ad 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. |
bid | number | REQUIRED — 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. |
budget | number | ad-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" | |
targetingSpec | object | Pinterest 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 |
ad | object | create the ad in the same call |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
adGroupIdrequired | string | the ad group this ad lives in |
pinIdrequired | string | the 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 |
name | string | |
destinationUrl | string | where the click goes |
status | "ACTIVE" | "PAUSED" | "DRAFT" | default PAUSED |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
adGroupIdrequired | string | the 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 |
name | string | |
bid | number | what you pay per billable event, in the ad account’s currency |
budget | number | only 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" | |
autoTargeting | boolean | |
targetingSpec | object | REPLACES the whole targeting spec — get ids from search_pinterest_ads_targeting, never guess one |
trackingUrls | object | |
targetingTemplateIds | string[] | Pinterest refuses these alongside targetingSpec / trackingUrls / autoTargeting / placementGroup |
optimizationGoalMetadata | object | |
startTime | number | Unix timestamp in SECONDS |
endTime | number | Unix timestamp in SECONDS |
lifetimeFrequencyCap | number | CPM (IMPRESSION-billed) ad groups only, and Pinterest requires endTime with it |
campaignId | string | MOVE the ad group into a different campaign — it then spends from that budget |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
adIdrequired | string | the 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 |
name | string | |
destinationUrl | string | where the click goes |
creativeType | "REGULAR" | "VIDEO" | "SHOPPING" | "CAROUSEL" | "MAX_VIDEO" | "COLLECTION" | "IDEA" | "SHOWCASE" | "QUIZ" | "COLLAGE" | "APP" | |
adGroupId | string | move the ad into a different ad group |
trackingUrls | object | |
clickTrackingUrl | string | |
viewTrackingUrl | string | |
leadFormId | string | |
iosDeepLink | string | |
androidDeepLink | string | |
carouselDestinationUrls | string[] | |
pinId | string | DRAFT 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
campaignIdrequired | string | the campaign whose budget changes |
dailyBudget | number | |
lifetimeBudget | number | |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
level | "campaign" | "adGroup" | "ad" | what to change — default campaign |
campaignId | string | |
adGroupId | string | |
adId | string | |
statusrequired | "ACTIVE" | "PAUSED" | "ARCHIVED" | "DRAFT" | ACTIVE = start spending; PAUSED = stop; ARCHIVED = retire (Pinterest’s delete) |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
adAccountId | string | Pinterest ad account id — omit to use the brand’s single shared account |
level | "campaign" | "adGroup" | "ad" | what to archive — default campaign |
campaignId | string | |
adGroupId | string | |
adId | string | |
confirm | boolean | REQUIRED true — archiving is not self-service reversible |
confirmName | string | the object’s EXACT name, required when it has children or is live |
confirmChildren | number | the 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.
| Parameter | Type | Description |
|---|
adAccountId | string | Reddit 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
since | string | YYYY-MM-DD or full ISO timestamp, default 30 days ago |
until | string | YYYY-MM-DD or full ISO timestamp, default today |
fields | string[] | 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. |
filter | string | Reddit filter expression to restrict rows to particular ids/values |
timeZoneId | string | IANA 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
kind | "communities" | "geolocations" | "interests" | default communities |
query | string | keyword — required for communities, filters interests, searches cities for geolocations |
country | string | 2-letter country code, geolocations only |
postalCode | string | |
limit | number | max 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
budgetrequired | number | budget 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" | |
bidAmount | number | |
startTime | string | ISO 8601 |
endTime | string | |
targeting | object | same 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
budgetrequired | number | budget 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" | |
startTime | string | |
endTime | string | |
currency | string | |
targeting | object | |
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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
redditProfileIdrequired | string | the Reddit profile id (t2_…) from list_reddit_ads_profiles |
type | "TEXT" | "IMAGE" | "VIDEO" | "CAROUSEL" | |
limit | number | |
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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
redditProfileIdrequired | string | the Reddit profile id (t2_…) to publish as — from list_reddit_ads_profiles |
type | "TEXT" | "IMAGE" | "VIDEO" | "CAROUSEL" | default TEXT |
headlinerequired | string | the post title — this is the ad’s headline |
body | string | body copy, TEXT posts |
media | object[] | one entry for IMAGE/VIDEO, up to 6 for CAROUSEL |
callToAction | string | applies to every media entry that has none |
thumbnailUrl | string | required for VIDEO posts |
allowComments | boolean | Reddit 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
postIdrequired | string | the post id (t3_…) |
allowCommentsrequired | boolean | REQUIRED — 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.
| Parameter | Type | Description |
|---|
adAccountId | string | Reddit ad account id (a2_…) — omit when only one is shared |
namerequired | string | |
objective | "APP_INSTALLS" | "CATALOG_SALES" | "CLICKS" | "CONVERSIONS" | "IMPRESSIONS" | "LEAD_GENERATION" | "VIDEO_VIEWABLE_IMPRESSIONS" | default CLICKS — which is what Reddit calls website traffic |
spendCapCents | number | lifetime 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
campaignIdrequired | string | the campaign this ad group belongs to |
namerequired | string | |
budgetrequired | number | budget 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 |
bidAmount | number | bid in the ad account’s currency — required for paid bid types; ask reddit_ads_bid_suggestion |
startTimerequired | string | ISO 8601, e.g. 2026-08-15T00:00:00Z — Reddit rejects the create without one |
endTime | string | |
conversionPixelId | string | only needed when the ad account has more than one pixel |
optimizationGoal | string | cannot be changed later |
savedAudienceId | string | reuse a saved audience instead of spelling targeting out — from list_reddit_ads_saved_audiences |
targeting | object | |
schedule | object[] | 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
adGroupIdrequired | string | |
name | string | |
budget | number | |
goalType | "DAILY_SPEND" | "LIFETIME_SPEND" | |
bidAmount | number | |
bidType | "CPC" | "CPM" | "CPV" | "CPV6" | |
bidStrategy | "BIDLESS" | "MANUAL_BIDDING" | "MAXIMIZE_VOLUME" | "TARGET_CPX" | |
startTime | string | |
endTime | string | |
savedAudienceId | string | point this ad group at a saved audience instead |
targeting | object | same shape as create_reddit_ads_ad_group — REPLACES the existing targeting |
schedule | object[] | |
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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
adGroupIdrequired | string | the ad group whose targeting and budget this ad runs under |
namerequired | string | |
postIdrequired | string | the post to promote (t3_…) from create_reddit_ads_post or list_reddit_ads_posts |
clickUrl | string | leave unset for TEXT-post ads — Reddit rejects "Free form ads cannot have a click url" |
redditProfileId | string | the post author profile — required for catalog sales campaigns |
eventTrackers | object[] | 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
adIdrequired | string | |
name | string | |
postId | string | promote a different post |
clickUrl | string | pass 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
campaignIdrequired | string | |
name | string | |
spendCap | number | lifetime spend ceiling in the ad account’s currency |
budget | number | |
goalType | "DAILY_SPEND" | "LIFETIME_SPEND" | |
startTime | string | |
endTime | string | |
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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
kindrequired | "campaign" | "ad_group" | "ad" | |
idrequired | string | |
statusrequired | "ACTIVE" | "PAUSED" | "ARCHIVED" | "DELETED" | ACTIVE = start spending; PAUSED = stop; ARCHIVED = retire; DELETED = permanent, and blocked for 3h after any change |
confirm | boolean | REQUIRED 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").
| Parameter | Type | Description |
|---|
adAccountId | string | |
kindrequired | "campaign" | "ad_group" | "ad" | |
idrequired | string | |
status | "DELETED" | "ARCHIVED" | DELETED = permanent (default); ARCHIVED = out of service but reversible to PAUSED |
confirm | boolean | REQUIRED true |
confirmName | string | the object’s EXACT name, required when it has children or is live |
confirmChildren | number | the 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.
| Parameter | Type | Description |
|---|
adAccountId | string | Reddit 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
pixelId | string | from list_reddit_ads_pixels — only needed when the account has more than one |
testId | string | a test id from Events Manager ▸ Testing — events sent with it are visible there and NEVER counted in reporting |
eventsrequired | object[] | 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
name | string | filter by name |
limit | number | default 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
namerequired | string | what 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
customAudienceIdrequired | string | from create_reddit_ads_audience or list_reddit_ads_audiences |
action | "ADD" | "REMOVE" | default ADD |
usersrequired | object[] | 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
customAudienceIdrequired | string | |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
limit | number | default 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
namerequired | string | |
targetingrequired | object | same 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
savedAudienceIdrequired | string | |
name | string | |
targeting | object | REPLACES 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
savedAudienceIdrequired | string | |
confirm | boolean | REQUIRED true |
confirmName | string | the audience’s EXACT name, required when live ad groups use it |
confirmChildren | number | the 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
limit | number | default 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
namerequired | string | internal name — redditors do not see it |
promptrequired | string | the line shown above the form telling people what they are signing up for |
privacyLinkrequired | string | full https:// URL to your privacy policy — Reddit requires it |
questionsrequired | object[] | 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
since | string | YYYY-MM-DD or full ISO timestamp |
until | string | YYYY-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 |
entityIds | string[] | restrict to these objects |
includeChildEntities | boolean | also return changes to what lives under those objects |
memberIds | string[] | restrict to changes made by these Reddit members |
limit | number | default 50, max 200 |
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.
| Parameter | Type | Description |
|---|
advertiserId | string | from list_tiktok_ads_accounts — omit only when exactly one is reachable |
audienceIds | string[] | up to 100 ids |
detail | boolean | needs audienceIds — reads TikTok’s audience-detail endpoint instead, adding the rule and any error message it recorded |
page | number | |
pageSize | number | up 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.
| Parameter | Type | Description |
|---|
advertiserId | string | from list_tiktok_ads_accounts |
namerequired | string | ≤128 characters |
audienceTyperequired | "ENGAGEMENT" | "ENGAGEMENT_ORGANIC_VIDEO" | "ENGAGEMENT_LIVE_VIDEO" | "APP" | "PIXEL" | "LEAD_GENERATION" | "BUSINESS_ACCOUNT" | "TIKTOK_SHOP" | "OFFLINE" | |
rulesrequired | object[] | inclusion rules, combined with OR. Each is {event, retentionDays, eventSourceIds?, parameterFilters?} — e.g. {event:"COMPLETE PAYMENT", retentionDays:30, eventSourceIds:["<pixelId>"]} |
excludeRules | object[] | same shape; anyone matching these is removed from the audience |
retentionInDays | number | how 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. |
autoRefresh | boolean | default true at TikTok — keeps the audience updating with new matching people |
identityId | string | REQUIRED for ENGAGEMENT_ORGANIC_VIDEO and ENGAGEMENT_LIVE_VIDEO — from list_tiktok_ads_identities |
identityType | "TT_USER" | "BC_AUTH_TT" | |
identityAuthorizedBcId | string | REQUIRED 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.
| Parameter | Type | Description |
|---|
advertiserId | string | from list_tiktok_ads_accounts |
namerequired | string | ≤128 characters |
sourceAudienceIdrequired | string | the seed, from list_tiktok_ads_audiences — at least 100 people, and not itself a lookalike |
audienceSizerequired | "NARROW" | "BALANCED" | "BROAD" | |
includeSourcerequired | boolean | REQUIRED, no default — true keeps the seed’s own people inside the lookalike |
mobileOs | "ALL" | "IOS" | "ANDROID" | default ALL |
placementsrequired | string[] | one or more of "TikTok", "TopBuzz & BuzzVideo", "Pangle" — spelled exactly as TikTok publishes them |
locationIdsrequired | string[] | 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.
| Parameter | Type | Description |
|---|
advertiserId | string | from list_tiktok_ads_accounts |
audienceIdrequired | string | from list_tiktok_ads_audiences |
namerequired | string | the 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.
| Parameter | Type | Description |
|---|
advertiserId | string | from list_tiktok_ads_accounts |
audienceIdrequired | string | exactly one — TikTok takes a single custom_audience_id per call |
adgroupIdsrequired | string[] | 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.
| Parameter | Type | Description |
|---|
advertiserId | string | from list_tiktok_ads_accounts |
audienceIdsrequired | string[] | up to 100 |
confirm | boolean | REQUIRED true — without it nothing is deleted and you get the sentence describing what would be |
confirmCount | number | REQUIRED, 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.
| Parameter | Type | Description |
|---|
advertiserId | string | from list_tiktok_ads_accounts |
benchmarkAudienceIdrequired | string | the audience everything else is compared against |
comparisonAudienceIds | string[] | 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.
| Parameter | Type | Description |
|---|
bcId | string | filter to one |
page | number | |
pageSize | number | up 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.
| Parameter | Type | Description |
|---|
bcId | string | from list_tiktok_ads_business_centers — omit only when exactly one is reachable |
catalogId | string | filter to one |
regions | boolean | also return the regions a catalog in this Business Center may target |
overview | boolean | set false to skip the per-catalog product counts (one extra call each) |
page | number | |
pageSize | number | |
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.
| Parameter | Type | Description |
|---|
bcId | string | from list_tiktok_ads_business_centers |
namerequired | string | ≤128 characters |
catalogType | "ECOM" | "HOTEL" | "FLIGHT" | "DESTINATION" | "ENTERTAINMENT" | "AUTO_VEHICLE" | "AUTO_MODEL" | "MINI_SERIES" | "GENERIC" | default ECOM — what a shop selling physical products wants |
regionCoderequired | string | IMMUTABLE. The primary targeting region, e.g. US |
currencyrequired | string | IMMUTABLE. 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.
| Parameter | Type | Description |
|---|
bcId | string | from list_tiktok_ads_business_centers |
catalogIdrequired | string | from list_tiktok_ads_catalogs |
action | "list" | "create" | "delete" | default list |
feedId | string | required for delete; filters a list |
feedName | string | required for create |
updateMode | "OVERWRITE" | "INCREMENTAL" | REQUIRED on create and deliberately without a default — OVERWRITE REMOVES products missing from the feed |
uri | string | http/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 |
intervalCount | number | HOURLY 1-23, DAILY 1-30, MONTHLY 1-12 |
timezone | string | IANA zone, e.g. America/New_York — required alongside uri and intervalType |
hour | number | 0-23 |
minute | number | 0-59 |
dayOfMonth | number | |
username | string | only if the feed URL is password protected |
password | string | |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
bcId | string | from list_tiktok_ads_business_centers |
catalogIdrequired | string | from list_tiktok_ads_catalogs |
productIds | string[] | up to 1,000 — not together with skuIds |
skuIds | string[] | up to 1,000 — not together with productIds |
productSetIds | string[] | up to 100, from list_tiktok_ads_catalog_sets |
page | number | |
pageSize | number | up 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.
| Parameter | Type | Description |
|---|
bcId | string | from list_tiktok_ads_business_centers |
catalogIdrequired | string | from list_tiktok_ads_catalogs |
productSetId | string | filter to one |
productCount | boolean | default 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.
| Parameter | Type | Description |
|---|
bcId | string | from list_tiktok_ads_business_centers |
catalogIdrequired | string | from list_tiktok_ads_catalogs |
feedId | string | defaults to ALL feeds in the catalog |
issueLevel | "CRITICAL" | "WARNING" | |
issueCategory | "PRODUCT_ATTRIBUTES" | "PRODUCT_REVIEW" | "CATALOG" | "PIXEL_OR_EVENT" | "FILE_UPLOAD_OR_FEED" | |
page | number | |
pageSize | number | up to 20 |
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.
| Parameter | Type | Description |
|---|
advertiserId | string | |
namerequired | string | what this rule is called in TikTok Ads Manager — up to 512 characters |
applyObjectsrequired | object[] | what the rule watches |
conditionsrequired | object[] | when it fires |
actionsrequired | object[] | what it does when the conditions match |
notificationrequired | object | { notificationType: TASK_FINISH | ANY_CHANGES | NOT_NOTIFICATION, emailSetting } — note these emails go to the developer address on the app, not to the user |
ruleExecInforequired | object | { 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 |
tzone | string | |
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.
| Parameter | Type | Description |
|---|
advertiserId | string | |
ruleIdrequired | string | from list_tiktok_ads_rules |
namerequired | string | |
applyObjectsrequired | object[] | same shape as create_tiktok_ads_rule |
conditionsrequired | object[] | |
actionsrequired | object[] | |
notificationrequired | object | |
ruleExecInforequired | object | |
tzone | string | |
confirm | boolean | required when the rule is live and the new version can spend |
confirmScope | string | required 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.
| Parameter | Type | Description |
|---|
advertiserId | string | |
ruleIds | string[] | specific rules — omit to list them all |
status | "ON" | "OFF" | "DELETED" | |
dimension | "CAMPAIGN" | "ADGROUP" | "AD" | |
ruleInfo | string[] | rule ids or rule names to filter by |
tzone | string | |
page | number | |
pageSize | number | |
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.
| Parameter | Type | Description |
|---|
advertiserId | string | |
ruleId | string | for the DETAIL of one run — must be sent with execId from the same row |
execId | string | for 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?" |
ruleInfo | string[] | rule ids or names |
time | string[] | exactly two UTC datetimes: start and end |
dimension | "CAMPAIGN" | "ADGROUP" | "AD" | |
page | number | |
pageSize | number | |
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.
| Parameter | Type | Description |
|---|
advertiserId | string | |
ruleIdsrequired | string[] | the rules to change |
operateTyperequired | "TURN_ON" | "TURN_OFF" | "DELETE" | TURN_ON = start running it unattended; TURN_OFF = stop, reversible; DELETE = remove, NOT reversible |
confirm | boolean | REQUIRED true for every operation — call without it first to see what would happen |
confirmScope | string | REQUIRED 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.
| Parameter | Type | Description |
|---|
advertiserId | string | |
ruleIdrequired | string | from list_tiktok_ads_rules |
dimensionrequired | "CAMPAIGN" | "ADGROUP" | "AD" | |
dimensionIdsrequired | string[] | the objects to bind or unbind |
bindTyperequired | "BIND" | "UNBIND" | |
confirm | boolean | required to BIND onto a live rule that can spend |
confirmScope | string | required 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.
| Parameter | Type | Description |
|---|
advertiserId | string | |
eventSetIds | string[] | filter to specific sets |
name | string | filter 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.
| Parameter | Type | Description |
|---|
advertiserId | string | |
actionrequired | "create" | "update" | "delete" | |
eventSetId | string | required for update and delete — from list_tiktok_ads_offline_event_sets |
name | string | required for create; max 40 characters, and TikTok refuses a name already used on the account |
description | string | |
autoTracking | boolean | attach EVERY future campaign on this advertiser to this event set. Max ten per advertiser. Off unless you mean it. |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
advertiserId | string | |
eventSetIdrequired | string | the Offline Event Set these belong to — from list_tiktok_ads_offline_event_sets |
eventsrequired | object[] | 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.
| Parameter | Type | Description |
|---|
advertiserId | string | |
eventSetIds | string[] | filter to specific sets — TikTok accepts at most 50 ids |
name | string | filter 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.
| Parameter | Type | Description |
|---|
advertiserId | string | |
namerequired | string | max 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.
| Parameter | Type | Description |
|---|
advertiserId | string | |
levelrequired | "campaign" | "adgroup" | "ad" | which tier the ids belong to |
idsrequired | string[] | 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) |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
advertiserId | string | |
level | "campaign" | "adgroup" | which tier holds the budget — default campaign |
idrequired | string | the campaign or ad group id |
budgetrequired | number | the new budget in the advertiser’s own currency — must be above zero |
budgetMode | string | default BUDGET_MODE_DAY |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
advertiserId | string | |
levelrequired | "campaign" | "adgroup" | "ad" | which tier the ids belong to |
idsrequired | string[] | the campaign / ad group / ad ids to remove |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
ttoAccountId | string | from 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.
| Parameter | Type | Description |
|---|
ttoAccountId | string | |
countryCodesrequired | string[] | 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) |
stateProvinces | string[] | US only, and only when countryCodes is exactly ["US"] |
keywordSearch | string | fuzzy match, ≤100 characters |
contentLabelIds | string[] | what the creator posts about: from list_tiktok_creator_labels(labelType:"SEARCH") |
industryLabelIds | string[] | commercial categories they have worked in: same source |
languages | string[] | |
minFollowers | number | |
maxFollowers | number | |
minEngagementRate | number | 0-1, NOT a percentage |
maxEngagementRate | number | |
minMedianViews | number | |
maxMedianViews | number | |
minAvgViews | number | |
maxAvgViews | number | |
minCreatorPrice | number | the creator’s starting price, USD |
maxCreatorPrice | number | |
followerCountryCodes | string[] | 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" | |
page | number | |
pageSize | number | 1-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.
| Parameter | Type | Description |
|---|
ttoAccountId | string | |
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 |
labelIdrequired | string | from list_tiktok_creator_labels(labelType:"RANKING"), matching rankingType |
countryCode | string | US: the only country TikTok ranks |
page | number | |
pageSize | number | 1-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.
| Parameter | Type | Description |
|---|
ttoAccountId | string | |
handlesrequired | string[] | 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.
| Parameter | Type | Description |
|---|
ttoAccountId | string | |
brandProfileIds | string[] | filter, max 20 |
page | number | |
pageSize | number | |
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.
| Parameter | Type | Description |
|---|
ttoAccountId | string | |
brandNamerequired | string | PERMANENT: ≤60 characters |
brandIndustryIdrequired | string | PERMANENT: TikTok’s Brand Profile industry id |
brandWebsiterequired | string | must start with https:// |
logoUrlrequired | string | PERMANENT: JPG/PNG/GIF, 1:1, ≤5MB, public URL |
tiktokAccountUrl | string | https://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.
| Parameter | Type | Description |
|---|
ttoAccountId | string | |
campaignIds | string[] | max 5 |
campaignType | "CAMPAIGN" | "BRAND_LINK" | TikTok defaults to CAMPAIGN: ask for BRAND_LINK to see brand-level ones |
page | number | |
pageSize | number | 1-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.
| Parameter | Type | Description |
|---|
ttoAccountId | string | |
campaignType | "CAMPAIGN" | "BRAND_LINK" | default CAMPAIGN |
campaignName | string | required for CAMPAIGN; shown to creators, ≤120 characters: TikTok suggests [product name - product description] |
campaignDescription | string | ≤1000 characters: positioning, audience, core features |
brandProfileId | string | required for BRAND_LINK; optional alternative to brandName on CAMPAIGN |
brandName | string | ≤60 characters, when there is no Brand Profile |
handleNames | string[] | required for CAMPAIGN: TikTok usernames without the @, max 100 |
advertiserIds | string[] | max 50: these ad accounts get AUTOMATIC Spark Ads rights on every linked video |
sparkAdsAuthorizationDays | number | 0-365; REQUIRED when advertiserIds is given |
anchorId | string | from manage_tiktok_tto_anchor |
sendNotification | boolean | default false: true puts an invitation in each creator’s TikTok inbox |
businessAccountHandle | string | allowlist-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.
| Parameter | Type | Description |
|---|
ttoAccountId | string | |
campaignIdrequired | string | |
campaignType | "CAMPAIGN" | "BRAND_LINK" | default CAMPAIGN |
handleNames | string[] | creators to ADD: max 100, CAMPAIGN only |
advertiserIds | string[] | ad accounts to ADD: max 50 |
sendNotification | boolean | default false |
link_tiktok_tto_video#
Ask a creator to link a video to a TikTok One campaign
Ask a creator to link one of their public videos to a TikTok One campaign, or withdraw that request. THIS PUTS A NOTIFICATION IN A REAL PERSON’S TIKTOK INBOX, AND REPEATING IT IS A REMINDER RATHER THAN A RETRY: TikTok refuses a second LINK within 24 hours of the last, allows at most two reminders in total, and counts them; so never re-send after a transient failure without reading list_tiktok_tto_link_requests first. REVOKE has its own one-way rule: it works only while the creator has neither accepted nor rejected, TikTok allows it once per request, and there is no un-revoke. TikTok also refuses a video already linked to any other campaign, and refuses one whose creator was never invited. Free.
| Parameter | Type | Description |
|---|
ttoAccountId | string | |
campaignIdrequired | string | |
videoIdrequired | string | the creator’s public video: from list_tiktok_tto_campaigns or tiktok_tto_campaign_report |
action | "LINK" | "REVOKE" | default LINK; a second LINK is a REMINDER |
list_tiktok_tto_link_requests#
List TikTok One video-linking requests read-only
Every video-linking request on this TikTok One account and where each one stands; waiting on the creator, approved, rejected or withdrawn; plus how many reminders are left on it. READ THIS BEFORE RE-SENDING ANYTHING: a second LINK is a reminder into a stranger’s inbox and TikTok caps them at two. Rows also carry the link request id, which the invited creator needs if they want to answer through their own TikTok One tools. Read-only, free.
| Parameter | Type | Description |
|---|
ttoAccountId | string | |
campaignIds | string[] | max 50 |
handles | string[] | max 50 |
campaignType | "CAMPAIGN" | "BRAND_LINK" | omit to see every campaign |
page | number | |
pageSize | number | 1-50, default 10 |
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.
| Parameter | Type | Description |
|---|
ttoAccountId | string | |
campaignIdrequired | string | |
countryCode | string | one of the campaign’s own country codes: resolved automatically when it has only one |
startDate | string | YYYY-MM-DD (UTC+0), paired with endDate: together they add per-day figures |
endDate | string | YYYY-MM-DD (UTC+0), paired with startDate |
campaignType | "CAMPAIGN" | "BRAND_LINK" | |
page | number | |
pageSize | number | 1-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.
| Parameter | Type | Description |
|---|
ttoAccountId | string | |
videoIdrequired | string | a video the creator has already linked to the campaign |
authorizationDays | number | 1-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.
| Parameter | Type | Description |
|---|
ttoAccountId | string | |
videoIdrequired | string | |
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.
| Parameter | Type | Description |
|---|
ttoAccountId | string | |
action | "list" | "create" | "delete" | default list |
anchorId | string | required for delete |
anchorIds | string[] | filters a list, max 100 |
categoryLabelId | string | required for create: TikTok’s product/service category, and it decides which countries the anchor may use |
countryCode | string | required for create: the anchor is invisible outside it |
landingPageUrl | string | required 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 |
anchorName | string | required for create: an internal label TikTok never shows viewers, ≤32 characters |
thumbnailUrl | string | required for create: public URL, exactly 210x375, under 2MB |
page | number | |
pageSize | number | 1-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.
| Parameter | Type | Description |
|---|
adAccountId | string | from 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
level | "adaccount" | "campaign" | "adsquad" | "ad" | default campaign |
id | string | the 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. |
startTime | string | ISO 8601, on the start of an hour (22:00, never 22:45) |
endTime | string | ISO 8601, on the start of an hour |
fields | string | comma-separated metrics — default impressions,spend,swipes |
breakdown | string | object-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.
| Parameter | Type | Description |
|---|
kind | "country" | "region" | "metro" | "age_group" | "gender" | "language" | "os_type" | "interest" | default country |
countryCode | string | REQUIRED for region and metro — two-letter code, e.g. "us" |
taxonomy | string | for kind:interest — scls, vac or shp |
query | string | filter the returned list to matching entries |
limit | number | |
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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
resourceType | string | override 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
url | string | public 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. |
mediaId | string | build 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 |
name | string | label in Snapchat Ads Manager |
headlinerequired | string | REQUIRED by Snapchat. MAX 34 CHARACTERS — the text shown beneath the brand name |
brandName | string | MAX 32 CHARACTERS |
callToAction | string | the swipe-up button label; must fit the creative type |
landingPageUrl | string | where a swipe-up goes |
creativeType | string | default SNAP_AD |
profileIdrequired | string | REQUIRED — 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. |
creative | boolean | set 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.
| Parameter | Type | Description |
|---|
adAccountId | string | from list_snapchat_ads_accounts — omit only when exactly one is reachable |
namerequired | string | the campaign name in Snapchat Ads Manager — max 375 characters |
objective | string | AWARENESS_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. |
startTime | string | ISO 8601 — defaults to now, which is harmless because the campaign is paused |
endTime | string | ISO 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
campaignIdrequired | string | the campaign this ad squad belongs to |
namerequired | string | max 375 characters |
countriesrequired | string[] | REQUIRED — two-letter country codes, e.g. ["us"]. Snapchat refuses an ad squad with no geo targeting. |
dailyBudget | number | in the ad account’s own currency — 50 means fifty. Hermoso converts to micro. Minimum 5. |
dailyBudgetMicro | number | ONLY if you have already multiplied by 1,000,000. Passing this AND dailyBudget is refused. |
lifetimeBudget | number | in the ad account’s own currency — an alternative to a daily budget |
lifetimeBudgetMicro | number | |
bid | number | in the ad account’s own currency — required unless bidStrategy is AUTO_BID |
bidMicro | number | ONLY 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. |
optimizationGoal | string | what Snapchat optimises delivery toward — default IMPRESSIONS. Others include SWIPES, VIDEO_VIEWS, APP_INSTALLS, PIXEL_PURCHASE, LEAD_FORM_SUBMISSIONS. |
billingEvent | string | IMPRESSION — 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 |
minAge | string | e.g. "18" |
maxAge | string | |
gender | "MALE" | "FEMALE" | "OTHER" | leave unset to reach everyone — an absent gender is no gender restriction, not a default |
languages | string[] | 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") |
interests | string[] | Snapchat interest category ids such as ["SLC_1"] — resolve with search_snapchat_ads_targeting(kind:"interest", taxonomy:"scls"). Ids are NOT interchangeable between taxonomies. |
regions | string[] | 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. |
metros | string[] | metro/DMA ids inside the one country named in countries — resolve with kind:"metro" |
postalCodes | string[] | postal codes inside the one country named in countries |
regulatedContent | boolean | declare regulated content (alcohol, gambling and the like) |
startTime | string | ISO 8601 |
endTime | string | ISO 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
adSquadIdrequired | string | the ad squad this ad belongs to |
namerequired | string | max 375 characters |
creativeIdrequired | string | from upload_snapchat_ads_creative — NOT a mediaId |
type | string | default 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
level | "adsquad" | adsquad — the only tier that holds a budget on Snapchat |
idrequired | string | the ad squad id |
dailyBudget | number | in the ad account’s own currency — minimum 5 |
dailyBudgetMicro | number | ONLY if already multiplied by 1,000,000; never alongside dailyBudget |
lifetimeBudget | number | |
lifetimeBudgetMicro | number | |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
levelrequired | "campaign" | "adsquad" | "ad" | which tier these ids belong to |
idsrequired | string[] | the objects to change |
statusrequired | "ACTIVE" | "PAUSED" | ACTIVE arms real spend |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
levelrequired | "campaign" | "adsquad" | "ad" | which tier these ids belong to |
idsrequired | string[] | the objects to delete |
confirm | boolean | REQUIRED 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).
| Parameter | Type | Description |
|---|
hook | string | WHAT 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. |
subject | string | WHAT 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. |
organizationId | string | numeric Page id from list_linkedin_pages |
textrequired | string | the post text |
linkUrl | string | publish 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. |
linkTitle | string | the 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. |
linkDescription | string | the sub-line on the preview card. Same rule as linkTitle: absent means blank, because LinkedIn will not fetch it. |
linkThumbnailUrl | string | a Hermoso-hosted image used as the card’s picture (uploaded to LinkedIn for you). Without it the card has no image. |
imageUrl | string | a 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. |
videoUrl | string | a Hermoso-hosted video URL — a render, or the user’s own footage via upload_file. LinkedIn processes it before publishing, which takes a minute. |
imageUrls | string[] | 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. |
idempotencyKey | string | SAFE 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. |
allowDuplicate | boolean | post 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. |
altText | string | 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. |
title | string | video title |
captionsSrt | string | CLOSED 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. |
videoThumbnailUrl | string | the 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.
| Parameter | Type | Description |
|---|
postUrnrequired | string | the full LinkedIn post urn returned by publishing |
actionrequired | "edit" | "delete" | |
text | string | the new copy, for action:"edit" |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
organizationId | string | numeric Page id from list_linkedin_pages — omit only when exactly one Page is shared with this brand |
startDate | string | YYYY-MM-DD, default 28 days ago (LinkedIn keeps 12 months) |
endDate | string | YYYY-MM-DD, default today |
postUrns | string[] | 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.
| Parameter | Type | Description |
|---|
adAccountId | string | LinkedIn ad account id — omit to list the reachable accounts |
campaignId | string | also return the CREATIVES (the actual ads) under this campaign, each with its intendedStatus, whether it isServing, and LinkedIn’s own servingHoldReasons |
campaignIds | string[] | 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
campaignIds | string[] | |
since | string | YYYY-MM-DD, default 30 days ago |
until | string | YYYY-MM-DD |
pivot | string | CAMPAIGN (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 |
fields | string[] | 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.
| Parameter | Type | Description |
|---|
locations | string[] | geo URNs or bare geo ids, e.g. ["103644278"] for the United States |
include | object | more facets ANDed onto locations, e.g. {titles:[…], industries:[…], seniorities:[…], staffCountRanges:[…]} |
targetingCriteria | object | LinkedIn’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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
locations | string[] | |
include | object | |
targetingCriteria | object | |
campaignType | "TEXT_AD" | "SPONSORED_UPDATES" | "SPONSORED_INMAILS" | default SPONSORED_UPDATES |
bidType | "CPM" | "CPC" | "CPV" | default CPM |
matchType | "EXACT" | "AUDIENCE_EXPANDED" | default EXACT |
objectiveType | string | optional — LinkedIn prices some objective/optimization combinations and not others |
currency | string | |
dailyBudget | number | |
countryCode | string | |
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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
namerequired | string | campaign group name |
totalBudget | number | optional group-level total budget, in the ad account’s currency |
currencyCode | string | must match the ad account’s currency or LinkedIn refuses it |
status | "DRAFT" | "ACTIVE" | "PAUSED" | "ARCHIVED" | default DRAFT |
startDate | string | YYYY-MM-DD — when campaigns under this group may start; defaults to today |
endDate | string | YYYY-MM-DD — REQUIRED by LinkedIn whenever totalBudget is set |
runSchedule | object | LinkedIn raw runSchedule object, passed through; startDate/endDate are easier |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
campaignGroupIdrequired | string | the campaign group this campaign lives in — LinkedIn requires one |
namerequired | string | |
type | string | LinkedIn campaign type, e.g. SPONSORED_UPDATES |
objectiveType | string | LinkedIn objective, e.g. WEBSITE_VISIT |
costType | string | CPM / CPC / CPV |
dailyBudget | number | |
totalBudget | number | |
unitCost | number | the bid |
currencyCode | string | |
locale | object | |
country | string | campaign 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. |
language | string | campaign locale language, default en |
locations | string[] | REQUIRED unless targetingCriteria is given — geo URNs or bare geo ids from search_linkedin_ads_targeting |
include | object | further targeting facets ANDed onto locations, e.g. {titles:[…], industries:[…], seniorities:[…], staffCountRanges:[…]} |
exclude | object | facets to exclude, same shape |
excludeLocations | string[] | |
targetingCriteria | object | LinkedIn’s raw targeting object — passed through and overrides locations/include/exclude |
startDate | string | YYYY-MM-DD; defaults to today |
endDate | string | YYYY-MM-DD; omit for an open-ended run |
runSchedule | object | |
organizationId | string | the LinkedIn company Page this campaign advertises — LinkedIn REQUIRES it for Sponsored Content, Dynamic and Lead Gen campaigns |
format | string | |
optimizationTargetType | string | |
audienceExpansionEnabled | boolean | |
offsiteDeliveryEnabled | boolean | also serve on the LinkedIn Audience Network; default false |
politicalIntent | "POLITICAL" | "NOT_POLITICAL" | "NOT_DECLARED" | |
status | "DRAFT" | "ACTIVE" | "PAUSED" | "ARCHIVED" | default DRAFT |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
campaignIdrequired | string | |
dailyBudget | number | |
totalBudget | number | |
currencyCode | string | |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
level | "campaign" | "campaignGroup" | "creative" | default campaign |
campaignId | string | |
campaignGroupId | string | |
creativeId | string | |
statusrequired | "ACTIVE" | "PAUSED" | "ARCHIVED" | "DRAFT" | |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
facet | string | facet name, default "locations" — e.g. locations, titles, industries, seniorities, staffCountRanges, skills, jobFunctions, interests, employers, degrees, fieldsOfStudy, memberBehaviors |
queryrequired | string | the name to search for, e.g. "United States", "Software Engineer", "Marketing" |
language | string | default en |
country | string | default 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
campaignIdrequired | string | the campaign this ad belongs to |
name | string | the creative’s name in Campaign Manager |
postUrn | string | sponsor an EXISTING post — urn:li:share:… / urn:li:ugcPost:… (what post_to_linkedin_page returned) |
organizationId | string | the company Page that authors the Direct Sponsored Content post; omit only when the connection administers exactly one Page |
text | string | the ad copy |
imageUrl | string | a Hermoso-hosted image to attach — a render, or the user’s OWN creative put through upload_file first (an arbitrary external host is refused) |
videoUrl | string | a Hermoso-hosted video to attach — a render, or the user’s own footage via upload_file |
title | string | |
altText | string | |
allowReshare | boolean | |
intendedStatus | "DRAFT" | "ACTIVE" | "PAUSED" | "ARCHIVED" | default DRAFT |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
level | "campaign" | "campaignGroup" | "creative" | default campaign |
campaignId | string | |
campaignGroupId | string | |
creativeId | string | |
confirmrequired | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
namerequired | string | shown in Campaign Manager and in every report |
typerequired | string | the conversion behaviour, e.g. LEAD, PURCHASE, SIGN_UP, QUALIFIED_LEAD, KEY_PAGE_VIEW |
postClickAttributionWindowSize | number | 1, 7, 30 or 90 days (365 for the five long-window types). LinkedIn default 30. |
viewThroughAttributionWindowSize | number | same 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 |
enabled | boolean | default true. A disabled rule REFUSES streamed events. |
associateAllCampaigns | boolean | attach to up to 200 ACTIVE campaigns now — ask the user first |
associateCampaignsByObjective | boolean | attach 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
conversionIdrequired | string | the rule id, e.g. "104012" |
name | string | |
enabled | boolean | false RETIRES it — streamed events are then refused |
postClickAttributionWindowSize | number | |
viewThroughAttributionWindowSize | number | |
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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
conversionIdrequired | string | the conversion rule id, or its urn:lla:llaPartnerConversion:… URN |
campaignIdsrequired | string[] | LinkedIn campaign ids (list_linkedin_ads_campaigns has them) |
remove | boolean | detach 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.
| Parameter | Type | Description |
|---|
adAccountId | string | |
conversionId | string | default conversion rule id for every event that does not name its own |
eventsrequired | object[] | 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.
| Parameter | Type | Description |
|---|
objectIdrequired | string | the campaign / ad set / ad id (from list_meta_ads) |
adAccountIdrequired | string | ad account id (for auth + scope) |
name | string | new name |
status | "ACTIVE" | "PAUSED" | "ARCHIVED" | ACTIVE starts spend (needs confirm:true); PAUSED / ARCHIVED are safe |
dailyBudgetUsd | number | new daily budget in USD (1–10000; ad-set or campaign level) |
targeting | object | replacement targeting spec (ad sets) — a Meta targeting object |
confirm | boolean | REQUIRED 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.
| Parameter | Type | Description |
|---|
objectIdrequired | string | the campaign / ad set / ad id to delete |
adAccountIdrequired | string | ad account id (for auth + scope) |
confirm | boolean | REQUIRED true — deletion is permanent |
confirmChildren | number | the 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.
| Parameter | Type | Description |
|---|
postIdrequired | string | the 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 |
message | string | the new post text (action:"edit" on facebook) |
pageId | string | which 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 |
confirm | boolean | REQUIRED true to delete (permanent) |
confirmName | string | Instagram only: the post’s exact caption line, exactly as the unconfirmed call reported it — required once the post has any likes or comments |
confirmChildren | number | Instagram only: how many carousel cards the delete also destroys, as the unconfirmed call reported |