Build and run paid campaigns across eleven ad platforms. Everything is created paused.
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, campaign_criterion, ad_group_criterion, conversion_action, campaign_conversion_goal, search_term_view, age_range_view, gender_view, geographic_view, asset, change_event and every other documented GAQL report resource (the refusal names the full list if one is missing). Campaign network settings (Search partners / Display) are readable here as campaign.network_settings.* and changed with set_google_ads_networks. 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) |
confirmName | string | when archiving or removing: its EXACT name, as the unconfirmed call names it. Required when it has children or is live |
confirmChildren | number | when archiving or removing: the exact number of children the unconfirmed call reported. Required when it has any |
loginCustomerId | string | manager id if operating through an MCC |
set_google_ads_networks#
Change where a Google Ads campaign serves (Search partners / Display)
Change WHERE an existing Google Ads campaign serves: Google Search, Search partners (target_search_network) and the Display Network (target_content_network), each true/false. The classic use is turning Search partners OFF on a Search campaign, or Display off. Current settings are read first and a no-op says so. On a LIVE (ENABLED) campaign this moves real spend on the next auction — show the user the before → after, get an explicit yes, then call again with confirm:true. dryRun:true validates with Google and writes nothing. The result is READ BACK from Google before you are told it took; Google’s own rules (a Display campaign cannot take Google Search on, a Search campaign keeps Google Search on) are relayed by name.
| Parameter | Type | Description |
|---|
customerId | string | 10-digit account id (dashes ok) — omit to use the brand’s selected default account |
campaignIdrequired | string | the campaign to change |
googleSearch | boolean | serve on Google Search (target_google_search) |
searchPartners | boolean | serve on Google search partner sites (target_search_network) |
display | boolean | serve on the Google Display Network (target_content_network) |
confirm | boolean | REQUIRED true to change a LIVE (ENABLED) campaign |
dryRun | boolean | validate with Google, write nothing |
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 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 |
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, or with connect_connector, 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 |
search_microsoft_ads_profiles#
Find Microsoft Advertising LinkedIn profile ids read-only
Find the LinkedIn profile ids Microsoft Advertising can target: a company (CompanyName), an Industry or a JobFunction. A company is found with Microsoft’s own company search (3+ characters); industries and job functions are matched against the profile list Microsoft publishes for them. Microsoft publishes no lookup for JobTitle or JobSeniority ids, so those cannot be searched here; an id you already have can still be targeted. Read-only, free. Pass the ids to set_microsoft_ads_profile_targeting.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id; omit to use the brand’s single shared account |
profileTyperequired | "CompanyName" | "Industry" | "JobFunction" | |
queryrequired | string | part of the name to find (3+ characters for a company) |
languageLocale | string | en (default), fr, de, it, pt-BR, es or zh-Hant |
limit | number | 1-100, default 25 |
list_microsoft_ads_profile_targeting#
Read a Microsoft Advertising campaign’s LinkedIn profile targeting read-only
Read the LinkedIn profile targeting on a Microsoft Advertising campaign: every company, industry, job function, seniority and job title criterion with its bid adjustment and criterion id, read from Microsoft. A profile type Microsoft would not read is named as unread, never reported as none. Read-only, free.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id; omit to use the brand’s single shared account |
campaignIdrequired | string | |
set_microsoft_ads_profile_targeting#
Set LinkedIn profile targeting on a Microsoft Advertising campaign
Target LinkedIn profiles on a Microsoft Advertising Search, Shopping or Dynamic Search Ads campaign: add companies, industries, job functions, seniorities or job titles, each with an optional bid adjustment (whole percent, -90 to 900), or change an existing adjustment by criterion id (list_microsoft_ads_profile_targeting shows it). Find profile ids with search_microsoft_ads_profiles. On an ACTIVE campaign this changes bids on the very next auction, so show the user the changes, get an explicit yes, then call with confirm:true. The reply is what Microsoft reads back, and a change that does not read back is named. Removing a profile criterion is not available here; an adjustment of 0 has no effect on bids.
| Parameter | Type | Description |
|---|
accountId | string | Microsoft ad account id; omit to use the brand’s single shared account |
campaignIdrequired | string | |
add | object[] | |
update | object[] | |
confirm | boolean | REQUIRED true when the campaign is ACTIVE |
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. Every campaign, ad group and ad row carries servingIssues, OpenAI’s own list of what is blocking delivery (payment method, brand review, budget spent, ad in review, landing page not crawlable, country policy…) with a plain meaning each: null means OpenAI was not asked, [] means it reports no blocker, which is still not a promise of impressions. 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, or connect_connector): 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, and CONVERSIONS with CPA, post-click conversion rate and attributed order sales / ROAS, in the ad account currency. OpenAI returns conversions only with granularity none or daily and with no segment or a country/device segment (never platform or product), and CPA, conversion rate and sales only with no segment at all; the report adds every column OpenAI allows for the shape you asked and its note names any it left out, so a missing column is their limit, not a zero. These conversions are CLICK-THROUGH (the ones CPA and bidding use); view-through lives only in openai_ads_conversions and is never added to them. The scope follows the id you pass: none = the whole ad account, or campaignId / adGroupId / adId. PRODUCT-FEED CAMPAIGNS serving in the multi-product CAROUSEL unit also report per-card numbers: ask for them in `fields` — carousel_product_card_impressions, carousel_product_card_clicks, product_impressions, product_clicks, product_spend, product_ctr, product_cpc, product_cpm plus product_title / product_price / product_feed_id and the other product_* fields (complete from 2026-08-20 on a rolling 30-day basis); they come back under each row’s `fields`. A card impression counts when a product card becomes viewable and is NOT a billable impression, so never add it to spend math. 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" | "platform" | extra group-by dimension (at most one). platform splits rows by ChatGPT app or browser (ios_app, android_app, desktop_web, ios_web, android_web, and web for rows from before 2026-09-10, which OpenAI does not split retroactively); it reports delivery metrics only, not conversions |
limit | number | rows per page, up to 2000 |
filters | object[] | keep only matching rows, e.g. {field:"campaign.status",operator:"IN",value:["active"]} or {field:"ad.clicks",operator:"GREATER_THAN",value:100} |
sort | object[] | order rows, e.g. {field:"campaign.spend",direction:"desc"} |
includeZeroImpressions | boolean | also list campaigns / ad groups / ads with no impressions (unsegmented reports only) |
after | string | nextAfter from the previous page; limit goes up to 2000 rows |
conversions | boolean | default true: add conversions, CPA, conversion rate and sales where OpenAI allows them. false leaves them out. |
fields | string[] | extra insight fields by name, e.g. product_title, product_price, carousel_product_card_impressions; each row returns them under `fields` |
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 |
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: 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. MATCH RATE: the snippet’s oaiq("init", { user: {…} }) call accepts email_sha256, phone_number_sha256, external_id_sha256, first_name_sha256, last_name_sha256 (all SHA-256, lowercase hex) plus raw country, city, region and postal_code — tell the site owner to pass whatever they know about a logged-in visitor, because every field improves conversion matching. 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[] | exactly ONE source id from create_openai_ads_pixel (ChatGPT Ads takes one source per event; create one event per pixel) |
customEventName | string | for a non-standard event |
attributionWindowDays | number | default 30, which is what OpenAI recommends; 1-90 |
list_openai_ads_audiences#
List ChatGPT Ads custom audiences read-only
List the custom audiences on the connected ChatGPT Ads account. Pass intendedUse to see only the ones eligible for exclusion, inclusion or a bid multiplier (inclusion and bid multipliers need roughly 25,000 matched users). Read-only, free.
| Parameter | Type | Description |
|---|
limit | number | |
intendedUse | "exclusion" | "inclusion" | "bid_multiplier" | only audiences eligible for this use |
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. OR pass fileUrl: a public link to a UTF-8 .csv or .txt customer list (a CSV needs a header naming its column: email, phone_number, email_sha256, phone_number_sha256 or gaid; identifierResolution "auto" reads several columns at once). A file is uploaded to ChatGPT Ads as it is and OpenAI hashes raw emails and phones itself; the members list is hashed here first. Matching is asynchronous, so read the audience back for its matched count. 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 | |
members | string[] | emails and/or phone numbers (already-SHA256-hashed emails are passed through as-is); or use fileUrl |
fileUrl | string | public link to a UTF-8 .csv or .txt customer list; upload_file turns a local file into one |
fileName | string | the file name with .csv or .txt, when the link hides it |
identifierType | "email" | "phone" | "email_sha256" | "phone_number_sha256" | "gaid" | the one identifier the file holds (inferred from a CSV header when omitted) |
identifierResolution | "auto" | auto = read every identifier column of a mixed CSV |
description | string | |
get_openai_ads_audience#
Read one ChatGPT Ads custom audience read-only
Read one ChatGPT Ads custom audience: its processing status, how many users matched, what it can actually be USED for, and its membership revision. Read-only, free. STATUS is not the same question as eligibility — "ready" only means processing succeeded. EXCLUSION (suppression) has NO minimum size, but INCLUSION and bid multipliers need roughly 25,000 matched users, so a small list used for inclusion simply never serves. The membershipRevision this returns is what update_openai_ads_audience_members REQUIRES for a replace.
| Parameter | Type | Description |
|---|
audienceIdrequired | string | |
update_openai_ads_audience_members#
Add, remove or replace ChatGPT Ads audience members
Change who is IN a ChatGPT Ads custom audience. Pass plain emails, phone numbers and/or Google Advertising IDs (GAID, UUID-shaped) in ONE list — identifier types may be mixed in a single request: Hermoso normalises and SHA-256 hashes emails and phones locally and only the digests are sent; a GAID rides raw, as the API defines it. SIZE RULES (OpenAI, read 2026-09-03): an audience of ANY size, even empty, can be used for EXCLUSION once ready; for inclusion or bid adjustments plan on 25,000 matched users; there is no 5M ceiling any more, and the reported size is a privacy band (under_25k, 25k_100k, 100k_500k, 500k_1m, 1m_5m, 5m_plus). THREE OPERATIONS: "add" puts people in, "remove" takes the named people OUT (the only way to stop advertising to a segment already in a list), "replace" swaps the WHOLE membership. THIS IS ASYNCHRONOUS — ChatGPT Ads returns an operation id and the change is NOT applied when this returns; poll it with get_openai_ads_audience_operation until it reports succeeded or failed. A replace REQUIRES expectedRevision (read membershipRevision from get_openai_ads_audience) so a wholesale swap cannot land on top of someone else’s change; a mismatch is refused by ChatGPT Ads and applies nothing.
| Parameter | Type | Description |
|---|
audienceIdrequired | string | |
operationrequired | "add" | "remove" | "replace" | add | remove | replace — replace swaps the entire membership |
membersrequired | string[] | emails and/or phone numbers (already-SHA256-hashed emails pass through as-is) |
expectedRevision | number | string | REQUIRED for replace, optional for add/remove — membershipRevision from get_openai_ads_audience |
list_openai_ads_audience_operations#
List ChatGPT Ads audience membership operations read-only
List the membership operations (add, remove, replace) ChatGPT Ads has accepted on one custom audience, each with its status. Use it to find an operation whose id was lost, or to see what is still pending, before get_openai_ads_audience_operation, cancel_openai_ads_audience_operation or resume_openai_ads_audience_operation. Read-only, free. Pages with limit (1-100, default 25) and cursor.
| Parameter | Type | Description |
|---|
audienceIdrequired | string | |
limit | number | 1-100, default 25 |
cursor | string | nextCursor from the previous page |
cancel_openai_ads_audience_operation#
Cancel a ChatGPT Ads audience membership operation destructive
Cancel an accepted ADD or REMOVE on a ChatGPT Ads custom audience BEFORE its membership changes begin. ChatGPT Ads refuses once the operation is already applying changes, and that refusal is reported as it came. Free. The reply is the status read back after the cancel, never the request alone.
| Parameter | Type | Description |
|---|
audienceIdrequired | string | |
operationIdrequired | string | |
resume_openai_ads_audience_operation#
Resume a ChatGPT Ads audience membership operation
Resume an existing ADD or REMOVE on a ChatGPT Ads custom audience from its own checkpoints with its original inputs, so nothing is uploaded again. Free. The reply is the status read back after the resume, never the request alone.
| Parameter | Type | Description |
|---|
audienceIdrequired | string | |
operationIdrequired | string | |
get_openai_ads_audience_operation#
Check a ChatGPT Ads audience membership operation read-only
Poll an add/remove/replace submitted by update_openai_ads_audience_members until it reports succeeded or failed. Read-only, free. Until it succeeds the membership has NOT changed, so never report an audience update as done on the strength of the submission alone.
| Parameter | Type | Description |
|---|
audienceIdrequired | string | |
operationIdrequired | string | |
merge_openai_ads_audiences#
Merge ChatGPT Ads custom audiences
Combine 2 to 64 existing ChatGPT Ads custom audiences into ONE new audience. The SOURCE audiences are left unchanged, later updates to them do NOT propagate into the merged one, and no existing campaign switches to the new id by itself — re-point targeting deliberately if that is the intent. Creates a new audience; changes nothing that is already serving.
| Parameter | Type | Description |
|---|
namerequired | string | name for the new merged audience, at least 3 characters |
audienceIdsrequired | string[] | 2 to 64 DISTINCT audience ids from list_openai_ads_audiences |
archive_openai_ads_audience#
Archive a ChatGPT Ads custom audience (permanent) destructive
Retire a ChatGPT Ads custom audience. ARCHIVING IS PERMANENT AND THERE IS NO DELETE TO UNDO IT: an archived audience can never be restored, targeted or bid on again, and any campaign that includes or excludes it loses that audience. Without confirm:true this archives NOTHING and instead reports the audience’s real name, status and matched size read back from ChatGPT Ads, so the cost is visible before it is paid. Pass confirm:true only once that is what the user wants.
| Parameter | Type | Description |
|---|
audienceIdrequired | string | |
confirm | boolean | must be true to actually archive — this cannot be undone |
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. |
businessAgentId | string | run a BUSINESS AGENT campaign (mode business_agent): the id from create_openai_ads_business_agent, which must be PUBLISHED |
objective | "reach" | "clicks" | "conversions" | the campaign objective. objective "conversions" with billingEventType "impression" is the impression-billed, conversion-optimised shape |
billingEventType | "impression" | "click" | what the campaign is billed on |
landingPageQueryTemplate | string | query-string template appended to landing URLs (e.g. utm_source=chatgpt&utm_campaign={campaign_id}) — ChatGPT Ads’ landing_page_configuration.query_string_template |
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" | "desktop_web" | "ios_web" | "android_web"[] | WHICH CHATGPT SURFACES THIS CAMPAIGN RUNS ON — OpenAI’s “Eligible platforms”: ios_app (the ChatGPT iOS app), android_app (the Android app), web (ChatGPT in ANY browser), or narrower browser targets desktop_web, ios_web and android_web. OMIT IT to run everywhere, which is the default and almost always right; naming a subset STOPS the ad serving everywhere else. Never combine web with desktop_web / ios_web / android_web: web already includes them, and OpenAI says to name the individual browser values without web when narrowing (that combination is refused before anything is sent). There is no empty state — ChatGPT Ads refuses an empty list — so widening back means naming ios_app, android_app and web. |
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. |
conversionEventSettingIds | string[] | REQUIRED when biddingType is "conversions" (oCPC): exactly one active conversion-event-setting id from list_openai_ads_conversion_events, the event ChatGPT Ads optimises toward. Ignored for clicks/impressions bidding. |
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 |
landingPageQueryTemplate | string | query string added to every landing page click, e.g. utm_source=chatgpt&utm_content={ad_id}. Placeholders: {campaign_id} {ad_group_id} {ad_id} {ad_account_id} {oppref}; oppref and olref cannot be parameter names. On an update, an empty string clears it. |
audienceBidMultipliers | object[] | bid more or less for people in a custom audience (eligible ids: list_openai_ads_audiences with intendedUse bid_multiplier, about 25,000 matched users). On an update this REPLACES the list; [] removes them all, and a bid change keeps the existing multipliers. |
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 | |
landingPageQueryTemplate | string | query string added to every landing page click, e.g. utm_source=chatgpt&utm_content={ad_id}. Placeholders: {campaign_id} {ad_group_id} {ad_id} {ad_account_id} {oppref}; oppref and olref cannot be parameter names. On an update, an empty string clears it. |
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" | "desktop_web" | "ios_web" | "android_web"[] | REPLACES which ChatGPT surfaces the campaign runs on (ios_app / android_app / web, or the narrower browser targets desktop_web / ios_web / android_web; never web together with those, since web already includes them). 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. |
conversionEventSettingIds | string[] | REPLACE the conversion-event-setting id a "conversions" campaign optimises toward (exactly one active id from list_openai_ads_conversion_events). |
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) |
landingPageQueryTemplate | string | query string added to every landing page click, e.g. utm_source=chatgpt&utm_content={ad_id}. Placeholders: {campaign_id} {ad_group_id} {ad_id} {ad_account_id} {oppref}; oppref and olref cannot be parameter names. On an update, an empty string clears it. |
audienceBidMultipliers | object[] | bid more or less for people in a custom audience (eligible ids: list_openai_ads_audiences with intendedUse bid_multiplier, about 25,000 matched users). On an update this REPLACES the list; [] removes them all, and a bid change keeps the existing multipliers. |
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. A LIFETIME (total) budget is PACED by ChatGPT Ads to spread spend evenly across the campaign’s dates (actual daily spend still varies with available delivery), so a total budget is not a first-come-first-served pool. 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, beyond what openai_ads_report shows: that report carries click-through conversions and CPA for the account, a campaign, ad group or ad, while this tool adds VIEW-THROUGH conversions, totals per id across many ids, and the received-event sample. 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. RECEIVED EVENTS: pass recentEvents:true (no ids needed) to read a recent SAMPLE of the events OpenAI actually received on the pixel — type, event time, receive time, API channel and the event id — which answers "did OpenAI get the signup at all?" when a conversion is missing. It is a sample, not a complete log, and receiving an event is not the same as attributing it. 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 campaign, ad group or ad ids to report on, required below the account level; omit for level ad_account, which sums every campaign |
campaignId | string | |
adGroupId | string | |
adId | string | |
since | string | YYYY-MM-DD |
until | string | YYYY-MM-DD |
granularity | "none" | "daily" | daily = one row per day per entity, plus a byDate total; default none = one total per entity |
breakdown | "device" | "country" | split each row by device or by country |
recentEvents | boolean | true = list a recent sample of the events OpenAI RECEIVED on the pixel instead of attributed totals |
pixelId | string | with recentEvents: the pixel_id to read; omit to use the account's first pixel |
limit | number | with recentEvents: how many events, 1-50 (default 50) |
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). USER MATCHING (schema of 2026-09-03): pass plaintext email / phone (with country code) / externalId / firstName / lastName and Hermoso hashes them locally, plus raw country / city / region / zip_code and gaid (Android advertising id); each becomes the API’s plural list (emails_sha256, phone_numbers_sha256, …), the first three unique values per list count, and more fields = better matching. 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" |
confirmName | string | when archiving or removing: its EXACT name, as the unconfirmed call names it. Required when it has children or is live |
confirmChildren | number | when archiving or removing: the exact number of children the unconfirmed call reported. Required when it has any |
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 |
ChatGPT ADS BREADTH
list_openai_ads_lead_forms#
List ChatGPT Ads lead forms read-only
The ChatGPT Ads LEAD FORMS on this ad account — id, status (draft/published/archived), draft and published revision ids, fields. A lead form is what a Business Agent uses to collect a name/email/choice inside the chat; it only collects once PUBLISHED, and leads only arrive somewhere once a lead-sync subscription exists (list_openai_ads_lead_sync). Read-only, 0 credits. Needs ChatGPT Ads connected.
No parameters.
create_openai_ads_lead_form#
Create a ChatGPT Ads lead form (draft)
Draft a ChatGPT Ads LEAD FORM: a name, an optional privacy policy URL, and fields — each {fieldId, fieldType "text" | "choice", label, required, options (choice only)}. Created as a DRAFT with a draftRevisionId; publish_openai_ads_lead_form makes it live, then reference it from a Business Agent (leadFormId). Needs ChatGPT Ads connected.
| Parameter | Type | Description |
|---|
namerequired | string | |
privacyPolicyUrl | string | |
fieldsrequired | object[] | |
get_openai_ads_lead_form#
Read a ChatGPT Ads lead form read-only
One ChatGPT Ads lead form with its fields and revision ids (pass revisionId to read a specific revision). Read-only, 0 credits.
| Parameter | Type | Description |
|---|
leadFormIdrequired | string | |
revisionId | string | |
update_openai_ads_lead_form#
Save a new draft of a ChatGPT Ads lead form
Save a NEW DRAFT REVISION of a ChatGPT Ads lead form (the whole definition: name + fields are replaced). expectedDraftRevisionId must be the draftRevisionId you last read — ChatGPT Ads refuses a stale one so two editors cannot clobber each other. The published version is untouched until publish_openai_ads_lead_form.
| Parameter | Type | Description |
|---|
leadFormIdrequired | string | |
expectedDraftRevisionIdrequired | string | |
namerequired | string | |
privacyPolicyUrl | string | |
fieldsrequired | object[] | |
publish_openai_ads_lead_form#
Publish a ChatGPT Ads lead form
Publish the current draft of a ChatGPT Ads lead form so Business Agents can use it. expectedDraftRevisionId is the draftRevisionId you last read. Show the user the fields before publishing: the form is what real people will see.
| Parameter | Type | Description |
|---|
leadFormIdrequired | string | |
expectedDraftRevisionIdrequired | string | |
archive_openai_ads_lead_form#
Archive a ChatGPT Ads lead form destructive
Archive a ChatGPT Ads lead form. Not reversible through the API, and refused by ChatGPT Ads while a PUBLISHED Business Agent references it. confirm:true is required; without it nothing changes and the reply says what would.
| Parameter | Type | Description |
|---|
leadFormIdrequired | string | |
confirm | boolean | |
test_openai_ads_lead_form#
Send a synthetic test lead
Queue an explicitly SYNTHETIC, signed test lead for a PUBLISHED lead form to the account’s lead-sync webhook, so the receiving system can be checked end to end. expectedPublishedRevisionId is the form’s publishedRevisionId. The payload is marked synthetic; never count it as a lead.
| Parameter | Type | Description |
|---|
leadFormIdrequired | string | |
expectedPublishedRevisionIdrequired | string | |
list_openai_ads_lead_sync#
List ChatGPT Ads lead-sync subscriptions read-only
The lead-sync subscription(s) on this ChatGPT Ads account — the webhook that receives every lead a lead form collects. With none, leads have nowhere to go. Read-only, 0 credits.
No parameters.
set_openai_ads_lead_sync#
Provision ChatGPT Ads lead delivery (webhook)
Provision lead delivery for this ChatGPT Ads account to an https destination URL (a managed webhook). Optionally pass your own signingSecret (16+ chars); otherwise ChatGPT Ads mints one. THE SIGNING SECRET IS RETURNED ONCE — every lead webhook is signed with it. Needs ChatGPT Ads connected.
| Parameter | Type | Description |
|---|
destinationUrlrequired | string | |
signingSecret | string | |
delete_openai_ads_lead_sync#
Delete a ChatGPT Ads lead-sync subscription destructive
Delete the lead-sync subscription: every lead form on the account stops delivering leads. confirm:true required.
| Parameter | Type | Description |
|---|
subscriptionIdrequired | string | |
confirm | boolean | |
list_openai_ads_business_agents#
List ChatGPT Ads Business Agents read-only
The BUSINESS AGENTS on this ChatGPT Ads account — a Business Agent is a branded assistant ChatGPT serves inside an ad (mode business_agent on the campaign): instructions, conversation starters, optional product feeds, tools and a lead form. Shows draft/published status and pending changes. Read-only, 0 credits.
No parameters.
list_openai_ads_business_agent_tools#
List tools a Business Agent may use read-only
The eligible TOOLS installed for this ChatGPT Ads account that a Business Agent can be given (pass their ids as toolIds to create_openai_ads_business_agent). Read-only, 0 credits.
No parameters.
create_openai_ads_business_agent#
Create or replace a ChatGPT Ads Business Agent
Draft a ChatGPT Ads BUSINESS AGENT: name, instructions (the system prompt real users will experience — write it as the brand), optional description, privacy policy URL, conversation starters, product feed ids, connector ids, tool ids (list_openai_ads_business_agent_tools) and a published lead form id. Pass businessAgentId to REPLACE an existing agent’s configuration (it becomes a pending change). Nothing is served until publish_openai_ads_business_agent. Needs ChatGPT Ads connected.
| Parameter | Type | Description |
|---|
businessAgentId | string | replace THIS agent’s configuration instead of creating a new one |
namerequired | string | |
instructionsrequired | string | |
description | string | |
privacyPolicyUrl | string | |
conversationStarters | string[] | |
productFeedIds | string[] | |
connectorIds | string[] | |
toolIds | string[] | |
leadFormId | string | |
get_openai_ads_business_agent#
Read a ChatGPT Ads Business Agent read-only
One Business Agent with its full configuration and publish state. Read-only, 0 credits.
| Parameter | Type | Description |
|---|
businessAgentIdrequired | string | |
preview_openai_ads_business_agent#
Chat with a Business Agent (preview) read-only
Send a message (or a whole messages[] transcript) to a ChatGPT Ads Business Agent and get its reply — a PREVIEW that publishes and serves nothing. Use it to test instructions before publish_openai_ads_business_agent.
| Parameter | Type | Description |
|---|
businessAgentIdrequired | string | |
message | string | |
messages | object[] | |
publish_openai_ads_business_agent#
Publish a ChatGPT Ads Business Agent
Publish a Business Agent’s draft so every campaign referencing it serves this version to real users. confirm:true required; show the user the instructions first.
| Parameter | Type | Description |
|---|
businessAgentIdrequired | string | |
confirm | boolean | |
list_openai_ads_spend_windows#
List ChatGPT Ads account spending limits read-only
Account-level SPENDING LIMITS on ChatGPT Ads, both kinds: the date-range SPEND-LIMIT WINDOWS (a ceiling on what the whole account may spend between an inclusive start date and an exclusive end date, with amount and spent so far) and the DAILY LIMIT (a per-day ceiling that renews at midnight in the account timezone, with what is spent and left today). Also returns the configuration `revision` that set_openai_ads_daily_spend_limit and remove_openai_ads_daily_spend_limit need as expectedRevision, and the earliest date a new daily limit may start. A limit caps spend; it never makes anything spend. OpenAI serves account spending limits only to ad accounts on postpaid INVOICE billing, and every spending-limit request, reads included, needs billing-management permission: a card-billed account is refused (a 403 that says only admins can do it) from any key, including one its own admin created. Read-only, 0 credits.
No parameters.
set_openai_ads_spend_window#
Create or edit a ChatGPT Ads spend-limit window
Create (no windowId) or edit (windowId) an account-level spend-limit window on ChatGPT Ads: startDate YYYY-MM-DD inclusive, endDate YYYY-MM-DD EXCLUSIVE (the window ends the day before), amount in the account currency (sent as micros), optional name and insertion-order id (ioId). A window is a CEILING on what the whole account may spend in that range; it never makes anything spend, and campaign budgets still apply underneath it. On edit, pass only the fields that change; a window whose canEdit is false (already started, per OpenAI) cannot be edited. Raising the amount lets campaigns spend up to their budgets, so show the user the old and new amounts. Reply carries the stored window (amount, spent so far, status). The live API serves this path since at least 2026-09-12 (it answered "Invalid URL" on 2026-09-03). It needs postpaid INVOICE billing and billing-management permission; a card-billed account is refused whatever key is used.
| Parameter | Type | Description |
|---|
windowId | string | |
startDate | string | |
endDate | string | |
amount | number | |
name | string | |
ioId | string | |
delete_openai_ads_spend_window#
Delete a ChatGPT Ads spend-limit window destructive
Delete an active or scheduled spend-limit window before it ends — this REMOVES a spending ceiling. confirm:true required.
| Parameter | Type | Description |
|---|
windowIdrequired | string | |
confirm | boolean | |
set_openai_ads_daily_spend_limit#
Set the ChatGPT Ads account daily spending limit
Create or change the ACCOUNT-WIDE DAILY SPENDING LIMIT on ChatGPT Ads: the most all campaigns together may spend each day, renewing at midnight in the account timezone, until it is removed or reaches its optional end date. OpenAI offers it only on ad accounts with postpaid INVOICE billing and it needs billing-management permission; a card-billed account is refused whatever key is used. amount is per day in the account currency and is required even when only the end date changes (0 stops account spend). A NEW limit starts tomorrow or later: list_openai_ads_spend_windows names the earliest start date. On an existing limit leave startDate out, because its start cannot change. endDate is exclusive; noEndDate:true clears it. A daily limit and a date-range window cannot overlap. Lowering it can stop delivery and raising it lets campaigns spend up to their own budgets, so show the user the current and new values first: without confirm:true AND expectedRevision (the revision list_openai_ads_spend_windows returns) nothing changes and the reply states what would. The result is read back from ChatGPT Ads.
| Parameter | Type | Description |
|---|
amountrequired | number | |
expectedRevision | number | the revision from list_openai_ads_spend_windows |
startDate | string | YYYY-MM-DD, first day of a NEW daily limit (tomorrow or later) |
endDate | string | YYYY-MM-DD, exclusive |
noEndDate | boolean | true removes the end date |
confirm | boolean | |
remove_openai_ads_daily_spend_limit#
Remove the ChatGPT Ads account daily spending limit destructive
Remove the account-wide DAILY spending limit on ChatGPT Ads. This takes a spending CEILING off the whole account, so campaigns may then spend up to their own budgets every day; date-range spend-limit windows are not touched. Like every account spending-limit request it needs postpaid INVOICE billing and billing-management permission; a card-billed account is refused whatever key is used. Without confirm:true AND expectedRevision (the revision list_openai_ads_spend_windows returns) nothing changes and the reply names the limit that would be removed. The result is read back from ChatGPT Ads.
| Parameter | Type | Description |
|---|
expectedRevision | number | the revision from list_openai_ads_spend_windows |
confirm | boolean | |
set_openai_ads_negative_keywords#
Set ChatGPT Ads account negative keywords
CURRENTLY UNAVAILABLE: OpenAI no longer serves account-level negative keywords. The live API answers "Invalid URL" (measured 2026-09-13) and the endpoint left its published ChatGPT Ads spec the same week, so nothing can be set through Hermoso or any other API client. Tell the user that plainly instead of retrying. When it did work it REPLACED the whole account list, and the API never offered a way to read the current one.
| Parameter | Type | Description |
|---|
keywordsrequired | string[] | |
list_openai_ads_feeds#
List ChatGPT Ads product feeds read-only
The PRODUCT FEEDS on this ChatGPT Ads account (id, name, countries, currencies, product and campaign counts). A product-feed campaign (mode product_feed) advertises products from one of these; update_openai_ads_feed_products fills one. Read-only, 0 credits.
| Parameter | Type | Description |
|---|
limit | number | |
after | string | |
create_openai_ads_feed#
Create a ChatGPT Ads product feed
Create an EMPTY product feed on ChatGPT Ads with a name and the countries it serves (ISO codes). Fill it with update_openai_ads_feed_products, or set up SFTP bulk delivery with set_openai_ads_feed_sftp.
| Parameter | Type | Description |
|---|
namerequired | string | |
countries | string[] | |
list_openai_ads_feed_uploads#
List ChatGPT Ads feed uploads read-only
Recent product-feed UPLOADS across the account with per-upload status and rows accepted / rejected / ads-eligible — the way to learn why products are not serving. Read-only, 0 credits.
| Parameter | Type | Description |
|---|
limit | number | |
archive_openai_ads_feed#
Archive a ChatGPT Ads product feed destructive
Archive a product feed — its products leave every campaign using it. confirm:true required.
| Parameter | Type | Description |
|---|
feedIdrequired | string | |
confirm | boolean | |
query_openai_ads_feed_products#
Query products in a ChatGPT Ads feed read-only
List the products in a feed that match filters ({field, operator in|not_in|gt|gte|lt|lte|contains|not_contains|starts_with, values[]}) — the SAME filter shape an ad group’s productSet takes, so this previews exactly which products that ad group would advertise. Paginate with after. Read-only, 0 credits.
| Parameter | Type | Description |
|---|
feedIdrequired | string | |
filters | object[] | |
limit | number | |
after | string | |
get_openai_ads_feed_sftp#
Read a feed’s SFTP delivery settings read-only
Whether SFTP bulk delivery is enabled for a ChatGPT Ads product feed, its connection URI and authentication method. Read-only, 0 credits.
| Parameter | Type | Description |
|---|
feedIdrequired | string | |
set_openai_ads_feed_sftp#
Set up, activate or pause feed SFTP delivery
Manage SFTP bulk delivery for a ChatGPT Ads product feed (the alternative to pushing products through update_openai_ads_feed_products). action "create" (default): create or REPLACE the feed's SFTP credentials — authenticationMethod "password" (OpenAI returns the password ONCE in this reply; store it) or "ssh_key" (pass the public key as sshPublicKey). Replacing credentials invalidates the previous ones immediately, so re-run only when the user means to rotate. action "activate" / "pause": switch delivery on or off without touching credentials. The reply carries the connection URI and whether delivery is enabled; get_openai_ads_feed_sftp reads the same state without changing it. Files delivered over SFTP show up in list_openai_ads_feed_uploads with accepted / rejected / ads-eligible row counts.
| Parameter | Type | Description |
|---|
feedIdrequired | string | |
action | "create" | "activate" | "pause" | |
authenticationMethod | "password" | "ssh_key" | |
sshPublicKey | string | |
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 (or call list_connector_accounts with provider pinterest_ads, then set_connector_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) |
confirmName | string | when archiving or removing: its EXACT name, as the unconfirmed call names it. Required when it has children or is live |
confirmChildren | number | when archiving or removing: the exact number of children the unconfirmed call reported. Required when it has any |
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 (or call list_connector_accounts with provider reddit_ads, then set_connector_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" | "CPV15" | |
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" | "CPV15" | 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" | "CPV15" | 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" | "CPV15" | |
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 |
create_reddit_ads_max_campaign#
Build a Reddit Max campaign (paused)
Build a Reddit MAX campaign in one call: an automated campaign (campaign budget optimization, automatic bidding), its one automated ad group (seed targeting) and its one template ad, from which Reddit GENERATES the ads out of your creative-library assets. ALL CREATED PAUSED: nothing spends until the user approves and set_reddit_ads_status(confirm:true) runs on the campaign, the ad group and the template ad. Before calling, upload at least 3 HEADLINE and 2 IMAGE or VIDEO assets with upload_reddit_ads_assets (5 to 45 in total, all ACTIVE) and pass their ids, and take redditProfileId from list_reddit_ads_profiles. Every asset is read and counted by type before anything is created. Objectives: CLICKS, CONVERSIONS, APP_INSTALLS. Bid strategies: BIDLESS (default), MAXIMIZE_VOLUME, TARGET_CPX (needs bidAmount). MAXIMIZE_VALUE and TARGET_ROAS cannot be set: Reddit exposes them only as read-only values. If a later step fails, what this call created is ARCHIVED and the reply says so. The reply says whether Reddit finished generating the ads (materialization); poll with get_reddit_ads_max_template.
| Parameter | Type | Description |
|---|
adAccountId | string | |
namerequired | string | campaign name, 3 to 500 characters |
objective | "CLICKS" | "CONVERSIONS" | "APP_INSTALLS" | default CLICKS |
budgetrequired | number | campaign budget in the ad account’s currency (a Max budget lives on the campaign) |
goalType | "DAILY_SPEND" | "LIFETIME_SPEND" | default DAILY_SPEND; LIFETIME_SPEND needs endTime |
startTimerequired | string | ISO 8601, e.g. 2026-09-20T00:00:00Z |
endTime | string | |
bidStrategy | "BIDLESS" | "MAXIMIZE_VOLUME" | "TARGET_CPX" | default BIDLESS |
bidType | "CPC" | "CPM" | "CPV6" | "CPV15" | default CPC for CLICKS; required for the other objectives |
bidAmount | number | target cost per result in the ad account’s currency; required for TARGET_CPX |
optimizationGoal | string | default CLICKS for CLICKS; required for CONVERSIONS (e.g. PURCHASE, SIGN_UP, LEAD, ADD_TO_CART) and APP_INSTALLS; cannot change later |
conversionPixelId | string | only needed when the ad account has more than one pixel |
appId | string | App Store or Google Play id; required for APP_INSTALLS |
specialAdCategories | "HOUSING_EMPLOYMENT_CREDIT" | "NONE"[] | cannot change after publishing |
viewThroughConversionType | "SEVEN_DAY_CLICKS" | "SEVEN_DAY_CLICKS_ONE_DAY_VIEW" | |
fundingInstrumentId | string | |
schedule | object[] | weekly windows, day 0 = Sunday |
targetingrequired | object | SEED signals: at least one of communities, interests, keywords or customAudienceIds; geolocations and the excluded lists are hard controls |
adGroupName | string | |
adName | string | |
redditProfileIdrequired | string | the t2_ profile the template ad runs as, from list_reddit_ads_profiles |
assetIdsrequired | string[] | 5 to 45 ACTIVE creative-library asset ids: at least 3 HEADLINE and 2 IMAGE or VIDEO |
thumbnailAssetIds | string[] | up to 10 |
destinationUrlrequired | string | the https landing page |
displayUrl | string | |
supplementaryText | string | up to 100 characters |
userGeneratedContent | "OPT_IN" | "OPT_OUT" | let Reddit add user-generated content enhancements |
get_reddit_ads_max_template#
Read a Reddit Max template ad read-only
Read a Reddit Max template ad: its status, its assets, its destination and whether Reddit has finished generating ads from it (materialization SUCCESS, PARTIAL or FAILED with Reddit’s reasons, or still generating). Poll this after create_reddit_ads_max_campaign or update_reddit_ads_max_template. Read-only, free.
| Parameter | Type | Description |
|---|
adAccountId | string | |
adIdrequired | string | the template ad id |
update_reddit_ads_max_template#
Edit a Reddit Max template ad
Change a Reddit Max template ad: its assets (5 to 45 ACTIVE, at least 3 HEADLINE and 2 IMAGE or VIDEO, read and counted before anything is sent), thumbnails, destination URL, supplementary text, user-generated content enrollment or name. The reply is the template read back, including whether Reddit regenerated the ads. Pausing, activating or archiving it is set_reddit_ads_status.
| Parameter | Type | Description |
|---|
adAccountId | string | |
adIdrequired | string | |
name | string | |
assetIds | string[] | REPLACES the template’s assets |
thumbnailAssetIds | string[] | up to 10; an empty list clears them |
destinationUrl | string | |
displayUrl | string | |
supplementaryText | string | up to 100 characters |
userGeneratedContent | "OPT_IN" | "OPT_OUT" | |
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 |
confirmName | string | when archiving or removing: its EXACT name, as the unconfirmed call names it. Required when it has children or is live |
confirmChildren | number | when archiving or removing: the exact number of children the unconfirmed call reported. Required when it has any |
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 |
upload_reddit_ads_assets#
Upload creatives to the Reddit asset library
Store creatives in the Reddit Ads ASSET LIBRARY for a profile: images and videos (from a public https url — Reddit downloads it; a video may carry a posterUrl), HEADLINE text, and CTA labels from Reddit’s fixed list (Shop Now, Learn More, Sign Up, …). 1–20 per call. Processing is asynchronous: the reply is read back from the library after polling (up to ~20s) and says which assets are ACTIVE, which Reddit REJECTED and why, and which are still processing (finish those with get_reddit_ads_asset_uploads). A Reddit MAX campaign builds its ads from these assets: pass the ACTIVE ids to create_reddit_ads_max_campaign (at least 3 HEADLINE and 2 IMAGE or VIDEO). A standard post-based ad does not take an asset id. Free.
| Parameter | Type | Description |
|---|
adAccountId | string | Reddit ad account id (a2_…) — omit when only one is shared |
redditProfileIdrequired | string | the Reddit profile id (t2_…) from list_reddit_ads_profiles — assets hang off a profile, and it must be on the shared ad account |
assetsrequired | object[] | |
get_reddit_ads_asset_uploads#
Poll Reddit asset uploads read-only
The processing state of one or more Reddit creative-asset uploads (ids from upload_reddit_ads_assets): PROCESSING, ACTIVE with the stored asset, or INVALID_MEDIA with Reddit’s reasons. Ids Reddit no longer knows are listed as missing, never silently dropped. Free.
| Parameter | Type | Description |
|---|
adAccountId | string | Reddit ad account id (a2_…) — omit when only one is shared |
redditProfileIdrequired | string | the Reddit profile id (t2_…) from list_reddit_ads_profiles — assets hang off a profile, and it must be on the shared ad account |
uploadIdsrequired | string[] | |
list_reddit_ads_assets#
List the Reddit asset library read-only
The IMAGE and VIDEO assets stored on a Reddit profile, with status, dimensions and media urls; filter by type and name, paginate with pageToken. Reddit’s list is media-only: HEADLINE and CTA assets are stored but never listed here — read those by id with get_reddit_ads_asset (ids come from upload_reddit_ads_assets). Free.
| Parameter | Type | Description |
|---|
adAccountId | string | Reddit ad account id (a2_…) — omit when only one is shared |
redditProfileIdrequired | string | the Reddit profile id (t2_…) from list_reddit_ads_profiles — assets hang off a profile, and it must be on the shared ad account |
types | "IMAGE" | "VIDEO"[] | Reddit lists media only |
name | string | filter by asset name |
limit | number | 1–100, default 25 |
pageToken | string | |
get_reddit_ads_asset#
Read one Reddit creative asset read-only
One stored Reddit creative asset by id — type, name, status, media dimensions and urls, or the headline/CTA text, plus any processing errors Reddit holds for it. Free.
| Parameter | Type | Description |
|---|
adAccountId | string | |
assetIdrequired | string | |
rename_reddit_ads_asset#
Rename a Reddit creative asset
Change a stored Reddit creative asset’s name — the ONLY field Reddit lets you edit on an asset (its PATCH takes {name} and nothing else). The reply is read back from the library. Free.
| Parameter | Type | Description |
|---|
adAccountId | string | |
assetIdrequired | string | |
namerequired | string | |
delete_reddit_ads_asset#
Delete a Reddit creative asset destructive
Permanently delete a creative asset from the Reddit asset library. Without confirm:true it deletes nothing and reports what the asset is; with it, the reply is the read-back (the asset reads as DELETED or gone), never Reddit’s 200. Free.
| Parameter | Type | Description |
|---|
adAccountId | string | |
assetIdrequired | string | |
confirm | boolean | |
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 |
UPGRADED SMART+
create_tiktok_smart_campaign#
Create a TikTok Smart+ campaign (forced paused)
Create an UPGRADED SMART+ campaign — TikTok’s automated campaign type, where TikTok picks the audience, placements and creative combinations for you. It is the TikTok equivalent of Google Performance Max, and the thing a customer means by "smart campaign", "automated campaign" or "Smart+" on TikTok. CREATED PAUSED WITH NO OVERRIDE, exactly like the classic lane and for the same reason: TikTok creates ENABLED by default, so an omitted status would ship something that serves on the next auction. It spends nothing until set_tiktok_smart_status(confirm:true). SMART+ TAKES A SHORTER OBJECTIVE LIST THAN A CLASSIC CAMPAIGN — APP_PROMOTION, WEB_CONVERSIONS, LEAD_GENERATION and nothing else — and a value TikTok accepts on the classic endpoint can still be refused here, at the ad group, after the campaign exists; that is refused up front instead. CATALOG ADS: set catalogEnabled and catalogType (GENERIC for itemized NON-commerce inventories, added by TikTok on 2026-09-04; PRODUCT for a commerce catalog).
| Parameter | Type | Description |
|---|
namerequired | string | campaign name |
objectiverequired | "APP_PROMOTION" | "WEB_CONVERSIONS" | "LEAD_GENERATION" | Smart+ supports these three ONLY |
advertiserId | string | which advertiser; omit when the brand has one |
budget | number | campaign budget in the advertiser currency |
budgetMode | "BUDGET_MODE_DYNAMIC_DAILY_BUDGET" | "BUDGET_MODE_TOTAL" | "BUDGET_MODE_INFINITE" | "BUDGET_MODE_DAY" | the valid set depends on budgetOptimizeOn: DYNAMIC_DAILY_BUDGET or TOTAL with CBO on (the default), INFINITE / DAY / TOTAL with CBO off. Everything except INFINITE also needs budget |
budgetOptimizeOn | boolean | campaign budget optimisation (CBO). TikTok is retiring non-CBO App Install VBO campaigns via the API at the end of September 2026, so leave this true for APP_INSTALL |
catalogEnabled | boolean | make it a catalog campaign |
salesDestination | "WEBSITE" | "APP" | REQUIRED for WEB_CONVERSIONS — where the sales happen. APP additionally needs a catalog |
catalogType | "ECOMMERCE" | "TRAVEL_ENTERTAINMENT" | "MINI_SERIES" | "GENERIC" | "ONLINE_TO_OFFLINE" | required when catalogEnabled, and the valid set depends on the OBJECTIVE: WEB_CONVERSIONS takes ECOMMERCE / TRAVEL_ENTERTAINMENT / MINI_SERIES / GENERIC, LEAD_GENERATION takes GENERIC only, APP_PROMOTION takes ONLINE_TO_OFFLINE only. MINI_SERIES is allowlist-only at TikTok |
appPromotionType | "APP_INSTALL" | "APP_RETARGETING" | "MINIS" | REQUIRED when the objective is APP_PROMOTION. MINIS promotes a Series or mini game |
create_tiktok_smart_ad_group#
Create a TikTok Smart+ ad group (forced paused)
Add an ad group to a Smart+ campaign — the level holding the targeting, budget, schedule and bidding. TikTok requires NINE fields together here and reports only the FIRST one it hits per request, so every absentee is named at once rather than one per round trip. Created PAUSED; it has no ads until you add one.
| Parameter | Type | Description |
|---|
campaignIdrequired | string | from create_tiktok_smart_campaign |
namerequired | string | ad group name |
promotionTyperequired | "APP_ANDROID" | "APP_IOS" | "WEBSITE" | "MINI_APP" | "MINI_GAME" | "NATIVE_SERIES" | "LEAD_GENERATION" | "LEAD_GEN_CLICK_TO_TT_DIRECT_MESSAGE" | "LEAD_GEN_CLICK_TO_SOCIAL_MEDIA_APP_MESSAGE" | "LEAD_GEN_CLICK_TO_CALL" | where the ad promotes: APP_ANDROID / APP_IOS for app objectives and for WEB_CONVERSIONS with salesDestination APP; WEBSITE for WEB_CONVERSIONS on a site; MINI_APP / MINI_GAME / NATIVE_SERIES for APP_PROMOTION with MINIS; the four LEAD_GEN* values for LEAD_GENERATION |
optimizationGoalrequired | "CLICK" | "INSTALL" | "IN_APP_EVENT" | "VALUE" | "CONVERT" | "TRAFFIC_LANDING_PAGE_VIEW" | "CONVERSATION" | "LEAD_GENERATION" | |
bidTyperequired | "BID_TYPE_NO_BID" | "BID_TYPE_CUSTOM" | |
billingEventrequired | "OCPM" | "CPC" | |
targetingrequired | object | targeting_spec object — what it accepts varies with TikTok’s targeting_optimization_mode |
scheduleTyperequired | "SCHEDULE_FROM_NOW" | "SCHEDULE_START_END" | |
scheduleStartTimerequired | string | YYYY-MM-DD HH:MM:SS in the advertiser timezone |
scheduleEndTime | string | |
advertiserId | string | |
budget | number | ad group budget in the advertiser currency. Required when the campaign has budgetOptimizeOn false, ignored when CBO is on |
budgetMode | "BUDGET_MODE_TOTAL" | "BUDGET_MODE_DYNAMIC_DAILY_BUDGET" | required with budget when the campaign has CBO off |
bid | number | the Cost Cap target, required with bidType BID_TYPE_CUSTOM. Sent as bid_price for CLICK and conversion_bid_price for CONVERT, TRAFFIC_LANDING_PAGE_VIEW, INSTALL and IN_APP_EVENT; VALUE takes deepBidType and roasBid instead |
deepBidType | "DEFAULT" | "AEO" | "VO_MIN_ROAS" | "VO_HIGHEST_VALUE" | required when optimizationGoal is VALUE |
roasBid | number | target ROAS (0.01-1000), required when deepBidType is VO_MIN_ROAS |
pixelId | string | required for WEB_CONVERSIONS / LEAD_GENERATION when optimizationGoal is CONVERT or VALUE |
optimizationEvent | string | the conversion event, required whenever pixelId is set (e.g. SHOPPING, ON_WEB_ORDER) |
create_tiktok_smart_ad#
Create a TikTok Smart+ ad (forced paused)
Add the creative to a Smart+ ad group. Smart+ combines the materials you give it rather than running one fixed cut, so this is where the videos and copy go. Created PAUSED. If TikTok accepts the request but returns no ad id, the reply says nothing is confirmed to exist rather than claiming success — check Ads Manager before retrying, or a second call can create a twin.
| Parameter | Type | Description |
|---|
adGroupIdrequired | string | from create_tiktok_smart_ad_group |
name | string | ad name; "" lets TikTok name it after the ad id |
creatives | object[] | up to 50 TikTok creative_info objects: {ad_format: "SINGLE_VIDEO" | "CAROUSEL_ADS", video_info: {video_id}, image_info: [{web_uri}], tiktok_item_id, identity_type, identity_id}. Ids come from upload_tiktok_ads_creative and list_tiktok_ads_identities |
adTexts | string[] | up to 5 ad texts; required unless every creative is a tiktok_item_id Spark post |
landingPageUrl | string | the destination URL |
callToActions | string[] | up to 3 TikTok call-to-action enums, e.g. LEARN_MORE, SHOP_NOW |
adConfiguration | object | TikTok ad_configuration for Spark or catalog ads (identity_type, identity_id, product_set_id, …) |
advertiserId | string | |
list_tiktok_smart_campaigns#
List TikTok Smart+ campaigns read-only
Read the Smart+ campaigns on a TikTok advertiser. TikTok’s reads LAG its writes, so a campaign created seconds ago can be missing here and still exist — the reply says so rather than reporting an empty account.
| Parameter | Type | Description |
|---|
advertiserId | string | |
limit | number | page size, 1-1000, default 20 |
page | number | page number, from 1; the reply says when there are more |
tiktok_bid_protection#
TikTok bid protection status and credit history read-only
Whether TikTok's BID PROTECTION is covering a Smart+ campaign or ad group, and what it actually paid back. Bid protection compensates in AD CREDITS when delivery misses the bid, so this answers two different questions from one tool: with no dates it returns today's coverage STATUS per id; with startDate and endDate it returns the day-by-day HISTORY, each row carrying the credit amount and currency. Smart+ objects ONLY — a classic TikTok campaign id does not resolve here. TikTok keeps 60 days, and the two endpoints size differently: status takes up to 200 ids, history allows 200 DIVIDED BY the day span (a 10-day window takes 20 ids), which is refused here with the arithmetic done rather than by TikTok with it left to you. An id TikTok says nothing about is NAMED in the reply, because a short list otherwise reads as 'those are unprotected'. Read-only, 0 credits.
| Parameter | Type | Description |
|---|
levelrequired | "CAMPAIGN" | "ADGROUP" | which Smart+ level the ids are |
idsrequired | string | string[] | Smart+ ids from list_tiktok_smart_campaigns |
startDate | string | YYYY-MM-DD in the ad account timezone. With endDate this returns HISTORY instead of status; must be within the last 60 days |
endDate | string | YYYY-MM-DD, on or after startDate and within 60 days of it |
advertiserId | string | |
set_tiktok_smart_status#
Enable, pause or delete a Smart+ object destructive
Enable, pause or delete Smart+ campaigns, ad groups or ads (up to 20 ids per call). ENABLE starts REAL SPEND on the next auction and DELETE is permanent (a deleted campaign takes its ad groups and ads with it), so both require confirm:true after the user says yes. DISABLE (pause) is never gated. The reply is read back from TikTok and names any id whose new state it could not confirm.
| Parameter | Type | Description |
|---|
levelrequired | "campaign" | "adgroup" | "ad" | |
idsrequired | string | string[] | |
statusrequired | "ENABLE" | "DISABLE" | "DELETE" | |
confirm | boolean | required for ENABLE (real money) and DELETE (permanent) |
advertiserId | string | |
create_tiktok_ads_campaign#
Create a TikTok campaign (forced paused)
Create the top tier of a TikTok ad — the campaign, which fixes the OBJECTIVE everything under it optimises toward. CREATED PAUSED AND THERE IS NO OVERRIDE, and TikTok is the one platform where that is NOT the vendor’s own behaviour: TikTok creates ENABLED by default, so Hermoso forces operation_status DISABLE and overrides a caller who asks for ENABLE. It spends nothing until set_tiktok_ads_status(confirm:true). OBJECTIVES that create cleanly, each proven with a real create: TRAFFIC (the default), REACH, VIDEO_VIEWS, ENGAGEMENT, WEB_CONVERSIONS, LEAD_GENERATION, APP_INSTALL, PRODUCT_SALES, CONVERSIONS. RF_REACH (Reach & Frequency) also works but ONLY with budgetMode BUDGET_MODE_INFINITE — TikTok’s own words are "The budget type for Reach & Frequency must be unlimited". Five further values sit in TikTok’s schema enum and are REFUSED BY NAME with the reason (CATALOG_SALES is retired, SHOP_PURCHASES needs TikTok Shop on the advertiser, and APP_PROMOTION / RF_ENGAGEMENT / RF_APP_INSTALL are withheld) — the server owns that list, so a refusal names its cause and is TikTok’s restriction rather than a Hermoso fault. budgetMode is BUDGET_MODE_DAY (the default), BUDGET_MODE_TOTAL, BUDGET_MODE_DYNAMIC_DAILY_BUDGET or BUDGET_MODE_INFINITE. A campaign alone can never serve: build an ad group under it, then an ad. The result is READ BACK from TikTok and says so when the read-back could not be run.
| Parameter | Type | Description |
|---|
advertiserId | string | from list_tiktok_ads_accounts — omit only when exactly one is reachable |
namerequired | string | the campaign name in TikTok Ads Manager |
objective | string | default TRAFFIC. e.g. TRAFFIC, REACH, VIDEO_VIEWS, ENGAGEMENT, WEB_CONVERSIONS, LEAD_GENERATION, APP_INSTALL, PRODUCT_SALES, CONVERSIONS — or RF_REACH with budgetMode BUDGET_MODE_INFINITE. The server validates it and refuses an unavailable one BY NAME with TikTok’s reason. |
budgetMode | string | default BUDGET_MODE_DAY — or BUDGET_MODE_TOTAL / BUDGET_MODE_DYNAMIC_DAILY_BUDGET / BUDGET_MODE_INFINITE. RF_REACH requires BUDGET_MODE_INFINITE. |
budget | number | campaign budget in the advertiser’s own currency — not needed with BUDGET_MODE_INFINITE |
create_tiktok_ads_ad_group#
Create a TikTok ad group (targeting, budget, bidding, schedule)
Create an ad group under an existing TikTok campaign — the tier that holds the budget, the bid, the placements, the schedule and ALL the targeting. CREATED PAUSED with no override (TikTok would otherwise create it ENABLED, and a live ad group under a paused campaign is exactly how spend escapes a one-level pause); it spends nothing until set_tiktok_ads_status(confirm:true). TIKTOK REQUIRES THIRTEEN FIELDS TOGETHER and its error names only the FIRST missing one per round trip, so the server checks the whole set locally and refuses with EVERY absentee at once — which matters here because QPS is 1 and each round trip costs a second. Sensible defaults are supplied for placement, pacing, promotion type, schedule type, optimization goal, billing event, bid type and budget mode, so the ONE thing you must resolve yourself is LOCATION: locationIds is effectively mandatory (TikTok: "‘location_ids’ or ‘zipcode_ids’ must be specified") and comes from search_tiktok_ads_targeting(kind:"location"). Resolve interest and language ids the same way — a guessed id either fails the create or targets the wrong people, silently. CONVERSION CAMPAIGNS (WEB_CONVERSIONS / CONVERSIONS / PRODUCT_SALES / LEAD_GENERATION) NEED A PIXEL: set optimizationGoal CONVERT, pass pixelId AND optimizationEvent, and billingEvent OCPM — TikTok pairs a billing event with every goal MANUALLY and derives nothing, so the server supplies the right one if you leave it out. Without a pixel TikTok refuses with "Please select a pixel." The result is READ BACK from TikTok, and the pixel and event it reports are the STORED ones.
| Parameter | Type | Description |
|---|
advertiserId | string | |
campaignIdrequired | string | the campaign this ad group belongs to |
namerequired | string | |
locationIdsrequired | string[] | REQUIRED in practice — ids from search_tiktok_ads_targeting(kind:"location"); TikTok refuses an ad group without them |
placements | string[] | default ["PLACEMENT_TIKTOK"] |
placementType | string | default PLACEMENT_TYPE_NORMAL |
optimizationGoal | string | what TikTok optimises delivery toward — default CLICK; it has to fit the campaign objective and TikTok’s refusal names the valid values |
billingEvent | string | what TikTok charges for — default CPC; must fit the optimization goal |
bidType | string | default BID_TYPE_NO_BID (let TikTok bid). A manual bid type needs bid. |
bid | number | bid price in the advertiser’s own currency — required by the manual bid types |
pacing | string | default PACING_MODE_SMOOTH, which spends the budget evenly across the day. PACING_MODE_FAST spends as fast as delivery allows — a real money decision, so it is never chosen for you. |
budgetMode | string | default BUDGET_MODE_DAY |
budget | number | ad-group budget in the advertiser’s own currency |
scheduleType | string | default SCHEDULE_FROM_NOW |
scheduleStartTime | string | "YYYY-MM-DD HH:MM:SS" in the advertiser’s timezone |
scheduleEndTime | string | only needed when the schedule type is a fixed window |
promotionType | string | what is being promoted — default WEBSITE |
ageGroups | string[] | TikTok age band values — omit to reach every age |
genders | string[] | omit to reach everyone |
languages | string[] | language codes from search_tiktok_ads_targeting(kind:"language") |
interestCategoryIds | string[] | ids from search_tiktok_ads_targeting(kind:"interest") |
interestKeywordIds | string[] | ids from search_tiktok_ads_targeting(kind:"interest_keyword") — TikTok pairs this with interestCategoryIds under Interests |
pixelId | string | REQUIRED when optimizationGoal is CONVERT or VALUE, and NOT ACCEPTED with any other goal — that is TikTok’s own two-sided rule, and it is why a conversion campaign built without one dies at the ad group with "Please select a pixel." Get it from list_tiktok_ads_pixels, or create_tiktok_ads_pixel for a new one. |
optimizationEvent | string | REQUIRED whenever pixelId is given (and when optimizationGoal is IN_APP_EVENT or VALUE) — the conversion TikTok optimises toward. Web events: ON_WEB_DETAIL, ON_WEB_SEARCH, ON_WEB_ADD_TO_WISHLIST, ON_WEB_CART, INITIATE_ORDER, ADD_BILLING, SHOPPING, CONSULT, DOWNLOAD_START, FORM, ON_WEB_REGISTER, ON_WEB_SUBSCRIBE. Pick the one that matches the goal: SHOPPING for a purchase, FORM for a lead, ON_WEB_REGISTER for a signup. The event must already EXIST on the pixel or TikTok refuses with "This pixel event type does not exist." |
customConversionId | string | optional narrower rule from list_tiktok_ads_custom_conversions — valid only alongside a pixel and only when optimizationGoal is CONVERT or IN_APP_EVENT |
promotionTargetType | string | LEAD_GENERATION campaigns only: INSTANT_PAGE (a TikTok in-app form) or EXTERNAL_WEBSITE (your own landing page). With EXTERNAL_WEBSITE + optimizationGoal CLICK, TikTok forbids pixelId and optimizationEvent. |
conversionBid | number | target cost per conversion for oCPM — required by TikTok when bidType is BID_TYPE_CUSTOM and billingEvent is OCPM |
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 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) |