Hermoso
io.github.hermoso-ai/hermoso
Serveur MCP OK 500 outils
À quoi ça sert
Donne accès à un catalogue d'outils que l'on active à la demande (`find_tools`, `enable_tools`, `call_tool`) pour lancer et promouvoir une activité, avec suivi du statut et des crédits.
Résumé rédigé par L’Atlas le 29 nov. 2026, reformulé seulement à partir de la description de l’auteur et des outils vus par notre test. Texte de l’auteur ci-dessous.
Market what your AI built. 1,800+ tools, usable alone. Start free: 160+ credits. No markup.
Fiche technique
- Auteur
- hermoso-ai (espace de noms du registre)
- Dépôt
- github.com/hermoso-ai/hermoso
- Site
- hermoso.ai/mcp
- Version
- 0.1.709
- Transport
- Streamable HTTP stdio
- Authentification
- Aucune (constatée par notre test)
- Adresse du serveur
- https://app.hermoso.ai/mcp?src=registry Streamable HTTP
https://app.hermoso.ai/mcp/full?src=registry Streamable HTTP
https://app.hermoso.ai/mcp/all?src=registry Streamable HTTP
https://app.hermoso.ai/mcp/lean?src=registry Streamable HTTP
https://app.hermoso.ai/mcp/core?src=registry Streamable HTTP
https://app.hermoso.ai/mcp/create?src=registry Streamable HTTP
https://app.hermoso.ai/mcp/ads?src=registry Streamable HTTP
https://app.hermoso.ai/mcp/social?src=registry Streamable HTTP
https://app.hermoso.ai/mcp/sites?src=registry Streamable HTTP
https://app.hermoso.ai/mcp/analytics?src=registry Streamable HTTP
https://app.hermoso.ai/mcp/research?src=registry Streamable HTTP
https://app.hermoso.ai/mcp/reports?src=registry Streamable HTTP
https://app.hermoso.ai/mcp/scheduler?src=registry Streamable HTTP
https://app.hermoso.ai/mcp/creators?src=registry Streamable HTTP
https://app.hermoso.ai/mcp/gemini?src=registry Streamable HTTP
https://app.hermoso.ai/mcp/copilot?src=registry Streamable HTTP
https://app.hermoso.ai/mcp/s/{groups}?src=registry Streamable HTTP - Paquets
- hermoso 0.1.709 npm stdio
- Outils
- 500
- Catégories
- —
- Dernière mise à jour
- 2 déc. 2026
- Publication
- 2 déc. 2026
Auteur vérifié et popularité
Fiche pas encore revendiquée. C’est votre projet ? Revendiquez-la
Pas « Populaire » pour l’instant Retiré tout seul dès que les critères ne sont plus remplis.
- Visiteurs distincts de la fiche sur 30 jours : 0 (il en faut 30) pas encore
- ou configurations d’installation copiées sur 30 jours : 0 (il en faut 5) pas encore
- et un test réussi de moins de 14 jours : testé le 28 nov. 2026 rempli
Badge à jour tout seul. Toujours « testé le … », jamais « certifié ». Comment ça marche
[](https://latlas.dev/mcp/io.github.hermoso-ai/hermoso)<a href="https://latlas.dev/mcp/io.github.hermoso-ai/hermoso"><img src="https://latlas.dev/badge/statut/mcp/io.github.hermoso-ai/hermoso.svg" alt="Statut sur L’Atlas" height="20"></a>Badge pour votre README
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/io.github.hermoso-ai/hermoso)<a href="https://latlas.dev/mcp/io.github.hermoso-ai/hermoso"><img src="https://latlas.dev/badge/fiche/io.github.hermoso-ai/hermoso.svg" alt="Référencé sur L’Atlas" height="20"></a>Nos tests
Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode
- Adresse
- https://app.hermoso.ai/mcp?src=registry
- Dernier résultat
- OK 28 nov. 2026, 11:35
- Temps de réponse
- 1 673 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- hermoso 0.1.689
- Outils
- 227
- Adresse
- https://app.hermoso.ai/mcp/full?src=registry
- Dernier résultat
- Échec 28 nov. 2026, 09:46 réponse trop volumineuse
- Adresse
- https://app.hermoso.ai/mcp/all?src=registry
- Dernier résultat
- Échec 28 nov. 2026, 11:25 réponse trop volumineuse
- Adresse
- https://app.hermoso.ai/mcp/lean?src=registry
- Dernier résultat
- OK 28 nov. 2026, 09:01
- Temps de réponse
- 1 906 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- hermoso 0.1.689
- Outils
- 227
- Adresse
- https://app.hermoso.ai/mcp/core?src=registry
- Dernier résultat
- OK 28 nov. 2026, 09:04
- Temps de réponse
- 910 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- hermoso 0.1.689
- Outils
- 22
- Adresse
- https://app.hermoso.ai/mcp/create?src=registry
- Dernier résultat
- OK 28 nov. 2026, 08:24
- Temps de réponse
- 1 108 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- hermoso 0.1.689
- Outils
- 251
- Adresse
- https://app.hermoso.ai/mcp/ads?src=registry
- Dernier résultat
- OK 28 nov. 2026, 09:49
- Temps de réponse
- 1 291 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- hermoso 0.1.689
- Outils
- 500
- Adresse
- https://app.hermoso.ai/mcp/social?src=registry
- Dernier résultat
- OK 28 nov. 2026, 08:56
- Temps de réponse
- 1 388 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- hermoso 0.1.689
- Outils
- 500
- Adresse
- https://app.hermoso.ai/mcp/sites?src=registry
- Dernier résultat
- OK 28 nov. 2026, 10:37
- Temps de réponse
- 1 168 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- hermoso 0.1.689
- Outils
- 173
- Adresse
- https://app.hermoso.ai/mcp/analytics?src=registry
- Dernier résultat
- OK 28 nov. 2026, 11:22
- Temps de réponse
- 975 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- hermoso 0.1.689
- Outils
- 232
- Adresse
- https://app.hermoso.ai/mcp/research?src=registry
- Dernier résultat
- OK 28 nov. 2026, 10:49
- Temps de réponse
- 662 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- hermoso 0.1.689
- Outils
- 18
- Adresse
- https://app.hermoso.ai/mcp/reports?src=registry
- Dernier résultat
- OK 28 nov. 2026, 09:38
- Temps de réponse
- 1 126 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- hermoso 0.1.689
- Outils
- 29
- Adresse
- https://app.hermoso.ai/mcp/scheduler?src=registry
- Dernier résultat
- OK 28 nov. 2026, 11:17
- Temps de réponse
- 979 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- hermoso 0.1.689
- Outils
- 25
- Adresse
- https://app.hermoso.ai/mcp/creators?src=registry
- Dernier résultat
- OK 28 nov. 2026, 08:57
- Temps de réponse
- 1 207 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- hermoso 0.1.689
- Outils
- 17
- Adresse
- https://app.hermoso.ai/mcp/gemini?src=registry
- Dernier résultat
- OK 28 nov. 2026, 10:26
- Temps de réponse
- 817 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- hermoso 0.1.689
- Outils
- 92
- Adresse
- https://app.hermoso.ai/mcp/copilot?src=registry
- Dernier résultat
- OK 28 nov. 2026, 09:13
- Temps de réponse
- 1 401 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- hermoso 0.1.689
- Outils
- 38
- Adresse
- https://app.hermoso.ai/mcp/s/{groups}?src=registry
- Dernier résultat
- Non testable 28 nov. 2026, 11:13 adresse à compléter (variable)
Historique
| Date | Adresse | Résultat | Réponse | Outils |
|---|---|---|---|---|
| 28 nov. 2026, 11:35 | app.hermoso.ai/mcp?src=registry | OK | 1 673 ms | 227 |
| 28 nov. 2026, 11:25 | app.hermoso.ai/mcp/all?src=registry | Échec | 1 593 ms | — |
| 28 nov. 2026, 11:22 | app.hermoso.ai/mcp/analytics?src=registry | OK | 975 ms | 232 |
| 28 nov. 2026, 11:17 | app.hermoso.ai/mcp/scheduler?src=registry | OK | 979 ms | 25 |
| 28 nov. 2026, 11:13 | app.hermoso.ai/mcp/s/{groups}?src=registry | Non testable | 0 ms | — |
| 28 nov. 2026, 10:49 | app.hermoso.ai/mcp/research?src=registry | OK | 662 ms | 18 |
| 28 nov. 2026, 10:37 | app.hermoso.ai/mcp/sites?src=registry | OK | 1 168 ms | 173 |
| 28 nov. 2026, 10:26 | app.hermoso.ai/mcp/gemini?src=registry | OK | 817 ms | 92 |
| 28 nov. 2026, 09:49 | app.hermoso.ai/mcp/ads?src=registry | OK | 1 291 ms | 500 |
| 28 nov. 2026, 09:46 | app.hermoso.ai/mcp/full?src=registry | Échec | 2 315 ms | — |
| 28 nov. 2026, 09:38 | app.hermoso.ai/mcp/reports?src=registry | OK | 1 126 ms | 29 |
| 28 nov. 2026, 09:13 | app.hermoso.ai/mcp/copilot?src=registry | OK | 1 401 ms | 38 |
| 28 nov. 2026, 09:04 | app.hermoso.ai/mcp/core?src=registry | OK | 910 ms | 22 |
| 28 nov. 2026, 09:01 | app.hermoso.ai/mcp/lean?src=registry | OK | 1 906 ms | 227 |
| 28 nov. 2026, 08:57 | app.hermoso.ai/mcp/creators?src=registry | OK | 1 207 ms | 17 |
| 28 nov. 2026, 08:56 | app.hermoso.ai/mcp/social?src=registry | OK | 1 388 ms | 500 |
| 28 nov. 2026, 08:24 | app.hermoso.ai/mcp/create?src=registry | OK | 1 108 ms | 251 |
Outils exposés (500, réponse à tools/list, 28 nov. 2026)
enable_tools
Turn on more Hermoso tools
LIST a group of tools that is not in this session's roster. IT IS NOT HOW YOU REACH A TOOL — call_tool runs any Hermoso tool whether or not it is listed, and that works everywhere. Use this when the session will use MANY tools from one area and you want them in your list. WORKS ON CLIENTS THAT RE-READ THE TOOL LIST (stdio, the CLI, Cursor, Claude Code); a host that fixed its roster at connect time — claude.ai and ChatGPT do — will not show the new tools until it reconnects, and this tool says so in its reply rather than reporting a success you cannot use. The connect-time route that always works is `?tools=all` on the server URL. The default roster is CORE-FIRST: the core tools plus a few that make the connection drivable. Every other tool is held out of the LIST on SIZE alone — the whole registry is several hundred thousand tokens of schema re-sent on every turn, and a roster far past the 30-50 tool mark measurably degrades tool choice. The heaviest groups are `ads`, `analytics`, `channel_admin`: paid-campaign management across every ad platform is most of the total schema weight. NOTHING held out is unfinished or unsafe, and nothing is unreachable — find_tools finds it and call_tool runs it. CALL THIS WHEN A WHOLE AREA IS IN PLAY. If the user settles into building, budgeting, targeting or reporting on ad campaigns, call enable_tools({groups:['ads']}) and the tools appear. If they ask about their own site or product analytics, a tag/tracking container, or how a search engin…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| groups | array<string> | oui | Groups to switch on, e.g. ['ads']. Unknown names are refused by name rather than ignored. |
get_instructions
Read Hermoso's full instructions
Free. Hermoso's instructions on demand: a topic (areas, instagram, capabilities, roster, safety, credits, setup, launch, all) for the rest of the session instructions, any tool's name for its FULL rules, or "paid-calls" for get_cost, expected_credits, idempotency_key, revision and context.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| topic | string | oui | A topic, a tool name or "paid-calls" |
find_tools
Find a Hermoso tool by name or task
Search EVERY Hermoso tool — your starting list is deliberately short, and everything else in the product is here — by name, task or group. Each row gives the tool's PARAMETERS in one line, its CREDIT COST (free means free on every plan; a tool that runs a model quotes the live per-model figure) and its recent HEALTH on this server (failure rate and typical duration, or "no recent calls", which means unseen and not broken). Use it the moment the user asks for something you do not see a tool for (a campaign, an ad set, a lead form, a click-to-WhatsApp ad, a report, keywords, audiences): a tool missing from your list is NEVER proof the feature is missing. Then RUN the tool you found with call_tool({name, args}): search, then run, two calls for any tool in the product. A tool that is failing or needs a connector this workspace has not made is ranked last and marked, never hidden — pass onlyHealthy:true if you want those left out. Free, read-only.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| query | string | non | words from the task or the tool name, e.g. "lead form", "whatsapp", "google ads keyword", "meta insights" |
| group | string | non | limit to one group: core, research, create, channels, channel_admin, analytics, ads, files, workspace |
| limit | number | non | how many to return (default 12, max 40) |
| onlyHealthy | boolean | non | leave out tools that are failing their recent calls or that need a connector this workspace has not made. Default false — nothing is hidden unless you ask, because a missing row reads as a missing capability. |
call_tool
Run any Hermoso tool by name
Run a Hermoso tool that is not in this session's starting list (paid campaigns, analytics, channel admin and more), using the exact `name` and `args` that find_tools returned. Use find_tools first. It runs that one tool on this Hermoso account, and the tool's own rules still apply: a spend or a delete still asks for confirm. Use it on hosts that keep the tool list they fetched at connect time (claude.ai, ChatGPT), where enable_tools cannot add tools mid-conversation. Arguments are checked against the tool's schema; a mistake comes back with the expected parameters. A tool for an account this workspace has not connected answers with the link to connect it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| name | string | oui | the tool name exactly as find_tools returned it, e.g. create_meta_lead_form |
| args | object | non | the tool's arguments as an object, exactly as its own schema takes them |
| revision | string | non | the revision find_tools gave for this tool; a changed tool is refused unrun, with its current params |
| context | string | non | optional: the user's underlying goal in one short sentence, for analytics only (no names, contact details or URLs); every tool also accepts it directly |
start_business
Start a business from an idea
Use when the user wants to start a business or launch an offer from an idea ("start a coffee subscription called Bean Club"). Pass the idea in their words, plus name, domain, country and budget if given. Saves it on the brand and answers the launch plan (brand, a landing page the AI in the chat writes and Hermoso hosts, its address, email on the domain, payments, posts, ads, tracking), each step with its status, the next call and any link the user must click. Calling again picks up where it left off. After each step call business_status and show its checklist. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| idea | string | non | the idea in the user's words (needed the first time) |
| name | string | non | business name |
| domain | string | non | a domain they want or own |
| country | string | non | two letters, e.g. US |
| budget | string | non | a budget they mentioned, in their words |
business_status
Show the business launch progress
The launch plan from start_business, read back live: each step's status, what is done, the next call and any link the user must click. Show its checklist in the chat after each step. Free, read-only.
Aucun paramètre.
welcome
Ways to start with Hermoso
Use when the user first connects Hermoso or asks what it can do. Answers up to five concrete ways to start, for what this app does, tailored to their brand and what is connected, each with an example ask in plain words and the one call that starts it. Offer them as short choices with their example asks. Free, read-only.
Aucun paramètre.
hermoso_capabilities
Hermoso models, options and credit costs
Probe what this Hermoso account can do RIGHT NOW: available image/video model ids + their credit costs (estimates: a render is charged its actual cost), aspect ratios, video durations, the recipe ids, and the canEdit/canAvatar flags. Call it when you need a specific model id, a credit cost, or a capability you are not sure of. Read-only, free.
Aucun paramètre.
hermoso_other_capabilities
Where each Hermoso feature is
Use this when the user asks for something this connection's tools do not cover, or asks which Hermoso app or connection does what. Returns each area of Hermoso (posting, paid ads, ad creation, research, analytics and the rest) with the Hermoso app or connection that covers it and its link, so you can tell the user where to do it. Read-only: it runs nothing and changes nothing.
Aucun paramètre.
hermoso_credits
Credit balance
Return the credit balance, recent priced calls with their credits, and costModel (the one-sentence rule of what costs credits). THE RULE: only AI model runs and Ad Spy research spend credits; publishing, scheduling, ads management, analytics, comments, DMs and connectors cost no credits on any plan (X is the single per-call exception; xCost gives its exact credits per post, with and without a link). Check before kicking off paid generation; answer "does posting cost credits?" with NO. HOW MANY posts is set by the plan, not credits: the Free plan includes up to 10 posts on 3 channels, and a post counts once however many channels it goes to (`posting` says how many are used); every paid plan posts without a limit and runs autopilot (every paid plan includes Autopilot plus unlimited posting and scheduling; each plan's live price and monthly credits come with the plan list). Starter, Pro and Studio: no markup on models, on every credit the account spends, extra packs included (memberRate); Basic and Free pay standard prices.
Aucun paramètre.
buy_credits
Buy credits
Out of credits? Top up with a credit PACK. Call with no argument to list the available packs (id · credits · price), from the smallest ($10 for 400 credits, for something small and quick) up to $400 for 17,000; $25 buys 1,000 and the bigger packs carry a little more value. Every pack grants exactly its listed credits. If the account has a saved card and you have billing-admin rights, calling with `pack` quotes the exact charge and calling again with confirm:true AND the quote's quote_token charges the saved card instantly (same one-click top-up as the app — no redirect). If there's no saved card yet, you get a Stripe checkout URL to hand your human for the FIRST purchase; their card saves for one-click after that. Packs only; subscriptions are managed by a person in Billing. IF YOU ARE AN AGENT HOLDING YOUR OWN PAYMENT CREDENTIAL, there is a third path that needs no human at all: `POST /api/billing/machine-payment` with a `packId` answers HTTP 402 carrying an MPP challenge, and grants the pack once you authorise and retry with the credential — the same packs, the same prices, the same credits. `GET /api/billing/config` carries a `machinePayments` block listing the packs with their per-credit rates and saying whether that lane is enabled on this server. Most agents do NOT have their own credential yet, so the checkout link above remains the normal path. To stop running out entirely, turn on auto-reload with set_auto_reload (admin) — low balances then top themselves up from th…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| pack | string | non | the pack id to buy (e.g. pack-2050) — omit to list the available packs first |
| confirm | boolean | non | set true to actually charge the saved card for `pack` (required for the one-click charge; ignored on the checkout-link path) |
| quote_token | string | non | the quoteToken returned by the quote step — REQUIRED (with confirm:true) to charge; it binds the exact pack + price you quoted (10-minute validity) and makes a retried confirm idempotent |
| offer | string | non | a partner offer code (e.g. SECRET30): instead of a pack, returns the Starter-free-for-1-month checkout link (300 credits during the month, $0 today, card required) when this account can take it |
report_bug
Report a bug
Report a bug in Hermoso to the team. Use this when something in Hermoso genuinely misbehaves — a tool errors unexpectedly, returns a wrong or malformed result, a render comes back broken, or documented behaviour doesn't match what happened. Include what you were trying to do, the exact tool call and arguments, and what came back. Do NOT use it for out-of-credits, a policy refusal, or a missing capability (use request_feature for that). Free, no credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| summary | string | oui | one-line summary of the bug |
| details | string | oui | what you were doing, the tool + arguments you called, what you expected, and what actually happened (paste the exact error) |
| severity | enum: "low" | "medium" | "high" | non | high = blocks the task or loses paid work; medium = wrong output but workable; low = cosmetic |
request_feature
Request a feature
Ask the Hermoso team for a capability that doesn't exist yet. Use this when you need something Hermoso genuinely can't do — an unsupported platform or channel, a missing model, an export format, a tool that would have completed the user's task but isn't available. Say what the user was trying to achieve, not just the feature name — the use case is what gets built. Free, no credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| summary | string | oui | one line: the capability you need |
| details | string | oui | what the user was actually trying to achieve, why the current tools couldn't do it, and what you'd expect the capability to do |
contact_support
Contact Hermoso support
Message Hermoso's human support team for the user: billing, account or sign-in problems, a connector that will not connect, or a question the tools cannot answer. Use the user's words. The team replies by email to the account's address (the result names it). Defects you found: report_bug. Missing capabilities: request_feature. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| message | string | oui | the user's question, in their words, with what they tried |
| page | string | non | where it happened: a tool, page or job id |
affiliate_status
Referral link and earnings
The account's Refer & earn program: the referral link and code, clicks, signups, paying referrals, and earnings (held, available to withdraw, in review, paid, owed back from refunds). The program pays a share of every plan and credit-pack payment a referred account makes for 12 months (the current rates are in terms.ratePercent and terms.packRatePercent); the link's cookie lasts 60 days; each commission is held 60 days before it can be withdrawn. Not joined yet: says so, then join_affiliate_program. Free.
Aucun paramètre.
join_affiliate_program
Join Refer & earn
Join the affiliate program and get a referral link (https://app.hermoso.ai/r/ ). Needs acceptTerms:true: the affiliate terms at hermoso.ai/terms#affiliates (no self-referral, no paid search ads on the Hermoso name, no spam; commissions are taken back on refunds and chargebacks). Show the user those rules before accepting for them. code: an optional chosen code (5 to 24 letters or digits). The account owner only. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| acceptTerms | boolean | oui | true = the user accepts the affiliate terms |
| code | string | non | a chosen code, e.g. MAYA20; omit for a random one |
affiliate_payout_setup
Set up affiliate payouts
Answer the secure page from our payment processor where the affiliate adds their bank details and confirms who they are (the processor keeps them, Hermoso never sees them). Needed once before withdraw_affiliate_earnings. Free.
Aucun paramètre.
withdraw_affiliate_earnings
Withdraw affiliate earnings
Pay the available affiliate earnings to the affiliate's payout account (minimum $50; it then reaches their bank). Without confirm it only says how much would be sent. confirm:true sends it. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| confirm | boolean | non | true = send it |
claim_referral_code
Enter a referral code
Record that a friend referred this account, for someone who signed up without the friend's link: within 14 days of signing up and before the first payment. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| code | string | oui | the friend's referral code |
billing_status
Billing status
Show this account's billing at a glance: current plan (quote plan.priceUsd per plan.period), credit balance, whether auto-reload is on, whether a card is on file, and whether YOU (this key) have ADMIN rights to change billing. Read-only, free. Call it before upgrade_plan / set_auto_reload to know what's possible — members have read-only billing. IN A SHARED TEAM WORKSPACE A MEMBER SEES THE PLAN AND THE BALANCE ONLY: the workspace owner's payment card and auto-reload belong to them and are not reported (billingScope:'member'). Never tell a member there is no card on file — the honest answer is that you cannot see it. plan.memberRate: media models at cost + 10%; plan.legacy: an older plan kept at its price. posting: the posting allowance (Free includes up to 10 posts on 3 channels; "N of 10 posts used", unlimited on every paid plan).
Aucun paramètre.
upgrade_plan
Upgrade plan
Change the SUBSCRIPTION plan (admin only). No argument lists the monthly plans. Each plan leads with what it is for. Every paid plan (Starter, Pro, Studio) includes Autopilot, unlimited posting and scheduling, monthly credits and no markup on models on every credit including extra packs; Starter is also the plan for someone who only posts and schedules. Basic is no longer sold (existing subscribers keep it): never offer it. The no-argument listing gives each plan's live price, monthly credits and sites (unlimited pages and landing pages on each site, so a business can keep every landing page on one); quote prices from it, never from memory. Every paid plan posts without a limit (Free: up to 10 posts on 3 channels). New subscriber: a Checkout URL for the human. Existing subscriber upgrading: a quote + quote_token; once the human agrees, call again with confirm:true and quote_token to charge the card on file. Downgrade: a billing-page link; it starts at the term's end.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| plan | string | non | the plan id to move to (e.g. pro) — omit to list the available plans first |
| period | enum: "mo" | "yr" | non | monthly only ('yr' buys monthly) |
| confirm | boolean | non | true (with quote_token) to make a quoted upgrade |
| quote_token | string | non | the quoteToken from the quote step |
| offer | string | non | a partner offer code (e.g. SECRET30): Starter free for 1 month — 300 credits during the month, then the normal monthly plan; card required, $0 today, cancel anytime before it renews |
set_auto_reload
Set auto-reload
Turn automatic credit reloads on or off (admin only): when the balance drops below a threshold, the card on file is charged for a top-up pack — SERVER-SIDE, even with no app open. Requires a saved card, added once in the app at first checkout/top-up; if there's none the tool tells you exactly where to add it. After that one-time card setup, agents can manage auto-reload, top-ups and plan links fully. Members (read-only billing) get an 'ask an admin' message.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| enabled | boolean | oui | true to turn auto-reload on, false to turn it off |
| thresholdCredits | integer | non | reload when the balance drops below this many credits |
| reloadCredits | integer | non | how many credits to add each reload — must match a credit pack size (see buy_credits) |
list_brands
List profiles
List every profile on this account (id + name; a profile is a brand, a creator or a personal workspace) and which one this connection acts on, PLUS any profile another account shared with you. Call this, then use_brand to switch; a SHARED profile switches the same way (pass its name or the profile id printed here). If a profile looks empty when the app shows it full, you are acting on a different one: call this first. overview:true instead reads ACROSS every brand you run (for clients or users): per brand, posts waiting for approval, failed and stuck posts, connections that need reconnecting (with the reconnect link), credits used and upcoming posts over the last `days` (default 7); includeAdSpend:true adds ad spend (reads each ad platform, slower); brands narrows it. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| overview | boolean | non | read across every brand: what needs attention on each |
| days | number | non | overview window, 1-31 (default 7) |
| brands | array<string> | string | non | overview: only these brands (ids or names) |
| includeAdSpend | boolean | non | overview: also read ad spend per brand |
use_brand
Switch profile
Pin which profile this connection acts on. Pass the profile id or exact name from list_brands. Works for your own profiles AND one another account SHARED with you (pass its name or the profile id list_brands prints); access is verified against your real membership before it is pinned. Persists for this API key until changed, on every surface (hosted connector included — no environment variables, no restart). On a signed-in connector it also moves every other Hermoso connector the same person signed in from the same app (e.g. all the Hermoso connectors in Claude), so they act on one profile.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| brand | string | oui | profile id (e.g. default / p_xxx), its exact name from list_brands, or the profile id of one shared with you |
create_brand
Create a profile
Add a NEW profile (a brand, client, creator or personal workspace) and switch to it. Each has its OWN brand details, memory, swipefile, Library, avatars, skills, playbooks and connectors; nothing leaks between them. Use draft_brand to FILL it and update_brand to edit it. Re-running with the same name returns the existing profile instead of a duplicate. Creating it is free. Drafting a NEW brand into it (draft_brand) needs the credits for its research on the balance, about 100; with fewer, draft_brand refuses before anything runs or is charged and says how many it needs and how many the account has.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| name | string | oui | the name for the new profile (a brand, client or creator name) |
| activate | boolean | non | switch this connection to the new profile (default true); everything you do next scopes to it |
delete_brand
Delete a profile
PERMANENTLY delete a profile and EVERYTHING in it — brand details, memory, swipefile, Library creations, generated assets, avatars, skills, playbooks, chats — and disconnect its connected accounts. Irreversible, and it applies to everyone the workspace is shared with. Call it WITHOUT confirm first: it reports exactly what that workspace holds. Show the user that inventory verbatim, get an unambiguous yes, then call again with confirm:true — plus, if the workspace is not empty, confirmName set to its exact name and confirmConnectors set to the number of connected accounts it reported. Those two exist because confirming INTENT does not prove you picked the right WORKSPACE, and a wrong target is how a live profile was destroyed. The account's FIRST/anchor profile cannot be deleted this way (it holds the workspace's root storage) — that one is replaced from the app.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| brand | string | oui | profile id or exact name from list_brands |
| confirm | boolean | non | REQUIRED true — this destroys the whole profile and cannot be undone |
| confirmName | string | non | the workspace's EXACT name, required when it is not empty — copy it from the inventory this tool returned, after the user has agreed to it |
| confirmConnectors | number | non | the number of connected accounts the inventory reported, required when there is at least one — the user must specifically agree to losing them, because reconnecting each needs a browser and no agent can do it |
upload_file
Upload a local file -> durable public URL
Persist an ARBITRARY user file (image, video, audio, PDF or document, up to 150MB) into Hermoso and get back a durable public URL that EVERY publish, schedule and ad-build tool accepts. Kept in the Library. THIS IS THE BRING-YOUR-OWN-CREATIVE PATH: it is for files that have NOTHING to do with a Hermoso render (media on the user's desktop, an agency's finished ad, a photo they shot), and it means you can publish, schedule and run ads through Hermoso without generating anything here. Provide exactly ONE source — passing two is an error, never a silent preference: `url` (ANY public http(s) link — Hermoso fetches it server-side, so nothing crosses this connection and there is no practical size limit; THIS IS THE ONE THAT ALWAYS WORKS, including on the hosted connector), `dataUri` (a base64 data: URI — keep it under ~15MB, since the bytes travel over this connection). If the file is already at a public https URL, the Meta, Reddit and ChatGPT-Ads tools take it directly and re-host it safely — but LinkedIn (posts and ad creatives), Pinterest, the YouTube thumbnail and upload_google_ads_asset upload the BYTES themselves and therefore refuse an external host, so run it through here first and pass the URL this returns. When in doubt, use this: its URL works everywhere. (Calling the underlying HTTP route directly? POST /api/upload takes the file's RAW BYTES as the request body with its own content-type — NOT multipart/form-data — or ?url= with no body.) Returns {url, kind, bytes}.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| getUploadUrl | boolean | non | ASK FOR A ONE-TIME UPLOAD URL instead of uploading now — use this whenever the file is on the user’s machine and you can run a shell or an HTTP request. Returns a uploadUrl you PUT the raw bytes to (any HTTP client), which answers with the durable Hermoso url. It beats `dataUri` for anything but a… |
| url | string | non | a PUBLIC http(s) URL Hermoso fetches server-side (private/internal addresses are refused, and every redirect hop is re-checked). A share link from Dropbox, Google Drive, OneDrive, SharePoint or Box works as the file itself (set to "Anyone with the link"); an iCloud Drive link does not, Apple gives… |
| dataUri | string | non | base64 data: URI of the file bytes (data: ;base64, ) — bytes travel over this connection, so keep it small |
| name | string | non | original file name — helps pick the right extension |
pinterest_ads_async_report
Pinterest deep (async) ad report
The DEEP Pinterest ad report — Pinterest’s ASYNCHRONOUS lane, which reaches 914 DAYS back (2.5 years) where pinterest_ads_report stops at 90, and carries roughly three times the metric columns (conversion, ROAS and cross-device families the quick report does not have). Use it for anything older than three months, and for revenue questions. Levels: ADVERTISER / CAMPAIGN / AD_GROUP / PIN_PROMOTION / KEYWORD / PRODUCT_GROUP / PRODUCT_ITEM plus their *_TARGETING twins. Pinterest generates it asynchronously, so this may come back pending:true with a token — CALL AGAIN WITH THAT TOKEN to pick it up, and never re-submit without it (a second submit generates a second report). Pinterest’s own windows are enforced here with the reason rather than as an opaque 400: 914 days back over at most 186 days; at HOUR granularity 8 days back over 3; at a PRODUCT_ITEM level 92 back over 31. A finished report link is valid five minutes and the report one hour, so an EXPIRED status means run it again, not that anything failed. Read-only, 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Pinterest ad account id; omit when only one is shared with this profile |
| token | string | non | RESUME a pending report — pass the token back instead of re-submitting |
| since | string | non | YYYY-MM-DD (default 30 days ago) |
| until | string | non | YYYY-MM-DD (default today) |
| granularity | enum: "TOTAL" | "DAY" | "HOUR" | "WEEK" | "MONTH" | non | time bucket: TOTAL, DAY, HOUR, WEEK or MONTH |
| level | string | non | ADVERTISER | CAMPAIGN | AD_GROUP | PIN_PROMOTION | KEYWORD | PRODUCT_GROUP | PRODUCT_ITEM (+ _TARGETING variants) — default CAMPAIGN. An unknown level is refused with the list. |
| columns | array<string> | non | Pinterest async metric columns — omit for the standard spend/impressions/clicks/CTR/conversions set |
| campaignIds | array<string> | non | limit the report to these campaign ids |
| adGroupIds | array<string> | non | limit the report to these ad group ids |
| adIds | array<string> | non | limit the report to these ad ids |
| targetingTypes | array<string> | non | only valid with a *_TARGETING level |
| reportFormat | enum: "JSON" | "CSV" | non | JSON or CSV |
search_pinterest_ads_targeting
Find Pinterest ad targeting options
THE IDS AN AD GROUP’S targetingSpec NEEDS. create_pinterest_ads_campaign and create_pinterest_ads_ad_group accept interests, locales, locations, age buckets and keywords — this is where those values come from, and guessing one is the worst option available: Pinterest ACCEPTS a well-formed but wrong interest id and the campaign then quietly targets the wrong people. Pass targetingType (INTEREST, GEO, LOCATION, LOCALE, AGE_BUCKET, GENDER, APPTYPE, KEYWORD, AUDIENCE_INCLUDE, AUDIENCE_EXCLUDE) and optionally `query` to narrow the list. INTERESTS ARE A TREE: pass interestId instead to drill into one and get its children, which is how you get from "Food" to something specific enough to target. Pinterest publishes no search parameter of its own, so `query` filters the full list HERE — the note says so, because a filter we applied is not a filter the vendor applied. Read-only, 0 credits, no new permission (it uses ads:read, already granted).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Pinterest ad account id; omit when only one is shared with this profile |
| targetingType | enum: "APPTYPE" | "GENDER" | "LOCALE" | "AGE_BUCKET" | "LOCATION" | "GEO" | "INTEREST" | "KEYWORD" … | non | which catalog to list — required unless you pass interestId |
| query | string | non | narrow the list to options mentioning this text (filtered here, not by Pinterest) |
| interestId | string | non | drill INTO one interest and return its child interests — how you walk the interest tree |
| limit | number | non | 1–500, default 100 |
upload_meta_asset
Upload an asset to a Meta ad account
Upload creative(s) — a finished Hermoso ad OR arbitrary user files (e.g. A folder of media from the user’s desktop) — into a connected ad account’s ASSET LIBRARY so the user or a later ad-build step can use them in their OWN campaigns. Pass `url` for one file, or `urls` (up to 20) to BULK-upload in a single call. Each accepts a public https URL, a data: URI, or a Hermoso /generated path; for LOCAL files call upload_file first and pass the url(s) it returns. Image -> image hash; video -> video id.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | oui | Ad account id |
| url | string | non | a single public https URL / data: URI / /generated path; a URL, not a local file path; use upload_file for local files |
| urls | array<string> | non | up to 20 media URLs/paths for a one-call BULK upload |
| kind | enum: "image" | "video" | non | inferred from the URL if omitted |
| name | string | non | a label for the asset |
create_meta_campaign
Create a Meta ad campaign (paused)
Use this when the user asks to create a new Facebook or Instagram ad campaign on their own ad account. Create a campaign on a connected Meta ad account. Always created PAUSED — it spends NOTHING until you activate it with set_meta_campaign_status(confirm:true). Optionally set a dailyBudgetUsd (an amount in the AD ACCOUNT’s currency, e.g. CAD on a CAD account — the name is historical, it is not USD). Pass adAccountId + an objective. Needs ads-management permission on the connected account. CATALOG / ADVANTAGE+ CATALOG ADS (also called DPA or dynamic product ads) ARE SUPPORTED: pass productCatalogId here and productSetId on the ad set, and the campaign is catalog-backed. Say YES when a user asks for catalog, Advantage+ catalog, DPA or feed-driven ads. Before building on an account for the first time, run the ad account health check, which says whether it can run ads (status, payment method, spending limit, rejected ads).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| name | string | oui | campaign name |
| adAccountId | string | oui | Ad account id |
| objective | enum: "OUTCOME_TRAFFIC" | "OUTCOME_AWARENESS" | "OUTCOME_ENGAGEMENT" | "OUTCOME_LEADS" | "OUTCOME_SALES" | "OUTCOME_APP_PROMOTION" | non | default OUTCOME_TRAFFIC |
| bidStrategy | enum: "LOWEST_COST_WITHOUT_CAP" | "LOWEST_COST_WITH_BID_CAP" | "COST_CAP" | "LOWEST_COST_WITH_MIN_ROAS" | non | with dailyBudgetUsd: how the campaign bids across its ad sets — LOWEST_COST_WITHOUT_CAP (default: highest volume), LOWEST_COST_WITH_BID_CAP / COST_CAP (each ad set then needs bidAmountUsd), LOWEST_COST_WITH_MIN_ROAS (each ad set needs minRoas) |
| dailyBudgetUsd | number | non | optional campaign daily budget in the AD ACCOUNT's currency (not necessarily USD — the reply names it); real spend once ACTIVE. With it, the campaign holds the budget (Advantage+ campaign budget) and every ad set under it carries NONE — create_meta_adset / create_meta_ad then send no ad-set budget |
| productCatalogId | string | non | CATALOG (dynamic product) ADS. This is the CAMPAIGN-level half of a catalog ad; the AD SET takes a productSetId and the creative takes the same set. Passing a product SET id here is refused by name with the level it belongs on. The binding is READ BACK from Meta before it is reported, so a 200 is n… |
| specialAdCategories | array<enum: "HOUSING" | "EMPLOYMENT" | "CREDIT" | "FINANCIAL_PRODUCTS_SERVICES" | "ISSUES_ELECTIONS_POLITICS" | "ONLINE_GAMBLING_AND_GAMING"> | non | legally required for housing, employment, credit/financial, political or gambling ads; it restricts targeting (ages 18-65+, all genders, wide locations). The reply states what Meta stored |
| specialAdCategoryCountry | array<string> | non | with specialAdCategories: the 2-letter ISO countries the declaration is made for (Meta’s special_ad_category_country), e.g. ["SY"]. Left out, Meta uses the ad account’s tax country; ISSUES_ELECTIONS_POLITICS needs it |
set_meta_campaign_status
Activate or pause a Meta campaign
Turn a campaign ON (ACTIVE) or OFF (PAUSED). 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. Needs ads-management permission.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| campaignId | string | oui | the campaign id (from create_meta_campaign) |
| status | enum: "ACTIVE" | "PAUSED" | oui | ACTIVE = start spending; PAUSED = stop |
| confirm | boolean | non | REQUIRED true to activate (real spend) — set only after the user explicitly approved the budget |
upload_meta_playable
Upload a playable ad to Meta
Upload a PLAYABLE ad (an interactive HTML game the advertiser already has) to a Meta ad account. Pass url: ONE HTML file up to 2 MB, or a zip up to 5 MB (under 100 files) with index.html at the top; it must call FbPlayableAd.onCTAClick() and load nothing from outside. Hermoso checks those rules first and refuses a file Meta would reject. Returns playableAssetId: build the ad with create_meta_ad(playableAssetId, adSetId of an App Installs ad set, ONE lead-in video). Meta has no way to delete a playable once uploaded. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | oui | ad account id |
| url | string | oui | public https link to the HTML file or zip; upload_file turns a local file into one |
| name | string | non | display name for the playable in Meta; optional |
list_meta_playables
List Meta playables
List the playables uploaded to a Meta ad account (id and name), for create_meta_ad's playableAssetId. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | oui | act_… or the bare number |
| limit | number | non | maximum number of playables to return |
create_meta_ad
Build a full Meta ad (campaign -> ad set -> ad, paused)
Build a complete, ready-to-run Meta ad: campaign -> ad set (FULL targeting + budget + schedule + bidding) -> creative -> ad(s), ALL created PAUSED — it spends NOTHING until you activate the campaign with set_meta_campaign_status(confirm:true). This is the "create a campaign and put the ads on it" path. IMAGE, VIDEO (uploaded, transcoded and thumbnailed for you) and CAROUSEL (format:"carousel", 2–10 cards each with its own headline/description/link) all work. Targeting is the `targeting` object: geo down to cities with a radius, age, gender, interests, behaviours, custom audiences and lookalikes, languages, placements, devices and OS. For a conversion objective pass pixelId + conversionEvent and the ad set optimizes for that conversion. Schedule with startTime/endTime + dayparting; bid with bidStrategy + bidAmountUsd/minRoas; use lifetimeBudgetUsd (with endTime) for a fixed flight. Attach to an existing campaign with campaignId or an existing ad set with adSetId. Everything is READ BACK from Meta before you are told it exists — print the returned summary verbatim (it carries 24-hour Meta PREVIEW LINKS for the first ad — hand them to the user; preview_meta_ad renders any ad in any placement). Needs ads-management on the connected account. BOOST AN EXISTING POST: pass boostPostId — a post you have ALREADY published (numeric id, the _ form, or a permalink) — INSTEAD of any creative, and the ad promotes that post exactly as published, comments and all. The post keeps its own capt…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| boostPostId | string | non | Promote a post that ALREADY EXISTS instead of building a new ad from media. Accepts the numeric post id, _ , or a permalink (an Instagram post is its NUMERIC media id — an instagram.com link carries only a shortcode, which Meta cannot resolve). Cannot be combined with image/video inputs. The post k… |
| boostTarget | enum: "facebook" | "instagram" | non | Which surface the boosted post lives on. Default facebook. REQUIRED for an Instagram post: an IG media id and a Facebook post id are both bare digits, so this is never inferred — Meta takes a different creative for each (object_story_id for a Page post; object_id + instagram_user_id + source_instag… |
| threadsUserId | string | non | THREADS: the Threads account id the ad runs under on Threads. Leave it out: when targeting.publisherPlatforms includes threads (or the ad set already has it), Hermoso finds the Threads profile linked to the Page's Instagram account itself. An existing Facebook or Instagram post (boostPostId) can be… |
| partnershipAdCode | string | non | PARTNERSHIP AD FROM A CREATOR'S CODE: the ad code a creator shares for their own Instagram post (their post > ... > Partnership label and ads > Ad code). The ad promotes THEIR post as a partnership ad run by this brand — no media id needed. Use INSTEAD of boostPostId; cannot be combined with your o… |
| partnershipAdFormat | enum: "both" | "single" | "auto" | non | Which identities a boosted partnership post shows (Meta's ad_format): both = creator AND brand (Meta's default), single = only the first identity, auto = Meta picks per impression (Instagram only). Only with partnershipAdCode or boostPostId. |
| adAccountId | string | oui | Ad account id |
| format | enum: "auto" | "carousel" | non | auto = one ad per asset (image or video); carousel = ONE multi-card ad |
| imageUrl | string | non | public https image URL for the ad creative |
| imageUrls | array<string> | non | several image URLs -> one ad each, or the carousel cards in order |
| videoUrl | string | non | a video URL -> a real Meta VIDEO ad (uploaded + transcoded + thumbnailed for you) |
| thumbnailUrl | string | non | custom video thumbnail (otherwise Meta picks a frame) |
| message | string | non | primary ad text |
| headline | string | non | headline |
| description | string | non | the smaller description line under the headline |
| cards | array<object> | non | carousel cards in order — each may set its own headline/description/link |
| carouselEndCard | boolean | non | append the Page end card to a carousel |
| link | string | non | Destination URL (defaults to the brand domain). |
| cta | string | non | call-to-action, e.g. SHOP_NOW / LEARN_MORE / SIGN_UP (default LEARN_MORE); WHATSAPP_MESSAGE for a click-to-WhatsApp ad (see destinationType). Any Meta call-to-action type works (SEE_DETAILS…); unknown ones are refused, not swapped. |
| leadFormId | string | non | LEAD ADS — attach an instant form (from list_meta_lead_forms / create_meta_lead_form) so the button opens that form INSIDE Facebook/Instagram instead of sending the click to a website. Requires objective:"OUTCOME_LEADS"; the ad set is then optimized for LEAD_GENERATION and pointed at the form autom… |
| objective | enum: "OUTCOME_TRAFFIC" | "OUTCOME_AWARENESS" | "OUTCOME_ENGAGEMENT" | "OUTCOME_LEADS" | "OUTCOME_SALES" | non | default OUTCOME_TRAFFIC |
| brandedContentSponsorIgId | string | non | PARTNERSHIP AD — the Instagram account id shown as the PAID PARTNER on this ad (Meta’s `instagram_branded_content.sponsor_id`), so the ad runs as a creator collaboration rather than as a plain brand ad. Hermoso sends this id EXACTLY as given and does not work out which id belongs in which slot — Me… |
| brandedContentSponsorPageId | string | non | PARTNERSHIP AD — the Facebook Page id of the paid partner (Meta’s `facebook_branded_content.sponsor_page_id`). Give BOTH halves when the ad runs across both surfaces: supplying only one leaves the other surface’s placements with no partnership label at all, and the returned summary says which half… |
| productSetId | string | non | CATALOG (dynamic product) ADS. Meta binds a catalog at TWO levels and they are different ids on different objects: the CAMPAIGN takes productCatalogId, the AD SET takes productSetId. Passing a CATALOG id here is refused by name rather than moved, because Meta’s own error for a mis-placed id names n… |
| dailyBudgetUsd | number | non | ad-set daily budget in the AD ACCOUNT's currency (historical name — not necessarily USD; default 10, or 1,000 in a whole-unit currency like JPY) — spends only once ACTIVE. Under a campaign that HAS its own budget (create_meta_campaign with dailyBudgetUsd, Advantage+ campaign budget) leave this and… |
| lifetimeBudgetUsd | number | non | a fixed total instead of a daily budget, in the ad account's currency — REQUIRES endTime |
| country | string | non | 2-letter shorthand when you are not passing full targeting (default US) |
| targeting | object | non | full Meta ad-set targeting — age, gender, geo, interests, behaviours, audiences, languages, placements, devices. Use EXACTLY these key names: an unrecognised one (e.g. geoLocations) is REFUSED by name — it is never dropped, because a dropped geo key used to fall back to targeting the United States. |
| pixelId | string | non | Meta Pixel id — with this the ad set optimizes for a real CONVERSION instead of falling back to link clicks |
| conversionEvent | string | non | PURCHASE | LEAD | COMPLETE_REGISTRATION | ADD_TO_CART | INITIATED_CHECKOUT | … |
| customConversionId | string | non | Meta custom conversion id (digits), from Meta Events Manager |
| applicationId | string | non | app-promotion ads |
| objectStoreUrl | string | non | app store link for an app-install ad |
| optimizationGoal | string | non | override, e.g. OFFSITE_CONVERSIONS / LANDING_PAGE_VIEWS / THRUPLAY / VALUE |
| billingEvent | string | non | default IMPRESSIONS |
| bidStrategy | enum: "LOWEST_COST_WITHOUT_CAP" | "LOWEST_COST_WITH_BID_CAP" | "COST_CAP" | "LOWEST_COST_WITH_MIN_ROAS" | non | bidding: lowest cost, bid cap, cost cap or minimum ROAS (Meta's strategy names) |
| bidAmountUsd | number | non | REQUIRED for a bid cap / cost cap |
| minRoas | number | non | REQUIRED for LOWEST_COST_WITH_MIN_ROAS, e.g. 1.1 |
| startTime | string | non | ISO-8601 with offset, e.g. 2026-08-01T09:00:00-0700 |
| endTime | string | non | REQUIRED with lifetimeBudgetUsd |
| adsetSchedule | array<object> | non | dayparting — minutes from midnight (0–1440), days 0=Sunday…6=Saturday |
| attributionSpec | array<any> | non | e.g. [{event_type:"CLICK_THROUGH",window_days:7}] |
| dsaBeneficiary | string | non | EU AD TRANSPARENCY: the person or organisation this ad promotes (Meta shows it on the ad). Meta requires it whenever the ad set reaches the EU; omit it and Hermoso uses the ad account's own default, else this profile's brand name, else the Page name, and the summary says which was used |
| dsaPayor | string | non | EU AD TRANSPARENCY: who pays for the ads (Meta shows it on the ad). Omit it and it matches dsaBeneficiary |
| specialAdCategories | array<enum: "HOUSING" | "EMPLOYMENT" | "CREDIT" | "ISSUES_ELECTIONS_POLITICS" | "ONLINE_GAMBLING_AND_GAMING" | "FINANCIAL_PRODUCTS_SERVICES"> | non | legally required when the ad falls in one of these categories — it restricts targeting |
| specialAdCategoryCountry | array<string> | non | with specialAdCategories: the 2-letter ISO countries the declaration is made for (Meta’s special_ad_category_country), e.g. ["SY"]. Left out, the countries this ad targets are used; ISSUES_ELECTIONS_POLITICS needs it |
| instagramUserId | string | non | run it on Instagram under the brand’s own handle |
| name | string | non | base name for the campaign/ad set/ads |
| campaignId | string | non | attach to an existing campaign instead of creating one |
| destinationType | string | non | WHERE A CLICK LANDS, and worth deciding for a merchant with a shop. "WEBSITE" sends it to their own site — their pixel fires, their email capture runs, their upsell flow works. "WEBSITE_AND_SHOP" lets Meta route it into the in-app Facebook/Instagram Shop instead: often fewer taps to a purchase, but… |
| creativeEnhancements | enum: "off" | "meta" | object | non | META'S AUTOMATIC CREATIVE ENHANCEMENTS (Advantage+ creative: AI text overlays, stickers, templates, generated backgrounds, uncropping, text rewrites, translation…). DEFAULT "off": every one is explicitly switched OFF so the ad runs exactly as made. "meta" leaves Meta's own defaults. Or an object tu… |
| urlTags | string | boolean | non | UTM click tracking Meta appends to every click (the creative's url_tags). DEFAULT ON: utm_source=meta&utm_medium=paid&utm_campaign={{campaign.name}}&utm_term={{adset.name}}&utm_content={{ad.name}} (Meta fills the {{…}} per click) — skipped automatically when your link already has utm_ parameters. P… |
| phoneNumber | string | non | CLICK-TO-CALL: the number the Call Now button dials, international format (+15551234567); with destinationType PHONE_CALL |
| whatsappPhoneNumber | string | non | CLICK-TO-WHATSAPP: the WhatsApp Business number the chat opens with, in international format. Sent as the ad set’s promoted whatsapp_phone_number when destinationType is WHATSAPP; Meta still requires that number to be linked to the Page. |
| adSetId | string | non | attach the ad(s) to an EXISTING ad set (skips ad-set creation) |
| playableAssetId | string | non | a PLAYABLE from upload_meta_playable, shown after the lead-in video. Needs adSetId of an App Installs ad set and exactly ONE video; the button installs the app the ad set promotes |
| pageId | string | non | Omit when the brand has one Page; with several the call lists them, so ask the user which one. |
create_meta_adset
Create a Meta ad set (audience + budget + schedule)
Create an AD SET on an EXISTING Meta campaign — the level that holds the audience, budget, schedule and bidding. Use it to hang SEVERAL ad sets off ONE campaign, which is how you actually test audiences on Meta (one ad set per audience, same campaign, same creative). Takes the same full `targeting`, pixelId/conversionEvent, bidStrategy, schedule and budget fields as create_meta_ad. Created PAUSED and read back from Meta. It has NO ads until you call create_meta_ad(adSetId:…). For CATALOG / ADVANTAGE+ CATALOG ads (DPA), pass productSetId here — the campaign carries productCatalogId and the ad set narrows it to a product set.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | oui | ad account id (act_… or digits) |
| campaignId | string | oui | the campaign this ad set belongs to |
| name | string | non | ad set name |
| brandedContentSponsorIgId | string | non | PARTNERSHIP AD — the Instagram account id shown as the PAID PARTNER on this ad (Meta’s `instagram_branded_content.sponsor_id`), so the ad runs as a creator collaboration rather than as a plain brand ad. Hermoso sends this id EXACTLY as given and does not work out which id belongs in which slot — Me… |
| brandedContentSponsorPageId | string | non | PARTNERSHIP AD — the Facebook Page id of the paid partner (Meta’s `facebook_branded_content.sponsor_page_id`). Give BOTH halves when the ad runs across both surfaces: supplying only one leaves the other surface’s placements with no partnership label at all, and the returned summary says which half… |
| productSetId | string | non | CATALOG (dynamic product) ADS. Meta binds a catalog at TWO levels and they are different ids on different objects: the CAMPAIGN takes productCatalogId, the AD SET takes productSetId. Passing a CATALOG id here is refused by name rather than moved, because Meta’s own error for a mis-placed id names n… |
| dailyBudgetUsd | number | non | ad-set daily budget in the AD ACCOUNT's currency (historical name — not necessarily USD; default 10, or 1,000 in a whole-unit currency like JPY) — spends only once ACTIVE. Under a campaign that HAS its own budget (create_meta_campaign with dailyBudgetUsd, Advantage+ campaign budget) leave this and… |
| lifetimeBudgetUsd | number | non | a fixed total instead of a daily budget, in the ad account's currency — REQUIRES endTime |
| country | string | non | 2-letter shorthand when you are not passing full targeting (default US) |
| targeting | object | non | full Meta ad-set targeting — age, gender, geo, interests, behaviours, audiences, languages, placements, devices. Use EXACTLY these key names: an unrecognised one (e.g. geoLocations) is REFUSED by name — it is never dropped, because a dropped geo key used to fall back to targeting the United States. |
| pixelId | string | non | Meta Pixel id — with this the ad set optimizes for a real CONVERSION instead of falling back to link clicks |
| conversionEvent | string | non | PURCHASE | LEAD | COMPLETE_REGISTRATION | ADD_TO_CART | INITIATED_CHECKOUT | … |
| customConversionId | string | non | Meta custom conversion id (digits), from Meta Events Manager |
| applicationId | string | non | app-promotion ads |
| objectStoreUrl | string | non | app store link for an app-install ad |
| optimizationGoal | string | non | override, e.g. OFFSITE_CONVERSIONS / LANDING_PAGE_VIEWS / THRUPLAY / VALUE |
| billingEvent | string | non | default IMPRESSIONS |
| bidStrategy | enum: "LOWEST_COST_WITHOUT_CAP" | "LOWEST_COST_WITH_BID_CAP" | "COST_CAP" | "LOWEST_COST_WITH_MIN_ROAS" | non | bidding: lowest cost, bid cap, cost cap or minimum ROAS (Meta's strategy names) |
| bidAmountUsd | number | non | REQUIRED for a bid cap / cost cap |
| minRoas | number | non | REQUIRED for LOWEST_COST_WITH_MIN_ROAS, e.g. 1.1 |
| startTime | string | non | ISO-8601 with offset, e.g. 2026-08-01T09:00:00-0700 |
| endTime | string | non | REQUIRED with lifetimeBudgetUsd |
| adsetSchedule | array<object> | non | dayparting — minutes from midnight (0–1440), days 0=Sunday…6=Saturday |
| attributionSpec | array<any> | non | e.g. [{event_type:"CLICK_THROUGH",window_days:7}] |
| dsaBeneficiary | string | non | EU AD TRANSPARENCY: the person or organisation this ad promotes (Meta shows it on the ad). Meta requires it whenever the ad set reaches the EU; omit it and Hermoso uses the ad account's own default, else this profile's brand name, else the Page name, and the summary says which was used |
| dsaPayor | string | non | EU AD TRANSPARENCY: who pays for the ads (Meta shows it on the ad). Omit it and it matches dsaBeneficiary |
| pageId | string | non | Omit when the brand has one Page; with several the call lists them, so ask the user which one. |
find_meta_audiences
Look up Meta targeting ids
Look up the Meta targeting ids you need before building an ad set — interests, behaviours, cities/regions/zips/DMAs, languages, employers, job titles and schools. type:"adinterest" (q:"yoga") returns interest ids + audience size; type:"adTargetingCategory" with class:"behaviors" returns behaviour ids; type:"adgeolocation" (q:"Toronto", optionally locationTypes:"city") returns the geo KEYS that go in targeting.geo.cities/regions/zips; type:"adlocale" (q:"french") returns language ids for targeting.locales. Read-only and free. Use it whenever the user names an audience in words — never guess an id.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| type | enum: "adinterest" | "adTargetingCategory" | "adgeolocation" | "adlocale" | "adcountry" | "adzipcode" | "adeducationschool" | "adeducationmajor" … | oui | what kind of targeting object to search |
| q | string | non | what to search for |
| class | string | non | for adTargetingCategory, e.g. "behaviors" or "interests" |
| locationTypes | string | non | comma-separated: country,region,city,zip,geo_market |
| countryCode | string | non | 2-letter hint to disambiguate a city name |
| adAccountId | string | non | search with that ad account’s token |
| limit | number | non | maximum matches to return; the reply shows up to 25 |
list_meta_ads
List Meta campaigns / ad sets / ads
Read the EXISTING campaigns, ad sets, or ads on a connected Meta ad account — id, name, status, budget, objective, and at level ad WHY Meta rejected or flagged an ad (its review feedback, in Meta’s words). Pass adAccountId and level (campaign|adset|ad). Scope to a parent with campaignId (-> its ad sets/ads) or adsetId (-> its ads), and filter by status (ACTIVE/PAUSED/…). Read-only — use it to inspect an account before editing/deleting, or to answer "what’s running?".
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | oui | Ad account id |
| level | enum: "campaign" | "adset" | "ad" | non | what to list (default campaign) |
| campaignId | string | non | list the ad sets / ads under this campaign |
| adsetId | string | non | list the ads under this ad set |
| status | string | non | filter by effective status, e.g. ACTIVE / PAUSED |
| limit | number | non | max rows (1–200, default 50) |
analyze_campaigns
What to scale, pause, fix and test next
Use this when the user asks how their paid ads are doing across platforms, or what to scale, pause, fix or test next. One verdict across every connected ad platform: it pulls each platform's own report (Meta, Google Ads, ChatGPT Ads, TikTok, LinkedIn, Microsoft Advertising, Pinterest, Reddit, Snapchat, X, Apple Ads), normalises every campaign / ad set / ad into ONE table — spend, impressions, clicks, CTR, CPC, conversions, CPA, ROAS and frequency where the platform reports them — and answers with four lists: `scale`, `pause`, `fix` and `test_next`, plus `insufficient_data`. Each recommendation carries the row's own numbers, the reason, a next action and the exact tool call that would apply it (e.g. set_meta_campaign_status with confirm), which this tool never runs. FOUR REFUSALS TO REPEAT RATHER THAN PAPER OVER: (1) A ROW BELOW THE DATA FLOOR IS NEVER JUDGED — the minimums are stated in the reply, and an under-powered row lands in insufficient_data with what it lacks, never in "pause"; a row whose conversions are too few for a CPA verdict can still be read on CTR and CPC and says so. (2) A PLATFORM WHOSE READ FAILED IS NAMED AS UNREADABLE and its numbers are MISSING, never zero — never move budget on the strength of an absence. (3) A META AD SET IN THE LEARNING PHASE IS HELD BACK, because editing it restarts learning. (4) A CONVERSION COLUMN THE PLATFORM DOES NOT PUBLISH READS UNMEASURED, not zero (Reddit, Snapchat and X in this report). Conversion definitions differ per pla…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| days | number | non | how many complete days back, ending yesterday (default 14, max 90) |
| platforms | array<string> | non | meta, google_ads, openai_ads, tiktok_ads, linkedin, microsoft_ads, pinterest_ads, reddit_ads, snapchat_ads, x_ads, apple_ads — omit for every connected ad platform |
| goal | string | non | what to optimise for, in the user's own words |
| level | enum: "campaign" | "ad_group" | "ad" | non | default campaign |
meta_insights
Meta ad performance metrics
Use this when the user asks how their Facebook or Instagram ads are doing. It reads performance insights for a connected Meta ad account, or a specific campaign / ad set / ad: spend, impressions, reach, clicks, CTR, CPC, CPM, frequency, and the conversions and video numbers Meta reports. Pass adAccountId (for auth); optionally objectId to scope to one object and level (campaign / adset / ad) for one named row per campaign, ad set or ad. EVERY ROW CARRIES `kpis`, the Ads Manager columns read out of Meta's arrays: purchases with purchaseValue, costPerPurchase (CPA) and purchaseRoas (purchase ROAS); addToCart (adds to cart), initiateCheckout (checkouts started), landingPageViews (landing page views) and costPerLandingPageView; linkClicks with linkCtr (link CTR) and linkCpc (link CPC); video3sPlays (3-second video plays), thruPlays (ThruPlay), videoP25 / P50 / P75 / P95 / P100 (plays to 25%, 50%, 75%, 95%, 100%) and videoAvgWatchSeconds (average watch time). A kpi that is null was not reported by Meta for that row: say "not reported", never zero. timeIncrement gives one row per day (1 or "daily"), per week (7) or "monthly" in ONE call. attributionSetting:"adset" counts conversions with each ad set's own attribution setting, as Ads Manager's columns do; attributionWindows (e.g. "7d_click,1d_view") adds each window's count beside the total. fields adds more of Meta's insights fields (e.g. "attribution_setting,quality_ranking,outbound_clicks"); an unknown name is refused, never dro…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | oui | ad account id (act_… or digits) |
| objectId | string | non | a campaign / ad set / ad id to scope to (default: the whole account) |
| level | enum: "account" | "campaign" | "adset" | "ad" | non | break the numbers down by this level |
| breakdowns | string | non | comma-separated, e.g. "age,gender" | "publisher_platform,platform_position" | "country" | "impression_device" |
| actionBreakdowns | string | non | comma-separated, e.g. "action_type,action_device" — splits the conversion/action counts |
| datePreset | string | non | Meta's date_preset enum, default last_30d: today | yesterday | last_3d | last_7d | last_14d | last_28d | last_30d | last_90d | this_week_mon_today | this_week_sun_today | last_week_mon_sun | last_week_sun_sat | this_month | last_month | this_quarter | last_quarter | this_year | last_year | maximum… |
| since | string | non | start date YYYY-MM-DD (use with until). Meta keeps 37 months: an older start is moved to the oldest day Meta has, and the note says so |
| until | string | non | end date YYYY-MM-DD |
| timeIncrement | string | number | non | one row per period instead of one for the whole window: 1 or "daily" = per day, 7 or "weekly" = per week, any whole number of days 1–90, or "monthly". Default: one row for the whole window |
| fields | string | non | comma-separated extra Meta insights fields to add to every row, e.g. "attribution_setting,quality_ranking,outbound_clicks,website_purchase_roas,objective" |
| attributionSetting | enum: "adset" | "account" | "default" | non | how conversions are attributed: "adset" = each ad set's own setting (what Ads Manager's columns show), "account" = the ad account's setting, "default" or omitted = Meta's default (7-day click and 1-day view) |
| attributionWindows | string | non | comma-separated windows to report beside each action total: 1d_click, 7d_click, 28d_click, 1d_view, 7d_view, 28d_view, 1d_ev, dda, default |
| actionReportTime | enum: "impression" | "conversion" | "mixed" | "lifetime" | non | which day a conversion is counted on: the day of the ad impression, or the day the conversion happened |
| limit | number | non | rows per page, 1–500 (default 200) |
| after | string | non | the nextCursor of the previous page |
preview_meta_ad
Preview a Meta ad exactly as it will appear
Render a REAL preview of a Meta ad, per placement — Meta returns a link that shows exactly what a person scrolling Facebook or Instagram would see. Pass adAccountId + adId (from list_meta_ads), or creativeId. Optional placements (comma-separated): facebook_feed, facebook_feed_desktop, facebook_story, facebook_reels, facebook_profile_feed, facebook_marketplace, facebook_right_column, facebook_video_feed, instagram_feed, instagram_story, instagram_reels, instagram_explore, instagram_profile_feed, messenger_inbox, messenger_story, audience_network — default facebook_feed + instagram_feed + instagram_story + instagram_reels. Short words are read too and the reply says how: feed means facebook_feed, story/stories means facebook_story, reels means facebook_reels, instagram/ig means instagram_feed, ig_story, ig_reels. Free, read-only, spends nothing. THE LINKS EXPIRE AFTER 24 HOURS — always say so when handing them to a user. Use it straight after create_meta_ad, and whenever someone wants to approve an ad before it runs. BEFORE ANY AD EXISTS: leave adId and creativeId out and pass imageHash (from upload_meta_asset) or imageUrl, with message, link and optionally headline, description, cta and pageId; Meta renders that creative per placement and nothing is created.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | oui | ad account id (act_… or digits) |
| adId | string | non | the ad to preview (from list_meta_ads) |
| creativeId | string | non | preview a creative directly instead of an ad |
| placements | string | non | comma-separated placements (see the list above) |
| imageHash | string | non | before any ad exists: an image hash from upload_meta_asset |
| imageUrl | string | non | before any ad exists: a public https image |
| message | string | non | before any ad exists: the primary text |
| headline | string | non | before any ad exists: the headline |
| description | string | non | before any ad exists: the description line |
| link | string | non | before any ad exists: the destination link |
| cta | string | non | before any ad exists: the button, e.g. SHOP_NOW (default LEARN_MORE) |
| pageId | string | non | before any ad exists: the Page the ad runs from, when the brand has several |
meta_catalog_suggestions
Which catalog Meta would show under a new ad
Meta can show products from a catalog under a new ad by default (the product showcase). This previews what it would pick for an ad account before the ad is made: the catalog and product sets, each on by default or waiting for confirmation, or why there is none (no catalog, not enough context, not enabled). Pass adAccountId, objective (OUTCOME_SALES default, OUTCOME_TRAFFIC, OUTCOME_ENGAGEMENT or OUTCOME_LEADS) and adUrl and/or pageId; without either Meta cannot suggest. It applies to ads created from now on, and a creative’s product extensions cannot be changed after it is made. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | oui | Meta ad account id (act_ optional), from list_meta_ads |
| objective | enum: "OUTCOME_SALES" | "OUTCOME_TRAFFIC" | "OUTCOME_ENGAGEMENT" | "OUTCOME_LEADS" | non | the campaign objective of the ad you plan (default OUTCOME_SALES) |
| adUrl | string | non | the landing page the ad will open (recommended) |
| pageId | string | non | the Facebook Page the ad will run from |
estimate_meta_reach
Estimate how many people a Meta audience reaches
Ask Meta how many people a targeting spec can actually reach — BEFORE any budget is committed. Two ways: pass adSetId to size an ad set you already built (Meta uses its own saved targeting), or pass the same `targeting` object you would give create_meta_ad (plus optional objective / optimizationGoal / country / pixelId) to size an audience you are considering. Returns the monthly-active range, a daily-active estimate, and an explicit warning when the audience is too narrow to deliver. Free, read-only, creates nothing and spends nothing. Use it before recommending a budget and every time the user narrows a geo or piles on interests.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | oui | ad account id (act_… or digits) |
| adSetId | string | non | size an EXISTING ad set using its own saved targeting |
| targeting | object | non | a targeting object, same shape as create_meta_ad.targeting |
| objective | string | non | OUTCOME_TRAFFIC | OUTCOME_SALES | … — picks the matching optimization goal |
| optimizationGoal | string | non | override the goal, e.g. REACH / LINK_CLICKS / OFFSITE_CONVERSIONS |
| country | string | non | 2-letter fallback country when targeting names no geo |
| pixelId | string | non | estimate a conversion goal against this pixel |
| conversionEvent | string | non | e.g. PURCHASE — used with pixelId |
list_meta_audiences
List Meta custom audiences + lookalikes
List the custom audiences and lookalikes on a connected Meta ad account — id, name, type, approximate size, and whether Meta says it is ready to target. Call it before create_meta_audience (so you never build a duplicate) and before targeting one: the ids go straight into create_meta_ad’s targeting.customAudiences / excludedCustomAudiences. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | oui | ad account id (act_… or digits) |
| limit | number | non | max rows (1–200, default 50) |
create_meta_audience
Create a Meta custom audience or lookalike
Build a retargeting audience on a connected Meta ad account. Four kinds: kind:"website" (people whose visited URL contains urlContains, seen by pixelId — pass the brand’s own domain for "all visitors"; retentionDays up to 180), kind:"engagement" (people who did `event` on the brand’s Facebook Page, or its Instagram business profile with source:"instagram"; retentionDays up to 730), or kind:"lookalike" (sourceAudienceId + country + ratio 0.01–0.20 = the top 1%–20% most similar people, lookalikeType "similarity" or "reach", or startingRatio for a band such as 1%–3%). Meta delivers a lookalike to the locations of the AD SET that targets it, so `country` is where you will run it — target the same country in that ad set. CREATING AN AUDIENCE SPENDS NOTHING — it is a definition; money only moves when an ad set targets it and that campaign is activated through set_meta_campaign_status(confirm:true). Meta needs roughly 30 minutes and ~1,000 people before a new audience can be targeted, so a fresh one reporting no size is normal. kind:"customerfile" is the brand's OWN CUSTOMER LIST (emails, phones, names…) for retargeting, suppression or as a lookalike seed: pass customerFileSource (a required attestation of where the data came from: USER_PROVIDED_ONLY, PARTNER_PROVIDED_ONLY or BOTH_USER_AND_PARTNER_PROVIDED), plus schema (the column names in order, from EMAIL, PHONE, FN, LN, FI, CT, ST, ZIP, COUNTRY, DOB, DOBY, GEN, MADID, EXTERN_ID) and rows (arrays in that order, up to 10,000 per…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | oui | ad account id (act_… or digits) |
| kind | enum: "website" | "engagement" | "lookalike" | "customerfile" | oui | which kind of audience to build — customerfile = your own customer list |
| name | string | non | audience name (required unless adding rows to an existing list with audienceId) |
| description | string | non | optional free-text note stored with the audience |
| retentionDays | number | non | how long someone stays in it — website max 180, engagement max 730 (default 30) |
| pixelId | string | non | website: the Meta Pixel that sees the traffic |
| urlContains | string | non | website: the URL fragment that defines the audience (your domain = all visitors) |
| pageId | string | non | engagement: which connected Page (required only if the profile has several) |
| source | enum: "page" | "instagram" | non | engagement: Facebook Page (default) or the linked Instagram business profile |
| event | string | non | engagement: page_engaged | page_visited | page_liked | page_messaged | page_cta_clicked | page_or_post_save | page_post_interaction — or ig_business_profile_all | ig_business_profile_engaged | ig_user_messaged_business | ig_business_profile_visit |
| sourceAudienceId | string | non | lookalike: the existing audience to model (from list_meta_audiences) |
| country | string | non | lookalike: REQUIRED 2-letter country you will run it in — Meta delivers a lookalike to the locations of the ad set that targets it, so target this country there |
| ratio | number | non | lookalike: 0.01–0.20 = the top 1%–20% most similar people (default 0.01) |
| startingRatio | number | non | lookalike: optional lower bound for a band (e.g. 0.01 with ratio 0.03 = the 1%–3% band) — at least 0.01 and less than ratio; not combinable with lookalikeType |
| lookalikeType | enum: "similarity" | "reach" | non | lookalike: similarity (tighter) or reach (broader) — default similarity |
| prefill | boolean | non | website/engagement: seed it with activity from BEFORE the audience existed (default true) |
| customerFileSource | enum: "USER_PROVIDED_ONLY" | "PARTNER_PROVIDED_ONLY" | "BOTH_USER_AND_PARTNER_PROVIDED" | non | customerfile: REQUIRED attestation of where the list came from (customers gave it to you = USER_PROVIDED_ONLY) |
| schema | array<enum: "EMAIL" | "PHONE" | "FN" | "LN" | "FI" | "CT" | "ST" | "ZIP" …> | non | customerfile: the column names of rows, in order, e.g. ["EMAIL","PHONE"] |
| rows | array<array<string | number>> | non | customerfile: the customers, one array per person in schema order (up to 10,000 per call). Plain values — Hermoso normalizes and hashes them before they leave the server |
| audienceId | string | non | customerfile: ADD these rows to this existing customer-list audience (from list_meta_audiences) instead of creating a new one |
list_meta_pixels
List Meta Pixels on an ad account
List the META PIXELS on one of the brand’s ad accounts — id, name, when it was created, and WHEN IT LAST FIRED. This is where the pixelId every conversion tool needs comes from: create_meta_ad takes it (with conversionEvent) to optimise an ad set for OFFSITE_CONVERSIONS instead of link clicks, and create_meta_audience needs it to build a website retargeting audience. READ lastFiredAt BEFORE YOU TRUST A PIXEL: one that has NEVER FIRED is not installed on the site, so an ad optimising against it will spend and never learn. Pass includeCode:true to get the snippet for installation (it is long, so it is off by default). Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | oui | The ad account, with or without the act_ prefix |
| includeCode | boolean | non | also return the full pixel snippet — only ask when the user is about to install it |
get_meta_ad_account
Read a Meta ad account’s billing and status
Read a Meta AD ACCOUNT’s BILLING and DELIVERY state: account status in words (ACTIVE, DISABLED, UNSETTLED unpaid balance, IN_GRACE_PERIOD failed payment, PENDING_RISK_REVIEW, CLOSED…) with the disable reason; currency and time zone; BALANCE (the bill amount due); AMOUNT SPENT; SPEND CAP and how much is left under it (none means no account spending limit); the minimum daily budget; whether it is a PREPAID account; and the PAYMENT METHOD / FUNDING SOURCE (card, PayPal, prepaid funds / stored balance, invoice, credit line). Every amount is converted from Meta’s minor units into the account currency. Use it for “what is my Meta ad balance”, “how much prepaid funds are left”, “which card pays for my ads”, “why are my ads not delivering”, and before activating anything. IT CANNOT ADD PREPAID FUNDS OR CHANGE THE PAYMENT METHOD — Meta publishes no API for either, so the reply links the account’s page in Meta Billing (Ads Manager > Billing & payments) where the user does it; say so rather than looking for another tool. If Meta refuses the billing fields to this connection (the connected person lacks the MANAGE role on the account), the reply says the funding source could not be read, which is not the same as having none. Meta fields read: account_status, the disable reason, balance, amount_spent, spend_cap, min_daily_budget, is_prepay_account, funding_source_details. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | oui | The ad account, with or without the act_ prefix |
create_meta_pixel
Create a Meta Pixel
Create a META PIXEL on one of the brand’s ad accounts, so their ads can optimise for real website conversions instead of link clicks and so website retargeting audiences become possible. A pixel is a DEFINITION: it cannot serve, cannot spend, and RECORDS NOTHING until its snippet is installed on the site — the reply hands back that snippet and says so. TWO THINGS TO SAY OUT LOUD BEFORE CALLING IT: Meta allows exactly ONE pixel per ad account (a second attempt is refused and Hermoso will name the one that already exists — so call list_meta_pixels first), and Meta publishes NO WAY TO DELETE a pixel, so this is permanent. Creating it spends nothing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | oui | The ad account, with or without the act_ prefix |
| name | string | oui | what it will be called in Events Manager — name it after the website or brand it measures |
send_meta_conversions
Send conversions to a Meta pixel (Conversions API)
Send SERVER events to the brand’s OWN Meta pixel (the Conversions API): Purchase, Lead, CompleteRegistration, AddToCart, InitiateCheckout, ViewContent, Contact, Subscribe or a custom name, for sales and sign-ups the browser pixel misses (a CRM deal, a phone order, a checkout the browser blocked). The pixel must be on one of the brand’s ticked ad accounts (list_meta_pixels); any other id is refused. PASS PLAIN VALUES (email, phone with country code, firstName, lastName, city, state, zip, country, dateOfBirth, externalId): Hermoso normalizes and SHA-256 hashes them per Meta’s rules, so never hash them yourself. clientIpAddress, clientUserAgent, fbc or fbclid, fbp and a Meta leadId go as given. A website event needs eventSourceUrl and clientUserAgent. Give every event an eventId (the same one the browser pixel sends) so Meta deduplicates it. Events up to 7 days old (62 for physical_store), up to 1,000 per call. testEventCode sends to Events Manager’s Test Events, and those events still count. The brand is responsible for its customers’ consent to share this data with Meta. RECEIVED IS NOT MATCHED: the reply reads back Meta’s events_received. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | oui | the ad account that owns the pixel, with or without act_ |
| pixelId | string | oui | the pixel (dataset) id, or its exact name, from list_meta_pixels |
| events | array<object> | oui | each: eventName, actionSource (website, email, app, phone_call, chat, physical_store, system_generated, business_messaging, other), eventTime (unix seconds or ISO; default now), eventId, eventSourceUrl, plain identifiers (email, phone, firstName, lastName, city, state, zip, country, dateOfBirth, ge… |
| testEventCode | string | non | the code from Events Manager > Test Events |
| limitedDataUse | string | non | off, on (Meta works out the US state) or a US state code such as ca; default is the brand setting |
| hashExternalId | boolean | non | false keeps externalId as given, to match a pixel that sends it unhashed |
meta_dataset_quality
Check a Meta pixel’s Conversions API health
How well the brand’s Meta pixel is set up for the Conversions API, from Meta’s Dataset Quality API: event match quality (out of 10) per website event, which match keys arrive and how often, Meta’s own list of problems with the fix for each, how much browser traffic the server also covers, deduplication key coverage, how fresh the uploads are and how many arrive late. Website events only: Meta scores nothing else. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | oui | the ad account that owns the pixel |
| pixelId | string | oui | from list_meta_pixels |
set_meta_conversions_auto
Automatic sending to a Meta pixel
Read or change AUTOMATIC sending to the brand’s Meta pixel. Sources, each OFF by default: shopify (paid Shopify orders as Purchase, keyed by order id; waits on Shopify approving access to order details), metaLeads (Meta instant-form leads sent back as Lead), emailReplies (an email lead who replies, as Lead). Call with no arguments to read the setting and the last run. Turning a source ON needs confirm:true AND consent:true, after showing the user what is sent and that they are responsible for their customers’ consent. limitedDataUse sets Meta’s Limited Data Use for US state privacy laws. runNow:true sends now. An event is never sent twice, and a failed send is retried. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | |
| pixelId | string | non | |
| sources | object | non | |
| limitedDataUse | string | non | off, on, or a US state code |
| everyMinutes | number | non | 15 to 1440, default 60 |
| leadEventName | string | non | the event name leads are sent as, default Lead |
| runNow | boolean | non | |
| confirm | boolean | non | |
| consent | boolean | non |
list_meta_lead_forms
List Meta instant (lead) forms
List the INSTANT LEAD FORMS on a connected Facebook Page — id, name, status, how many leads each has collected and what each one asks. This is where the formId every other lead tool needs comes from, and calling it before create_meta_lead_form is how you avoid building a duplicate. Read-only, free. NEEDS the pages_manage_ads permission, which Hermoso’s Meta consent screen asks for. If Meta answers "Requires pages_manage_ads", the user must RECONNECT Meta under Connectors > Meta — a connection made before that permission was added cannot gain it by retrying. Call the tool rather than pre-refusing: any refusal comes from Meta and names the one thing that fixes it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| pageId | string | non | Which connected Page — required only if the profile has more than one |
| limit | number | non | max rows (1–100, default 25) |
| formId | string | non | ONE form in full: every question with its options, the privacy policy, the intro card and the thank-you page |
create_meta_lead_form
Create a Meta instant (lead) form
Create an INSTANT LEAD FORM on a connected Facebook Page — the in-app form a Meta lead ad opens instead of sending someone to a website, so a person can sign up without leaving the app. `questions` takes Meta’s own type names, e.g. ["FULL_NAME","EMAIL","PHONE"]; for anything bespoke pass {type:"CUSTOM", label:"What size fleet do you run?"} and add options:[…] to make it a dropdown. Ask FEWER questions than you think — every extra field costs completions. privacyPolicyUrl is REQUIRED: the form collects real people’s contact details and has to say where their data goes. Optional: headline, contextCard {title, bullets[], buttonText} for the why-should-I screen, thankYou {title, body, buttonType, buttonText, websiteUrl}, locale, followUpActionUrl. CREATING A FORM SPENDS NOTHING and publishes nothing — it is invisible to the public until an ad points at it (create_meta_ad with objective:"OUTCOME_LEADS" + leadFormId), and that ad is created PAUSED. Read the submissions with read_meta_leads. NEEDS pages_manage_ads — see list_meta_lead_forms for what to do if Meta refuses it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| name | string | oui | internal name for the form — not shown to the person filling it in |
| questions | array<any> | oui | Meta question types as strings ("FULL_NAME","EMAIL","PHONE","COMPANY_NAME","JOB_TITLE","CITY","ZIP","WORK_EMAIL","DATE_TIME"…) or objects {type,label,key,options[]} for CUSTOM |
| privacyPolicyUrl | string | oui | REQUIRED — the business’s privacy policy URL (https://…) |
| privacyPolicyLinkText | string | non | link text shown for the privacy policy URL on the form |
| pageId | string | non | which connected Page (required only if the profile has more than one) |
| headline | string | non | headline shown above the questions |
| locale | string | non | form language, e.g. EN_US, ES_ES, PT_BR, DE_DE |
| followUpActionUrl | string | non | https URL the person is sent to after submitting the form |
| contextCard | object | non | {title, bullets[], body, buttonText, style} — the screen shown before the questions |
| thankYou | object | non | {title, body, buttonType, buttonText, websiteUrl} — shown after submitting |
| isOptimizedForQuality | boolean | non | adds a review-and-confirm step: fewer leads, better ones |
| blockNonTargeted | boolean | non | true = hide the form from people the ad's targeting does not match |
| trackingParameters | object | non | extra tracking parameters for the form, as a key/value object |
archive_meta_lead_form
Archive (or restore) a Meta instant form
Retire an INSTANT LEAD FORM so it stops collecting — the only way to tidy a Page’s Instant Forms list, because META DOES NOT SUPPORT DELETING A LEAD FORM AT ALL, only archiving it. This is REVERSIBLE: pass status:"ACTIVE" to switch an archived form back on. Archiving publishes nothing, spends nothing and DELETES NO LEADS — everything the form already collected stays readable with read_meta_leads. CALL IT WITHOUT confirm FIRST: nothing changes and you get the form’s real name, current status and lead count READ BACK FROM META, so you can show the user exactly which form they are about to retire rather than echoing back an id they may have mistyped; then call again with confirm:true. WARNING WORTH RELAYING BEFORE ARCHIVING: if a live ad still points at this form, its button will open nothing — check the ad first. The new status is READ BACK from Meta after the change, so the summary reports what Meta actually stored and says plainly when the change did NOT take; print it verbatim rather than assuming a successful call means a changed form.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| formId | string | oui | the form to retire (from list_meta_lead_forms) |
| status | enum: "ARCHIVED" | "ACTIVE" | non | default ARCHIVED; "ACTIVE" restores a form that was archived |
| pageId | string | non | which connected Page (required only if the profile has more than one) |
| confirm | boolean | non | must be true to actually change it — without it nothing changes and you get the read-back to show the user |
read_meta_leads
Read Meta lead-ad submissions
Read the LEADS a form (formId) or a single ad (adId) has collected — the real answers people submitted, fetched live from Meta. THIS RETURNS REAL PEOPLE’S CONTACT DETAILS (names, emails, phone numbers). Treat it as the user’s own customer data: show only what they asked for, never post a lead list anywhere public, and do not copy it into an unrelated document. Hermoso PULLS these on demand and keeps no copy — nothing here watches, polls or files leads anywhere, so if the user wants this batch kept, put it somewhere THEY own in the same turn (a Google Sheet with create_sheet / append_to_sheet, a doc, or their own CRM). Meta makes each lead available for 90 days after it is submitted; anything older is handled in Meta’s own Leads Center and CRM integrations. Narrow with since/until (ISO dates), page with cursor, or pass redact:true to see counts, timestamps and which ad produced each lead WITHOUT the personal details. NEEDS leads_retrieval — see list_meta_lead_forms for what to do if Meta refuses it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| formId | string | non | every lead this form has ever collected (from list_meta_lead_forms) |
| adId | string | non | just the leads this ONE ad produced (from list_meta_ads) — pass this OR formId, never both |
| pageId | string | non | which connected Page (required only if the profile has more than one) |
| since | string | non | ISO date (2026-08-01) or epoch ms — only leads created after this |
| until | string | non | ISO date or epoch ms — only leads created before this |
| limit | number | non | 1–500, default 100 |
| cursor | string | non | paging cursor returned by a previous call |
| redact | boolean | non | mask the contact values, keeping counts / dates / attribution — use when the user only wants to know the form is working |
delete_meta_audience
Delete a Meta custom audience
PERMANENTLY delete a Meta custom audience or lookalike. Meta’s own warning: "When you delete a custom audience, it will be permanently removed from your account and your ads using it will stop running." An audience is the one ad object whose value is its CONTENTS — a big retargeting list cannot be rebuilt, it has to re-accumulate — so CALL IT WITHOUT confirm FIRST: nothing is deleted, and you get its real name, how many people are in it and which lookalikes were built from it, read live from Meta. Show the user exactly that. A populated audience, or one with lookalikes, then needs confirmName set to its exact name (and confirmChildren set to the lookalike count when there are any). META REFUSES to delete an audience that has lookalikes derived from it (error 2656) — delete those first; the unconfirmed call names them. Pass adAccountId + audienceId (from list_meta_audiences). The result is READ BACK from Meta: it says deleted only when the id no longer resolves.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | oui | ad account id (act_… or digits) |
| audienceId | string | oui | the custom audience id (from list_meta_audiences) |
| confirm | boolean | non | REQUIRED true — the deletion is permanent |
| confirmName | string | non | the audience’s EXACT name, required when it holds people or has lookalikes |
| confirmChildren | number | non | the exact number of derived lookalikes reported by the unconfirmed call, required when it has any |
send_conversion_event
Send a conversion to every ad platform at once
Send ONE conversion event (a sale, sign-up, lead or your own event) to EVERY ad platform conversions API the brand saved as a destination, in one call: Meta, TikTok, LinkedIn, Snapchat, Reddit, Pinterest, X, Microsoft Advertising, ChatGPT Ads, AppLovin, Amazon Ads, Google Ads, Taboola, Outbrain, The Trade Desk, Attentive, Impact, Awin, Campaign Manager 360, Klaviyo and Google Analytics. Pass PLAIN identifiers: each platform’s sender normalises and SHA-256 hashes them to that platform’s own rules, and every platform receives the same eventId as its dedup key (match it to the browser pixel’s). Click ids in sourceUrl or user.clickIds (gclid, fbclid, ttclid, twclid, msclkid, li_fat_id, tblci for Taboola, ob_click_id for Outbrain, irclickid for Impact, awc for Awin, dclid for Campaign Manager 360, tdid / uid2 / uid2_token for The Trade Desk, ga = the _ga cookie …) are read automatically, and a click id the same person carried on an earlier stored page view rides along with a server-side sale. Each destination answers on its own, read back from what the PLATFORM said (accepted, refused, skipped and why); one failing never blocks another. DRY RUN: validateOnly:true and/or testCode reach only the platforms with a mode that records nothing (Pinterest, Snapchat, ChatGPT Ads, Google Ads, Campaign Manager 360 and Google Analytics validate, Awin takes test orders; TikTok and Reddit take a test code from their Events Manager) and skip the rest by name, so nothing real is counted. Meta kee…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| events | array<object> | oui | 1 to 1,000 events |
| destinations | array<string | object> | non | send to these instead of the saved ones: saved destination ids, or destination objects shaped like conversion_destinations action add |
| validateOnly | boolean | non | dry run: platforms with a validate mode check the events and record nothing; the rest are skipped |
| testCode | string | non | dry run for TikTok and Reddit: the test code from their Events Manager |
| forward | boolean | non | false records the events for journeys and sends them nowhere |
| carryClickIds | boolean | non | false stops click ids from the same person’s earlier page views riding along |
| source | string | non | where these came from, e.g. crm, shopify, stripe (shown on stored events); default api |
conversion_destinations
Ad platforms a conversion goes to
The ad platform conversions APIs send_conversion_event sends to, per brand. action list (default) shows them plus what each platform needs; add saves one: platform (meta, tiktok, linkedin, snapchat, reddit, pinterest, x, microsoft, chatgpt, applovin, amazon, google_ads, taboola, outbrain, trade_desk, attentive, impact, awin, campaign_manager, klaviyo, google_analytics) with its ids (Taboola taboolaAccountId; Outbrain outbrainMarketerId; The Trade Desk trackerId + advertiserId; Impact programId + eventTypeId; Awin advertiserId (default: the connected one); Campaign Manager 360 floodlightConfigurationId + floodlightActivityId; Google Analytics measurementId + apiSecret, stored encrypted; Attentive, Impact, Awin and Klaviyo send on their connector key; Meta pixelId + adAccountId; TikTok eventSourceId = the pixel CODE, eventSource web/offline/crm, advertiserId; LinkedIn conversionId of a Conversions API rule; Snapchat pixelId; Reddit pixelId; Pinterest adAccountId; X pixelId and eventId; Microsoft conversionName of an OFFLINE goal; ChatGPT Ads pixelSnippetId + apiKey, the Conversions API key, stored encrypted and never shown again; Amazon amazonProfileId + countryCode). eventNames limits which events it takes (LinkedIn, Microsoft, Google Ads, Impact and Campaign Manager 360 need it: their rule, goal, action, event type or Floodlight activity decides the type); eventMap renames one of yours to the platform’s, e.g. {"QualifiedLead":"CUSTOM_EVENT_1"}. Meta pixels, Amazon profiles a…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "list" | "add" | "remove" | non | default list |
| platform | string | non | add: meta, tiktok, linkedin, snapchat, reddit, pinterest, x, microsoft, chatgpt, applovin, amazon, google_ads, taboola, outbrain, trade_desk, attentive, impact, awin, campaign_manager, klaviyo or google_analytics |
| label | string | non | add: your name for it |
| pixelId | string | non | Meta / Snapchat / Reddit / X pixel id |
| adAccountId | string | non | the ad account, where the platform has several shared |
| advertiserId | string | non | TikTok advertiser id |
| eventSourceId | string | non | TikTok pixel code, offline or CRM event set id |
| eventSource | enum: "web" | "offline" | "crm" | non | TikTok; default web |
| conversionId | string | non | LinkedIn conversion rule id |
| conversionName | string | non | Microsoft offline conversion goal name |
| eventId | string | non | X conversion event id |
| pixelSnippetId | string | non | ChatGPT Ads pixel_id |
| apiKey | string | non | ChatGPT Ads Conversions API key |
| amazonProfileId | string | non | Amazon Ads profile |
| countryCode | string | non | Amazon default country |
| taboolaAccountId | string | non | Taboola numeric Account ID |
| outbrainMarketerId | string | non | Outbrain marketer id |
| trackerId | string | non | Trade Desk Real-Time Conversion tracking tag id (with advertiserId) |
| programId | string | non | Impact program id |
| eventTypeId | string | non | Impact event type id |
| floodlightConfigurationId | string | non | Campaign Manager 360 Floodlight configuration id |
| floodlightActivityId | string | non | Campaign Manager 360 Floodlight activity id |
| measurementId | string | non | Google Analytics web stream G- id |
| apiSecret | string | non | Google Analytics Measurement Protocol secret, stored encrypted |
| eventNames | array<string> | non | the events this destination takes; omit for every event |
| eventMap | object | non | your event name to this platform’s event name |
| destinationId | string | non | remove: the destination id |
conversion_events
Stored conversion events
The conversion events send_conversion_event stored for this brand, newest first, with each one’s delivery per platform (sent, failed or skipped, and why). action list (default) filters by from / to (YYYY-MM-DD), eventName, source, platform, deliveryStatus (sent | failed), fromAd and campaignId, paged with cursor; action get takes eventId; update sets a stored event’s value (and currency) for journeys, LTV and profit; retract removes it from Hermoso’s records. Identifiers are stored hashed and never returned; test and validate-only sends are never stored. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "list" | "get" | "update" | "retract" | non | default list (get when eventId is given) |
| eventId | string | non | get / update / retract |
| eventName | string | non | filter, or which copy of an eventId |
| from | string | non | YYYY-MM-DD |
| to | string | non | YYYY-MM-DD |
| source | string | non | e.g. api, crm, stripe |
| platform | string | non | events sent to this platform |
| deliveryStatus | enum: "sent" | "failed" | non | with platform: its latest send |
| fromAd | boolean | non | only events from an ad click (true) or not (false) |
| campaignId | string | non | events tied to this campaign |
| limit | number | non | 1-200, default 50 |
| cursor | string | non | nextCursor from the last page |
| value | number | non | update: the new value |
| currency | string | non | update: its currency |
conversion_insights
Customer journeys, touch paths and lifetime value
Read the brand’s stored conversion events as: journey — ONE customer’s every touch and conversion in order, with lifetime value (pass email, phone, externalId, visitorId or a customer key); customers — everyone who converted in the window with their path, conversions and LTV; paths — the most common touch sequences before a conversion (an ad click on Meta, then organic search, and so on); ltv — buyers by first-purchase month and first channel, revenue at months 0, 1, 3, 6 and 12; accuracy — per destination, how many real sales were sent, accepted, failed or never sent and why; overview (default). People are tied together across events by any identifier they share (a visitorId on a page view and an email on the sale). Money stays per currency. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| view | enum: "overview" | "journey" | "customers" | "paths" | "ltv" | "accuracy" | non | default overview, journey when a customer is named |
| customer | string | non | journey: an email, phone, external id or a customer key from view customers |
| string | non | journey: the customer’s email | |
| phone | string | non | journey: the customer’s phone |
| externalId | string | non | journey: your customer id |
| visitorId | string | non | journey: an anonymous visitor id |
| from | string | non | YYYY-MM-DD |
| to | string | non | YYYY-MM-DD |
| days | number | non | the last N days instead of from |
| fromMonth | string | non | ltv: YYYY-MM |
| toMonth | string | non | ltv: YYYY-MM |
| limit | number | non | rows |
upload_campaign_results
Upload your own results per campaign
Your own numbers per ad campaign per day (sales, revenue, qualified_leads, cogs, gross_profit or any snake_case metric) so campaign_profit can put them next to each platform’s spend. Each row: date (YYYY-MM-DD, up to 400 days back), exactly one of campaignId, utmCampaign or campaignName, optional adAccountId, platform and currency, and values {metric: number}. Or pass csv with a header row: date, then a campaign id, utm campaign or campaign name column, then metric columns. Re-sending a day replaces it. action list reads what is stored (from / to); action clear removes rows in a window (optionally one campaign). Up to 1,000 rows per call. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "upload" | "list" | "clear" | non | default upload when rows or csv is given, else list |
| rows | array<object> | non | rows to save |
| csv | string | non | the same rows as CSV text |
| from | string | non | list / clear: YYYY-MM-DD |
| to | string | non | list / clear: YYYY-MM-DD |
| campaign | string | non | clear: only this campaign |
set_profit_settings
Set margin and cost per order for profit
The numbers campaign_profit turns revenue into profit with: marginPercent (0-100, the share of revenue kept as gross profit; null removes profit), costPerOrder (subtracted per sale, in each ad account’s currency) and campaignMargins, a margin per campaign {" ": percent} (null removes one). profit = revenue × margin − sales × costPerOrder; POAS = profit ÷ spend; profit after ads = profit − spend. A campaign whose results upload carries cogs or gross_profit uses those instead. resultEvents picks which stored conversion events count as campaign results (default Purchase, Lead, QualifiedLead; any other name is counted into a metric of its own); metric labels and formulas are set with the campaign result metrics tool. No arguments reads the setting. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| marginPercent | number | null | non | 0-100; null removes it |
| costPerOrder | number | null | non | per sale, in each ad account’s currency |
| campaignMargins | object | null | non | per-campaign margins; null for one removes it |
| resultEvents | array<string> | null | non | which stored conversion events count as campaign results; default Purchase, Lead, QualifiedLead; another name is counted into a metric of its own; null restores the default |
campaign_profit
Profit per ad campaign
Profit per campaign across every connected ad platform: each campaign’s spend read live from the platform, joined to the brand’s own sales. Revenue per campaign comes from ONE source, strongest first: results you uploaded (upload_campaign_results), else conversion events sent through send_conversion_event and credited to campaigns under `model` (last_click default, first_touch, linear, position_based, time_decay), else Shopify / Stripe orders matched by utm_campaign. Never summed across sources, so one sale is never counted twice. Each row: spend, sales, revenue, profit (set_profit_settings), POAS, profit after ads, ROAS, cost per sale, the platform’s own reported conversions beside it, and which source the revenue came from. Money stays per currency; a platform that could not be read is named, never shown as zero. from / to (YYYY-MM-DD) or days, up to 92; platforms narrows it. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| from | string | non | YYYY-MM-DD |
| to | string | non | YYYY-MM-DD, default today |
| days | number | non | the last N days; default 30 |
| platforms | array<string> | non | meta, google_ads, tiktok_ads, linkedin, microsoft_ads, pinterest_ads, reddit_ads, snapchat_ads, x_ads, openai_ads, apple_ads; default every connected one |
| model | enum: "last_click" | "first_touch" | "linear" | "position_based" | "time_decay" | non | how event revenue is credited to campaigns; default last_click |
| revenueFrom | array<enum: "uploads" | "events" | "store"> | non | which revenue sources to use; default all three, in that order |
| includeIdle | boolean | non | true also lists campaigns with no spend and no sales |
check_ad_account_health
Check an ad account can run ads
Can this ad account run ads right now? Run it BEFORE creating ads, and whenever ads are not delivering. platform meta (default), google_ads or tiktok_ads, plus adAccountId (Meta act_ id, Google customer id, TikTok advertiser id). Meta checks the account status, the payment method, the account spending limit, the Facebook Page and its Instagram account, the Page's Lead Ads terms, the newest pixel event, the WhatsApp number on the Page and rejected ads; Google the account status, billing, the account budget and policy-disapproved ads; TikTok the account status, the balance and rejected ads. Each check is read on its own: one that cannot be read says so (unknown), never 'fine'. Answers ready (false when a new ad would be refused; null when the status itself could not be read), status ok / attention / blocked (blocked also covers what stops delivery but not a create, such as a reached spending limit), and blockers with a plain-words fix and the page to fix it on. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| platform | enum: "meta" | "google_ads" | "tiktok_ads" | non | default meta |
| adAccountId | string | oui | Meta ad account (act_123), Google Ads customer id, or TikTok advertiser id |
| pageId | string | non | Meta: the Page the ad will run as (default the ad account’s first Page) |
| loginCustomerId | string | non | Google: manager account id when acting through one |
list_ads_alerts
What needs attention across your ad accounts
What needs attention across EVERY ad account the brand shared on Meta, Google Ads and TikTok, most severe first: accounts blocked by status or payment, spending limits reached or nearly reached, rejected ads, pixels that stopped firing, and ads connections that need reconnecting. An account that could not be read is listed as not read, never left out, so an empty list means read and nothing wrong. Each alert has a stable id; action dismiss with alertId hides it for this brand for 30 days (it comes back if the problem is still there). Read-only apart from the dismissal, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "list" | "dismiss" | non | default list |
| alertId | string | non | dismiss: the alert’s id from list |
manage_ad_leads
Your ad leads, with a status
The brand's ad leads in one list, with a status a team moves them through. action list (default): leads from every connected lead-form platform (Meta, LinkedIn, TikTok, X, Snapchat, ChatGPT Ads) plus leads from the brand's own site form, newest first, each with its status (new, contacted, qualified, converted, lost) and value; filter by status, platform, search, days (1-90, default 30), limit. action count: how many per status, and their value per currency. action update: platform + leadId (as list shows them) and status, optionally value + currency, saved in Hermoso only (nothing is sent to the ad platform). action create: a lead from the brand's own form (email and/or phone, name, fields, formName, formId, sourceUrl, submittedAt): saved as platform web, added to the contact list, and sent to the brand's lead alerts. A platform that could not be read is named, and its leads are missing, not zero. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "list" | "count" | "update" | "create" | non | default list |
| status | enum: "new" | "contacted" | "qualified" | "converted" | "lost" | non | update: the new status; list / count: filter |
| platform | string | non | meta, linkedin, tiktok, x, snapchat, chatgpt or web |
| leadId | string | non | update: the lead’s id from list |
| value | number | non | update: what the lead is worth |
| currency | string | non | 3-letter code, needed with value |
| search | string | non | |
| days | number | non | 1-90, default 30 |
| limit | number | non | |
| platforms | array<string> | non | list / count: only these lead-form platforms |
| string | non | create | |
| phone | string | non | create |
| name | string | non | create |
| fields | object | non | create: the form’s other answers |
| formName | string | non | |
| formId | string | non | |
| sourceUrl | string | non | create: the page the form is on |
| submittedAt | string | non | create: ISO time, default now |
set_ad_campaigns_status
Pause or resume many campaigns at once
Pause or resume up to 50 campaigns in ONE call, across Meta, Google Ads, TikTok, LinkedIn, Microsoft Advertising, Pinterest, Snapchat, Reddit and X: status pause or resume, campaigns [{platform, campaignId, adAccountId (Google: customerId; TikTok: advertiserId)}]. Each campaign goes through that network's own status tool, and each gets its own result, so one failure never blocks the rest. PAUSING only stops spend and runs at once. RESUMING STARTS REAL AD SPEND: called without confirm it changes nothing and lists each campaign with its name and budget where they could be read; show the user that list, get a yes, then call again with the same campaigns and confirm:true. ChatGPT Ads, Apple Ads, Amazon Ads and AppLovin campaigns are switched one at a time with their own tools.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| status | enum: "pause" | "resume" | oui | |
| campaigns | array<object> | oui | up to 50 |
| confirm | boolean | non | true only after the user approved resuming these campaigns |
campaign_result_metrics
Name and define campaign result metrics
Name and define the numbers campaign_profit shows. action list (default): every metric key the brand uploaded with upload_campaign_results (with its label and kind) and every formula, the built-in ones (cac_percent, cost_per_sale, cost_per_qualified_lead, lead_to_sale, qualified_rate) and the brand's own. action set: key plus label, kind (count, money, percent or ratio), currency (for money) and/or formula, a calculation with + - * / and parentheses over spend, impressions, clicks, sales, revenue, leads, qualified_leads, profit and any uploaded metric key, e.g. "(revenue - spend) / clicks"; formula null removes it. action remove: key. Every formula is shown per campaign in campaign_profit; a division by zero or a number a campaign does not have shows as empty, never 0. Which conversion events count as campaign results is set_profit_settings resultEvents. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "list" | "set" | "remove" | non | default list (set when key is given) |
| key | string | non | the metric key (snake_case) |
| label | string | non | |
| kind | enum: "count" | "money" | "percent" | "ratio" | non | |
| currency | string | non | |
| formula | string | null | non | e.g. (revenue - spend) / clicks; null removes |
manage_tracking_links
Tracking links (short links, split tests, postbacks)
Short tracking links the brand puts in ads, bios, emails or QR codes. Each click is counted (bots and link previews apart) and sent to one of the link's destinations, picked by weight, so one link also split-tests landing pages. action list (default) | create (name, destinations [{url, weight}], campaign {utm_source, utm_medium, utm_campaign, utm_content, utm_term} added to the page when it has none) | get (linkId: the link, its destinations and its postback URL) | update (linkId + name, destinations, campaign (null clears) or status active / paused; the address never changes) | rotate_postback (linkId: a new postback URL; the old one stops at once) | stats (linkId, from / to as YYYY-MM-DD in UTC or days, up to 92: clicks, bot clicks, clicks per destination, conversions, conversion rate and revenue) | delete (linkId; the address stops working wherever it was printed, so without confirm:true nothing is deleted and the reply says what would stop). The postback URL takes value, currency and txid (a txid is counted once). Destinations must be public web pages. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "list" | "create" | "get" | "update" | "delete" | "rotate_postback" | "stats" | non | default list |
| linkId | string | non | the link’s id (or its code) |
| name | string | non | |
| destinations | array<object> | non | |
| campaign | object | null | non | utm_source, utm_medium, utm_campaign, utm_content, utm_term; null clears |
| status | enum: "active" | "paused" | non | |
| from | string | non | stats: YYYY-MM-DD (UTC) |
| to | string | non | stats: YYYY-MM-DD (UTC) |
| days | number | non | |
| confirm | boolean | non | delete: true after the user agreed |
hermoso_tag
The brand’s Hermoso tag (website tracking snippet)
The brand’s HERMOSO TAG: ONE first-party snippet per brand for its website. It records page views, each visit’s UTM parameters and ad click ids (gclid, fbclid, ttclid, msclkid, li_fat_id, ScCid, rdt_cid, epik …), the referrer, and conversions the site reports (hermoso('track', 'Lead' | 'Purchase' | your own event, {value, currency, orderId, email …})), ties a visitor to a person when the site calls hermoso('identify', {email, phone}) (hashed before storage), and FORWARDS conversions server-side to every conversions destination the brand saved, each with one dedup eventId (a Purchase uses its orderId, so a browser pixel firing the same id is deduplicated). action get (default) returns the snippet, the install status (last event seen, from which hosts) and the settings; it MAKES the brand’s tag on first call. action update changes settings: consentDefault, waitForConsent, honorGpc, honorDnt, forward, forwardEvents, allowedDomains, spa, testMode ("validate" or a TikTok / Reddit test code sends conversions as a dry run; "off" ends it) and conversions (define the brand’s own events as conversions, each sent to the platforms as a standard event, e.g. {"quote_requested": {"as": "Lead"}}). action verify reads the site (url, default the brand’s website) for the snippet and reports the last event seen. autoTrack {forms, outbound, downloads, scroll} turns on automatic events (form submits as leads, outbound / phone / email clicks, file downloads, scroll depth); linkDomains lists the br…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "get" | "update" | "verify" | "server_key" | "stripe" | non | default get; server_key makes a new server key (the old one stops working); stripe saves (signingSecret) or removes the Stripe webhook |
| autoTrack | boolean | object | non | update: automatic events, each off by default; true turns all on |
| linkDomains | array<string> | non | update: the brand’s other sites; links to them carry the visit across (cross-domain) |
| signingSecret | string | non | stripe: the endpoint’s signing secret (whsec_…); omit to remove the webhook |
| consentDefault | enum: "granted" | "denied" | non | update: what applies before the site’s banner says anything |
| waitForConsent | boolean | non | update: true sends nothing until the site grants analytics_storage |
| honorGpc | boolean | non | update: a browser’s Global Privacy Control signal refuses ad use (default true) |
| honorDnt | boolean | non | update: a browser’s Do Not Track signal stops the tag (default false) |
| forward | boolean | non | update: false records conversions but sends them to no ad platform |
| forwardEvents | array<string> | null | non | update: the events sent to ad platforms; null = every conversion plus the checkout steps |
| allowedDomains | array<string> | non | update: only pages on these hosts (and subdomains) count; empty = any |
| spa | boolean | non | update: count a page view on each in-page navigation (default true) |
| testMode | string | non | update: "validate", a TikTok / Reddit test code, or "off" |
| conversions | object | non | update: the brand’s own events that count as conversions; null for one removes it |
| replaceConversions | boolean | non | update: true replaces the whole list instead of merging |
| url | string | non | verify: the page to read; default the brand’s website |
| render | boolean | non | verify: false skips the browser render |
install_hermoso_tag
Put the Hermoso tag on the website
Put the brand’s HERMOSO TAG (hermoso_tag) on its website through the site connection it has: google_tag_manager (a Custom HTML tag on every page, staged, live with publish:true through the Tag Manager publish confirmation), wordpress (a block in the theme footer, or a custom HTML widget, read back; a site that strips scripts for the connected user is undone and answered with paste steps), shopify (Hermoso’s app pixel in Shopify customer events, which also records checkout purchases) or manual (the snippet and where to paste it in Webflow, Wix, Squarespace, Framer …). site omitted = the best one connected. WITHOUT confirm:true NOTHING IS WRITTEN: the reply says what would change; show the user, get a yes, call again with confirm:true. remove:true uninstalls what Hermoso added. This is NOT install_tracking_tag, which installs ad platforms’ own pixels (Meta Pixel, TikTok Pixel …). Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| site | enum: "google_tag_manager" | "wordpress" | "shopify" | "manual" | non | default the best connected site |
| confirm | boolean | non | true writes; without it nothing changes |
| publish | boolean | non | google_tag_manager: publish the container so it reaches visitors |
| containerPath | string | non | google_tag_manager: the container, when several are ticked |
| gtmWorkspace | string | non | google_tag_manager: the workspace |
| confirmPublicId | string | non | google_tag_manager: the container public id (GTM-…), when it is already live |
| remove | boolean | non | true uninstalls what Hermoso added |
hermoso_tag_report
Website visits, leads and revenue by source
What the Hermoso tag saw on the brand’s website: visits -> leads -> purchases -> revenue, grouped by channel (default), source, medium, campaign, post (the Hermoso post or email a utm_content id came from), ad, or landing page. Money stays per currency; days are UTC; bots are left out and counted; test (dry-run) events are reported apart, never in the totals. from / to (YYYY-MM-DD) or days, up to 92. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| groupBy | enum: "channel" | "source" | "medium" | "campaign" | "post" | "ad" | "page" | non | default channel |
| from | string | non | YYYY-MM-DD |
| to | string | non | YYYY-MM-DD, default today |
| days | number | non | the last N days, up to 92; default 30 |
| limit | number | non | rows, default 50 |
hermoso_tag_events
Recent events from the Hermoso tag
The most recent events the Hermoso tag received, newest first: conversions (default), visits or all, each with its page, source / medium, value, and what each ad platform answered when it was forwarded (sent, validated, failed or skipped and why). conversion_events (source hermoso_tag) holds each stored conversion’s full delivery record. action send puts SERVER-SIDE events into the tag (a renewal, a phone order, a payment the browser never saw): events [{eventName, eventId (the same id the browser sent, so it is one sale), value, currency, user {email, phone, externalId, visitorId}, sourceUrl}], forwarded and reported like the browser’s. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "list" | "send" | non | default list |
| events | array<object> | non | send: 1-500 events in the send_conversion_event shape |
| kind | enum: "conversions" | "visits" | "all" | non | default conversions |
| eventName | string | non | only this event |
| limit | number | non | 1-150, default 30 |
hermoso_tag_audiences
Audiences from your website visitors
AUDIENCES FROM THE BRAND’S WEBSITE VISITORS, seen by the Hermoso tag (hermoso_tag). A segment is visitors who visited page paths (visited, prefixes such as "/pricing"), did ANY of some events (events, e.g. ["AddToCart"]) and NONE of others (notEvents, e.g. ["Purchase"]) within withinDays (1-180, default 30). action list (default) shows the segments with how many visitors match, how many are identified (the site gave an email or phone through hermoso('identify') or a form) and how many allowed ad use; preview counts a rule set without saving; save stores one (pass segmentId to edit it); delete removes one (confirm:true). action sync fills a customer-list audience: platform meta (adAccountId; a NEW audience unless audienceId), google_ads (audienceId = a Customer Match list from google_ads_customer_lists, and acceptTerms:true once the advertiser accepts Google’s Customer Match terms), snapchat_ads, pinterest_ads or x_ads (each with the audienceId to fill). Only IDENTIFIED people whose LATEST consent allowed ad use are sent, as SHA-256 hashes made to that platform’s own rule; uploads add people and never remove anyone. WITHOUT confirm:true sync sends nothing and says exactly what it would send: show the user, then call again with confirm:true. Microsoft, Reddit, TikTok and LinkedIn are named with the reason they are not sent. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "list" | "preview" | "save" | "delete" | "sync" | non | default list |
| segmentId | string | non | save (edit), delete, sync: the segment |
| name | string | non | save / preview: the segment’s name |
| visited | array<string> | non | page paths (prefixes), any of |
| events | array<string> | non | events, any of (Lead, AddToCart, your own …) |
| notEvents | array<string> | non | events none of which happened (e.g. Purchase) |
| withinDays | number | non | 1-180, default 30 |
| platform | enum: "meta" | "google_ads" | "snapchat_ads" | "pinterest_ads" | "x_ads" | non | sync: where to send |
| audienceId | string | non | sync: the audience / customer list to fill (Meta: omit to make a new one) |
| audienceName | string | non | sync to Meta without audienceId: the new audience’s name |
| adAccountId | string | non | sync: the ad account (Meta needs it) |
| customerId | string | non | sync to Google Ads: the account, when several |
| acceptTerms | boolean | non | sync to Google Ads: the advertiser accepted Google’s Customer Match terms |
| confirm | boolean | non | sync / delete: true does it; without it nothing changes |
post_purchase_survey
How-did-you-hear survey (after an order)
POST-PURCHASE SURVEY, "How did you hear about us?": what buyers SAY brought them, beside what tracking saw. Asked in three places: on Shopify’s Thank you and Order status pages (the "Hermoso survey" app block, placed once in Settings > Checkout > Customize; not on Shopify Starter), on a hosted page (pageUrl) any store links from its own order email or SMS, and through a signed webhook for answers collected anywhere else (WooCommerce, another survey app, a form). Each answer is written to the Shopify order (metafield hermoso.how_did_you_hear, shown on the order page) and to the brand’s contact (field how_did_you_hear, tag survey: ), and sent as survey.answered to the brand’s Slack, Discord or webhook alerts. action get (default): settings, the page and webhook links, the answer count, whether the Shopify block has loaded. set: enabled, question, options [{ label, channel?, freeText? }] (2-20; channel such as instagram, tiktok, google, ai, word_of_mouth, creator, podcast, email, other), thankYou, shuffle, writeToOrder, writeToContact, accent (hex). link: orderId, email, value, currency -> a link signed with the brand’s secret, so the answer is tied to that order. secret: the signing secret for links and the webhook (rotate:true makes a new one; old signatures stop working). record: an answer the user or agent already has (answer = an option id or label, or the buyer’s own words; otherText, orderId, email, value, currency, at). answers: the answers (days or from/to, channel, so…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "get" | "set" | "link" | "secret" | "answers" | "record" | "report" | "sync" | non | default get |
| enabled | boolean | non | set: true turns the survey on everywhere (Shopify block, hosted page, webhook) |
| question | string | non | set: the question, up to 160 characters |
| options | array<object> | non | set: 2-20 answers, replaces the list |
| thankYou | string | non | set: the line shown after answering |
| shuffle | boolean | non | set: shuffle the answers per buyer (default true; a free-text answer stays last) |
| writeToOrder | boolean | non | set: write the answer onto the Shopify order (default true) |
| writeToContact | boolean | non | set: save the answer on the brand’s contact for that email (default true) |
| accent | string | null | non | set: the hosted page’s button colour, hex; null for the default |
| rotate | boolean | non | secret: true makes a new secret |
| answer | string | non | record: an option id or label, or the buyer’s own words |
| optionId | string | non | |
| otherText | string | non | |
| orderId | string | non | link / record: the order (a Shopify gid, or the store’s own order number) |
| string | non | link / record: the buyer’s email (stored hashed; used for the contact) | |
| value | number | non | link / record: the order total |
| currency | string | non | three letters, e.g. USD |
| at | string | non | record: when it was answered, ISO time |
| days | number | non | answers / report: the last N days (default 30) |
| from | string | non | |
| to | string | non | |
| channel | string | non | answers: only this channel |
| source | enum: "shopify" | "hosted" | "webhook" | "agent" | non | answers: only this door |
| limit | number | non | answers: 1-200, default 50 |
register_merchant_developer
Register Hermoso with a Merchant Center account
ONE-TIME SETUP, and the FIRST thing to run when Merchant Center calls are being refused. Google blocks every Merchant API call until Hermoso's Google Cloud project is registered against the merchant's account, and says so verbatim ("GCP project ... is not registered with the merchant account"). This performs that link. It is NOT a broken connection and reconnecting cannot fix it. Google asks for up to 5 minutes afterwards before the API starts answering.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| merchantCenterId | string | oui | the numeric id shown top-right in Merchant Center |
| developerEmail | string | oui | a contact address Google records against the registration; it is not used to sign in |
list_merchant_accounts
List Merchant Center accounts
List the Google Merchant Center accounts this brand's connected Google account can reach. EVERY other Merchant tool needs the merchantCenterId this returns, and an agency often has several, so never guess one — ask the user which store. Read-only and free. If it is refused, the Merchant Center permission has not been granted yet; that is not a broken connection and reconnecting will not change it.
Aucun paramètre.
list_merchant_products
List Merchant Center products
Read the products in a Merchant Center feed — what the merchant actually offers, which is what Shopping and retail Performance Max campaigns serve. Needs merchantCenterId from list_merchant_accounts. Read-only and free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| merchantCenterId | string | oui | from list_merchant_accounts |
| limit | number | non | max products (default 50, max 250) |
record_shopify_marketing_activity
Record an ad or campaign in Shopify > Marketing
Record an ad or campaign the merchant is running (on Meta, Google, TikTok, email, anywhere) in their Shopify admin under Marketing, so Shopify's own reports attribute storefront visits and sales to it by its UTM. REPORTING ONLY: it publishes nothing and spends nothing. Pass title, remoteUrl (where the ad is managed, e.g. The Ads Manager link), the utm {campaign, source, medium} the ad's links carry, and optionally tactic (AD default, RETARGETING, POST, LINK, NEWSLETTER, …), channel (SOCIAL default, SEARCH, DISPLAY, EMAIL, REFERRAL), status (ACTIVE default, PAUSED, SCHEDULED, INACTIVE, DELETED_EXTERNALLY), budget {type DAILY|LIFETIME, amount, currency}, adSpend {amount, currency}, start / end / scheduledEnd dates and previewImageUrl. RemoteId is YOUR stable id for the activity (the ad platform's campaign id is ideal); calling again with the same remoteId UPDATES that one row, and every field you leave out is KEPT from the existing record (Shopify's own upsert would erase it; the reply lists what was kept). Read back from Shopify. Needs the store to have approved Hermoso's marketing permission: if it has not, the reply says to open Hermoso once from the Shopify admin to approve it. Works for the Shopify store connected to this brand or the store this account was installed on. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| title | string | non | what the merchant sees in Shopify > Marketing; required on the first recording |
| remoteUrl | string | non | https link where this ad or campaign is managed or viewed; required on the first recording |
| remoteId | string | non | your stable id for this activity (e.g. the ad platform campaign id); derived from platform + campaignId or the utm campaign when omitted |
| platform | string | non | where it runs, e.g. meta, google_ads, tiktok_ads; only used to derive remoteId |
| campaignId | string | non | the ad platform campaign id; only used to derive remoteId |
| utm | object | non | the UTM the ad links carry; Shopify matches visits on all three |
| tactic | enum: "AD" | "RETARGETING" | "POST" | "LINK" | "AFFILIATE" | "MESSAGE" | "NEWSLETTER" | "ABANDONED_CART" … | non | Shopify marketing tactic, e.g. AD, RETARGETING, POST, NEWSLETTER; default AD |
| channel | enum: "SOCIAL" | "SEARCH" | "DISPLAY" | "EMAIL" | "REFERRAL" | non | SOCIAL, SEARCH, DISPLAY, EMAIL or REFERRAL; default SOCIAL |
| status | enum: "ACTIVE" | "PAUSED" | "SCHEDULED" | "INACTIVE" | "DELETED_EXTERNALLY" | "UNDEFINED" | non | ACTIVE, PAUSED, SCHEDULED, INACTIVE, DELETED_EXTERNALLY or UNDEFINED; default ACTIVE |
| budget | object | non | budget object: {type DAILY or LIFETIME, amount, currency} |
| adSpend | object | non | amount spent so far |
| start | string | non | ISO date the ad started |
| end | string | non | ISO date it ended |
| scheduledEnd | string | non | ISO date the activity is scheduled to end |
| previewImageUrl | string | non | https image shown next to the activity (the ad creative works) |
list_shopify_marketing_activities
List Shopify marketing activities
The marketing activities recorded in the merchant's Shopify > Marketing by Hermoso (and other apps): title, tactic, channel, status, UTM, budget, ad spend, dates and the remoteId each was recorded under. Filter by remoteId or a Shopify search query (e.g. Title:summer). Newest first; pass cursor for more. Read-only, free. Needs the store to have approved Hermoso's marketing permission. Works for the Shopify store connected to this brand or the store this account was installed on.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| limit | number | non | 1–100, default 25 |
| cursor | string | non | pageInfo cursor from the previous reply, to fetch the next page |
| remoteId | string | non | return only the activity recorded under this remoteId |
| query | string | non | Shopify search syntax, e.g. title:summer or tactic:AD |
delete_shopify_marketing_activity
Delete a Shopify marketing activity
Remove a marketing activity Hermoso recorded from the merchant's Shopify > Marketing, by remoteId or id. Shopify stops attributing visits and sales to it and it cannot be undone, so without confirm:true NOTHING is deleted and the reply names exactly what would go: show the user, get a yes, then call again with confirm:true. Read back afterwards. Works for the Shopify store connected to this brand or the store this account was installed on. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| remoteId | string | non | remoteId of the activity to delete; use this or id |
| id | string | non | gid://shopify/MarketingActivity/… |
| confirm | boolean | non | true to delete; without it the reply names what would be removed and deletes nothing |
merchant_report
Merchant Center competitive visibility, best sellers and price benchmarks
COMPETITOR INTELLIGENCE GOOGLE COMPUTES FOR FREE, for any retail brand with a Merchant Center. Ten report views, read with a SQL-like MCQL query. The three worth reaching for first: `competitive_visibility_competitor_view` (WHICH other domains appear beside this merchant, their rank, page-overlap and higher-position rates — i.e. who is actually beating them), `best_sellers_product_cluster_view` (what is SELLING on Google in a category right now, with an inventory_status saying whether this merchant even stocks it) and `price_insights_product_view` (Google's own suggested price plus the predicted click and conversion change). Also: competitive_visibility_benchmark_view, competitive_visibility_top_merchant_view, best_sellers_brand_view, price_competitiveness_product_view, product_view, product_performance_view, non_product_performance_view. MCQL IS NOT SQL: no OR, no subqueries, no GROUP BY, no aggregates, no JOIN, and ORDER BY may only name fields already in SELECT. Date filters use `WHERE date BETWEEN '2026-01-01' AND '2026-01-31'` or `WHERE date DURING LAST_30_DAYS`. Several views REQUIRE specific fields in SELECT and in WHERE — competitive visibility needs report_category_id + report_country_code + traffic_source, and top_merchant uniquely REQUIRES a date condition while FORBIDDING date in SELECT. An unknown view is refused by name with the list. NOT AVAILABLE ON MULTI-CLIENT (MCA) ACCOUNTS — pass a subaccount id. An empty result is often a normal state (price insights are…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| merchantCenterId | string | oui | from list_merchant_accounts — a STANDALONE account or a SUBACCOUNT, never a multi-client (MCA) account |
| query | string | oui | the MCQL query, e.g. "SELECT id, title, price, suggested_price, effectiveness FROM price_insights_product_view" |
| pageSize | number | non | rows per response, 1–100000 (default 1000). 100,000 is GOOGLE's ceiling, not ours. |
| pageToken | string | non | nextPageToken from a previous call — resend the IDENTICAL query and pageSize with it, which Google requires |
list_merchant_issues
List Merchant Center account issues
Read the account-level issues Google reports on a Merchant Center — the answer to "why is this product not showing?". Needs merchantCenterId from list_merchant_accounts. Read-only and free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| merchantCenterId | string | oui | from list_merchant_accounts |
list_merchant_promotions
List Merchant Center promotions
The sale and discount promotions on a Merchant Center account, with each one's PER-DESTINATION status and any issues Google has raised against it. GOOGLE VALIDATES PROMOTIONS ASYNCHRONOUSLY, so 'created' and 'running' are different states and only destinationStatuses tells them apart — never report a sale as live off a successful create. Read-only, 0 credits. Needs Google Ads connected (Merchant Center rides the same connection).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| merchantCenterId | string | oui | from list_merchant_accounts |
| limit | number | non | up to 250, default 50 |
create_merchant_promotion
Create a Merchant Center promotion (sale badge)
PUT A SALE BADGE ON THE MERCHANT'S SHOPPING LISTINGS — the most seasonal thing a retail advertiser does. It creates the promotion and resolves (or creates) the promotion DATA SOURCE that country/language needs automatically; a promotion data source is its own kind and cannot be the product feed. IT IS NOT LIVE ON CREATE: Google validates promotions asynchronously and can take days to approve one, so report it as SUBMITTED and re-read with list_merchant_promotions. Everything Google marks Required is refused up front by name, including the pairings its own 400 does not mention — PERCENT_OFF needs percentOff, MONEY_OFF needs moneyOffAmount, GENERIC_CODE needs genericRedemptionCode — because otherwise Google accepts the promotion and disapproves it hours later where nobody is watching. 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| merchantCenterId | string | oui | from list_merchant_accounts |
| promotionId | string | oui | YOUR OWN id for the promotion, e.g. 'black-friday-2026' |
| targetCountry | string | oui | two-letter CLDR territory code, e.g. US. Part of the promotion identity and not changeable later |
| contentLanguage | string | oui | two-letter ISO 639-1 code, e.g. en. Must match the language of the products |
| longTitle | string | oui | the promotion text shoppers see, e.g. '20% off all winter coats' — describe the offer, do not name the campaign |
| couponValueType | enum: "MONEY_OFF" | "PERCENT_OFF" | "BUY_M_GET_N_MONEY_OFF" | "BUY_M_GET_N_PERCENT_OFF" | "BUY_M_GET_MONEY_OFF" | "BUY_M_GET_PERCENT_OFF" | "FREE_GIFT" | "FREE_GIFT_WITH_VALUE" … | oui | the kind of discount |
| offerType | enum: "NO_CODE" | "GENERIC_CODE" | oui | NO_CODE when the discount applies automatically, GENERIC_CODE when the shopper types a code |
| genericRedemptionCode | string | non | REQUIRED when offerType is GENERIC_CODE |
| percentOff | number | non | REQUIRED for PERCENT_OFF — a plain number, e.g. 20 |
| moneyOffAmount | object | non | REQUIRED for MONEY_OFF — {"amountMicros":"10000000","currencyCode":"USD"} is $10 off |
| redemptionChannel | array<enum: "IN_STORE" | "ONLINE"> | oui | at least one; ONLINE for a webshop sale |
| promotionDestinations | array<string> | oui | at least one, e.g. ['SHOPPING_ADS'] for paid Shopping or ['FREE_LISTINGS'] for the unpaid surface |
| productApplicability | enum: "ALL_PRODUCTS" | "SPECIFIC_PRODUCTS" | non | required unless eventApplicability is set — Google allows exactly one of the two |
| eventApplicability | enum: "SITEWIDE" | "SPECIFIC_CATEGORIES" | non | creates a SALES EVENT instead of a product promotion — a different thing |
| startDate | string | oui | ISO date, e.g. 2026-11-27 |
| endDate | string | oui | ISO date; widened to the END of that day, because Google's interval end is exclusive |
| promotionUrl | string | non | the page on the merchant's site where the promotion shows |
| attributes | object | non | any other promotion attribute Google publishes — item/brand/product-type filters, minimum purchase, store filters, display period — forwarded as given |
| customAttributes | array<object> | non | merchant-provided attributes, {name, value} |
merchant_issue_help
Google's own fix steps for a Merchant Center issue
GOOGLE'S OWN FIX STEPS, not just the name of the problem. list_merchant_issues stops at the symptom; this returns the remediation content Google writes for each issue, plus the ACTIONS available on it — request a review, claim the website, edit a named attribute — with the exact opaque ids trigger_merchant_issue_action needs. Pass an offerId (with feedLabel, and contentLanguage if it is not 'en') for one PRODUCT's issues, or leave it off for the ACCOUNT's. The fix text is Google's and is relayed verbatim: RELAY IT, do not paraphrase a remediation step into something that sounds simpler. Read-only, 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| merchantCenterId | string | oui | from list_merchant_accounts |
| offerId | string | non | for one PRODUCT's issues; omit for the account's issues |
| feedLabel | string | non | REQUIRED alongside offerId — from list_merchant_products. A product is addressed by contentLanguage + feedLabel + offerId |
| contentLanguage | string | non | with offerId; defaults to 'en' |
| languageCode | string | non | BCP-47 language for the fix text, e.g. 'en-US' |
| timeZone | string | non | IANA zone for times inside the content, e.g. 'America/Los_Angeles' |
trigger_merchant_issue_action
Fire a Merchant Center issue action
FIRE one of the actions merchant_issue_help returned — most usefully 'request a review' on a disapproval. SEVERAL OF THESE ARE ONE-SHOT and Google says so in its own dialog callout ('You can only request a review for disagreeing with this issue once. If it's not approved, you'll need to fix the issue and wait'), so read that callout back to the user before confirming: a review spent on the wrong issue cannot be spent again. WITHOUT `confirm` IT FIRES NOTHING. `actionContext` is OPAQUE by Google's own instruction — pass it back exactly as merchant_issue_help gave it; it cannot be constructed or edited. The answer is Google's own message to the business, relayed verbatim, because this endpoint returns no resource to read back. 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| merchantCenterId | string | oui | from list_merchant_accounts |
| actionContext | string | oui | the opaque token from merchant_issue_help, on the action you are firing |
| actionFlowId | string | oui | the id of the flow you picked from that action's flows — each asks for different inputs |
| inputValues | array<object> | non | values for the flow's input fields, shaped as Google described them: {inputFieldId, textInputValue|choiceInputValue|checkboxInputValue} |
| languageCode | string | non | BCP-47 language for the response message |
| confirm | boolean | non | must be true to actually fire it |
list_merchant_inventory
Merchant store and region overrides
The per-store and per-region price and availability overrides on one Shopping product. An override REPLACES the product's own price and availability for that store or region; where there is no override the product-level values apply, so an empty result is the normal answer and does NOT mean the product is missing. Needs the product's offerId plus its contentLanguage and feedLabel, because in the Merchant API those three together ARE the product's address rather than optional filters. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| merchantCenterId | string | oui | from list_merchant_accounts |
| offerId | string | oui | the product's own id in the feed, from list_merchant_products |
| contentLanguage | string | oui | two-letter feed language, e.g. "en". Part of the product's address, not a filter |
| feedLabel | string | oui | usually the feed target country, e.g. "US". Part of the product's address, not a filter |
| kind | enum: "local" | "regional" | non | omit to read both |
set_merchant_inventory
Set store or region price and stock
SET the price, availability or stock level of one Shopping product at ONE physical store (kind:"local", keyed by storeCode) or in ONE region (kind:"regional", keyed by region). This is what stops a Shopping ad advertising something the nearest store has sold out of. Google's insert REPLACES the whole entry, so this tool reads what is already stored, merges your fields over it, and reports which stored fields it preserved; pass an explicit null to CLEAR one. The API publishes no enum for availability, so it accepts anything and only Google's local inventory data specification says which values actually serve: In stock, Limited availability, On display to order, Out of stock, submitted in English. An unrecognised value is warned about here rather than refused, because refusing would mean inventing an enum Google does not publish. Google states it can take up to 30 minutes before the product itself reflects the change, so a product read straight afterwards can still show the old value and be correct. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| merchantCenterId | string | oui | from list_merchant_accounts |
| offerId | string | oui | the product's own id in the feed |
| contentLanguage | string | oui | two-letter feed language, e.g. "en" |
| feedLabel | string | oui | usually the feed target country, e.g. "US" |
| kind | enum: "local" | "regional" | oui | local = one physical store (storeCode), regional = one Google region (region) |
| storeCode | string | non | required for kind:'local' — the store ID from the merchant's Business Profile. Immutable |
| region | string | non | required for kind:'regional' — the Merchant Center region id. Immutable |
| availability | string | null | non | no API enum exists; Google's local spec publishes In stock, Limited availability, On display to order, Out of stock, in English. Anything else is warned about, not refused. null clears it |
| price | string | null | non | "12.99 USD". A bare number is refused because a price with no currency is not a price. null clears it |
| salePrice | string | null | non | "9.99 USD". Google requires salePriceEffectiveDate alongside it if that is set. null clears it |
| quantity | number | null | non | local only. null clears it |
| pickupMethod | string | null | non | local only. Must be sent WITH pickupSla unless the value is "not supported" |
| pickupSla | string | null | non | local only |
| instoreProductLocation | string | null | non | local only, max 20 bytes |
merchant_account_status
Merchant Center serving status
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| merchantCenterId | string | oui | from list_merchant_accounts |
manage_merchant_settings
Change Merchant Center settings
FIX THE MERCHANT CENTER SETTINGS that stop an account serving (merchant_account_status names them). Pick section + action. shipping: get · upsert (add or update services by name; services you do not mention are KEPT) · remove (serviceNames) · replace (exactly this list). A service is {name, countries, currency, rate, freeOver?, handlingDays:[min,max], transitDays:[min,max], active?} or Google's own Service shape; delivery days are required, never guessed. returns: list · create (policy {countries, returnPolicyUri, days or policyType, itemConditions, returnMethods, processRefundDays, returnLabelSource, label?}) · delete (returnPolicyId). Google has no edit for a return policy. business_info: get · update (address, customerService {uri,email,phone}, koreanBusinessRegistrationNumber; merged field by field, null clears). homepage: get · claim (re-checks verification; overwrite:true takes it from another account) · unclaim · set_uri (removes the claim). programs: list · enable · disable (program e.g. free-listings, shopping-ads). Overwriting or removing a shipping service, replacing existing business info, deleting a return policy, unclaiming, changing a claimed homepage, overwrite:true and disabling an enabled program each answer with what would change and need confirm:true. Every write is read back from Google. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| merchantCenterId | string | oui | from list_merchant_accounts |
| section | enum: "shipping" | "returns" | "business_info" | "homepage" | "programs" | oui | shipping, returns, business_info, homepage or programs; the Merchant Center area to act on |
| action | enum: "get" | "upsert" | "remove" | "replace" | "list" | "create" | "delete" | "update" … | non | defaults to the section's read (get/list) |
| services | array<object> | non | shipping upsert/replace |
| serviceNames | array<string> | non | shipping remove |
| warehouses | array<object> | non | shipping: Google Warehouse objects; omitted = existing ones kept |
| policy | object | non | returns create |
| returnPolicyId | string | non | returns delete, from list |
| address | object | non | business_info: regionCode, street or addressLines, locality, administrativeArea, postalCode |
| customerService | object | non | business_info: uri, email, phone (E.164) |
| koreanBusinessRegistrationNumber | string | non | Korean business registration number; business_info update only |
| uri | string | non | homepage set_uri |
| overwrite | boolean | non | homepage claim: take the claim from another account |
| program | string | non | programs enable/disable |
| confirm | boolean | non | true ONLY after the user approved the change the first call described |
merchant_quota
Merchant Center quota and limits
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| merchantCenterId | string | oui | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| merchantCenterId | string | oui | from list_merchant_accounts |
| action | enum: "list" | "create" | "delete" | non | defaults to 'list' |
| callBackUri | string | non | HTTPS endpoint Google will POST to (create). Not a Hermoso URL and not localhost |
| registeredEvent | enum: "PRODUCT_STATUS_CHANGE" | "ACCOUNT_SERVICE_CHANGE" | non | defaults to PRODUCT_STATUS_CHANGE, the one that fires on a disapproval |
| allManagedAccounts | boolean | non | subscribe for every managed account instead of just this one — mutually exclusive with targetAccount |
| targetAccount | string | non | accounts/{id} to receive notifications for; defaults to this account |
| subscriptionId | string | non | for action:'delete', from action:'list' |
manage_merchant_conversion_source
Merchant Center conversion sources
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| merchantCenterId | string | oui | from list_merchant_accounts |
| action | enum: "list" | "create" | "update" | "delete" | "undelete" | non | defaults to 'list' |
| kind | enum: "merchant_center_destination" | "google_analytics_link" | non | for action:'create' — which kind to make. Passing propertyId implies the Google Analytics one |
| displayName | string | non | 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 | non | 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 | non | 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 | non | 7, 30 or 40 — Google publishes no other value. Defaults to 30 |
| conversionTypes | array<string> | non | 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 | non | NUMERIC GA4 property id for a Google Analytics link (from list_analytics_properties), not a G- measurement id |
| conversionSourceId | string | non | for update, delete and undelete — from action:'list' |
| showDeleted | boolean | non | include archived sources in a list |
| confirm | boolean | non | must be true to actually archive |
list_merchant_data_sources
List Merchant Center product feeds
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| merchantCenterId | string | oui | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| merchantCenterId | string | oui | from list_merchant_accounts |
| displayName | string | oui | the name the merchant will see in Merchant Center |
| feedLabel | string | non | market bucket, e.g. "US" — max 20 chars, A-Z/0-9/dashes. IMMUTABLE, and must be set together with contentLanguage |
| contentLanguage | string | non | two-letter ISO 639-1, e.g. "en". IMMUTABLE, and must be set together with feedLabel |
| countries | array<string> | non | CLDR territory codes the items may be shown in |
| destinations | array<string> | non | omit to inherit the account's own program participation (SHOPPING_ADS, FREE_LISTINGS, …) |
upsert_merchant_product
Create or replace a Merchant Center product
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| merchantCenterId | string | oui | from list_merchant_accounts |
| offerId | string | oui | your own unique id for the product — IMMUTABLE, and what you update or delete it by later |
| dataSource | string | non | 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 | non | display name for a feed created on the fly |
| contentLanguage | string | non | two-letter, e.g. "en" — taken from the feed when the feed declares one |
| feedLabel | string | non | market bucket, e.g. "US" — taken from the feed when the feed declares one |
| title | string | non | product title; Google needs it for the product to serve |
| description | string | non | product description; Google needs it for the product to serve |
| link | string | non | the product page URL on the merchant's store |
| imageLink | string | non | main product image URL (https); Google needs it for the product to serve |
| additionalImageLinks | array<string> | non | extra product image URLs, as a list |
| availability | string | non | in_stock | out_of_stock | preorder | backorder |
| condition | string | non | new | refurbished | used |
| price | object | non | price object: {value in major units or amountMicros, currencyCode} |
| salePrice | object | non | sale price, same shape as price |
| brand | string | non | brand name |
| gtin | string | non | GTIN barcode (UPC, EAN or similar) |
| mpn | string | non | manufacturer part number |
| identifierExists | boolean | non | false for a product with no GTIN/MPN/brand, such as a service or a bundle |
| googleProductCategory | string | non | Google product taxonomy category |
| productTypes | array<string> | non | merchant-defined category labels for the product, as a list |
| color | string | non | product colour |
| size | string | non | product size |
| material | string | non | product material |
| ageGroup | string | non | newborn, infant, toddler, kids or adult |
| gender | string | non | male, female or unisex |
| itemGroupId | string | non | shared id that groups the variants of one product, e.g. colours or sizes |
| attributes | object | non | any other product attribute by its Merchant API name — there are 145 and only the common ones are named above |
| customAttributes | array<object> | non | extra attributes as a list of {name, value} objects |
delete_merchant_product
Delete a Merchant Center product
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| merchantCenterId | string | oui | from list_merchant_accounts |
| offerId | string | oui | your offer id of the product to delete |
| dataSource | string | non | the feed it lives in, from list_merchant_data_sources |
| contentLanguage | string | non | two-letter language code of the product; taken from the feed when it declares one |
| feedLabel | string | non | market label of the product, e.g. US; taken from the feed when it declares one |
| confirm | boolean | non | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| merchantCenterId | string | oui | from list_merchant_accounts |
| offerId | string | oui | the product to change |
| dataSource | string | non | the feed it lives in, from list_merchant_data_sources |
| contentLanguage | string | non | two-letter language code; taken from the feed when it declares one |
| feedLabel | string | non | market label, e.g. US; taken from the feed when it declares one |
| title | string | non | new product title; omit to leave unchanged |
| description | string | non | new product description; omit to leave unchanged |
| link | string | non | product page URL on the merchant's store |
| imageLink | string | non | main product image URL (https) |
| additionalImageLinks | array<string> | non | extra image URLs, sent as the whole list |
| availability | string | non | in_stock | out_of_stock | preorder | backorder |
| condition | string | non | new | refurbished | used |
| price | object | non | new price: {value in major units or amountMicros, currencyCode} |
| salePrice | object | non | new sale price, same shape as price |
| brand | string | non | brand name |
| gtin | string | non | GTIN barcode (UPC, EAN or similar) |
| mpn | string | non | manufacturer part number |
| identifierExists | boolean | non | false for a product with no GTIN, MPN or brand, such as a service or bundle |
| googleProductCategory | string | non | Google product taxonomy category |
| productTypes | array<string> | non | merchant-defined category labels, as a list |
| color | string | non | product colour |
| size | string | non | product size |
| material | string | non | product material |
| ageGroup | string | non | newborn, infant, toddler, kids or adult |
| gender | string | non | male, female or unisex |
| itemGroupId | string | non | shared id that groups the variants of one product |
| attributes | object | non | any other product attribute by its Merchant API name |
delete_merchant_data_source
Delete a Merchant Center product feed
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| merchantCenterId | string | oui | from list_merchant_accounts |
| dataSource | string | oui | the feed to delete, from list_merchant_data_sources |
| confirm | boolean | non | 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 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 (Connectors > Google Ads).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | 10-digit account id (dashes ok) — omit to list accessible accounts |
| status | enum: "ENABLED" | "PAUSED" | "REMOVED" | non | filter campaigns by status |
| datePreset | string | non | metrics window preset (default LAST_30_DAYS) |
| since | string | non | start date YYYY-MM-DD (with until) |
| until | string | non | end date YYYY-MM-DD |
| metrics | boolean | non | include performance metrics (default true) |
| loginCustomerId | string | non | manager (MCC) id — only if reaching a client account through a manager |
| limit | number | non | max campaigns (1–500, default 100) |
google_ads_report
Google Ads GAQL report
Use this when the user asks how their Google Ads campaigns performed. 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 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. Reach (metrics.unique_users, unique_users_two_plus…ten_plus, cross_device_conversions) reads FROM campaign or customer and is never summed across rows; the reply notes its window limits. Lead form submissions: list_google_ads_lead_submissions. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | 10-digit account id (dashes ok) — omit to use the brand’s selected default account |
| query | string | oui | GAQL, e.g. "SELECT ad_group.name, metrics.clicks, metrics.cost_micros FROM ad_group WHERE segments.date DURING LAST_7_DAYS" |
| loginCustomerId | string | non | manager id if operating through an MCC |
google_ads_change_history
What changed on a Google Ads account, and when
WHAT CHANGED ON THE ACCOUNT, AND WHEN — the answer to "performance fell off a cliff on Tuesday, what happened?". 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | 10-digit account id — omit to use the brand’s selected default account |
| source | enum: "change_event" | "change_status" | non | default change_event (30 days, field-level). change_status is 90 days and is the only one that sees Google Ads Editor. |
| since | string | non | YYYY-MM-DD, default 14 days ago |
| until | string | non | YYYY-MM-DD, default today |
| limit | number | non | rows, max 10000 — Google’s own ceiling, and the clamp is reported |
| detail | boolean | non | change_event only — include the old/new resource snapshots |
| loginCustomerId | string | non | manager (MCC) account id when acting through a manager account; omit otherwise |
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. Before building on an account for the first time, run the ad account health check, which says whether it can run ads (status, payment method, spending limit, rejected ads).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | 10-digit account id (from list_google_ads_campaigns) — omit to use the brand’s selected default account |
| name | string | oui | campaign name |
| dailyBudgetUsd | number | non | daily budget in the ACCOUNT’s currency (historical name — not necessarily USD; 1–100000) — creates a budget inline; required unless budgetResourceName is given |
| budgetResourceName | string | non | reuse an existing budget instead of creating one |
| channelType | enum: "SEARCH" | "DISPLAY" | non | default SEARCH |
| searchPartners | boolean | non | SEARCH only — also serve on Google search partners (default false) |
| bidding | object | non | how the campaign bids — default MANUAL_CPC |
| locations | array<string> | non | 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 | array<string> | non | location names to EXCLUDE |
| languages | array<string> | non | ISO language codes, e.g. ["en","fr"] |
| startDate | string | non | YYYY-MM-DD |
| endDate | string | non | YYYY-MM-DD |
| adGroup | object | non | build the serving tree in the same atomic call — WITHOUT this you get a campaign shell that can never show an ad |
| finalUrlSuffix | string | non | UTMs appended to every click, e.g. "utm_source=google&utm_medium=cpc". Omit for our default (utm_source/medium/campaign + {campaignid}/{creative}); "" for none |
| trackingUrlTemplate | string | non | click-tracking redirect, e.g. "{lpurl}?src=x" — only if you use a tracker |
| urlCustomParameters | object | non | up to 8 custom parameters, used in URLs as {_key} |
| containsEuPoliticalAds | boolean | non | 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 | non | validate the WHOLE tree against Google without creating anything. Nothing is written and no budget is consumed |
| loginCustomerId | string | non | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | omit to use the brand’s selected default account |
| campaignId | string | oui | the campaign this ad group belongs to |
| name | string | oui | ad group name |
| cpcBidUsd | number | non | max CPC for this ad group — omit to inherit the campaign bidding |
| status | enum: "ENABLED" | "PAUSED" | non | default PAUSED |
| ad | object | non | build the ad in the same atomic call |
| keywords | array<object> | non | a SEARCH ad group with no keywords never shows |
| confirm | boolean | non | 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 | non | true = validate with Google and create nothing |
| loginCustomerId | string | non | manager (MCC) account id when acting through a manager account; omit otherwise |
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | omit to use the brand’s selected default account |
| adGroupId | string | oui | the ad group this ad lives in |
| finalUrls | array<string> | non | The landing page(s) — at least one is required. |
| headlines | array<string | object> | non | 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 | array<string | object> | non | SEARCH: 2–4 descriptions, each ≤90 characters. DISPLAY: 1–5. Pass a plain string, or {text, pin} to pin it. |
| path1 | string | non | SEARCH only — display-URL path segment, ≤15 chars |
| path2 | string | non | SEARCH only — second display-URL path segment, ≤15 chars |
| longHeadline | string | non | DISPLAY only — ≤90 characters |
| businessName | string | non | DISPLAY only — ≤25 characters |
| marketingImages | array<string> | non | DISPLAY only — landscape 1.91:1 asset resource names from upload_google_ads_asset |
| squareMarketingImages | array<string> | non | DISPLAY only — square 1:1 asset resource names |
| logoImages | array<string> | non | DISPLAY only — logo asset resource names |
| status | enum: "ENABLED" | "PAUSED" | non | default PAUSED |
| confirm | boolean | non | 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 | non | true = validate with Google and create nothing |
| loginCustomerId | string | non | manager (MCC) account id when acting through a manager account; omit otherwise |
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | omit to use the brand’s selected default account |
| adGroupId | string | oui | the ad group to add them to |
| keywords | array<object> | oui | the keywords to add |
| confirm | boolean | non | 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 | non | true = validate with Google and create nothing |
| loginCustomerId | string | non | manager (MCC) account id when acting through a manager account; omit otherwise |
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | omit to use the brand’s selected default account |
| campaignId | string | oui | the campaign to target |
| locations | array<string> | non | location NAMES to target |
| excludedLocations | array<string> | non | location NAMES to exclude |
| languages | array<string> | non | ISO language codes, e.g. ["en","es"] |
| countryCode | string | non | 2-letter hint to disambiguate a city name, e.g. CA for "London" |
| confirm | boolean | non | REQUIRED true to change a LIVE (ENABLED) campaign |
| dryRun | boolean | non | true = validate with Google and change nothing |
| loginCustomerId | string | non | manager (MCC) account id when acting through a manager account; omit otherwise |
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | omit to use the brand’s selected default account |
| campaignId | string | oui | the campaign to change |
| strategy | enum: "MANUAL_CPC" | "MAXIMIZE_CLICKS" | "MAXIMIZE_CONVERSIONS" | "MAXIMIZE_CONVERSION_VALUE" | "TARGET_CPA" | "TARGET_ROAS" | oui | the bidding strategy |
| targetCpaUsd | number | non | REQUIRED for TARGET_CPA |
| targetRoas | number | non | REQUIRED for TARGET_ROAS — e.g. 4 = $4 revenue per $1 spent |
| maxCpcUsd | number | non | MAXIMIZE_CLICKS — the max CPC ceiling; REQUIRED when switching an existing campaign to it |
| enhancedCpc | boolean | non | 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 | non | REQUIRED true to change a LIVE (ENABLED) campaign |
| dryRun | boolean | non | true = validate with Google and change nothing |
| loginCustomerId | string | non | manager (MCC) account id when acting through a manager account; omit otherwise |
find_google_ads_locations
Look up Google Ads locations
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| query | string | oui | one location name, or several comma-separated (up to 25) |
| countryCode | string | non | 2-letter hint, e.g. CA to disambiguate "London" |
| loginCustomerId | string | non | manager (MCC) account id when acting through a manager account; omit otherwise |
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | 10-digit account id (dashes ok) — omit to use the brand’s selected default account |
| dailyBudgetUsd | number | oui | daily budget in the ACCOUNT’s currency (historical name — not necessarily USD; 1–100000) |
| budgetResourceName | string | non | existing budget to UPDATE — omit to CREATE a new budget |
| name | string | non | name for a newly created budget |
| confirm | boolean | non | REQUIRED true to raise the budget of a LIVE campaign |
| loginCustomerId | string | non | manager id if operating through an MCC |
set_google_ads_status
Enable, pause or remove a Google Ads campaign / ad group / ad
Turn a campaign, AD GROUP, AD or one KEYWORD ON (ENABLED), OFF (PAUSED) or REMOVED. Pass level:"campaign" + campaignId, level:"adGroup" + adGroupId, level:"ad" + BOTH adGroupId and adId (Google keys an ad by adGroupId~adId), or level:"keyword" + BOTH adGroupId and keywordId. 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | 10-digit account id (dashes ok) — omit to use the brand’s selected default account |
| level | enum: "campaign" | "adGroup" | "ad" | "keyword" | non | what to change — default campaign |
| campaignId | string | non | campaign id (level:"campaign") |
| adGroupId | string | non | ad group id (level:"adGroup", or with adId for level:"ad") |
| adId | string | non | ad id (level:"ad" — pass adGroupId too) |
| keywordId | string | non | keyword criterion id (level:"keyword", with adGroupId) |
| campaignResourceName | string | non | full resource name, e.g. customers/{cid}/campaigns/{id} |
| status | enum: "ENABLED" | "PAUSED" | "REMOVED" | oui | ENABLED = start spending; PAUSED = stop; REMOVED = permanent |
| confirm | boolean | non | REQUIRED true to ENABLE (real spend) or to REMOVE (permanent) |
| confirmName | string | non | when archiving or removing: its EXACT name, as the unconfirmed call names it. Required when it has children or is live |
| confirmChildren | number | non | when archiving or removing: the exact number of children the unconfirmed call reported. Required when it has any |
| loginCustomerId | string | non | manager id if operating through an MCC |
manage_google_ads_budget_networks
Google Ads waterfall priorities and network spend caps
Google Ads WATERFALL AND NETWORK CAPS: which network a budget spends on first and how much the others may take. action 'read' (default), 'set' (settings) or 'clear', on the ACCOUNT DEFAULT or, with budgetId, on one campaign budget, which then wins. Every channel a campaign type supports must be in a tier and caps only go on tier2; Google says which if not. A budget's read says whether it can use these and why not. 'set' and 'clear' move real spend on the next auction: show the user, get a yes, then confirm:true; dryRun:true validates without changing anything.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "read" | "set" | "clear" | non | default 'read' |
| customerId | string | non | 10-digit account id (dashes ok); omit to use the brand’s selected default account |
| budgetId | string | non | numeric campaign budget id; omit for the account default |
| settings | array<object> | non | for set: one entry per campaign type |
| confirm | boolean | non | REQUIRED true for set and clear, after the user approved |
| dryRun | boolean | non | validate with Google, write nothing |
| loginCustomerId | string | non | manager id if operating through an MCC |
google_ads_local_services_eligibility
Check Google Local Services eligibility
Ask Google whether a Business Profile listing can run LOCAL SERVICES ads on this Google Ads account: eligible or not, why not, and which lead types and categories it qualifies for. Read-only.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| listingId | string | oui | numeric Business Profile location id |
| customerId | string | non | 10-digit account id (dashes ok); omit to use the brand’s selected default account |
| loginCustomerId | string | non | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | 10-digit account id (dashes ok) — omit to use the brand’s selected default account |
| campaignId | string | oui | the campaign to change |
| googleSearch | boolean | non | serve on Google Search (target_google_search) |
| searchPartners | boolean | non | serve on Google search partner sites (target_search_network) |
| display | boolean | non | serve on the Google Display Network (target_content_network) |
| confirm | boolean | non | REQUIRED true to change a LIVE (ENABLED) campaign |
| dryRun | boolean | non | validate with Google, write nothing |
| loginCustomerId | string | non | manager id if operating through an MCC |
set_google_ads_schedule_and_bids
Google Ads ad schedule + device / location / hour bid adjustments
WHEN a Google Ads campaign runs and how much more or less it bids by device, location and hour. Pass only campaignId to read the current schedule and adjustments. schedule:[{day: MONDAY…SUNDAY | WEEKDAYS | WEEKENDS | EVERYDAY, start:"09:00", end:"17:00", bidModifier?}] REPLACES the schedule (scheduleMode:"add" appends; clearSchedule:true runs it all day again); account time zone, quarter hours, end may be 24:00. devices {mobile, desktop, tablet, connectedTv} and adGroupDevices (with adGroupId) take MULTIPLIERS: 1.2 = +20%, 0.8 = -20%, 0 = never show on that device. locations:[{geoTargetId, bidModifier}] adjusts locations the campaign already targets. On a LIVE campaign a change that can raise spend (more hours, a higher multiplier) needs confirm:true after the user approves; lowering never does. dryRun:true validates only. Read back from Google.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| campaignId | string | oui | the campaign |
| adGroupId | string | non | for adGroupDevices |
| schedule | array<object> | non | ad schedule slots; replaces the current schedule unless scheduleMode is add |
| scheduleMode | enum: "replace" | "add" | non | replace (default) or add to the current schedule |
| clearSchedule | boolean | non | remove the schedule so it runs all day |
| devices | object | non | campaign-level device multipliers |
| adGroupDevices | object | non | ad-group device multipliers (needs adGroupId) |
| locations | array<object> | non | bid adjustments for locations the campaign already targets |
| customerId | string | non | omit to use the selected default account |
| confirm | boolean | non | true only after the user approved a change to a LIVE campaign or a delete |
| dryRun | boolean | non | validate with Google, change nothing |
| loginCustomerId | string | non | manager id if operating through an MCC |
manage_google_ads_negative_list
Google Ads shared negative keyword lists
Shared NEGATIVE KEYWORD LISTS: one list of blocked searches reused across Google Ads campaigns, or applied to the whole account. action: list (with sharedSetId shows its keywords) | create (name, keywords, campaignIds or accountLevel:true) | add (keywords) | remove_keywords (keywords or criterionIds) | replace (keywords: the WHOLE set afterwards, [] empties it; one atomic change) | rename (name) | attach / detach (campaignIds) | delete. keywords are "text" or {text, matchType: BROAD|PHRASE|EXACT}. Creating, adding, renaming and attaching only block ads or change nothing, so they never need confirm. Removing keywords (including a replace that drops some), detaching or deleting lets blocked searches show ads again: confirm:true on a live campaign, and always for delete. One ad group's own negatives: add_google_ads_keywords with negative:true.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "list" | "create" | "add" | "remove_keywords" | "replace" | "rename" | "attach" | "detach" … | non | default list |
| sharedSetId | string | non | the list (from action list) |
| name | string | non | create, or the new name for rename |
| keywords | array<string | object> | non | keywords to block, as text strings or {text, matchType BROAD, PHRASE or EXACT} objects |
| criterionIds | array<string> | non | remove_keywords by id |
| campaignIds | array<string> | non | campaign ids to attach to or detach from the shared list |
| accountLevel | boolean | non | create: apply to every campaign on the account |
| customerId | string | non | omit to use the selected default account |
| confirm | boolean | non | true only after the user approved a change to a LIVE campaign or a delete |
| dryRun | boolean | non | validate with Google, change nothing |
| loginCustomerId | string | non | manager id if operating through an MCC |
manage_google_ads_asset_groups
Manage Performance Max asset groups
Performance Max ASSET GROUPS after launch. action: list (campaignId) | create (campaignId, name, finalUrls, assets; a non-retail group needs Google's minimum set in the same call: 3+ headlines, 1+ longHeadlines, 2+ descriptions, businessName + logos unless brand guidelines are on, 1+ marketingImages and squareMarketingImages as asset resource names from upload_google_ads_asset; born PAUSED) | update (assetGroupId; name, finalUrls, path1, path2) | pause | enable | remove (permanent: confirm:true + confirmName; never the last group) | link (assets to add) | unlink (unlink:[{asset, fieldType}], never below the minimum) | listing_groups (which feed products a RETAIL group advertises) | set_listing_groups (all:true, or dimension + values + mode include|exclude). A change to a live group needs confirm:true. Everything is read back. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | omit to use the brand’s selected default account |
| action | enum: "list" | "create" | "update" | "pause" | "enable" | "remove" | "link" | "unlink" … | oui | |
| campaignId | string | non | the Performance Max campaign (list, create) |
| assetGroupId | string | non | every action except list and create |
| name | string | non | |
| finalUrls | array<string> | non | |
| path1 | string | non | |
| path2 | string | non | |
| assets | object | non | text as text; images and videos as asset resource names |
| unlink | array<object> | non | links to remove, e.g. {asset:"customers/1/assets/2", fieldType:"HEADLINE"} |
| all | boolean | non | set_listing_groups: advertise every product |
| dimension | enum: "brand" | "itemId" | "productType" | "category" | "condition" | "channel" | "customAttribute" | non | |
| values | array<string> | non | |
| mode | enum: "include" | "exclude" | non | include = only these; exclude = all but these |
| level | number | non | productType / category level 1-5 |
| index | number | non | customAttribute index 0-4 |
| confirm | boolean | non | |
| confirmName | string | non | remove: the group name exactly |
| dryRun | boolean | non | |
| loginCustomerId | string | non | manager id if operating through an MCC |
update_google_ads_ad
Edit a Google responsive search ad in place
EDIT a responsive search ad IN PLACE so it keeps its history: headlines (3-15, ≤30 characters; {text, pin:"HEADLINE_1"} pins one), descriptions (2-4, ≤90), path1 / path2 (≤15), finalUrls, finalMobileUrls, finalUrlSuffix, trackingUrlTemplate. A list you pass REPLACES the ad's list, so send it whole. Over-long text is refused, never cut. A live ad needs confirm:true and Google reviews it again. Read back. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | |
| adGroupId | string | non | |
| adId | string | oui | the ad id (from google_ads_report) |
| headlines | array<string | object> | non | |
| descriptions | array<string | object> | non | |
| path1 | string | non | |
| path2 | string | non | |
| finalUrls | array<string> | non | |
| finalMobileUrls | array<string> | non | |
| finalUrlSuffix | string | non | |
| trackingUrlTemplate | string | non | |
| confirm | boolean | non | |
| dryRun | boolean | non | |
| loginCustomerId | string | non |
duplicate_google_ads_campaign
Duplicate a Google Ads campaign (paused)
DUPLICATE a Google Ads Search or Display campaign: budget amount, bidding, networks, locations, languages, schedule, negatives, ad groups, keywords and responsive ads, rebuilt in one step (Google's API has no copy operation) and born PAUSED. History and Quality Score start fresh. dryRun:true checks it without creating anything. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | |
| campaignId | string | oui | |
| name | string | non | default " (copy)" |
| shareBudget | boolean | non | reuse a SHARED budget instead of a new one |
| dryRun | boolean | non | |
| loginCustomerId | string | non |
manage_google_ads_labels
Google Ads labels on campaigns, ad groups and ads
Google Ads LABELS for organising campaigns, ad groups and ads ("Made by Hermoso", "Q4 test"). action: list | create (name, color #RRGGBB, description, and targets to label at once) | update (name, color, description) | apply / remove (campaignIds, adGroupIds, ads:[{adGroupId, adId}], keywords:[{adGroupId, keywordId}]) | delete (confirm:true). Labels never change delivery or spend. Report by label with google_ads_report over campaign_label / ad_group_label / ad_group_ad_label / ad_group_criterion_label.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "list" | "create" | "update" | "apply" | "remove" | "delete" | non | default list |
| labelId | string | non | the label (from action list) |
| name | string | non | label name, for create or update |
| color | string | non | #RRGGBB |
| description | string | non | up to 200 characters |
| campaignIds | array<string> | non | campaign ids to apply or remove the label on |
| adGroupIds | array<string> | non | ad group ids to apply or remove the label on |
| ads | array<object> | non | ads to label, as a list of {adGroupId, adId} objects |
| keywords | array<object> | non | keywords to label, as a list of {adGroupId, keywordId} objects |
| customerId | string | non | omit to use the selected default account |
| confirm | boolean | non | true only after the user approved a change to a LIVE campaign or a delete |
| dryRun | boolean | non | validate with Google, change nothing |
| loginCustomerId | string | non | manager id if operating through an MCC |
manage_google_ads_campaign_negatives
Campaign-level negative keywords on Google Ads
The NEGATIVE KEYWORDS SET ON ONE GOOGLE ADS CAMPAIGN (campaign level), separate from an ad group's own negatives (add_google_ads_keywords negative:true) and from shared lists (manage_google_ads_negative_list). action list (default) | add (keywords) | remove (keywords or criterionIds from list) | replace (keywords: the WHOLE set afterwards, [] clears them; diffed against Google so unchanged ones keep their ids, sent in one atomic change). keywords are "text" or {text, matchType BROAD|PHRASE|EXACT}, default BROAD. Adding only stops ads showing and never asks. Removing one (or a replace that drops one) on a LIVE campaign lets that search spend again: show the user, then confirm:true. dryRun:true has Google check it. Read back from Google. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "list" | "add" | "remove" | "replace" | non | list (default), add, remove or replace |
| campaignId | string | oui | the campaign |
| keywords | array<string | object> | non | keywords to add / remove, or the whole set for replace |
| criterionIds | array<string> | non | remove by id (from list) |
| customerId | string | non | Google Ads account id, 10 digits; omit for the brand's selected default account |
| confirm | boolean | non | true only after the user approved a change that can raise spend on a LIVE campaign |
| dryRun | boolean | non | true = Google validates it and nothing changes |
| loginCustomerId | string | non | manager (MCC) account id when acting through one; omit otherwise |
manage_google_ads_shared_budgets
Google Ads shared budgets
SHARED BUDGETS on Google Ads: one daily amount several campaigns draw from. action list (default): every shared budget with its daily amount and the campaigns on it. create: name + dailyBudget (the account currency); it spends nothing until a campaign draws from it. attach: budgetId + campaignIds moves those campaigns onto it; a LIVE campaign moved onto a budget with a HIGHER daily amount than it has now can spend more, so show the user and pass confirm:true (a lower one never asks). A campaign's own budget is changed with set_google_ads_budget. dryRun:true has Google check a write. Read back from Google. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "list" | "create" | "attach" | non | list (default), create or attach |
| name | string | non | create: the budget name, unique on the account |
| dailyBudget | number | non | create: the daily amount in the account currency |
| budgetId | string | non | attach: the shared budget (from list) |
| campaignIds | array<string> | non | attach: campaigns to move onto the budget |
| customerId | string | non | Google Ads account id, 10 digits; omit for the brand's selected default account |
| confirm | boolean | non | true only after the user approved a change that can raise spend on a LIVE campaign |
| dryRun | boolean | non | true = Google validates it and nothing changes |
| loginCustomerId | string | non | manager (MCC) account id when acting through one; omit otherwise |
update_google_ads_keyword
Change one Google Ads keyword's bid or status
Change ONE Google Search keyword: its own max CPC (cpcBidUsd, the account currency), clearBid:true (it bids the ad group's default again), and / or status ENABLED or PAUSED. Find adGroupId and keywordId (the criterion id) with google_ads_report over keyword_view. Pausing or lowering is always safe. Raising the bid, or switching the keyword on, under a LIVE campaign and ad group raises real spend: show the user, get a yes, then confirm:true. On automated bidding (Maximize conversions, target CPA, …) Google sets bids itself and the reply says a keyword bid is not used. Removing a keyword is delete_google_ads_object level keyword. Read back from Google. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adGroupId | string | oui | the keyword's ad group |
| keywordId | string | oui | the keyword's criterion id |
| cpcBidUsd | number | non | the keyword's own max CPC, account currency |
| clearBid | boolean | non | true = drop its own bid and use the ad group's |
| status | enum: "ENABLED" | "PAUSED" | non | ENABLED or PAUSED |
| customerId | string | non | Google Ads account id, 10 digits; omit for the brand's selected default account |
| confirm | boolean | non | true only after the user approved a change that can raise spend on a LIVE campaign |
| dryRun | boolean | non | true = Google validates it and nothing changes |
| loginCustomerId | string | non | manager (MCC) account id when acting through one; omit otherwise |
tiktok_smart_review
Review verdicts for TikTok Smart+ ads and creatives
TikTok's OWN REVIEW VERDICT for Upgraded Smart+ ads: pass smartPlusAdIds (up to 100, from list_tiktok_smart_campaigns) and each ad comes back approved for every targeted country, approved for only some (with the countries that passed), or rejected, with every rejection reason, TikTok's suggestion, the rejected text / video / image, any appeal status, AND the verdict of each creative inside it (keyed by adMaterialId). Or pass adMaterialIds to review chosen creatives (for one image in a carousel use the adMaterialId this tool returned). lang picks the language of the reasons (default en); includeViolationFrames adds the flagged video frames. An id TikTok says nothing about is named, never read as approved. Classic (non-Smart+) ads: tiktok_ads_review_info. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| smartPlusAdIds | array<string> | non | Smart+ ad ids |
| adMaterialIds | array<string> | non | creative ids inside an ad (from a previous review) |
| lang | string | non | language of the reasons, e.g. en, es, fr, de, ja (default en) |
| includeViolationFrames | boolean | non | add the video frames TikTok flagged |
| advertiserId | string | non | TikTok advertiser id; omit when the connection has one |
tiktok_smart_material_report
Per-creative performance inside TikTok Smart+ ads
HOW EACH CREATIVE PERFORMS INSIDE TIKTOK UPGRADED SMART+ ADS, from TikTok's Smart+ creative report: one row per video, image, carousel or Spark post (by main_material_id; a Spark post's row carries its TikTok post id as tiktokItemId), or per ad text, call to action or add-on (by). view overview (default): totals over startDate..endDate or lifetime:true, grouped by the ad (or the campaign / ad group you filter on), with each creative's status. view breakdown: the same over time (timeGrain hour, day, week, month or none; dates required). Filter with ONE of campaignIds, adGroupIds or smartPlusAdIds (up to 200), and optionally materialTypes. Default metrics spend, impressions, clicks, ctr, cpc, cpm, conversion, cost_per_conversion, or name TikTok's metric names. Money is in the ad account currency; dates are the account's time zone, at most 365 days. Zero rows means nothing delivered in that window, never 'no creatives'. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| view | enum: "overview" | "breakdown" | non | overview (default) or breakdown |
| by | enum: "main_material_id" | "ad_text_entity_id" | "call_to_action_entity_id" | "interactive_add_on_entity_id" | non | main_material_id (default), ad_text_entity_id, call_to_action_entity_id or interactive_add_on_entity_id |
| groupBy | enum: "advertiser_id" | "campaign_id" | "adgroup_id" | "smart_plus_ad_id" | non | overview: advertiser_id, campaign_id, adgroup_id or smart_plus_ad_id (default: the level you filter on, else the ad) |
| campaignIds | array<string> | non | Smart+ campaign ids |
| adGroupIds | array<string> | non | Smart+ ad group ids |
| smartPlusAdIds | array<string> | non | Smart+ ad ids |
| materialTypes | array<enum: "VIDEO_NON_SPARK_ADS" | "VIDEO_SPARK_ADS" | "CAROUSEL_NON_SPARK_ADS" | "CAROUSEL_SPARK_ADS" | "SINGLE_IMAGE_NON_SPARK_ADS" | "CATALOG_VIDEO" | "CATALOG_VIDEO_TEMPLATE" | "CATALOG_CAROUSEL" …> | non | only these creative types |
| materialIds | array<string> | non | only these creatives (needs exactly one materialTypes) |
| startDate | string | non | YYYY-MM-DD |
| endDate | string | non | YYYY-MM-DD |
| lifetime | boolean | non | overview: lifetime totals instead of dates |
| timeGrain | enum: "hour" | "day" | "week" | "month" | "none" | non | breakdown: hour, day (default), week, month or none |
| metrics | array<string> | non | TikTok metric names |
| sortField | string | non | default spend |
| sortType | enum: "DESC" | "ASC" | non | DESC (default) or ASC |
| page | number | non | page, from 1 |
| pageSize | number | non | rows per page, up to 100 (default 50) |
| advertiserId | string | non | TikTok advertiser id; omit when the connection has one |
linkedin_supply_forecast
Forecast LinkedIn ad delivery before you spend
LINKEDIN'S OWN DELIVERY FORECAST for a targeting spec and a budget, before any campaign exists: impressions, clicks, spend, reach, leads, video views and the cost and per-million rates LinkedIn returns, each with a low-high range, per day and for the whole window. Pass targeting (locations plus optional include / exclude facets: search_linkedin_ads_targeting resolves names to URNs, free), dailyBudget or totalBudget (account currency), objectiveType (LinkedIn refuses a forecast without one), and EITHER bidType + bidAmount (a manual bid) OR optimizationTarget (automated bidding). Optional campaignType (SPONSORED_UPDATES default, SPONSORED_INMAILS, DYNAMIC), startDate / endDate (default the next 30 days from tomorrow, UTC; must be in the future), audienceNetwork, audienceExpansion. A forecast is an estimate, not a promise; *_PER_MILLION_* values are rates per one million. Pair with linkedin_audience_count and linkedin_bid_pricing. Read-only, spends nothing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | LinkedIn ad account id; omit for the selected one |
| locations | array<string> | non | geo URNs or bare ids to target |
| include | object | non | more facets to target, e.g. {titles:[…], industries:[…], seniorities:[…]} |
| exclude | object | non | facets to exclude, same shape as include |
| excludeLocations | array<string> | non | geo URNs or bare ids to exclude |
| targetingCriteria | object | non | LinkedIn's raw targetingCriteria (include/exclude), instead of the friendly fields |
| dailyBudget | number | non | daily budget, account currency |
| totalBudget | number | non | total budget, account currency |
| bidType | enum: "CPM" | "CPC" | "CPV" | non | manual bid: CPM, CPC or CPV |
| bidAmount | number | non | manual bid amount, account currency |
| optimizationTarget | string | non | automated bidding target, e.g. MAX_IMPRESSION, MAX_CLICK, MAX_LEAD, TARGET_COST_PER_CLICK, CAP_COST_AND_MAXIMIZE_CLICKS |
| targetCost | number | non | for a target-cost optimizationTarget |
| costCap | number | non | for a cost-cap optimizationTarget |
| campaignType | enum: "SPONSORED_UPDATES" | "SPONSORED_INMAILS" | "DYNAMIC" | non | SPONSORED_UPDATES (default), SPONSORED_INMAILS or DYNAMIC |
| objectiveType | string | non | REQUIRED by LinkedIn: e.g. WEBSITE_VISIT, LEAD_GENERATION, BRAND_AWARENESS, VIDEO_VIEW, ENGAGEMENT, WEBSITE_CONVERSION |
| campaignId | string | non | an existing campaign, for a sharper forecast |
| startDate | string | non | YYYY-MM-DD, UTC, in the future |
| endDate | string | non | YYYY-MM-DD, UTC |
| audienceNetwork | boolean | non | include LinkedIn Audience Network |
| audienceExpansion | boolean | non | include Audience Expansion |
| currency | string | non | ISO code; default the account currency |
manage_google_ads_bid_strategy
Google Ads portfolio bid strategies
PORTFOLIO bid strategies: one shared Google Ads strategy and target driving several campaigns. action: list | create (name, strategy, its targets, optional campaignIds to attach) | update (targets or name; the type cannot change) | attach (campaignIds) | delete (only once no campaign uses it; confirm:true). Amounts are in the account currency. Changing targets of, or attaching, a LIVE campaign changes how it bids now: confirm:true after the user approves. Performance Max cannot use a portfolio. To move a campaign OFF a portfolio, call set_google_ads_bidding on it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "list" | "create" | "update" | "attach" | "delete" | non | default list |
| biddingStrategyId | string | non | the strategy (from action list) |
| name | string | non | strategy name, for create or update |
| strategy | enum: "MAXIMIZE_CLICKS" | "MAXIMIZE_CONVERSIONS" | "MAXIMIZE_CONVERSION_VALUE" | "TARGET_CPA" | "TARGET_ROAS" | "TARGET_IMPRESSION_SHARE" | non | create |
| targetCpaUsd | number | non | cost per conversion |
| targetRoas | number | non | 4 = 4x revenue per unit spent |
| maxCpcUsd | number | non | max CPC ceiling (required for TARGET_IMPRESSION_SHARE) |
| minCpcUsd | number | non | min CPC floor |
| impressionSharePercent | number | non | 1-100 |
| impressionShareLocation | enum: "ANYWHERE_ON_PAGE" | "TOP_OF_PAGE" | "ABSOLUTE_TOP_OF_PAGE" | non | where to aim impression share: ANYWHERE_ON_PAGE, TOP_OF_PAGE or ABSOLUTE_TOP_OF_PAGE |
| campaignIds | array<string> | non | campaign ids to attach to the strategy |
| allowNoConversionTracking | boolean | non | skip the conversion-tracking check |
| customerId | string | non | omit to use the selected default account |
| confirm | boolean | non | true only after the user approved a change to a LIVE campaign or a delete |
| dryRun | boolean | non | validate with Google, change nothing |
| loginCustomerId | string | non | manager id if operating through an MCC |
set_google_ads_conversion_goals
Google Ads conversion goals (what smart bidding optimises for)
Which conversion goals Google Ads smart bidding optimises toward, the usual cause of "it optimises for the wrong thing". With no goals it reads: the account goals, or with campaignId that campaign's goals and whether it follows the account. goals:[{category (PURCHASE, SIGNUP, SUBMIT_LEAD_FORM, PAGE_VIEW...), origin (default WEBSITE), biddable}] sets them account-wide, or for one campaign with campaignId (it then stops following account changes). useAccountGoals:true puts a campaign back on the account goals. A goal exists only where a conversion action of that category exists. Changing goals of LIVE campaigns needs confirm:true after the user approves. Read back from Google.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| campaignId | string | non | omit for the account goals |
| goals | array<object> | non | conversion goals to set, as a list of {category, origin, biddable}; omit to read the current goals |
| useAccountGoals | boolean | non | put the campaign back on the account goals |
| customerId | string | non | omit to use the selected default account |
| confirm | boolean | non | true only after the user approved a change to a LIVE campaign or a delete |
| dryRun | boolean | non | validate with Google, change nothing |
| loginCustomerId | string | non | manager id if operating through an MCC |
delete_google_ads_object
Remove a Google Ads campaign / ad group / ad / keyword / asset link / conversion action
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").
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | 10-digit account id (dashes ok) — omit to use the brand’s selected default account |
| level | enum: "campaign" | "adGroup" | "ad" | "keyword" | "campaignAsset" | "adGroupAsset" | "conversionAction" | non | what to remove — default campaign |
| campaignId | string | non | campaign id (level:"campaign") |
| adGroupId | string | non | ad group id (level:"adGroup"; REQUIRED as the parent for "ad" and "keyword") |
| adId | string | non | ad id (level:"ad" — pass adGroupId too) |
| keywordId | string | non | keyword criterion id (level:"keyword", with adGroupId) |
| conversionActionId | string | non | conversion action id (level:"conversionAction") |
| resourceName | string | non | full resource name — REQUIRED for campaignAsset / adGroupAsset, accepted for any level |
| confirm | boolean | non | REQUIRED true — REMOVED is permanent |
| confirmName | string | non | the object’s EXACT name, required when it has children / is live / has spent |
| confirmChildren | number | non | the exact number of children reported by the unconfirmed call, required when it has any |
| loginCustomerId | string | non | 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, then pass its youtubeVideoId here. For a PLAYABLE (App campaigns), pass playableUrl: an HTML5 zip with , an ad.orientation meta tag and no outside files except Google's own (exitapi.js, Google Fonts); add appAdId to put it on an App ad. Returns the asset resource name. Pass customerId (from list_google_ads_campaigns).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | 10-digit account id (dashes ok) — omit to use the brand’s selected default account |
| imageUrl | string | non | 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 | non | A YouTube video id for a VIDEO asset |
| playableUrl | string | non | PLAYABLE: link to an HTML5 zip (any public https URL or upload_file). Checked against Google's rules, then Google's own free validation, then created as a MEDIA_BUNDLE asset |
| appAdId | string | non | also add the playable to this App ad (App campaigns for installs only) |
| assetResourceName | string | non | with appAdId: add a playable already in the asset library instead of uploading one |
| name | string | non | asset name |
| loginCustomerId | string | non | manager id if operating through an MCC |
create_google_ads_conversion_action
Create a Google Ads conversion action
Create a CONVERSION ACTION — the thing that tells Google what counts as a result on this account. This is a PREREQUISITE, not a nicety: MAXIMIZE_CONVERSIONS, MAXIMIZE_CONVERSION_VALUE, TARGET_CPA, TARGET_ROAS and every Performance Max campaign are undeliverable without one, because Google has nothing to optimise toward. type WEBPAGE (a purchase / lead / signup on the site — the normal choice), UPLOAD_CLICKS or UPLOAD_CALLS; every other Google conversion type (Firebase, Google Analytics 4, Floodlight, store visits) is READ-ONLY and is created in those products, not here. Set category to what actually happened (PURCHASE, SUBMIT_LEAD_FORM, SIGNUP, BOOK_APPOINTMENT…) and defaultValueUsd when a conversion has a known worth — TARGET_ROAS has nothing to maximise without a value. Created ENABLED and counted in "conversions" by default, because a conversion action that is neither records nothing. It CANNOT SERVE AN AD and cannot spend a cent, so it needs no confirmation. A WEBPAGE action records NOTHING until its Google tag is installed on the site — say that when you report it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | 10-digit account id (dashes ok) — omit to use the brand’s selected default account |
| name | string | oui | what the user calls this result, e.g. "Purchase", "Demo request" |
| type | enum: "WEBPAGE" | "UPLOAD_CLICKS" | "UPLOAD_CALLS" | non | default WEBPAGE — a conversion that happens on the website |
| category | enum: "DEFAULT" | "PAGE_VIEW" | "PURCHASE" | "SIGNUP" | "DOWNLOAD" | "ADD_TO_CART" | "BEGIN_CHECKOUT" | "SUBSCRIBE_PAID" … | non | what kind of result this is, default DEFAULT. Google Ads v25’s IN_APP_AD_REVENUE is not offered: Google refuses it on every type this tool creates, and it comes only from a linked Firebase app (FIREBASE_ANDROID/IOS_APP_AD_IMPRESSION), which list_google_ads_conversion_actions reads like any other |
| status | enum: "ENABLED" | "PAUSED" | "REMOVED" | "HIDDEN" | non | default ENABLED — anything else records nothing |
| countingType | enum: "ONE_PER_CLICK" | "MANY_PER_CLICK" | non | ONE_PER_CLICK for leads, MANY_PER_CLICK for sales — defaults by category |
| defaultValueUsd | number | non | what one conversion is worth — required in practice for TARGET_ROAS |
| defaultCurrencyCode | string | non | 3-letter ISO code, e.g. USD |
| alwaysUseDefaultValue | boolean | non | ignore any value sent with the conversion and always use the default |
| clickThroughLookbackDays | number | non | 1–90 days |
| viewThroughLookbackDays | number | non | 1–30 days |
| includeInConversionsMetric | boolean | non | default true — false makes smart bidding IGNORE it |
| primaryForGoal | boolean | non | default true — whether this action is biddable for its category |
| dryRun | boolean | non | validate against Google and create NOTHING |
| loginCustomerId | string | non | manager id if operating through an MCC |
list_google_ads_conversion_actions
List Google Ads conversion actions
List the conversion actions on a Google Ads account and say plainly whether smart bidding can work there. Call this BEFORE proposing MAXIMIZE_CONVERSIONS / MAXIMIZE_CONVERSION_VALUE / TARGET_CPA / TARGET_ROAS or any Performance Max campaign: an account with no ENABLED conversion action that counts toward "conversions" cannot optimise on any of them, and the campaign would spend its budget without ever learning. Shows each action’s status, type, category, counting type, and whether it counts toward "conversions". Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | 10-digit account id (dashes ok) — omit to use the brand’s selected default account |
| includeRemoved | boolean | non | also list REMOVED conversion actions |
| loginCustomerId | string | non | manager id if operating through an MCC |
google_ads_customer_lists
Google Ads Customer Match lists
Google Ads CUSTOMER MATCH lists on the brand's own Google Ads account, through Google's Data Manager API. action list (every audience list with its Customer Match match rate and sizes), get (one list: status, match rate, search/display/YouTube/Gmail sizes), create (an EMPTY contact-information list: name, description, membershipDays; validateOnly checks it without creating), delete (confirm:true; cannot be undone). Fill a list with upload_google_ads_customer_list, then target or exclude it with set_google_ads_audiences. Sizes take 6 to 48 hours and a list needs 100+ matched people to serve. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | 10-digit account id (dashes ok) — omit to use the brand’s selected default account |
| action | enum: "list" | "get" | "create" | "delete" | non | list (default), get, create or delete |
| listId | string | non | get / delete: the list id from action list |
| name | string | non | create: unique on the account |
| description | string | non | |
| membershipDays | number | non | create: whole days a person stays on the list; omit for Google’s maximum |
| validateOnly | boolean | non | create: check it without creating |
| confirm | boolean | non | delete: required true, after the user agreed |
| loginCustomerId | string | non | manager id if operating through an MCC |
upload_google_ads_customer_list
Upload customers into a Google Ads Customer Match list
Add people to (action add, the default) or remove them from (action remove) a Google Ads Customer Match list, so campaigns can target or exclude them. Pass PLAIN emails, E.164 phones (+15551234567) or members [{email, phone, firstName, lastName, countryCode, postalCode}] (an address needs all four of the last); Hermoso normalizes them to Google's published rules (lowercase and trim; gmail.com dots and +tags removed) and SHA-256 hashes them, so only digests leave Hermoso. Already-hashed 64-hex values pass through. Up to 10,000 people per call. ADD NEEDS acceptTerms:true: show the user Google's Customer Match policy (https://support.google.com/adspolicy/answer/6299717) and get their agreement first. validateOnly:true checks the upload without changing the list. Returns a requestId for google_ads_upload_status. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | 10-digit account id (dashes ok) — omit to use the brand’s selected default account |
| listId | string | oui | the Customer Match list (google_ads_customer_lists) |
| action | enum: "add" | "remove" | non | add (default) or remove these people |
| emails | array<string> | non | PLAIN emails, normalized and SHA-256 hashed inside Hermoso |
| phones | array<string> | non | E.164 phones (+15551234567), hashed inside Hermoso |
| members | array<object> | non | people with several identifiers; an address needs firstName, lastName, countryCode and postalCode together |
| acceptTerms | boolean | non | REQUIRED true to add: the user agreed to Google’s Customer Match policy |
| validateOnly | boolean | non | check the upload without changing the list |
| loginCustomerId | string | non | manager id if operating through an MCC |
send_google_ads_conversions
Upload offline conversions to Google Ads
Upload offline or enhanced conversions (sales, qualified leads) into the brand's Google Ads account through Google's Data Manager API, which replaced the Google Ads API upload for new integrations. conversionActionId must be an UPLOAD_CLICKS conversion action ("Website (Import from clicks)"; list_google_ads_conversion_actions, or create_google_ads_conversion_action type UPLOAD_CLICKS). Each event needs a time (eventTime: unix seconds or ISO) and something Google can match: a gclid / gbraid / wbraid, or the customer's email or E.164 phone (hashed in Hermoso before sending); optional eventId (Google's transactionId: a repeat counts as an adjustment, not a second sale), value + currency, actionSource. Up to 2,000 per call. validateOnly:true checks without recording. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | 10-digit account id (dashes ok) — omit to use the brand’s selected default account |
| conversionActionId | string | oui | an UPLOAD_CLICKS conversion action id |
| events | array<object> | oui | 1 to 2000 conversions |
| validateOnly | boolean | non | check without recording |
| loginCustomerId | string | non | manager id if operating through an MCC |
google_ads_upload_status
Check a Google Ads upload
What Google did with a Customer Match or conversion upload: pass the requestId that upload_google_ads_customer_list or send_google_ads_conversions returned. Reports PROCESSING / SUCCESS / PARTIAL_SUCCESS / FAILED per destination, records processed, the match-rate range and any per-record error reasons. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| requestId | string | oui | from upload_google_ads_customer_list or send_google_ads_conversions |
add_google_ads_assets
Add sitelinks, callouts, call, promotion, price, lead-form and brand assets to Google Ads
Add ASSETS (extensions) to a Google Ads campaign, ad group or the whole account (level:"customer") — and ATTACH them, which is what makes them show. Pass assetType plus assets[]: SITELINK {linkText ≤25, finalUrl, description1/2}; CALLOUT {calloutText ≤25}; STRUCTURED_SNIPPET {header, values[] ≥3}; CALL {phoneNumber, countryCode}; PROMOTION {promotionTarget ≤20, percentOff OR moneyAmountOff, finalUrl, promotionCode?, occasion?, startDate?, endDate?}; PRICE {priceType, offerings[3–8] of {header ≤25, description ≤25, price, unit?, finalUrl}}; LEAD_FORM {businessName, headline, description, privacyPolicyUrl, callToActionType, callToActionDescription, finalUrl, fields?}; BUSINESS_NAME {businessName ≤25}; BUSINESS_LOGO {image: a square Hermoso image}. Or link existing ones with assetResourceNames[]. Edit, pause or detach later with manage_google_ads_assets. (Google does not let apps attach Search image extensions; images go through Performance Max, Demand Gen and display ads.) Assets and links go up in ONE atomic operation, so a rejected link never strands an orphan asset, and the links are READ BACK from Google before you are told they exist. Attaching a live asset to a LIVE (ENABLED) campaign changes what that ad shows on the very next auction — show the user what would appear, get an explicit yes, then pass confirm:true. On a paused campaign it never needs confirmation.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | 10-digit account id (dashes ok) — omit to use the brand’s selected default account |
| assetType | enum: "SITELINK" | "CALLOUT" | "STRUCTURED_SNIPPET" | "CALL" | "PROMOTION" | "PRICE" | "LEAD_FORM" | "BUSINESS_NAME" … | oui | what kind of asset to create and attach |
| level | enum: "campaign" | "adGroup" | "customer" | non | where to attach it — follows the id you pass; customer = every campaign on the account |
| campaignId | string | non | campaign id (level:"campaign") |
| adGroupId | string | non | ad group id (level:"adGroup") |
| assets | array<object> | non | the assets to CREATE and attach |
| assetResourceNames | array<string> | non | attach assets that ALREADY exist instead of creating new ones |
| status | enum: "ENABLED" | "PAUSED" | non | the LINK status — default ENABLED |
| confirm | boolean | non | set true ONLY after the user approved changing what a LIVE campaign shows |
| dryRun | boolean | non | validate against Google and create NOTHING |
| loginCustomerId | string | non | manager id if operating through an MCC |
google_ads_recommendations
Google Ads recommendations + optimization score
Google Ads’ own advice for the account: the optimization score (account and per campaign), every open recommendation with what applying it would change (budget $X -> $Y, a keyword, a bid target, a Google-written ad) and Google’s weekly impact estimate, each tagged spend (changes what the account buys) or serves (changes what an ad shows), plus which types Google is auto-applying by itself. An empty list means Google has no advice yet, never that the account is optimal. Ids go stale fast, so act on a fresh read. Read-only, 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | 10-digit account id, omit for the brand’s default account |
| campaignId | string | non | only recommendations for this campaign |
| types | array<string> | non | recommendation types, e.g. CAMPAIGN_BUDGET, KEYWORD; an unknown one is refused by name |
| includeDismissed | boolean | non | also show dismissed ones |
| loginCustomerId | string | non | manager id if operating through an MCC |
manage_google_ads_recommendations
Apply / dismiss Google Ads recommendations, or set auto-apply
Act on Google Ads recommendations by id. action:"apply" makes the change live immediately with no undo. Any spend-type recommendation (budget, bidding, keywords, network or audience expansion, new campaigns) or one touching a LIVE campaign is refused until the user says yes: call once without confirm, show the returned list, then call again with confirm:true and the confirmCount it named. The count is re-checked against a fresh read, and if any id is no longer on offer NOTHING is applied. action:"dismiss" only takes advice off the list and needs no confirm. action:"auto_apply" with autoApply:{TYPE:true|false} lets Google apply that type by itself; turning one ON needs confirm:true, OFF never does. dryRun validates and changes nothing. 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | 10-digit account id, omit for the brand’s default account |
| action | enum: "apply" | "dismiss" | "auto_apply" | oui | apply (live now; spend types need confirm), dismiss (remove from list), or auto_apply (set auto-apply per type) |
| recommendationIds | array<string> | non | apply/dismiss: ids from google_ads_recommendations, max 100; there is no "apply everything" |
| autoApply | object | non | auto_apply: {RECOMMENDATION_TYPE: true|false} |
| confirm | boolean | non | the user saw the list and said yes |
| confirmCount | number | non | apply: echo the count the unconfirmed call reported |
| dryRun | boolean | non | validate and change nothing |
| loginCustomerId | string | non | manager id if operating through an MCC |
preview_google_ads_ad
Shareable Google Ads preview link
A shareable Google preview link (viewable with no Google Ads login, good for client approval) for a Performance Max asset group, or for a YouTube video ad. Google cannot preview Search or Display ads (RSA/RDA), and that is refused by name for free. Links expire and cannot be embedded in an iframe. Read-only, 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | 10-digit account id, omit for the brand’s default account |
| assetGroupIds | array<string> | non | Performance Max asset group ids |
| adId | string | non | a YouTube video ad id |
| adGroupId | string | non | its ad group id |
| loginCustomerId | string | non | manager id if operating through an MCC |
google_ads_policy_issues
Why Google rejected or limited an ad
WHY Google rejected or limited something: every DISAPPROVED or APPROVED_LIMITED ad, asset (headlines, images, sitelinks, Performance Max assets) and keyword on the account or one campaign, with Google’s policy topic, its effect, the evidence (offending text, a broken landing page and its HTTP code, restricted countries) and appeal state. includeApproved lists everything. Read-only, 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | 10-digit account id, omit for the brand’s default account |
| campaignId | string | non | only this campaign |
| includeApproved | boolean | non | list approved and pending items too |
| loginCustomerId | string | non | manager id if operating through an MCC |
manage_google_ads_assets
List, edit, pause or detach Google Ads assets
The assets on a Google Ads campaign, ad group or the whole account (level:"customer"): action "list" (every attached asset with its review status and any policy problem), "update" (edit a sitelink/callout/snippet/call/promotion/price/lead-form asset — pass assetId, assetType and asset{} in add_google_ads_assets' shape), "pause", "enable" or "unlink" (pass assetId + fieldType from list). Google never deletes an asset; unlink stops it showing. Editing or re-enabling on a LIVE campaign needs confirm:true after the user agrees.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | 10-digit account id; omit to use the brand's selected default account |
| action | enum: "list" | "update" | "pause" | "enable" | "unlink" | non | default list |
| level | enum: "campaign" | "adGroup" | "customer" | non | campaign, adGroup or customer; follows the id you pass |
| campaignId | string | non | campaign id, when level is campaign |
| adGroupId | string | non | ad group id, when level is adGroup |
| assetId | string | non | asset id, from the list action |
| fieldType | string | non | the link field type from list, e.g. CALL, SITELINK |
| assetType | string | non | update — the asset kind |
| asset | object | non | update — the new content |
| confirm | boolean | non | true only after the user agreed to change a LIVE campaign's assets |
| dryRun | boolean | non | true = validate with Google and change nothing |
| loginCustomerId | string | non | manager (MCC) account id when acting through a manager account; omit otherwise |
set_google_ads_tracking
Set UTMs / tracking on a Google Ads campaign, ad group or ad
Set the FINAL URL SUFFIX (the UTMs added to every click), tracking template and custom parameters on a Google Ads campaign, ad group or ad; a lower level overrides a higher one. "" clears a field; utmDefault:true applies our standard UTMs (utm_source=google, utm_medium, utm_campaign= , utm_id={campaignid}, utm_content={creative}). New campaigns already get those unless you say otherwise. Read back from Google.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | 10-digit account id; omit to use the brand's selected default account |
| campaignId | string | non | campaign to set tracking on; use with level campaign |
| adGroupId | string | non | ad group to set tracking on; use with level adGroup |
| adId | string | non | ad to set tracking on; use with level ad |
| level | enum: "campaign" | "adGroup" | "ad" | non | follows the id you pass |
| finalUrlSuffix | string | non | UTM string appended to every click, e.g. utm_source=google&utm_medium=cpc; empty string clears it |
| trackingUrlTemplate | string | non | click-tracking redirect template, e.g. {lpurl}?src=x; empty string clears it |
| urlCustomParameters | object | non | up to 8 custom URL parameters as a key/value object, used in URLs as {_key} |
| utmDefault | boolean | non | true = apply the standard UTMs (utm_source, utm_medium, utm_campaign, utm_id, utm_content) |
| confirm | boolean | non | needed to change the tracking redirect on a LIVE campaign |
| dryRun | boolean | non | true = validate with Google and change nothing |
| loginCustomerId | string | non | manager (MCC) account id when acting through a manager account; omit otherwise |
manage_google_ads_audience
Find or build Google Ads audiences
Audiences for Google Ads. action "search" finds affinity + in-market interests, remarketing lists, custom segments and saved audiences (query by name). "create_remarketing_list": people who visited pages matching urlRules [{operator CONTAINS|EQUALS|STARTS_WITH|ENDS_WITH, value}] in the last membershipDays (needs the Google tag on the site). "create_custom_segment": people searching keywords[] or into sites like urls[] (type AUTO or SEARCH). "create_audience": a reusable audience (userLists, interests, customSegments ids + ages like "25-34", genders) — what Performance Max signals and Demand Gen targeting take. "remove" (userList or customSegment, confirm:true). Attach with set_google_ads_audiences.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | Google Ads account id, 10 digits (dashes ok); omit for the brand's selected default account |
| action | enum: "search" | "create_remarketing_list" | "create_custom_segment" | "create_audience" | "remove" | non | default search |
| query | string | non | search text matched against audience and interest names (action search) |
| name | string | non | audience or list name, unique on the account (create actions) |
| description | string | non | optional description (create actions) |
| urlRules | array<object> | non | visitor rules for create_remarketing_list: [{operator, value}]; visitors to pages matching any rule |
| excludeUrlRules | array<object> | non | same shape as urlRules; visitors to matching pages are left out of the list |
| membershipDays | number | non | 1–540, default 30 |
| type | enum: "AUTO" | "SEARCH" | non | custom segment type: AUTO (Google decides, default) or SEARCH (people who searched the keywords) |
| keywords | array<string> | non | search phrases for a custom segment, 10 words or fewer each (create_custom_segment) |
| urls | array<string> | non | full http(s) URLs of sites like yours for a custom segment (create_custom_segment) |
| apps | array<string> | non | app identifiers for a custom segment (create_custom_segment) |
| userLists | array<string> | non | user list ids to include in an audience (create_audience), from action search |
| interests | array<string> | non | interest ids (affinity or in-market) to include in an audience, from action search |
| customSegments | array<string> | non | custom segment ids to include in an audience, from action search |
| ages | array<string> | non | age ranges to include: 18-24, 25-34, 35-44, 45-54, 55-64, 65+ or unknown |
| genders | array<enum: "male" | "female" | "unknown"> | non | genders to include: male, female or unknown |
| kind | enum: "userList" | "customSegment" | non | remove |
| id | string | non | remove |
| confirm | boolean | non | true to actually remove the list or segment (action remove only) |
| dryRun | boolean | non | true = validate with Google and create or remove nothing |
| loginCustomerId | string | non | manager (MCC) account id, when the account is managed through one |
set_google_ads_audiences
Target or exclude audiences on Google Ads
Who a Google Ads campaign reaches. adGroupId (Search/Display): userLists, interests (affinity/in-market ids), customSegments (Display only), mode "observation" (report, do not narrow — default on Search) or "targeting" (narrow to them); Demand Gen ad groups take audiences[] ids. assetGroupId (Performance Max): audiences[] as signals and searchThemes[]. campaignId: exclusions only. exclude{userLists, interests, customSegments}, excludeAges ["18-24"…"65+","unknown"], excludeGenders, excludeIncomes (household income bands; with campaignId this is how a Performance Max campaign excludes them). remove[] takes criterion resource names from a call with no changes (which lists what is set). Narrowing a LIVE ad group needs confirm:true.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | Google Ads account id, 10 digits (dashes ok); omit for the brand's default account |
| adGroupId | string | non | ad group to target (Search, Display or Demand Gen); one of adGroupId, assetGroupId, campaignId |
| assetGroupId | string | non | Performance Max asset group id; audiences become signals there |
| campaignId | string | non | campaign id; exclusions only |
| userLists | array<string> | non | user list ids to target on the ad group |
| interests | array<string> | non | interest ids (affinity or in-market) to target on the ad group |
| customSegments | array<string> | non | custom segment ids to target; Display ad groups only, Search refuses them |
| audiences | array<string> | non | audience ids from manage_google_ads_audience (create_audience) for Demand Gen or Performance Max |
| searchThemes | array<string> | non | search theme phrases for a Performance Max asset group, up to 50, 10 words or fewer each |
| mode | enum: "observation" | "targeting" | non | observation (report only, default on Search) or targeting (narrow delivery to these audiences) |
| exclude | object | non | audiences to exclude from the ad group or campaign: {userLists, interests, customSegments} ids |
| excludeAges | array<string> | non | age ranges to exclude: 18-24, 25-34, 35-44, 45-54, 55-64, 65+ or unknown |
| excludeGenders | array<string> | non | genders to exclude: male, female or unknown |
| excludeIncomes | array<string> | non | household income bands to exclude: top10 (the highest-income 10% of households), 11-20, 21-30, 31-40, 41-50, lower50 (the lower half) or unknown |
| remove | array<string> | non | criterion resource names to remove; a call with no other changes lists the current ones |
| confirm | boolean | non | true to approve a change that alters who a live ad group reaches |
| dryRun | boolean | non | true = validate with Google and change nothing |
| loginCustomerId | string | non | manager (MCC) account id, when the account is managed through one |
upload_google_ads_video
Upload a video straight into Google Ads
Upload a Hermoso video (render id, Library id, attachment://N or Hermoso link) straight into Google Ads — no YouTube channel needed: it goes UNLISTED to the Google-managed channel of the ad account (or to your own brand channel with channelId, where PUBLIC is allowed). Waits for YouTube to process it, then returns the video asset ready for create_google_ads_demand_gen_campaign or Performance Max. AI-generated renders are disclosed as such. action "status" finishes a slow one (uploadId), "list" shows uploads, "remove" deletes one (confirm:true). Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | Google Ads account id, 10 digits (dashes ok); omit for the brand's default account |
| action | enum: "upload" | "status" | "list" | "remove" | non | default upload |
| video | string | non | Hermoso render id, Library id, attachment://N or Hermoso video link |
| title | string | non | required, ≤100 chars |
| description | string | non | YouTube description for the uploaded video (optional) |
| channelId | string | non | your own YouTube channel (UC…), else Google's |
| privacy | enum: "UNLISTED" | "PUBLIC" | non | UNLISTED (default, the only option on Google's channel) or PUBLIC (own channel only, with channelId) |
| aiGenerated | boolean | non | Google Ads generative-content disclosure. OMIT IT and Hermoso decides from provenance: a Hermoso render is declared, a video that came through upload_file (the user’s own footage) is NOT. true/false overrides |
| uploadId | string | non | upload id from the upload reply or action list; required for status and remove |
| waitSeconds | number | non | seconds to wait for YouTube to finish processing, max 240; default 90 on upload, 0 on status |
| confirm | boolean | non | true to remove the upload (action remove); every ad using the video stops showing it |
| dryRun | boolean | non | true = build and return the request without uploading any bytes |
| loginCustomerId | string | non | manager (MCC) account id, when the account is managed through one |
create_google_ads_demand_gen_campaign
Create a Google Demand Gen video campaign (YouTube Shorts, in-feed, in-stream)
Build a Google DEMAND GEN campaign — video ads on YouTube Shorts, in-feed and in-stream (plus Discover, Gmail, Display, Maps if you pick them) — as ONE atomic, PAUSED build: budget, campaign, ad group with channel controls, locations/languages, optional audiences, and a video ad. ad needs videoAssets (from upload_google_ads_video) or youtubeVideoIds, a square logo (logoImage or logoAssets), finalUrl, businessName ≤25, 1–5 headlines, longHeadlines, descriptions. Google sets a minimum daily budget (it names it if you go under). Read back; turn it on with set_google_ads_status(confirm:true) only after the user approves.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | Google Ads account id, 10 digits (dashes ok); omit for the brand's default account |
| name | string | oui | campaign name |
| dailyBudgetUsd | number | non | daily budget in the ACCOUNT’s currency (historical name, not necessarily USD), 1 to 100000; required unless budgetResourceName is given |
| budgetResourceName | string | non | existing campaign budget resource name to reuse instead of creating a new budget |
| bidding | object | non | bidding object {strategy, targetCpaUsd, targetRoas, maxCpcUsd}; strategy defaults to MAXIMIZE_CONVERSIONS |
| channels | array<enum: "youtubeShorts" | "youtubeInFeed" | "youtubeInStream" | "discover" | "gmail" | "display" | "maps"> | non | omit for all of Google's channels |
| locations | array<string> | non | place names to target, resolved by Google, e.g. United States |
| excludedLocations | array<string> | non | place names to exclude, resolved by Google |
| languages | array<string> | non | ISO language codes to target, e.g. ["en"] |
| countryCode | string | non | 2-letter country code that disambiguates a place name, e.g. CA for Toronto |
| audiences | array<string> | non | audience ids from manage_google_ads_audience |
| ad | object | oui | video ad: {videoAssets or youtubeVideoIds, logo, finalUrl, businessName, headlines, longHeadlines, descriptions, assetAutomation} |
| finalUrlSuffix | string | non | UTM suffix appended to clicks; omit for Hermoso's default, empty string for none |
| trackingUrlTemplate | string | non | click-tracking redirect template, e.g. {lpurl}?src=x; only if you use a tracker |
| urlCustomParameters | object | non | up to 8 custom URL parameters, used in URLs as {_key} |
| startDate | string | non | campaign start date, YYYY-MM-DD |
| endDate | string | non | campaign end date, YYYY-MM-DD |
| containsEuPoliticalAds | boolean | non | true only for genuine EU political advertising |
| dryRun | boolean | non | true = validate with Google and create nothing |
| loginCustomerId | string | non | manager (MCC) account id, when the account is managed through one |
set_google_ads_asset_automation
Read or change what Google may make from the creative (text on videos, video cuts, written text)
What Google Ads is allowed to generate from the user’s own creative: text laid over videos (OVERLAY_TEXT_ON_VIDEOS), vertical and shorter video cuts, generated videos and animated images, image crops and enhancements, written headlines and landing-page text. Pass campaignId for campaign-level automation (Performance Max, Search), or adGroupId + adId for one ad: a Demand Gen video ad keeps OVERLAY_TEXT_ON_VIDEOS, GENERATE_VERTICAL_YOUTUBE_VIDEOS and GENERATE_SHORTER_YOUTUBE_VIDEOS there, and Google turns them ON by default. With no settings it READS what is set. settings is {TYPE: true|false}; a type you do not name keeps its current value, and one that was never set follows Google’s default. Turning a type OFF needs nothing more; turning one ON for something live needs confirm:true, because Google then serves versions it generated. The reply is what Google stored, read back. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | Google Ads account id, 10 digits (dashes ok); omit for the brand's default account |
| campaignId | string | non | campaign id, for campaign-level automation; or pass adGroupId + adId for one ad |
| adGroupId | string | non | ad group id of the ad (with adId) |
| adId | string | non | ad id (google_ads_report FROM ad_group_ad lists ad_group.id and ad_group_ad.ad.id) |
| settings | object | non | {TYPE: true to opt in, false to opt out}. Types: TEXT_ASSET_AUTOMATION, GENERATE_VERTICAL_YOUTUBE_VIDEOS, GENERATE_SHORTER_YOUTUBE_VIDEOS, GENERATE_LANDING_PAGE_PREVIEW, GENERATE_LANDING_PAGE_TEXT, GENERATE_ENHANCED_YOUTUBE_VIDEOS, GENERATE_IMAGE_ENHANCEMENT, GENERATE_IMAGE_EXTRACTION, GENERATE_DES… |
| videoCrawlSources | array<object> | non | only with settings.AUTOMATED_VIDEO_CRAWL: where Google may find videos |
| confirm | boolean | non | true to turn an automation ON for a campaign or ad that is live |
| dryRun | boolean | non | true = validate with Google and change nothing |
| loginCustomerId | string | non | manager (MCC) account id, when the account is managed through one |
manage_google_ads_seasonality
Google Ads seasonality adjustments (tell Smart Bidding about a sale or launch)
Seasonality adjustments tell Google’s Smart Bidding that conversion rate will move for a short event (a sale, a launch, a holiday weekend), so it bids for the event instead of learning it late. action "list" shows them; "create" needs name, start and end ("YYYY-MM-DD HH:mm:ss", the end is exclusive, at most 14 days apart, and Google expects a future event), conversionRateModifier (0.1 to 10: 1.5 means 50% more conversions per click than usual, 0.8 means 20% fewer) and what it covers: campaignIds (up to 2,000 campaigns) OR channels (SEARCH, DISPLAY, SHOPPING, DEMAND_GEN), never both; optional devices. "update" changes the named fields of one (id); "remove" deletes one (id). It moves real bids on every campaign it covers, so create, update and remove need confirm:true after the user agrees; dryRun:true has Google validate it and changes nothing. Google’s API cannot create an account-wide adjustment and does not allow them on manager accounts. The reply is read back from Google. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | Google Ads account id, 10 digits (dashes ok); omit for the brand's default account |
| action | enum: "list" | "create" | "update" | "remove" | non | default list |
| id | string | non | seasonality adjustment id (update, remove), from action list |
| name | string | non | name, up to 255 characters (create) |
| description | string | non | optional note, up to 2,048 characters |
| start | string | non | when the event begins, "YYYY-MM-DD HH:mm:ss" (inclusive) |
| end | string | non | when it stops, "YYYY-MM-DD HH:mm:ss" (exclusive); at most 14 days after start |
| conversionRateModifier | number | non | expected conversion rate change, 0.1 to 10 (1.5 = +50%, 0.8 = -20%) |
| campaignIds | array<string> | non | campaign ids it covers (up to 2,000); not together with channels |
| channels | array<enum: "SEARCH" | "DISPLAY" | "SHOPPING" | "DEMAND_GEN"> | non | every campaign of these channel types; not together with campaignIds |
| devices | array<enum: "MOBILE" | "TABLET" | "DESKTOP" | "CONNECTED_TV" | "OTHER"> | non | limit it to these devices; omit for all |
| includeRemoved | boolean | non | action list: also show removed ones |
| confirm | boolean | non | true after the user agreed to the dates, modifier and coverage (create, update, remove) |
| dryRun | boolean | non | true = validate with Google and change nothing |
| loginCustomerId | string | non | manager (MCC) account id, when the account is managed through one |
list_google_ads_lead_submissions
Read Google Ads lead form submissions
The people who filled in a Google Ads lead form: each submission’s time, the answers (name, email, phone and any custom questions), the Google click id, and the campaign, ad group and lead form it came from, newest first. Filter by campaignId, adGroupId, assetId (the lead form asset) and since / until (YYYY-MM-DD); limit up to 1,000 (default 100). An empty answer means none that Google still holds for this account and filter, not proof that no form was ever submitted. These are the advertiser’s own leads and contain personal details: show them to the user who asked and do not copy them anywhere else unless asked. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | Google Ads account id, 10 digits (dashes ok); omit for the brand's default account |
| campaignId | string | non | only submissions from this campaign |
| adGroupId | string | non | only submissions from this ad group |
| assetId | string | non | only submissions to this lead form asset |
| since | string | non | YYYY-MM-DD, submissions on or after this day |
| until | string | non | YYYY-MM-DD, submissions on or before this day |
| limit | number | non | how many, 1 to 1,000 (default 100) |
| loginCustomerId | string | non | manager (MCC) account id, when the account is managed through one |
manage_google_ads_manager_links
Google Ads manager (MCC) links
Agency setup on Google Ads: the manager (MCC) and client account tree, and the links between them. action hierarchy (default) shows each shared account's clients and managers with link status and managerLinkId, pending invitations included. invite: managerCustomerId sends clientCustomerId an invitation (PENDING until the client accepts). accept / decline: answer an invitation as the client. cancel: withdraw a pending invitation, as the manager. unlink: end an active link, as the manager. accept and unlink change who controls the account, so they need confirm:true after the user agrees; validateOnly:true has Google check any write first. Read back from Google. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "hierarchy" | "invite" | "accept" | "decline" | "cancel" | "unlink" | non | hierarchy (default), invite, accept, decline, cancel or unlink |
| customerId | string | non | hierarchy: only the tree of this shared account; omit for every shared account |
| managerCustomerId | string | non | the manager (MCC) account id |
| clientCustomerId | string | non | the client account id |
| managerLinkId | string | non | from action hierarchy (accept, decline, cancel, unlink) |
| validateOnly | boolean | non | true = Google checks it, nothing changes |
| confirm | boolean | non | true after the user agreed (accept, unlink) |
| loginCustomerId | string | non | manager (MCC) account id, when the account is managed through one |
manage_google_ads_user_access
Google Ads account users and invitations
Who can use a Google Ads account. action list (default): users with their role and user id, and email invitations with their status. invite: emailAddress + accessRole (ADMIN, STANDARD, READ_ONLY, EMAIL_ONLY); Google emails them; ADMIN needs confirm:true. revoke: withdraw a pending invitation (invitationId). set_role: change a user's accessRole (userId). remove: take a user's access away (userId). set_role and remove need confirm:true after the user agrees. pending_approvals: the invitations and access changes Google is HOLDING until a second admin approves them (accounts with multi-party approval), status PENDING by default; withdraw_approval: cancel one (multiPartyAuthReviewId), so the address can be invited again. Read back from Google. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "list" | "invite" | "revoke" | "set_role" | "remove" | "pending_approvals" | "withdraw_approval" | non | list (default), invite, revoke, set_role, remove, pending_approvals or withdraw_approval |
| multiPartyAuthReviewId | string | non | withdraw_approval: from pending_approvals or a held invite |
| status | enum: "PENDING" | "APPROVED" | "REJECTED" | "REVOKED" | "EXPIRED" | non | pending_approvals: PENDING (default), APPROVED, REJECTED, REVOKED or EXPIRED |
| customerId | string | non | Google Ads account id, 10 digits (dashes ok); omit for the brand's default account |
| emailAddress | string | non | who to invite |
| accessRole | enum: "ADMIN" | "STANDARD" | "READ_ONLY" | "EMAIL_ONLY" | non | ADMIN, STANDARD, READ_ONLY or EMAIL_ONLY |
| invitationId | string | non | from action list (revoke) |
| userId | string | non | from action list (set_role, remove) |
| confirm | boolean | non | true after the user agreed |
| loginCustomerId | string | non | manager (MCC) account id, when the account is managed through one |
google_ads_billing
Google Ads billing (monthly invoicing)
Billing on a Google Ads account. action get (default): the manager's monthly-invoicing payments accounts the account can be billed to, its billing setups and its account budgets, read live. action setup: bill the account to one of those payments accounts (paymentsAccountId) and propose an account budget (spendingLimit in the account currency, or none for no limit; budgetName, purchaseOrderNumber). Google's API cannot add a card: an account without monthly invoicing is billed in Google Ads itself. setup lets the account spend, so it needs confirm:true after the user agrees. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "get" | "setup" | non | get (default) or setup |
| customerId | string | non | Google Ads account id, 10 digits (dashes ok); omit for the brand's default account |
| paymentsAccountId | string | non | 16-digit payments account id from action get |
| spendingLimit | number | non | account budget limit in the account currency; omit for no limit |
| budgetName | string | non | name of the account budget |
| purchaseOrderNumber | string | non | purchase order number on the invoice |
| validateOnly | boolean | non | true = check the budget proposal only |
| confirm | boolean | non | true after the user agreed (setup) |
| loginCustomerId | string | non | manager (MCC) account id, when the account is managed through one |
create_google_ads_account
Create a Google Ads client account under a manager
Create a new Google Ads client account under a manager (MCC) account shared with this brand: name, currency (ISO, permanent) and timeZone (IANA, permanent); optionally emailAddress + accessRole to invite its owner. Google accounts cannot be deleted, only cancelled, and Google decides which managers may create accounts. Needs confirm:true after the user agrees; dryRun:true has Google validate it. The new account has no billing (google_ads_billing). To build on it here, add it with set_connector_accounts. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| managerCustomerId | string | oui | the manager (MCC) account it goes under |
| name | string | oui | account name |
| currency | string | oui | ISO 4217, e.g. USD; permanent |
| timeZone | string | oui | IANA time zone, e.g. America/New_York; permanent |
| emailAddress | string | non | invite this person onto it |
| accessRole | enum: "ADMIN" | "STANDARD" | "READ_ONLY" | "EMAIL_ONLY" | non | their role, default ADMIN |
| dryRun | boolean | non | true = Google validates it, nothing is created |
| confirm | boolean | non | true after the user agreed |
| loginCustomerId | string | non | manager (MCC) account id, when the account is managed through one |
list_google_ads_local_services_leads
Read Google Local Services Ads leads
The calls, messages and bookings a Google Local Services campaign produced, newest first: type, status, whether Google charged for it, the consumer's name and phone, category. Filter by fromDate / toDate (YYYY-MM-DD), leadType, leadStatus, chargedOnly. Pass leadId for that lead's conversation (calls with duration and recording link, messages with text). Read-only, free. These are the advertiser's own leads and contain personal details: show them to the user who asked.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | Google Ads account id, 10 digits (dashes ok); omit for the brand's default account |
| fromDate | string | non | YYYY-MM-DD |
| toDate | string | non | YYYY-MM-DD |
| leadType | enum: "PHONE_CALL" | "MESSAGE" | "BOOKING" | "COUPON" | non | PHONE_CALL, MESSAGE, BOOKING or COUPON |
| leadStatus | string | non | NEW, ACTIVE, BOOKED, DECLINED, EXPIRED, DISABLED, CONSUMER_DECLINED or WIPED_OUT |
| chargedOnly | boolean | non | only leads Google charged for |
| leadId | string | non | one lead's conversation |
| limit | number | non | 1 to 1,000, default 100 |
| loginCustomerId | string | non | manager (MCC) account id, when the account is managed through one |
manage_meta_business
Meta business portfolio people and asset access
Agency setup on Meta Business Manager, for the person who connected Meta. action list_businesses (default): the business portfolios on this login. list_people: a business's people, system users and pending invitations, with the user ids the assign actions take. invite (email, role) / cancel_invite (invitationId) / remove_person (userId). person_assets: the ad accounts and Pages one person can reach, with tasks. list_ad_account_people, assign_ad_account, unassign_ad_account (adAccountId, userId, tasks MANAGE / ADVERTISE / ANALYZE / DRAFT). list_page_people, assign_page, unassign_page (pageId, userId, tasks MANAGE / CREATE_CONTENT / MODERATE / MESSAGING / ADVERTISE / ANALYZE). An assignment replaces the person's tasks on that asset. Removing access, narrowing tasks and inviting an ADMIN need confirm:true after the user agrees. Read back from Meta. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "list_businesses" | "list_people" | "invite" | "cancel_invite" | "remove_person" | "person_assets" | "list_ad_account_people" | "assign_ad_account" … | non | what to do |
| businessId | string | non | business portfolio id from list_businesses |
| userId | string | non | business-scoped user id from list_people |
| adAccountId | string | non | ad account the business owns or was shared |
| pageId | string | non | Page the business owns or was shared |
| tasks | array<string> | non | tasks to give on that asset |
| string | non | who to invite | |
| role | enum: "ADMIN" | "EMPLOYEE" | "FINANCE_EDITOR" | "FINANCE_ANALYST" | "DEVELOPER" | "ADS_RIGHTS_REVIEWER" | non | business role, default EMPLOYEE |
| invitationId | string | non | pending invitation id from list_people |
| confirm | boolean | non | true after the user agreed |
create_meta_ad_account
Create a Meta ad account in a business portfolio
Create a new Meta ad account inside one of this login's business portfolios: businessId, name, currency (ISO, permanent), timezoneId (Meta's numeric id, 1 = America/Los_Angeles; permanent). Optional endAdvertiser / mediaAgency / partner (a Page or app id, default NONE), fundingId, invoice, invoiceGroupId, invoicingEmails, io, poNumber. Meta ad accounts cannot be deleted, only closed, and Meta caps how many a business may create. Needs confirm:true after the user agrees. The account starts with no payment method; to build on it here, add it with set_connector_accounts. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| businessId | string | oui | business portfolio id |
| name | string | oui | ad account name |
| currency | string | oui | ISO 4217, e.g. USD; permanent |
| timezoneId | number | oui | Meta's numeric time zone id; permanent |
| endAdvertiser | string | non | Page or app id the ads are for, or NONE |
| mediaAgency | string | non | agency Page or app id, or NONE |
| partner | string | non | partner Page or app id, or NONE |
| fundingId | string | non | payment method id |
| invoice | boolean | non | attach to the business credit line |
| invoiceGroupId | string | non | invoice group id |
| invoicingEmails | array<string> | non | who receives invoices |
| io | boolean | non | direct-sales insertion order |
| poNumber | string | non | purchase order number |
| confirm | boolean | non | true after the user agreed |
manage_meta_reach_frequency
Meta reach and frequency predictions and reservations
Reach and frequency buying on Meta. action list (default) / get (predictionId). predict: a QUOTE, nothing is bought: startDate, endDate (at most 8 weeks ahead, ending at midnight or after 06:00 account time) and exactly one of budgetAmount (Meta predicts reach) or reach (Meta predicts the budget); optional frequencyCap, targeting (one country), pageId, objective. reserve locks the quoted price and inventory and returns a NEW prediction id for the campaign; cancel releases a reservation. reserve and cancel need confirm:true after the user agrees. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "list" | "predict" | "get" | "reserve" | "cancel" | non | list (default), predict, get, reserve or cancel |
| adAccountId | string | oui | Meta ad account id (act_123 or the bare number); it must be one this brand has shared |
| predictionId | string | non | from predict or list |
| budgetAmount | number | non | lifetime budget in the account currency |
| reach | number | non | people to reach |
| startDate | string | non | ISO date-time |
| endDate | string | non | ISO date-time |
| frequencyCap | number | non | impressions per person |
| intervalFrequencyCapResetPeriod | number | non | hours (multiple of 24) the cap resets over |
| targeting | object | non | Meta targeting spec, one country |
| pageId | string | non | the Page promoted |
| objective | string | non | REACH (default), BRAND_AWARENESS, VIDEO_VIEWS, LINK_CLICKS, POST_ENGAGEMENT |
| confirm | boolean | non | true after the user agreed (reserve, cancel) |
manage_meta_budget_schedules
Meta scheduled budget increases
Scheduled budget increases (high-demand periods) on a Meta campaign or ad set, for a sale or launch. action list (default) / create / delete, with exactly one of campaignId or adSetId (the one holding the budget). create: budgetValueType ABSOLUTE (budgetValue added to the daily budget, in the account currency) or MULTIPLIER (budgetValue = percent increase), timeStart and timeEnd on 15-minute boundaries, optional recurrenceType. A campaign cannot mix ABSOLUTE and MULTIPLIER. To change one, delete and create. create and delete need confirm:true after the user agrees. Read back. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "list" | "create" | "delete" | non | list (default), create or delete |
| adAccountId | string | oui | Meta ad account id (act_123 or the bare number); it must be one this brand has shared |
| campaignId | string | non | campaign with an Advantage+ campaign budget |
| adSetId | string | non | ad set holding the budget |
| scheduleId | string | non | from list (delete) |
| budgetValueType | enum: "ABSOLUTE" | "MULTIPLIER" | non | ABSOLUTE or MULTIPLIER |
| budgetValue | number | non | amount or percent |
| timeStart | string | non | ISO date-time, 15-minute boundary |
| timeEnd | string | non | ISO date-time, 15-minute boundary |
| recurrenceType | string | non | ONE_TIME (default), WEEKLY or MONTHLY |
| confirm | boolean | non | true after the user agreed |
manage_meta_value_rules
Meta value rule sets (bid by audience segment)
Value rules raise or lower Meta bids for audience segments worth more or less to the advertiser. action list (default) / get / create / replace / delete. rules: [{name, adjustSign INCREASE (1-1000%) or DECREASE (1-90%), adjustValue, criteria: [{criteriaType AGE, GENDER, OS_TYPE, DEVICE_PLATFORM, LOCATION, PLACEMENT, OMNI_CHANNEL or AUDIENCE_LABEL, criteriaValues, criteriaValueTypes (LOCATION only: LOCATION_COUNTRY / REGION / CITY / COMSCORE_MARKET)}]}]; rule order matters, the first match adjusts. Up to 6 sets, 10 rules, 4 criteria. replace sends the WHOLE set (get first; keep ids to keep rules); dropping rules and delete need confirm:true. Attach with update_meta_object on an ad set (value_rule_set_id, value_rules_applied:true). Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "list" | "get" | "create" | "replace" | "delete" | non | list (default), get, create, replace or delete |
| adAccountId | string | oui | Meta ad account id (act_123 or the bare number); it must be one this brand has shared |
| valueRuleSetId | string | non | from list |
| name | string | non | rule set name |
| rules | array<object> | non | the rules, in order |
| confirm | boolean | non | true after the user agreed |
list_meta_ad_studies
Read a Meta ad account's A/B tests and lift studies
The A/B tests and lift studies on a Meta ad account: name, type, timing and the test cells with their split and campaigns or ad sets. Read results per cell with meta_insights. fields overrides the Graph projection. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | oui | Meta ad account id (act_123 or the bare number); it must be one this brand has shared |
| fields | string | non | Graph fields override |
| limit | number | non | rows per page, up to 100 |
| after | string | non | paging cursor |
meta_ad_account_settings
Meta ad account settings: spend cap and EU DSA defaults
A Meta ad account's own settings. action get (default): name, status, currency, the account SPEND CAP and how much is spent against it, the default EU DSA beneficiary and payor, and Meta's suggested names for those two fields. action update: name; spendCap (the total the account may spend, in the account currency, e.g. 500 for 500.00; null removes the cap); resetAmountSpent:true (sets the amount spent against the cap back to 0); dsaBeneficiary + dsaPayor (the defaults every EU-targeted ad set inherits; send both, two empty strings clear them). Raising or removing the cap and resetting the amount spent let the account spend more, so they need confirm:true after the user agrees; lowering a cap, renaming and DSA defaults do not. When a cap is reached Meta pauses every campaign on the account. Read back from Meta. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "get" | "update" | non | get (default) or update |
| adAccountId | string | oui | Meta ad account id (act_123 or the bare number); it must be one this brand has shared |
| name | string | non | new account name (update) |
| spendCap | number | null | non | update: the account spend cap in the account currency; null removes it |
| resetAmountSpent | boolean | non | update: true sets the amount spent against the cap back to 0 |
| dsaBeneficiary | string | non | update: default EU DSA beneficiary (send with dsaPayor; "" clears) |
| dsaPayor | string | non | update: default EU DSA payor (send with dsaBeneficiary; "" clears) |
| confirm | boolean | non | true after the user agreed to raise or remove the cap or reset the amount spent |
meta_ad_account_activity
Who changed what on a Meta ad account
The change log of a Meta ad account, newest first: who created, edited, paused or re-budgeted which campaign, ad set or ad, when, from which app, with the value before and after. Use it for "what changed before performance dropped". since / until (YYYY-MM-DD or ISO) narrow the window; objectId keeps one campaign, ad set or ad (Meta has no per-object filter here, so it filters each page; pass after to go further back). Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | oui | Meta ad account id (act_123 or the bare number); it must be one this brand has shared |
| since | string | non | start (YYYY-MM-DD, ISO or unix) |
| until | string | non | end (YYYY-MM-DD, ISO or unix) |
| objectId | string | non | only this campaign, ad set or ad |
| limit | number | non | rows per page, up to 200 |
| after | string | non | paging cursor |
list_meta_advertisable_apps
Apps a Meta ad account can promote
The mobile apps a Meta ad account may promote in app-install ads, with their platforms and store links. Pass applicationId to also read Meta's iOS 14 campaign limits for that app on this account (how many iOS 14+ campaigns it may run); that read does not prove the app is set up for iOS promotion. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | oui | Meta ad account id (act_123 or the bare number); it must be one this brand has shared |
| applicationId | string | non | one app id: also read its iOS 14 campaign limits |
| businessId | string | non | limit to apps of this business |
list_meta_ad_instagram_accounts
Instagram identities a Meta ad account can run ads as
action accounts (default): the Instagram accounts a Meta ad account can run ads as (connected to the ad account, its Instagram accounts, and the Instagram account or Page-backed account of each Page it promotes), each with the id create_meta_ad takes as instagramUserId. action posts (igUserId): that account's posts, newest first, each id usable as create_meta_ad boostPostId with boostTarget "instagram" (whether Meta says it can be boosted is shown when Meta reports it); no separate Instagram connection is needed. A source that could not be read is named, never counted as none. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "accounts" | "posts" | non | accounts (default) or posts |
| adAccountId | string | oui | Meta ad account id (act_123 or the bare number); it must be one this brand has shared |
| igUserId | string | non | posts: the Instagram account id from action accounts |
| limit | number | non | posts per page, up to 50 |
| after | string | non | paging cursor |
manage_meta_ad_library
A Meta ad account's creative, image, video and label libraries
The libraries inside a Meta ad account. resource creatives: list | get (creativeId) | create (a reusable creative WITHOUT an ad: pageId, imageHash or videoId + imageHash as its thumbnail, link, optional message, headline, description, cta, instagramUserId, name; it spends nothing) | rename (creativeId, name: Meta lets only the name change; make a new creative to change its content) | delete (Meta refuses while an ad uses it). resource images: list | get (imageHash) | delete. resource videos: list | get or status (videoId: whether Meta finished processing it) | delete. resource labels: list. Reuse a creative with creativeId, an image with imageHash and a video with videoId on create_meta_ad / update_meta_object. Deletes are permanent and need confirm:true after the user agrees; nothing else spends or changes delivery. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| resource | enum: "creatives" | "images" | "videos" | "labels" | non | creatives (default), images, videos or labels |
| action | enum: "list" | "get" | "status" | "create" | "rename" | "delete" | non | list (default), get, status (videos), create or rename (creatives), or delete |
| adAccountId | string | oui | Meta ad account id (act_123 or the bare number); it must be one this brand has shared |
| creativeId | string | non | creatives: the creative |
| imageHash | string | non | images: the image hash |
| videoId | string | non | videos: the video id |
| name | string | non | rename: the new name; create: the creative's name |
| pageId | string | non | create: the Facebook Page the ad runs as |
| link | string | non | create: the https address a click opens |
| message | string | non | create: the primary text |
| headline | string | non | create: the headline |
| description | string | non | create: the link description |
| cta | string | non | create: call-to-action type, default LEARN_MORE |
| instagramUserId | string | non | create: run it on Instagram as this account (list_meta_ad_instagram_accounts) |
| limit | number | non | rows per page, up to 100 |
| after | string | non | paging cursor |
| confirm | boolean | non | true after the user agreed to the delete |
get_meta_ad_media
Direct image and video links of a Meta ad
Fresh, direct download links for every image and video a live Meta ad uses (single image, video, carousel cards, dynamic creative assets), plus the media of the Instagram post when the ad boosts one. Links are short-lived: ask again for new ones. Use it to download, review or reuse an ad's real creative. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | oui | Meta ad account id (act_123 or the bare number); it must be one this brand has shared |
| adId | string | oui | the ad (list_meta_ads level ad) |
meta_insights_report
Meta insights as a background report
Meta insights for long date ranges or big accounts, where meta_insights would be too slow: Meta builds the report in the background. action start: objectId (a campaign, ad set or ad; omit for the whole account), level, fields, breakdowns, actionBreakdowns, datePreset or since + until (YYYY-MM-DD), timeIncrement (1 = daily, "monthly"), filtering; returns reportRunId. action get (reportRunId): progress while it runs, then the rows (pass after for more pages). An unfinished or failed report says so and is never shown as an empty one. Spends nothing, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "start" | "get" | non | start (default) or get |
| adAccountId | string | oui | Meta ad account id (act_123 or the bare number); it must be one this brand has shared |
| objectId | string | non | start: campaign, ad set or ad id; omit for the account |
| level | enum: "account" | "campaign" | "adset" | "ad" | non | start: account, campaign, adset or ad |
| fields | array<string> | non | start: insights fields (default spend, impressions, reach, clicks, cpc, cpm, ctr, actions) |
| breakdowns | array<string> | non | start: e.g. age, gender, country, publisher_platform |
| actionBreakdowns | array<string> | non | start: e.g. action_type |
| datePreset | string | non | start: e.g. last_90d, this_year (default last_30d) |
| since | string | non | start: YYYY-MM-DD |
| until | string | non | start: YYYY-MM-DD |
| timeIncrement | string | non | start: 1 (daily), 7, monthly or all_days |
| filtering | array<object> | non | start: Meta filter objects {field, operator, value} |
| reportRunId | string | non | get: from action start |
| limit | number | non | get: rows per page, up to 500 |
| after | string | non | get: paging cursor |
manage_meta_pixel
Manage a Meta pixel (sharing, people, health)
One Meta pixel on an ad account this brand chose: action get (default; the full pixel: install snippet, when it last fired, owner business, automatic advanced matching and its fields, first-party cookies) | update (name, enableAutomaticMatching, automaticMatchingFields, firstPartyCookies enabled/disabled, dataUseSetting; read back; switching matching or first-party cookies OFF lowers measurement for every ad on the pixel, so it needs confirm:true after the user agrees) | shared_accounts (the ad accounts it is shared with) | share / unshare (targetAdAccountId, which must be one of this brand's ad accounts; unshare stops that account's ads measuring on it, so it needs confirm:true) | users (the business people on it, with their tasks) | assign_user (userId from manage_meta_business list_people, tasks AA_ANALYZE / ADVERTISE / ANALYZE / EDIT / UPLOAD; an assignment replaces their tasks, so narrowing them needs confirm:true) | remove_user (Meta has no API for it: the reply says where to do it) | partners (the partner businesses it is shared with; sharing with a new partner is done in Business Settings) | diagnostics (Meta's Events Manager checks: missing parameters, catalog mismatches) | stats (event counts by aggregation, default event; since / until). pixelId is the id or the exact name from list_meta_pixels. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "get" | "update" | "shared_accounts" | "share" | "unshare" | "users" | "assign_user" | "remove_user" … | non | default get |
| adAccountId | string | oui | Meta ad account id (act_123 or digits) the pixel is on or shared with; it must be one this brand has shared |
| pixelId | string | oui | pixel id, or its exact name, from list_meta_pixels |
| name | string | non | update: new pixel name |
| enableAutomaticMatching | boolean | non | update: automatic advanced matching on or off |
| automaticMatchingFields | array<string> | non | update: the fields matched, from em, fn, ln, ph, ge, zp, ct, st, country, db, external_id |
| firstPartyCookies | enum: "enabled" | "disabled" | non | update: first-party cookies |
| dataUseSetting | string | non | update: Meta's data use setting, e.g. ADVERTISING_AND_ANALYTICS or ANALYTICS_ONLY |
| targetAdAccountId | string | non | share / unshare: the ad account to give the pixel to or take it from (one of this brand's) |
| userId | string | non | assign_user / remove_user: business-scoped user id from manage_meta_business list_people |
| tasks | array<string> | non | assign_user: AA_ANALYZE, ADVERTISE, ANALYZE, EDIT, UPLOAD |
| aggregation | string | non | stats: event (default), host, url, device_type, browser_type, match_keys, event_source, … |
| since | string | non | stats: start, ISO date or unix seconds |
| until | string | non | stats: end, ISO date or unix seconds |
| confirm | boolean | non | true after the user agreed (lowering matching / cookies, unshare, narrowing someone's tasks) |
manage_meta_test_lead
Meta instant form test lead
Prove a Meta lead pipeline end to end without running ads: action create (a test lead on the form; fields is an optional object of question key to answer, otherwise Meta fills dummy answers) | get (the form's test lead) | delete (the test lead, or leadId). Meta keeps ONE test lead per form and refuses a second until the first is deleted. A test lead goes through the same retrieval as a real one (read_meta_leads, lead webhooks, CRM syncs), spends nothing and reaches nobody; Meta deletes only test leads. formId from list_meta_lead_forms. Read back. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "create" | "get" | "delete" | non | default get |
| formId | string | oui | instant form id, from list_meta_lead_forms |
| fields | object | non | create: question key to answer, e.g. {"email":"[email protected]"}; omit for Meta's dummy answers |
| leadId | string | non | delete: the test lead id (default: the form's test lead) |
| pageId | string | non | the Page the form is on, when the brand has several |
manage_meta_audience
Rename a Meta audience or remove people from it
Change an existing Meta custom audience: action rename (name and/or description; read back) | remove_users (take people OUT of a customer list: schema + rows in the same shape create_meta_audience uploads, e.g. schema ["EMAIL"] and rows [["[email protected]"]]; Hermoso normalises and SHA-256-hashes every value exactly as an upload does, so a row removes the person it added; up to 10,000 rows; customer lists only). Removing people narrows who ads reach, so it needs confirm:true after the user agrees; Meta applies it in the background and reports how many rows it received. Add people with create_meta_audience (audienceId + rows); delete a whole audience with delete_meta_audience. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "rename" | "remove_users" | oui | rename or remove_users |
| adAccountId | string | oui | Meta ad account id (act_123 or digits); one this brand has shared |
| audienceId | string | oui | custom audience id, from list_meta_audiences |
| name | string | non | rename: new name |
| description | string | non | rename: new description |
| schema | array<string> | non | remove_users: column names in order, from EMAIL, PHONE, FN, LN, FI, CT, ST, ZIP, COUNTRY, DOB, DOBY, GEN, MADID, EXTERN_ID |
| rows | array<array<string>> | non | remove_users: the people, each row in schema order (plain text or SHA-256 already) |
| confirm | boolean | non | remove_users: true after the user agreed |
list_meta_partnership_ad_content
Creator posts available for Meta partnership ads
Posts this brand can run as PARTNERSHIP ADS: the content of Meta's Partnership Ads Hub (Meta's Partnership Ads Content Discovery API, on the brand's business). Browse with filters (creatorUsername or creatorIgUserIds, platforms INSTAGRAM / FACEBOOK, mediaTypes, postTypes FEED / STORY / REEL, contentTypes such as BRANDED_CONTENT or COLLAB_POST, adEligibilities AD_READY / NEEDS_ATTENTION / INELIGIBLE, adUsages NEVER_USED / ACTIVE / PREVIOUSLY_USED, countryCodes, startDate + endDate, search over captions, sortBy RECOMMENDED or DATE, recommendedOnly), or look posts up directly by ONE of postUrl / postUrls, adCodes or contentIds (up to 50). Each post comes back with its link, author, whether it is ad-ready and why not, the creator's permission status and its partnership ad code. Build the ad with create_meta_ad partnershipAdCode. When Meta refuses the read, the reply says it is Meta's access gate, not a connection problem. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| creatorUsername | string | non | a creator's Instagram handle (business or creator account) |
| creatorIgUserIds | array<string> | non | creators' Instagram user ids |
| postUrl | string | non | one Instagram or Facebook post link (direct lookup) |
| postUrls | array<string> | non | several post links, up to 50 (direct lookup) |
| adCodes | array<string> | non | partnership ad codes, up to 50 (direct lookup) |
| contentIds | array<string> | non | Instagram media or Facebook post ids, up to 50 (direct lookup) |
| platforms | array<string> | non | INSTAGRAM, FACEBOOK |
| mediaTypes | array<string> | non | IMAGE, VIDEO, CAROUSEL, LINK |
| postTypes | array<string> | non | FEED, STORY, REEL |
| contentTypes | array<string> | non | BRANDED_CONTENT, PRODUCT, AFFILIATE, COLLAB_POST, TAGGED, REPOSTED |
| adEligibilities | array<string> | non | AD_READY, INELIGIBLE, NEEDS_ATTENTION, EXCLUDED |
| adUsages | array<string> | non | NEVER_USED, ACTIVE, PREVIOUSLY_USED |
| countryCodes | array<string> | non | creator countries, two-letter codes |
| startDate | string | non | YYYY-MM-DD, with endDate |
| endDate | string | non | YYYY-MM-DD, with startDate |
| search | string | non | words in the caption |
| sortBy | enum: "RECOMMENDED" | "DATE" | non | default RECOMMENDED |
| recommendedOnly | boolean | non | only posts Meta recommends |
| limit | number | non | 1-50, default 25 |
| after | string | non | the next-page cursor |
| businessId | string | non | the business portfolio, when the Page's own cannot be read |
| pageId | string | non | the Page whose Instagram account runs the ads, when the brand has several |
list_ad_rule_templates
Ready-made ad rules (Meta and Google Ads)
Ready-made automated ad rules to start from: stop losers, scale winners, pause spend with no conversions, creative fatigue alert, spend spike alert, trim expensive clicks. Each is a complete body for create_meta_ad_rule or create_google_ads_rule: add the ad account, adjust the thresholds it names, send it (rules are created switched off). Filter by platform (meta or google_ads) or id. Nothing is created. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| platform | enum: "meta" | "google_ads" | non | meta or google_ads; omit for both |
| id | string | non | one template id |
stage_ad_change
Hold an ad change for a person to confirm
Put an ad change on HOLD for a person to confirm instead of making it now. Pass tool (the ad write you would have called, for example set_meta_campaign_status, update_meta_object, set_google_ads_budget, set_tiktok_ads_status, delete_linkedin_ads_object) and args (exactly the arguments you would have sent, without confirm). Nothing reaches the ad platform. The person confirms or discards it in the Hermoso app (Schedule, Autopilot, Needs review), or you call confirm_ad_change after they agree. Use it when the user wants to review ad changes before they go live, or for any change you are not sure they want made now. The reply says what will change and, for a Meta campaign, ad set or ad or a Google campaign, its current values. Only writes to an ad account can be staged; reads and dry runs cannot. Staging the same call twice returns the first. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| tool | string | oui | the ad write tool to run later, e.g. set_meta_campaign_status |
| args | object | non | the arguments that tool takes, exactly as you would send them (no confirm) |
| note | string | non | why, shown to the person who confirms (optional) |
list_ad_changes
List staged ad changes
The ad changes waiting for confirmation on this brand (status staged, the default), or the confirmed, failed or discarded ones, or all: id, what each changes, who staged it and when, newest first. A confirmed or failed change stays listed for 7 days. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| status | enum: "staged" | "confirmed" | "failed" | "discarded" | "all" | non | default staged (waiting) |
| platform | string | non | only one ad platform, e.g. meta, google_ads, tiktok_ads |
get_ad_change
Read one staged ad change
One staged ad change in full: the exact call, what it changes (after), the values it had when it was staged (before, read live from Meta or Google Ads where possible), and once decided the ad platform's own answer. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| changeId | string | oui | from list_ad_changes or stage_ad_change |
confirm_ad_change
Apply a staged ad change
Apply a staged ad change now. It runs the staged call exactly as stored, through the same checks a direct call makes (the ad account must still be shared with this brand, blast-radius checks apply, the result is read back from the platform). IT CAN START OR RAISE AD SPEND: call it once without confirm to get the change described, show the user, get an explicit yes, then call again with confirm:true. A change runs at most once; one the platform refuses is marked failed with the platform's own words. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| changeId | string | oui | from list_ad_changes |
| confirm | boolean | non | true only after the user agreed to this exact change |
discard_ad_change
Discard a staged ad change
Drop a staged ad change. Nothing was ever sent to the ad platform, so there is nothing to undo. A change that was already confirmed or failed cannot be discarded. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| changeId | string | oui | from list_ad_changes |
create_tiktok_ads_identity
Create a TikTok custom ad identity
Create a TikTok CUSTOM IDENTITY (CUSTOMIZED_USER) on the brand's TikTok ad account: the name and avatar a non-Spark ad shows. displayName (1 to 40 characters) and avatarUrl (a public https square image; upload_file makes one) are required; advertiserId defaults to the brand's ad account. TikTok is retiring custom-identity ads: new ad accounts cannot run them, and ad groups delivering on TikTok placements refuse them, so Spark Ads (a real TikTok account, list_tiktok_ads_identities) is the path for most ads. Read back from TikTok. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| displayName | string | oui | |
| avatarUrl | string | oui | |
| advertiserId | string | non |
create_google_ads_performance_max_campaign
Create a Google Ads Performance Max campaign
Build a PERFORMANCE MAX campaign — Google’s cross-surface campaign type (Search, YouTube, Display, Discover, Gmail, Maps). ALWAYS created PAUSED; it spends NOTHING until you enable it with set_google_ads_status(confirm:true). PMax has NO manual bidding and NO keywords: it bids only on conversions, so the account MUST already have a conversion action — check with list_google_ads_conversion_actions, because this REFUSES rather than build a campaign that cannot optimise. Creative lives in an ASSET GROUP, and Google’s minimums are enforced before anything is sent: 3–15 headlines (≤30 chars), 1–5 longHeadlines (≤90), 2–5 descriptions (≤90), one businessName (≤25), at least one LOGO (1:1), one MARKETING_IMAGE (1.91:1) and one SQUARE_MARKETING_IMAGE (1:1) — upload the images with upload_google_ads_asset first and pass their asset resource names. A YouTube video is optional (Google generates one from the asset group if you omit it). Brand guidelines: since Google Ads API v21 they are ON by default for new PMax campaigns, which means the businessName and LOGO assets are linked to the CAMPAIGN (CampaignAsset), not to the asset group — Hermoso does that for you. Leave brandGuidelinesEnabled alone unless the user wants the older asset-group layout, and pass false for that. Budget, campaign, location/language targeting, the asset group and every asset link go up in ONE ATOMIC operation — if any part is rejected, nothing at all is created — and the whole tree is READ BACK from Google befo…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | 10-digit account id (dashes ok) — omit to use the brand’s selected default account |
| name | string | oui | campaign name |
| dailyBudgetUsd | number | non | daily budget in the ACCOUNT’s currency (historical name — not necessarily USD; 1–100000) — or pass budgetResourceName |
| budgetResourceName | string | non | an existing budget to reuse |
| bidding | object | non | bidding {strategy, targetCpaUsd, targetRoas}; no manual bidding, strategy defaults to MAXIMIZE_CONVERSIONS |
| locations | array<string> | non | place NAMES ("United States", "Toronto") — resolved for you |
| excludedLocations | array<string> | non | places to block |
| languages | array<string> | non | ISO codes, e.g. ["en"] |
| countryCode | string | non | 2-letter hint to disambiguate a city name |
| startDate | string | non | YYYY-MM-DD |
| endDate | string | non | YYYY-MM-DD |
| finalUrlSuffix | string | non | UTMs appended to every click, e.g. "utm_source=google&utm_medium=cpc". Omit for our default (utm_source/medium/campaign + {campaignid}/{creative}); "" for none |
| trackingUrlTemplate | string | non | click-tracking redirect, e.g. "{lpurl}?src=x" — only if you use a tracker |
| urlCustomParameters | object | non | up to 8 custom parameters, used in URLs as {_key} |
| containsEuPoliticalAds | boolean | non | true ONLY for genuine EU political advertising |
| merchantCenterId | string | non | makes this a RETAIL (Shopping-feed) Performance Max — the Merchant Center account whose products it advertises, from list_merchant_accounts. It advertises the WHOLE feed; partitioning by brand/category is not built and is refused by name |
| feedLabel | string | non | optional, retail only: narrow to ONE Merchant Center feed by its feed label. Omit to use products from all feeds |
| brandGuidelinesEnabled | boolean | non | default TRUE, matching Google’s own default since v21: businessName + logos are linked to the CAMPAIGN. Pass false only for the pre-v21 layout, where they sit on the asset group instead |
| imageExtraction | boolean | non | default FALSE: Google may NOT take images from your landing pages and serve them as ad creative. Sent explicitly, because Google switches image extraction ON by default for new Performance Max campaigns from 2026-12-04. Pass true to allow it; the reply reads the setting back from Google |
| assetGroup | object | oui | the creative — Google requires every field above before a PMax campaign can serve |
| dryRun | boolean | non | validate the whole tree against Google and create NOTHING |
| loginCustomerId | string | non | manager id if operating through an MCC |
google_ads_keyword_ideas
Keyword ideas with real Google search volume
Google’s own KEYWORD PLANNER: real keyword ideas with average monthly search volume, competition level and top-of-page bid estimates, so keyword choices are measured instead of guessed. Seed it with keywords[] (terms you already have), url (one landing page to mine) or site (a whole domain — the fastest way to size a competitor). Narrow by locations (place NAMES, resolved for you) and language. Results come back sorted by monthly volume. Use this BEFORE add_google_ads_keywords or create_google_ads_campaign so the ad group targets terms people actually search, and quote the volumes when you propose them. Read-only, free, spends nothing and creates nothing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | 10-digit account id (dashes ok) — omit to use the brand’s selected default account |
| keywords | array<string> | non | up to 20 seed terms |
| url | string | non | one page to mine for ideas |
| site | string | non | a whole domain to mine, e.g. example.com |
| locations | array<string> | non | place NAMES, e.g. ["United States"] |
| language | string | non | ISO code, e.g. "en" |
| countryCode | string | non | 2-letter hint to disambiguate a city name |
| network | enum: "GOOGLE_SEARCH" | "GOOGLE_SEARCH_AND_PARTNERS" | non | default GOOGLE_SEARCH |
| limit | number | non | how many ideas to return (1–200, default 50) |
| mode | enum: "ideas" | "historical" | non | historical = volume, competition, bids and month-by-month searches of the keywords you pass (up to 10,000), not new ideas |
| startMonth | string | non | historical only: YYYY-MM, with endMonth; default the past 12 months |
| endMonth | string | non | historical only: YYYY-MM |
| loginCustomerId | string | non | manager id if operating through an MCC |
check_email_address
Check an email address
Check one email address without sending anything: whether it is written correctly, whether its domain can receive mail (MX records), and whether it is a throwaway inbox, a role address such as info@ or sales@, a free provider such as Gmail, or a likely typo (gmial.com, with the fix). It never contacts the mail server, so it cannot tell whether that one mailbox exists, and the answer says so. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| address | string | oui | the email address, e.g. [email protected] |
check_domain_email_health
Check a domain’s email setup
Check a domain’s email setup from public DNS and say what to fix: MX (who receives its mail), SPF (which servers may send as it, counted against the 10-lookup limit), DKIM (signing keys; pass the selector when known, otherwise common ones are tried), DMARC (policy and reports) and blocklists (its mail servers on public spam lists whose terms allow this lookup). Pass `checks` to run only some. Use it when mail lands in spam, before sending a campaign, or to check SPF, DKIM or DMARC. Free; reads DNS only.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| domain | string | oui | the domain, e.g. example.com (a URL or an email address also works) |
| checks | array<enum: "mx" | "spf" | "dkim" | "dmarc" | "blocklists"> | non | which checks to run; omit for all five |
| selector | string | non | the DKIM selector, the s= value in the DKIM-Signature header of a sent message |
generate_dns_record
Write an SPF or DMARC record
Write an SPF or DMARC TXT record from plain choices, ready to paste at the DNS host. SPF: `providers` by id (google, microsoft, zoho, fastmail, proton, icloud, godaddy, namecheap, mailgun, zendesk, salesforce, freshdesk; amazonses, sendgrid, postmark, mailchimp, brevo, hubspot, klaviyo, shopify and intercom answer with what they need instead), extra `include` domains, `ip4`/`ip6` addresses and the ending (~all by default); with a `domain`, the includes are read and counted against the 10-lookup limit. DMARC: `policy` none, quarantine or reject, `rua` report addresses and alignment. It writes the record; publishing it at the DNS host is the user’s step. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| type | enum: "spf" | "dmarc" | oui | |
| domain | string | non | the domain the record is for; fills in the host name |
| providers | array<string> | non | SPF: sending services by id, e.g. ["google", "mailgun"] |
| include | array<string> | non | SPF: extra include domains |
| ip4 | array<string> | non | SPF: IPv4 addresses or ranges |
| ip6 | array<string> | non | SPF: IPv6 addresses or ranges |
| mx | boolean | non | SPF: let the domain’s own MX servers send |
| a | boolean | non | SPF: let the domain’s own address send |
| all | enum: "~all" | "-all" | "?all" | non | SPF ending, default ~all |
| policy | enum: "none" | "quarantine" | "reject" | non | DMARC policy, default none |
| subdomainPolicy | enum: "none" | "quarantine" | "reject" | non | |
| rua | array<string> | non | DMARC: addresses for the daily aggregate reports |
| ruf | array<string> | non | DMARC: addresses for failure reports |
| adkim | enum: "r" | "s" | non | |
| aspf | enum: "r" | "s" | non |
check_spam_words
Check an email for spam words
Scan a subject line and email text for words and formatting that read as spam (pressure, money, hype, scam-like phrases, CAPITALS, many links, link shorteners) and say which to change. Rule based, free. It judges the wording only: sender reputation and SPF, DKIM and DMARC matter more, so a low score is not a promise of the inbox.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| subject | string | non | the subject line |
| body | string | non | the email text |
list_analytics_properties
List the GA4 properties shared with this profile
The GA4 properties SHARED WITH THIS PROFILE, 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 profile. 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 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 (Connectors > Google Analytics).
Aucun paramètre.
analytics_report
Run a GA4 report
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"). PERIOD OVER PERIOD IN ONE CALL: compare:"previous_period" (or "previous_year") adds the earlier period and returns per-period totals plus `change` (absolute + %) computed from GA4's own totals — quote it, never redo the maths; or pass up to 4 named dateRanges. comparisons put segments side by side; totals:true adds a total row. Rows come back as flat named objects. When GA4 says the data is SAMPLED, TRUNCATED, rolled into an "(other)" row or thresholded, completenessNotes says so in words; repeat those when repor…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | 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 profile |
| metrics | array<string> | non | GA4 metric names — default ["activeUsers","sessions","screenPageViews"] |
| dimensions | array<string> | non | GA4 dimension names to break the metrics down by — omit for a single total row |
| startDate | string | non | YYYY-MM-DD or a GA4 relative date like "28daysAgo" (default 28daysAgo) |
| endDate | string | non | YYYY-MM-DD or "today" (default today) |
| limit | number | non | 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 | non | skip this many rows — how you page past `limit`. Use the nextOffset the previous call returns. |
| orderByMetric | string | non | sort by this metric — must be one of the metrics requested |
| orderDesc | boolean | non | default true (largest first) when orderByMetric is set |
| dimensionFilter | object | non | 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":[…]}}.… |
| metricFilter | object | non | 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. |
| compare | enum: "previous_period" | "previous_year" | non | also read the period before startDate–endDate (or the same dates a year earlier) and return `change` |
| dateRanges | array<object> | non | up to 4 periods instead of startDate/endDate; rows gain a dateRange column; with two, change = the FIRST relative to the SECOND |
| totals | boolean | non | add TOTAL rows |
| aggregations | array<enum: "TOTAL" | "MINIMUM" | "MAXIMUM" | "COUNT"> | non | extra summary rows over the result: TOTAL, MINIMUM, MAXIMUM or COUNT |
| comparisons | array<object> | non | segments side by side: [{name, dimensionFilter}] or [{comparison:"comparisons/123"}]; adds a comparison column |
| orderBy | array<object> | non | [{dimension:"date"}] or [{metric:"sessions", desc:true}] |
| keepEmptyRows | boolean | non | true = keep rows whose metrics are all zero |
| currencyCode | string | non | ISO 4217, e.g. EUR — default the property currency |
analytics_realtime
Who is on the site right now (GA4 realtime)
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | the NUMERIC GA4 property id from list_analytics_properties — it must be one SHARED with this profile, and any other is refused by name |
| metrics | array<string> | non | realtime metric names — default ["activeUsers"]. NOT the same set as analytics_report; `sessions` is not a realtime metric |
| dimensions | array<string> | non | realtime dimension names, e.g. ["country"] or ["unifiedScreenName"] |
| limit | number | non | rows, 1–1000 (default 50) |
list_analytics_definitions
List a GA4 property’s key events and custom dimensions
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | the NUMERIC GA4 property id from list_analytics_properties — it must be one SHARED with this profile, 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | the NUMERIC GA4 property id from list_analytics_properties — it must be one SHARED with this profile, and any other is refused by name |
| eventName | string | oui | an event GA4 already collects, e.g. "purchase" / "generate_lead" / "sign_up" |
| countingMethod | enum: "ONCE_PER_EVENT" | "ONCE_PER_SESSION" | non | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | the NUMERIC GA4 property id from list_analytics_properties — it must be one SHARED with this profile, and any other is refused by name |
| parameterName | string | oui | the event parameter GA4 already collects, e.g. "customer_tier" — NOT the report label |
| displayName | string | non | the label shown in GA4 reports — defaults to parameterName |
| scope | enum: "EVENT" | "USER" | "ITEM" | non | default EVENT. The 50-dimension cap applies to EVENT scope |
| description | string | non | optional description, ≤150 characters |
list_analytics_metadata
What a GA4 property can be asked
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | the NUMERIC GA4 property id from list_analytics_properties — it must be one SHARED with this profile, and any other is refused by name |
| search | string | non | 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
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | the NUMERIC GA4 property id from list_analytics_properties |
| parameterName | string | oui | the event parameter of the dimension to archive, e.g. "customer_tier" — from list_analytics_definitions, NOT the report label |
| confirm | boolean | non | 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
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | the NUMERIC GA4 property id from list_analytics_properties |
| eventName | string | oui | the key event to stop counting, e.g. "sign_up" — from list_analytics_definitions |
| confirm | boolean | non | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | NUMERIC GA4 property id from list_analytics_properties — never the G-XXXXXXX Measurement ID |
| parameterName | string | oui | 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 | non | the label shown in reports; defaults to parameterName, max 82 characters |
| measurementUnit | enum: "STANDARD" | "CURRENCY" | "FEET" | "METERS" | "KILOMETERS" | "MILES" | "MILLISECONDS" | "SECONDS" … | oui | REQUIRED — Google marks it Required and there is no safe default |
| restrictedMetricType | array<enum: "COST_DATA" | "REVENUE_DATA"> | non | REQUIRED when measurementUnit is CURRENCY, and refused for every other unit |
| scope | enum: "EVENT" | non | EVENT is the only scope GA4 accepts for a metric, and it is immutable |
| description | string | non | ≤150 characters |
archive_analytics_custom_metric
Archive a GA4 custom metric (one-way)
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | NUMERIC GA4 property id |
| parameterName | string | oui | the event parameter of the metric to archive, e.g. 'order_value' |
| confirm | boolean | non | 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
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | NUMERIC GA4 property id |
| metrics | array<string> | non | the same metrics you would send to analytics_report (defaults to the same three it defaults to) |
| dimensions | array<string> | non | the same dimensions you would send to analytics_report |
| dimensionFilter | object | non | the same GA4 FilterExpression you would send to analytics_report |
| metricFilter | object | non | the same GA4 FilterExpression you would send to analytics_report |
| compatibilityFilter | enum: "COMPATIBILITY_UNSPECIFIED" | "COMPATIBLE" | "INCOMPATIBLE" | non | narrow the answer — COMPATIBLE returns only the fields that CAN be added |
list_analytics_google_ads_links
Which Google Ads accounts a GA4 property is linked to
Which Google Ads accounts a GA4 property is linked to, and whether each link has PERSONALIZED ADVERTISING on — the flag that decides whether GA4 audiences and remarketing events reach Google Ads at all. RUN THIS BEFORE two claims: that a GA4 audience can be remarketed to, and that a Google Ads campaign's missing conversion data is a Google Ads problem. For a GA4-first advertiser the conversions come from this link, so an unlinked property is the usual cause and no error anywhere says so. Read-only, 0 credits. Needs Google Analytics connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | the NUMERIC GA4 property id from list_analytics_properties — never the G-XXXXXXX Measurement ID |
link_google_ads_to_analytics
Link a GA4 property to a Google Ads account
LINK a GA4 property to a Google Ads account. This is the prerequisite for two things users constantly ask for and cannot otherwise have: importing GA4 key events as Google Ads CONVERSIONS — which is what gets a smart-bidding campaign past the conversion-tracking refusal for a GA4-first advertiser — and using a GA4 AUDIENCE for remarketing. RE-LINKING AN ACCOUNT THAT IS ALREADY LINKED IS NOT AN ERROR: it reports that and changes nothing, because this is exactly the call an agent makes when something downstream is not working. adsPersonalizationEnabled DEFAULTS TO TRUE deliberately — a link with it off is the silent dead end where the audience exists in GA4 and never appears in Google Ads, with nothing reporting an error. The connected Google account needs EDIT on the GA4 property AND admin on the Google Ads account; without the second Google refuses and the refusal reads like a Hermoso fault. Google can take 24-48 hours before an audience shows up on the other side. 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | the NUMERIC GA4 property id from list_analytics_properties |
| customerId | string | oui | the 10-digit Google Ads customer id shown top-right in Google Ads; dashes optional |
| adsPersonalizationEnabled | boolean | non | defaults to TRUE. Only set false for measurement-only linking — it disables remarketing |
unlink_google_ads_from_analytics
Unlink Google Ads from a GA4 property
REMOVE the link between a GA4 property and a Google Ads account. The link itself is trivially re-creatable, which is why this is not a one-way-door gate — but what breaks downstream is not: every campaign bidding on a conversion imported from this property loses that signal, and every remarketing list built from a GA4 audience stops refreshing. WITHOUT `confirm` IT CHANGES NOTHING and reports what is actually attached, read back from Google, including whether it is a MANAGER account (in which case the link covers every account underneath). 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | the NUMERIC GA4 property id |
| customerId | string | oui | the Google Ads customer id, from list_analytics_google_ads_links |
| confirm | boolean | non | must be true to actually unlink — without it nothing changes and the link is described back to you |
list_analytics_audiences
List the GA4 audiences on a property
The GA4 audiences (remarketing lists) on a property, WITH whether they can actually be used in Google Ads — it reads the Google Ads link state alongside them, because an audience on an unlinked property is a silent dead end that reports no error anywhere. ARCHIVED audiences are not listed, so absence here is not proof one never existed. GA4's PREDEFINED audiences ('All Users', 'Purchasers') ARE returned — verified live against a real property — and they come back with clauseCount 0, because Google defines them internally rather than with filter clauses; that is normal and is not a broken audience. Read-only, 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | the NUMERIC GA4 property id |
create_analytics_audience
Build a GA4 audience (remarketing list)
BUILD A GA4 AUDIENCE — a remarketing list defined by what people did on the site, which flows into Google Ads across the property's Google Ads link. TELL THE USER TWO THINGS BEFORE CALLING: GA4 marks the DEFINITION, the MEMBERSHIP DURATION and every filter SCOPE immutable, so a wrong audience is archived and rebuilt rather than edited; and it is NOT retroactive — it starts collecting members from creation onward, and Google takes 24-48 hours to populate it. `filterClauses` is GA4's own nested shape and the TOP level of each filterExpression MUST be a single `andGroup` (Google's schema says so and its rejection names no field). Worked example, 'everyone who fired purchase': [{"clauseType":"INCLUDE","simpleFilter":{"scope":"AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS","filterExpression":{"andGroup":{"filterExpressions":[{"orGroup":{"filterExpressions":[{"eventFilter":{"eventName":"purchase"}}]}}]}}}}]. The result says whether the property is linked to Google Ads, because an audience nobody can remarket to is not a finished job. 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | the NUMERIC GA4 property id |
| displayName | string | oui | the audience name shown in GA4 and in Google Ads |
| description | string | oui | REQUIRED by Google on the Audience resource — one line saying who is in it |
| membershipDurationDays | number | oui | REQUIRED and IMMUTABLE, 1-540. 30 is the usual remarketing window; 540 is GA4's maximum |
| filterClauses | array<object> | oui | GA4 AudienceFilterClause list — each {clauseType:INCLUDE|EXCLUDE, simpleFilter|sequenceFilter}. See the worked example in the description |
| exclusionDurationMode | enum: "EXCLUDE_TEMPORARILY" | "EXCLUDE_PERMANENTLY" | non | IMMUTABLE, and it applies to EVERY exclude clause on the audience |
| eventTrigger | object | non | optional {eventName, logCondition} event GA4 logs when a user joins the audience |
list_analytics_data_streams
GA4 data streams
The GA4 data streams on a property, with the measurement ID (G-...) each one carries and how many Measurement Protocol secrets it already has. THIS IS WHERE A GTAG OR GTM INSTALL GETS ITS ID, and it is the first call before sending any server-side event. A web stream has a measurementId; an app stream has none and uses its firebaseAppId instead, so do not report an app stream as broken for having no G- id. A stream whose secret count could not be read comes back as null, which means unknown and not zero. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | NUMERIC GA4 property id, from list_analytics_properties |
get_analytics_stream_setup
GA4 install tag and stream settings
THE GTAG SNIPPET TO PASTE, plus what that web stream is actually set to collect. list_analytics_data_streams gives the measurement ID and stops one step short of what someone installing GA4 needs, which is the finished block — Google returns it verbatim and marks it immutable. The same call answers the two questions that come next: whether ENHANCED MEASUREMENT is collecting scrolls, outbound clicks, site search, video, downloads, form interactions and single-page-app page views, and whether client-side REDACTION is stripping emails or query parameters out of recorded URLs. Read the master switch before believing a toggle: if enhanced measurement is off for the stream, every individual toggle is inert whatever it says. WEB STREAMS ONLY — all three resources are web-stream resources, and an app stream is refused by name with what it has instead. Any half that could not be read comes back null, which means unknown and not off. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | NUMERIC GA4 property id, from list_analytics_properties |
| dataStream | string | non | stream id, measurement id or display name. Optional when the property has exactly one stream |
manage_analytics_measurement_protocol_secret
GA4 Measurement Protocol secrets
THE SERVER-SIDE EVENT CHANNEL FOR GA4, the Google twin of the conversions APIs Hermoso already ships for Reddit, Snapchat and OpenAI Ads. A Measurement Protocol secret is the api_secret half of https://www.google-analytics.com/mp/collect; the other half is the stream's measurementId for a web stream or its firebaseAppId for an app stream, and this tool reports whichever applies. action:"list" shows every secret with its value, action:"create" mints one (displayName is required, and it is the ONLY label a secret ever gets because the values are opaque), action:"delete" revokes one and NEEDS confirm:true. TELL THE USER THIS BEFORE THEY DELETE: there is no rotation anywhere in the API, because the value is output-only and patch reaches only the display name. A delete takes effect at once, and anything still sending with the old value stops being recorded SILENTLY, since the Measurement Protocol answers a bad api_secret with a 2xx and drops the hit. Rotating safely means create the new one, move every sender across, then delete the old one. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | NUMERIC GA4 property id |
| action | enum: "list" | "create" | "delete" | non | defaults to 'list' |
| dataStream | string | non | stream id, measurement id or display name. Optional when the property has exactly one stream; required when it has several, and an ambiguous name is refused rather than first-matched |
| displayName | string | non | REQUIRED for action:'create' — what will be sending with this secret, e.g. "Shopify webhook". It is the only label a secret ever gets. May also be used to name one for delete |
| secretId | string | non | for action:'delete', from action:'list' — preferred over displayName because it is unambiguous |
| confirm | boolean | non | must be true to actually delete |
archive_analytics_audience
Archive a GA4 audience (one-way)
ARCHIVE a GA4 audience, and it is ONE-WAY: GA4 publishes no delete and no un-archive anywhere in its API. Any Google Ads remarketing list sourced from it stops refreshing, and because the definition is IMMUTABLE the audience cannot be recovered by editing — rebuilding means a NEW audience that starts collecting members from scratch, so months of accumulated membership are gone. WITHOUT `confirm` IT ARCHIVES NOTHING and describes the audience read back from Google; check that against what the user asked for, because naming the right audience is the one thing confirm cannot prove. An ambiguous displayName is REFUSED rather than first-matched — GA4 does not enforce unique names and there is no way back. 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | the NUMERIC GA4 property id |
| audienceId | string | non | from list_analytics_audiences — preferred, because it is unambiguous |
| displayName | string | non | the audience name, if the id is not to hand. Refused when it matches more than one |
| confirm | boolean | non | must be true to actually archive |
manage_analytics_channel_group
GA4 channel groups
HOW GA4 DECIDES WHICH BUCKET A CLICK LANDS IN, which is the number an ad studio is judged on and the answer to "why is my campaign showing as Unassigned". action:'list' reads every group with its channels in the order GA4 tests them, including Google's own Default channel group — read that first, because a campaign landing in the wrong channel is a rule that does not match rather than missing data. 'create' authors your own group, 'update' changes one, 'delete' removes one (confirm-gated). AUTHORING: `channels` is an ordered list, each with a name and its conditions, and GA4 STOPS AT THE FIRST RULE THAT MATCHES — so a broad rule above a narrow one silently swallows it. A condition is {fieldName, matchType, value} or {fieldName, values:[…]} for a list, plus not:true to invert; an entry that is itself an ARRAY of conditions is OR'ed, and separate entries are AND'ed. THE FIELD NAMES ARE NOT THE REPORT DIMENSIONS: use eachScopeSource, eachScopeMedium, eachScopeCampaignName, eachScopeCampaignId, eachScopeSourcePlatform or eachScopeDefaultChannelGroup — sessionSource, medium and the rest are real GA4 dimensions that Google REFUSES here, and its refusal does not say what to use instead. `primary:true` makes the group the one every report is bucketed by AND unsets whichever group was primary before. Google's own Default channel group cannot be edited and is refused by name. An update REPLACES the whole rule set. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | NUMERIC GA4 property id, from list_analytics_properties |
| action | enum: "list" | "create" | "update" | "delete" | non | defaults to 'list' |
| displayName | string | non | the group name shown in GA4, max 80 characters. Required to create; may also name an existing group for update/delete |
| description | string | non | max 256 characters |
| channels | array<any> | non | ordered list of {name, conditions:[…]}. Required to create. On update it REPLACES every channel, so send the ones you want to keep |
| primary | boolean | non | make this the group reports are bucketed by. It unsets the previous primary group, changing what every report in the property shows |
| channelGroupId | string | non | for update and delete — from action:'list', and unambiguous where a name is not |
| confirm | boolean | non | must be true to actually delete |
manage_analytics_calculated_metric
GA4 calculated metrics
THE DERIVED NUMBER A MARKETER ACTUALLY REPORTS — cost per purchase, revenue per session, a margin — built from metrics GA4 already collects and then available to analytics_report like any other metric. action:'list' reads them, 'create' adds one, 'update' changes the formula, name, unit or description, 'delete' removes one (confirm-gated). THE ID IS CHOSEN ONCE AND IS PERMANENT: calculatedMetricId becomes the API name reports ask for (calcMetric:your_id), Google marks it output-only afterwards, and renaming is refused by name rather than silently ignored — so pick it deliberately. The formula takes + - * / and parentheses over metric names and plain numbers, referencing at most 5 unique custom metrics; Google answers a syntax error with the exact position. WATCH invalidMetricReference ON THE WAY BACK: a formula naming a metric this property does not collect is created happily and flagged invalid, and any report using it may fail or return unexpected numbers — report that rather than a clean success. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | NUMERIC GA4 property id, from list_analytics_properties |
| action | enum: "list" | "create" | "update" | "delete" | non | defaults to 'list' |
| calculatedMetricId | string | non | the API name, e.g. "cost_per_purchase". Required to create and PERMANENT; for update/delete it names the metric |
| displayName | string | non | the name shown in GA4, max 82 characters. Required to create |
| formula | string | non | e.g. "advertiserAdCost / conversions". Required to create |
| metricUnit | string | non | STANDARD | CURRENCY | FEET | MILES | METERS | KILOMETERS | MILLISECONDS | SECONDS | MINUTES | HOURS. Required to create |
| description | string | non | max 4096 characters |
| confirm | boolean | non | must be true to actually delete |
manage_analytics_annotations
GA4 chart annotations
MARK WHAT YOU DID ON THE CUSTOMER'S OWN GA4 CHARTS — "ad launched", "post went out", "price change" — so the traffic it moved is visible where they already look. action:'list' reads them (Google's own system annotations included, which cannot be edited or deleted), 'create' adds one on a single date or a startDate–endDate range, 'update' changes one, 'delete' removes one (confirm-gated). color: PURPLE BROWN BLUE GREEN RED CYAN ORANGE (default BLUE). Every write is read back. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | NUMERIC GA4 property id, from list_analytics_properties |
| action | enum: "list" | "create" | "update" | "delete" | non | defaults to 'list' |
| annotationId | string | non | for update/delete — from action:'list' |
| title | string | non | the label on the chart. Required to create |
| description | string | non | longer note shown with the annotation (create or update) |
| color | enum: "PURPLE" | "BROWN" | "BLUE" | "GREEN" | "RED" | "CYAN" | "ORANGE" | non | chart colour; default BLUE |
| date | string | non | YYYY-MM-DD — one day |
| startDate | string | non | YYYY-MM-DD — a range, with endDate |
| endDate | string | non | last day of a range, YYYY-MM-DD; use with startDate instead of date |
| confirm | boolean | non | must be true to actually delete |
analytics_data_retention
GA4 data retention
HOW LONG GA4 KEEPS EVENT- AND USER-LEVEL DATA. The default is 2 months, which silently caps every exploration and funnel at the last two months; standard reports are unaffected. action:'get' reads it; 'set' changes eventDataRetention / userDataRetention (2 or 14 months on a standard property; 26, 38, 50 for event data on Analytics 360 only) and resetUserDataOnNewActivity. RAISING applies to data already collected. LOWERING DELETES the older data at Google's next monthly run and cannot be undone, so it answers needsConfirm first — show the user, get a yes, then confirm:true. Read back. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | NUMERIC GA4 property id, from list_analytics_properties |
| action | enum: "get" | "set" | non | defaults to 'get' |
| eventDataRetention | string | non | months: 2 or 14 (26/38/50 Analytics 360 only), or the enum e.g. FOURTEEN_MONTHS |
| userDataRetention | string | non | months: 2 or 14 |
| resetUserDataOnNewActivity | boolean | non | true = a user's data retention window restarts each time that user shows new activity |
| confirm | boolean | non | required when the change SHORTENS retention, which deletes data |
list_tag_manager_containers
List the Tag Manager containers shared with this profile
The Google Tag Manager containers SHARED WITH THIS PROFILE, with the exact containerPath every other Tag Manager tool needs. CALL THIS FIRST. A container is addressed by PATH, "accounts/ /containers/ ", never by the GTM-XXXXXX public id a human reads off the snippet: no Tag Manager method accepts the public id, so passing one is refused. Each row carries the public id beside the path so you can match what the user says to what the API wants. THIS IS NOT EVERY CONTAINER THE GOOGLE ACCOUNT CAN SEE: one agency login routinely administers every client's container, and a container is not data about a client, it is control of what runs on their website, so the user ticks which containers belong to THIS profile and only those are reachable. An empty list means nothing is ticked yet: say so and point the user at Connectors, Google Tag Manager, Manage accounts (or call list_connector_accounts with provider google_tag_manager, then set_connector_accounts). Never name or guess a container. Read-only, free. Read-only, 0 credits. Needs Google Tag Manager connected.
Aucun paramètre.
list_tag_manager_tags
What is actually firing on the site
WHAT IS ACTUALLY FIRING ON THE SITE. Every tag in the container's workspace with its type, whether it is paused, which triggers fire it by name, and the one field that matters most: whether each tag is LIVE on the website or only STAGED in a draft. Also returns the container's triggers so you can reuse one instead of creating a duplicate. USE THIS TO ANSWER "is conversion tracking actually working": a Google Ads conversion action created by create_google_ads_conversion_action records nothing until a tag in this container fires it, and this is the only way to see whether that tag exists, whether it is paused, and whether it has been published. THREE VALUES FOR live, AND THEY ARE DIFFERENT ANSWERS: true means it is in the published container version and running, false means it is staged and NOT running yet, and null means the published version could not be read so you cannot tell. Never report null as false. If the response says the container has never been published, nothing in it is running at all. Read-only, free. 0 credits. Needs Google Tag Manager connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| containerPath | string | oui | the "accounts/ /containers/ " path from list_tag_manager_containers, never the GTM-XXXXXX public id, and it must be one SHARED with this profile |
| gtmWorkspace | string | non | Tag Manager workspace id or name. Defaults to the Default Workspace, and the answer always states which one it read. |
| workspace | string | non | older name for gtmWorkspace (MCP only) |
create_tag_manager_tag
Install a tag in the container draft
INSTALL A TAG in the container's draft workspace: a Google Ads conversion tag, a GA4 event, or a third-party pixel. IT DOES NOT GO LIVE. Everything written here lands in a WORKSPACE, which is a draft, and it does not run on the website until a human opens Tag Manager and publishes the container. Staging NEVER publishes: making a tag live is a separate, explicitly confirmed call (publish_tag_manager_container), because publishing changes what executes for every visitor on the live site. Always tell the user the change is staged, and that it does nothing until it is published. TWO THINGS YOU MUST GET FROM THE CONTAINER RATHER THAN INVENT. (1) type is a Tag Manager type string and Google publishes no machine-readable list of them, so Hermoso forwards whatever you pass rather than validating against a list that would go stale and start refusing real types. Get the right one by calling list_tag_manager_tags and copying the type off a tag of the same kind that already exists, or read it in Tag Manager. (2) firingTriggerId is required and must name at least one real trigger id from list_tag_manager_tags, because a tag with no trigger is installed and never runs, which is worse than not installing it. Use create_tag_manager_trigger if the container has no suitable trigger. 0 credits. Needs Google Tag Manager connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| containerPath | string | oui | the "accounts/ /containers/ " path from list_tag_manager_containers |
| gtmWorkspace | string | non | Tag Manager workspace id or name. Defaults to the Default Workspace. |
| workspace | string | non | older name for gtmWorkspace (MCP only) |
| name | string | oui | what a human will look for in the Tag Manager UI |
| type | string | oui | the Tag Manager tag type string. Copy it off a tag of the same kind already in the container (list_tag_manager_tags) rather than guessing: Google publishes no machine-readable list of these. |
| firingTriggerId | array<string> | oui | REQUIRED, at least one real trigger id from list_tag_manager_tags. A tag with no trigger is installed and never runs. |
| parameter | array<object> | non | Tag Manager parameters, each { type, key, value }. type defaults to "template", which is Tag Manager's string type. |
| blockingTriggerId | array<string> | non | trigger ids that stop this tag firing when they match |
| tagFiringOption | string | non | unlimited, oncePerEvent or oncePerLoad |
| paused | boolean | non | true = create the tag paused, so it does not fire |
| notes | string | non | internal note stored on the tag; not shown on the website |
update_tag_manager_tag
Change a tag in the container draft
CHANGE AN EXISTING TAG in the draft workspace: rename it, fix a wrong conversion id or label, move it onto a different trigger, or pause it. Like create_tag_manager_tag this lands in a DRAFT and does not reach the website until a human publishes the container. Hermoso reads the tag first and merges your change on top of it, because Tag Manager's update replaces the whole tag and sending only the changed field would silently strip its parameters and triggers. A tag's type cannot be changed: that is deleting one tag and creating another. If somebody edited the tag in Tag Manager after Hermoso read it the change is REFUSED rather than overwriting their edit, and the fix is to read it again and reapply. To stop a tag running, pause it rather than removing its trigger. 0 credits. Needs Google Tag Manager connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| containerPath | string | oui | container path accounts/ /containers/ , from list_tag_manager_containers |
| gtmWorkspace | string | non | Tag Manager workspace id or name; defaults to the Default Workspace |
| workspace | string | non | older name for gtmWorkspace (MCP only) |
| tagId | string | oui | the tagId from list_tag_manager_tags |
| name | string | non | new tag name |
| firingTriggerId | array<string> | non | replaces the firing trigger ids, from list_tag_manager_tags |
| parameter | array<object> | non | replaces the tag parameters: [{type, key, value}] |
| blockingTriggerId | array<string> | non | replaces the blocking trigger ids |
| tagFiringOption | string | non | unlimited, oncePerEvent or oncePerLoad |
| paused | boolean | non | pause the tag rather than removing its trigger, which is how you stop one running |
| notes | string | non | replaces the internal note on the tag |
create_tag_manager_trigger
Create a trigger in the container draft
CREATE A TRIGGER, the rule that decides when a tag fires, in the container's draft workspace. Use it when list_tag_manager_tags shows no trigger matching what a conversion needs, for example a purchase confirmation page or a dataLayer purchase event. A trigger on its own fires nothing: it has to be named in a tag's firingTriggerId, so create the trigger, then create or update the tag that uses it. Like every other write here it lands in a DRAFT and does not reach the website until a human publishes the container. type must be one of Tag Manager's own trigger types, and an unrecognised one is refused by name with the accepted list, for free, before any request. A customEvent trigger with no customEventFilter fires on EVERY dataLayer event in the container rather than the one you meant, so that is refused too. 0 credits. Needs Google Tag Manager connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| containerPath | string | oui | container path accounts/ /containers/ , from list_tag_manager_containers |
| gtmWorkspace | string | non | Tag Manager workspace id or name; defaults to the Default Workspace |
| workspace | string | non | older name for gtmWorkspace (MCP only) |
| name | string | oui | trigger name, as it appears in Tag Manager |
| type | string | oui | one of Tag Manager's own trigger types, e.g. pageview, domReady, windowLoaded, customEvent, formSubmission, linkClick, click, historyChange, scrollDepth, elementVisibility, timer. An unknown one is refused by name with the full list. |
| filter | array<object> | non | Tag Manager Condition objects, each { type, parameter: [...] } |
| customEventFilter | array<object> | non | REQUIRED for a customEvent trigger, or it would fire on every dataLayer event in the container |
| notes | string | non | internal note stored on the trigger |
list_tag_manager_versions
Tag Manager version history
THE CONTAINER'S VERSION HISTORY, and the thing to read before proposing to publish or to roll one back. Every version with its id, its name, how many tags, triggers and variables it holds, whether it is archived, and which one is LIVE on the site right now. This is what makes a publish reversible: pass a row's path as publish_tag_manager_container's versionPath to put that version back on the site. The live flag is three-valued — true, false, or null when Google would not tell us which version is live, and null must never be read as false. Read-only. 0 credits. Needs Google Tag Manager connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| containerPath | string | oui | the "accounts/ /containers/ " path from list_tag_manager_containers, never the GTM-XXXXXXX public id |
preview_tag_manager_publish
What would go live
WHAT WOULD HAPPEN IF YOU PUBLISHED — free, read-only, and it publishes nothing. Returns the container, the version live on the site right now and what it holds, the exact list of staged changes (added, updated, deleted) as Tag Manager itself reports them, any merge conflicts, and the one sentence to show a user before asking them to agree. Use it to answer 'what is waiting to go live?' without going anywhere near the publish call. publish_tag_manager_container without confirm returns the same facts, so this is for when you want them with no chance of a publish at all. 0 credits. Needs Google Tag Manager connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| containerPath | string | oui | the "accounts/ /containers/ " path from list_tag_manager_containers |
| gtmWorkspace | string | non | Tag Manager workspace id or name; defaults to the Default Workspace |
| workspace | string | non | older name for gtmWorkspace (MCP only) |
| versionPath | string | non | optional — preview re-publishing an EXISTING version instead of the workspace |
publish_tag_manager_container
Publish the container to the live site
PUBLISH THE CONTAINER — the ONE call in Hermoso that changes what runs on the customer's live website for every visitor, immediately. Tag Manager publishes a VERSION, so the draft workspace becomes a version, then that is published. CALLING IT WITHOUT confirm PUBLISHES NOTHING and is the correct first move: it returns what is live right now, its tag/trigger/variable counts, and exactly what would change, read back from Google. Show the user, get a yes, then call again. THE GATE SCALES WITH THE DAMAGE. A NEVER-published container needs only confirm:true. A container that ALREADY has a live version is replacing something that works, so it additionally needs confirmPublicId set to that container's GTM-XXXXXXX public id. It cannot be guessed; read it from list_tag_manager_containers or from the preview. IT REFUSES, FOR FREE AND WITHOUT PUBLISHING, in four cases you should relay rather than retry: merge conflicts in the workspace (somebody changed the same thing in the container — resolve in Tag Manager first), a workspace with no changes at all, a version Google reports a COMPILER ERROR in, and a container whose public id could not be read. TO UNDO: publish the previous version again (versionPath from list_tag_manager_versions, no workspace involved); rolledBackTo names it. READ verified BEFORE YOU TELL ANYONE IT IS LIVE. It is three-valued: true means the container's live version was re-read and IS the one just published; false means Google accepted it but something else is liv…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| containerPath | string | oui | the "accounts/ /containers/ " path from list_tag_manager_containers |
| gtmWorkspace | string | non | Tag Manager workspace id or name; defaults to the Default Workspace |
| workspace | string | non | older name for gtmWorkspace (MCP only) |
| versionPath | string | non | ROLLBACK / RE-PUBLISH: publish this EXISTING version instead of the workspace. From list_tag_manager_versions. Must be a version inside the same container. |
| versionName | string | non | name for the version being created; defaults to a timestamped Hermoso name |
| versionNotes | string | non | notes stored on the version, visible in Tag Manager |
| confirm | boolean | non | REQUIRED to publish. Without it nothing is published and you get the blast-radius report instead. |
| confirmPublicId | string | non | the container's GTM-XXXXXXX public id, REQUIRED when the container already has a live version. Read it from the preview; it cannot be guessed. |
install_tracking_tag
Install a pixel on the website
PUT A PIXEL ON THE BRAND'S WEBSITE: a Meta Pixel, TikTok Pixel, Google tag, LinkedIn Insight Tag, Reddit Pixel, Pinterest Tag, X Pixel or Snap Pixel. It goes through the site connection the brand has. GOOGLE TAG MANAGER (any pixel): a Custom HTML tag with the platform's base code on every page, staged as a draft, and live only with publish:true, through the same confirmation publish_tag_manager_container asks for (a container already live needs confirmPublicId). WIX (Meta, TikTok, Google Ads AW-, Google Analytics G-): a Wix marketing tag, live at once; Wix keeps one per type, so replacing a different pixel needs replaceExisting set to the one being replaced. WEBFLOW, WORDPRESS, SHOPIFY or no site connection: those give an app no way to add code, so the reply is the base code and exactly where to paste it. THE PIXEL ID IS NEVER INVENTED: leave pixelId out and the brand's only pixel on its connected ad account is used (several are listed for you to pick); a given id is checked against that account when it is connected, and refused if it is not the brand's. The code is the platform's own: Meta and Pinterest from the connected account or their published base code, the Google tag from Google's published snippet; for TikTok, LinkedIn, Reddit, X and Snap pass snippet, the base code copied from the platform's events manager (it must contain the id). WITHOUT confirm:true NOTHING IS WRITTEN: the reply says exactly what would change; show the user, get a yes, call again with confirm:tr…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| platform | enum: "meta" | "tiktok" | "google" | "linkedin" | "reddit" | "pinterest" | "x" | "snapchat" | oui | which pixel: meta, tiktok, google, linkedin, reddit, pinterest, x or snapchat |
| pixelId | string | non | the pixel's id (Meta pixel id, TikTok pixel code, G-/AW-/GT- id, LinkedIn partner id, …). Leave out to use the brand's only pixel on its connected ad account. |
| snippet | string | non | the platform's base code, copied from its events manager. Required for TikTok, LinkedIn, Reddit, X and Snap through Tag Manager or a manual install; it must contain pixelId. |
| site | enum: "google_tag_manager" | "wix" | "webflow" | "wordpress" | "shopify" | "manual" | non | which site connection to use; leave out to use the one the brand has (asked when it has both Tag Manager and Wix) |
| containerPath | string | non | Tag Manager only: accounts/ /containers/ from list_tag_manager_containers, when several are shared with the brand |
| gtmWorkspace | string | non | Tag Manager only: workspace id or name; default the Default Workspace |
| adAccountId | string | non | the ad account (or TikTok advertiser) to read the pixel from, when the brand has several |
| url | string | non | the page to check afterwards; default the brand's website |
| publish | boolean | non | Tag Manager only: also publish the container so the tag goes live |
| confirmPublicId | string | non | Tag Manager only, with publish: the container's GTM-XXXXXXX id, required when it already has a live version |
| replaceExisting | string | non | Wix only: the id of the site's current pixel of this type, typed back, when installing a different one replaces it |
| confirm | boolean | non | true to make the change; without it nothing is written and the reply says what would change |
list_tracking_tags
Which pixels are on the website
WHICH PIXELS ARE ON THE WEBSITE RIGHT NOW, read from the live page (url, default the brand's website) the way a browser loads it: every Meta, TikTok, Google, LinkedIn, Reddit, Pinterest, X and Snap pixel and every Tag Manager container Hermoso recognises there, with its id. Also the tags Hermoso installed through Tag Manager (live or only staged) and the site's Wix marketing tags, when those are connected. Use it to check a pixel someone pasted by hand, or to answer "is my pixel installed". page.read false means the page could not be read, which is not the same as no pixels. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| url | string | non | the page to read; default the brand's website |
| containerPath | string | non | Tag Manager: which shared container to list, when several are shared |
| gtmWorkspace | string | non | Tag Manager workspace id or name |
remove_tracking_tag
Remove a pixel from the website
TAKE A PIXEL OFF THE BRAND'S WEBSITE. Tag Manager: deletes the tag Hermoso installed for that pixel (only Hermoso's own, never somebody else's), as a draft, live only with publish:true through the usual publish confirmation. Wix: removes the site's marketing tag of that type only when it IS this pixel. Other sites: says where to delete the code by hand. The site stops sending that platform data once it is gone, so WITHOUT confirm:true NOTHING CHANGES and the reply names exactly what would be removed: show the user, get a yes, then call again with confirm:true. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| platform | enum: "meta" | "tiktok" | "google" | "linkedin" | "reddit" | "pinterest" | "x" | "snapchat" | oui | which pixel |
| pixelId | string | oui | the id of the pixel to remove (list_tracking_tags shows them) |
| site | enum: "google_tag_manager" | "wix" | "webflow" | "wordpress" | "shopify" | "manual" | non | which site connection; default the one the brand has |
| containerPath | string | non | Tag Manager only: the container, when several are shared |
| gtmWorkspace | string | non | Tag Manager only: workspace id or name |
| publish | boolean | non | Tag Manager only: also publish so the removal goes live |
| confirmPublicId | string | non | Tag Manager only, with publish: the container's GTM-XXXXXXX id |
| confirm | boolean | non | true to remove; without it nothing changes |
audit_conversion_tracking
Audit a website’s ad conversion tracking
AUDIT ANY WEBSITE'S AD CONVERSION TRACKING (a pixel checker): Hermoso loads the page in a real browser, the way a visitor does, and reports which pixels and tags are on it (Meta Pixel, Google Ads, GA4, Google Tag Manager, TikTok, LinkedIn Insight, Pinterest, Snap, Reddit, X, Microsoft UET, ChatGPT Ads, the Hermoso tag) with their ids; whether each FIRES a page view; DUPLICATE installs (two page views for one load, Meta's own 'Duplicate Pixel ID'); BROKEN installs (failed requests, a Content-Security-Policy blocking a pixel, a pixel that loads and sends nothing); CONSENT problems (Google Consent Mode missing or v1, the consent default set after the tags, pixels firing before the cookie banner is answered; the scan accepts the banner and records before and after); missing PURCHASE or LEAD events (on a checkout, thank-you or sign-up page, or a store with none set up); and any visible SERVER-SIDE path (server-side Tag Manager, a Conversions API gateway, Elevar or Stape, a store app that sends server events). A score out of 100 and a grade, then every problem with a plain-language fix, a way to check it yourself and, where Hermoso can make the fix, the tool that does it; plus fixPrompt, a prompt to hand a coding agent. Use it for 'check my facebook pixel', 'is my pixel working', 'audit my tracking', or a competitor's site. url defaults to the brand's website. Each audit is stored per domain (get_conversion_audit reads it back). Takes 10 to 40 seconds. Free. SIDE EFFECT: it WRITES…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| url | string | non | any page: a homepage, product, checkout, thank-you or sign-up page; default the brand's website |
get_conversion_audit
Read a domain’s latest tracking audit
Read the latest stored conversion tracking audit of a domain WITHOUT running a new scan: every audit run by anyone (an agent, the app, the free pixel checker on hermoso.ai, a daily watch) replaces that domain's stored one. Answers not found when the domain was never audited: run audit_conversion_tracking. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| host | string | oui | the domain, e.g. example.com (a full URL is reduced to its domain) |
audit_meta_pixel
Audit the connected Meta pixel from inside Meta
AUDIT THE BRAND'S META PIXEL FROM INSIDE META (the connected follow-up to audit_conversion_tracking, which only sees the browser): over the last 7 days, each event's count per day, last 24 hours and the last hour Meta counted it; the SHARE OF EACH EVENT RECEIVED THROUGH THE CONVERSIONS API rather than the browser; EVENT MATCH QUALITY (0-10) with the coverage of each customer key Meta matched on; event_id deduplication of browser and server copies; Meta's own diagnostics for the pixel (its Events Manager checks, such as events missing parameters or content ids that match no catalog) and its dataset quality problems with Meta's fix for each; whether automatic advanced matching and first-party cookies are on. Every finding says who fixes it: Hermoso (once switched on, e.g. set_meta_conversions_auto), you (the site or the code that sends events) or a setting in Events Manager. Meta does not return verified domains or the Aggregated Event Measurement setup to its API, so those are listed under unavailable. adAccountId: default the brand's first ticked Meta ad account that has a pixel; pixelId: default its most recently active pixel. Cached 10 minutes per pixel. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | act_… or its digits |
| pixelId | string | non | from list_meta_pixels (an id or its exact name) |
| fresh | boolean | non | true skips the 10-minute cache |
watch_conversion_tracking
Watch a domain for broken ad tracking
WATCH A DOMAIN'S AD TRACKING: Hermoso re-audits its homepage every day (the same audit as audit_conversion_tracking) and emails the account's address when tracking BREAKS: a score drop of 5 points or more, an ad pixel that stops firing or disappears, a pixel that starts firing before the cookie banner is answered, a server-side path that disappears, or a new duplicate, failing or blocked install. A break is confirmed by a second scan before any email goes out. Watching a domain already watched returns it with created:false. Up to 25 domains per account. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| url | string | oui | the domain (or any URL on it) to watch |
list_conversion_tracking_watches
List watched domains
The domains this brand watches for broken ad tracking (watch_conversion_tracking), each with its id, last score and grade, the score of each daily check, when it was last checked, when the next check is due, a break being confirmed, and when the last alert email went out. Free.
Aucun paramètre.
stop_watching_conversion_tracking
Stop watching a domain
Stop the daily tracking checks and alert emails for a watched domain. id: the watch's id from list_conversion_tracking_watches, or the domain itself. The domain's stored audit stays. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | the watch id (cw_…) or the domain |
list_search_console_sites
List the Search Console properties shared with this profile
The Google Search Console properties SHARED WITH THIS PROFILE, each with the exact property string every other Search Console tool takes and the connected account's permission level on it. CALL THIS FIRST. A property is EITHER "sc-domain:example.com" (a Domain property, covering every scheme and subdomain) OR the full URL-prefix form "https://example.com/" including scheme and trailing slash — Google treats those as different properties and one of them will 403, so resolve it here rather than guessing, and never pass a bare domain. THIS IS NOT EVERY PROPERTY THE GOOGLE ACCOUNT CAN SEE, deliberately: one login commonly holds a dozen clients' properties, so the user ticks which belong to THIS profile and any other one is refused by name. An empty list means nothing is ticked yet — say so and point the user at Connectors > Google Search Console > Manage accounts (or call list_connector_accounts / set_connector_accounts with provider "google_search_console"); never name or guess a property. A row whose permissionLevel is siteUnverifiedUser will refuse every later call. Read-only, 0 credits. Needs Google Search Console connected.
Aucun paramètre.
search_console_performance
What people searched for on Google, and what they clicked
THE REAL SEARCH TERMS — Google Search Console's performance report, and the most useful research tool here for writing copy. `dimensions:["query"]` returns the literal words people typed to reach this brand, with impressions, clicks, CTR and average position; `dimensions:["page","query"]` answers "which landing page already wins this demand", i.e. Where paid traffic should point. Every other dimension is available too: country, device, searchAppearance, date, hour. `preset:"questions"` (also ai_prompts, long_tail, how_to, comparisons, pricing, best_of, troubleshooting, definitions) lists the matching queries the site already shows up for, flags high-impression low-click ones and suggests adding each as a heading or FAQ with a direct answer. This is first-party MEASURED demand language, not a competitor's guess (an ad library) and not a model (a keyword planner), and it exists nowhere else: organic search terms left Google Analytics with "not provided" years ago. StartDate and endDate are REQUIRED and are exact YYYY-MM-DD in Pacific time — Google Analytics' relative forms like "28daysAgo" are NOT accepted anywhere in Search Console. THREE THINGS TO REPEAT WHENEVER YOU REPORT THESE NUMBERS: (1) rows are the TOP ones, not all of them, by Google's own statement; (2) anonymised queries are WITHHELD, so clicks summed per query will not equal the property total and that gap is not an error; (3) the default dataState "final" lags roughly 2-3 days, and "all" returns fresh partial dat…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| siteUrl | string | oui | the exact property string from list_search_console_sites — "sc-domain:example.com" or "https://example.com/", never a bare domain, and it must be one SHARED with this profile |
| startDate | string | oui | YYYY-MM-DD, required, Pacific time, inclusive |
| endDate | string | oui | YYYY-MM-DD, required, Pacific time, inclusive |
| dimensions | array<string> | non | group by any of query, page, country, device, searchAppearance, brandedClassification (branded vs non-branded queries), date, hour. Omit for one total row. An unknown name is refused by name rather than dropped. |
| type | string | non | web (default), image, video, news, discover, googleNews or webMultimodal |
| dimensionFilterGroups | array<object> | non | narrow the report, e.g. [{"filters":[{"dimension":"query","operator":"contains","expression":"buy"}]}]. dimension is one of query/page/country/device/searchAppearance/brandedClassification (expression BRANDED or NON_BRANDED) — date and hour are NOT filterable, they are the date range. operator is e… |
| preset | string | non | ready-made query filter: questions, ai_prompts, long_tail, how_to, comparisons, pricing, best_of, troubleshooting or definitions. Defaults dimensions to query+page, sorts by impressions and flags high-impression low-CTR rows with a suggested action. |
| aggregationType | string | non | auto (default), byPage, byProperty or byNewsShowcasePanel |
| dataState | string | non | final (default, lags 2-3 days), all (includes fresh partial data that WILL change), or hourlyAll |
| rowLimit | number | non | 1-25000, default 1000 |
| startRow | number | non | zero-based, for paging past rowLimit |
search_console_url_inspection
Is this page actually in Google?
THE LIVE INDEX STATUS OF ONE PAGE, straight from Google: the index verdict, coverage state, whether robots.txt allows it, which URL Google picked as canonical versus the one the page itself declares, when it was last crawled and as which crawler, plus rich-result and mobile-usability verdicts. This is the tool for "why is this page getting no traffic" — a page Google cannot crawl, or whose canonical Google has reassigned to a different URL, will never rank however good the copy is. THE URL MUST SIT INSIDE THE PROPERTY: a URL-prefix property covers only its own prefix, while an "sc-domain:" property covers every scheme and subdomain. Important: QUOTA — Google allows 2,000 inspections per DAY and 600 per minute PER SITE, and that is the CUSTOMER'S property quota, not ours: inspect the handful of URLs the question is actually about and NEVER loop this over a sitemap, a page list or a crawl. Read-only, 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| siteUrl | string | oui | the exact property string from list_search_console_sites, and it must be one SHARED with this profile |
| inspectionUrl | string | oui | the full URL to inspect, e.g. "https://example.com/pricing" — it must be under the property |
| languageCode | string | non | BCP-47 code for translated issue messages, e.g. "de-CH". Default en-US. |
list_search_console_sitemaps
List a property’s sitemaps, with submitted-vs-indexed counts
The sitemaps registered on a Search Console property: when each was last submitted and last downloaded by Google, whether Google has processed it yet, its error and warning counts, and per content type how many URLs it SUBMITTED against how many are INDEXED. That last pair is the fastest read on whether a site has an indexing problem rather than a ranking one. Pass `feedpath` for one sitemap instead of the list, or `sitemapIndex` to list the sitemaps inside an index file. An empty list is a real answer — the property has no sitemap registered — and is not a failure. Read-only, 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| siteUrl | string | oui | the exact property string from list_search_console_sites |
| feedpath | string | non | the FULL url of one sitemap, e.g. "https://example.com/sitemap.xml" |
| sitemapIndex | string | non | the FULL url of a sitemap INDEX, to list the sitemaps it contains |
submit_search_console_sitemap
Submit a sitemap to Google
Tell Google about a sitemap. `feedpath` is the sitemap's COMPLETE URL ("https://example.com/sitemap.xml"), never a path — Google addresses a sitemap by its full url. Re-submitting one that is already registered is harmless and simply re-notifies Google. THE ANSWER IS READ BACK FROM GOOGLE, not echoed from the request: it reports whether the sitemap is now actually registered, whether Google has processed it yet, and what errors and warnings it already carries. 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| siteUrl | string | oui | the exact property string from list_search_console_sites |
| feedpath | string | oui | the FULL sitemap URL, e.g. "https://example.com/sitemap.xml" |
delete_search_console_sitemap
Remove a sitemap from a Search Console property
Remove a sitemap from a property. THIS DOES NOT REMOVE THOSE PAGES FROM GOOGLE'S INDEX — it stops Google using that file to discover new ones, and it can be submitted again at any time, so it is reversible. CONFIRM-GATED: called without confirm it removes nothing and reports what the sitemap actually IS, read back from Google (its error and warning counts and how many URLs it covers), so you can check you are aiming at the right one. Re-run with confirm:true to proceed. 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| siteUrl | string | oui | the exact property string from list_search_console_sites |
| feedpath | string | oui | the FULL sitemap URL to remove |
| confirm | boolean | non | true to actually remove it. Without this nothing is removed and the sitemap is described back to you. |
add_search_console_site
Add a property to Search Console
Add a property to the connected Google account. TWO THINGS THAT MUST REACH THE USER, and the answer states both: (1) ADDING IS NOT VERIFYING — the property arrives with the account as an unverified user and EVERY read on it is refused until ownership is proven with a DNS record, an HTML file or a tag, which no API can do and which the user completes in Search Console itself; (2) the new property is NOT yet shared with this profile, so someone has to tick it under Connectors > Google Search Console > Manage accounts (or call list_connector_accounts with provider google_search_console, then set_connector_accounts) before any tool here can use it. The permission level is READ BACK from Google, so the answer says which of those two states it is actually in. 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| siteUrl | string | oui | "sc-domain:example.com" for a Domain property (covers every scheme and subdomain), or the full URL-prefix form "https://example.com/". These are different properties — pick deliberately. |
delete_search_console_site
Remove a property from Search Console
Remove a property from the connected Google account. THIS LOSES HISTORY: the account loses access to that property's stored Search Console performance data, and re-adding it later means verifying ownership from scratch — Google does NOT restore the 16-month window on re-add. Nothing about the site itself, its pages or its ranking changes. CONFIRM-GATED: the unconfirmed call removes nothing and describes what would be lost, including how many sitemaps this account can currently see on it. The property is also dropped from this brand's shared list, so it cannot linger as a tick pointing at something unreachable. 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| siteUrl | string | oui | the exact property string from list_search_console_sites |
| confirm | boolean | non | true to actually remove it |
list_bing_webmaster_sites
List the Bing Webmaster sites shared with this profile
The Bing Webmaster Tools sites SHARED WITH THIS PROFILE, each exactly as Bing holds it (e.g. "https://example.com"). CALL THIS FIRST — every other Bing tool takes that exact string. THIS IS NOT EVERY SITE THE CONNECTION CAN REACH: Microsoft issues one key per USER covering every site that Bing account verified, so the user ticks which belong to THIS profile and any other one is refused by name. An empty list means nothing is ticked yet — point the user at Connectors > Bing Webmaster Tools > Manage accounts (or call set_connector_accounts with provider "bing_webmaster") and never name or guess a site. A site flagged not verified will refuse every later call. Read-only, 0 credits.
Aucun paramètre.
bing_webmaster_traffic
Bing clicks and impressions
Bing clicks and impressions over time — for the whole site (mode "site", the default), for one page (mode "page", needs `url`), or for every page under one directory (mode "directory", needs `url`). An unknown mode is refused by name. Read-only, 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| siteUrl | string | oui | the exact site string from list_bing_webmaster_sites, and it must be one SHARED with this profile |
| mode | string | non | site (default) | page | directory |
| url | string | non | required for page and directory modes — the full URL |
| page | number | non | zero-based results page, directory mode |
bing_webmaster_query_stats
What people searched on Bing, and which pages they landed on
Use this when the user asks what people searched on Bing to reach their site, or which pages those searches landed on. Modes: "queries" (top search terms for the site, the default), "pages" (top pages), "pageQueries" (which queries brought traffic to one `page`), "queryPages" (which pages one `query` landed on), "queryPageDetail" (one query on one page, day by day). MICROSOFT UPDATES THIS DATA WEEKLY by their own statement, so it does not move day to day; do not report a flat week as a drop. An unknown mode is refused by name. Read-only, 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| siteUrl | string | oui | the exact site string from list_bing_webmaster_sites |
| mode | string | non | queries (default) | pages | pageQueries | queryPages | queryPageDetail |
| query | string | non | required for queryPages and queryPageDetail |
| page | string | non | the full page URL — required for pageQueries and queryPageDetail |
bing_webmaster_keywords
Keyword research with real impression volumes, no ad spend
Bing search impressions for any term. Modes: "keyword" (impressions for exactly this term over a date range), "related" (the same for terms Bing considers related — the one to use for expanding a seed into a list), "history" (the term's historical series). NOT SITE-SCOPED — these are Microsoft's signatures and they take no site, so it works for ANY term including a competitor's brand, and no property tick list applies. `country` AND `language` are BOTH REQUIRED and are deliberately never defaulted: a search volume with no market is unactionable, and picking one for you would answer confidently about the wrong country. Read-only, 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| q | string | oui | the keyword to look up, e.g. "running shoes" |
| mode | string | non | keyword (default) | related | history |
| country | string | oui | REQUIRED, e.g. "us" — there is no default and one will not be guessed |
| language | string | oui | REQUIRED, e.g. "en-US" |
| startDate | string | non | YYYY-MM-DD — required for keyword and related modes |
| endDate | string | non | YYYY-MM-DD — required for keyword and related modes |
bing_webmaster_crawl
Can Bing crawl this site?
Whether Bing can actually reach the site's pages: crawl statistics (mode "stats"), the URLs with problems (mode "issues", the default), one page's index detail (mode "page", needs `url`), a directory's (mode "directory"), or the crawl settings themselves (mode "settings"). Issue names are DECODED from Bing's bitmask into readable ones — Code301, Code302, Code4xx, Code5xx, BlockedByRobotsTxt, ContainsMalware, ImportantUrlBlockedByRobotsTxt, DnsErrors, TimeOutErrors — because the raw JSON hands back an integer that means nothing on its own, and a bit Microsoft has added since is reported as unknown rather than dropped. Microsoft notes it may take a few days for a FIXED issue to disappear from this list, so a listed issue is not proof it is still live. Read-only, 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| siteUrl | string | oui | the exact site string from list_bing_webmaster_sites |
| mode | string | non | issues (default) | stats | page | directory | settings |
| url | string | non | required for page and directory modes |
| page | number | non | zero-based results page, directory mode |
bing_webmaster_links
Inbound links as Bing sees them
Inbound links according to Bing: counts per page (mode "counts", the default), the inbound links pointing at one page (mode "page", needs `url`), or the pages the site owner has declared as connected (mode "connected"). Read-only, 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| siteUrl | string | oui | the exact site string from list_bing_webmaster_sites |
| mode | string | non | counts (default) | page | connected |
| url | string | non | required for page mode — the page whose inbound links you want |
| page | number | non | zero-based results page |
bing_webmaster_submission_quota
How many URLs can still be submitted to Bing today
How many URLs this site may still submit to Bing today and this month, plus the separate content-submission budget. BING SETS THIS PER SITE AND IT VARIES — Microsoft's own documented example allows 5 a day and 24 a month — so it is always read live and never assumed. Check it before promising anyone a bulk submission, because Bing rejects an over-quota batch as a WHOLE rather than taking what fits. Read-only, 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| siteUrl | string | oui | the exact site string from list_bing_webmaster_sites |
submit_bing_webmaster_urls
Submit URLs to Bing for indexing
Submit URLs to Bing for indexing: asks Bing to crawl new or changed pages. THE SITE'S REMAINING DAILY QUOTA IS READ FIRST and a batch that would exceed it is refused with the real number rather than half-submitted, because Bing rejects an over-quota batch as a whole and a partial failure leaves you unable to say which URLs made it. Bing accepts at most 500 per batch (Microsoft's own limit) and the site's daily quota is usually far lower. THE CONFIRMATION IS BING'S QUOTA COUNTER MOVING: its submit methods return no body at all, so the answer reports the counter before and after rather than claiming success from a 200. 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| siteUrl | string | oui | the exact site string from list_bing_webmaster_sites |
| urls | array<string> | oui | full URLs on THIS site — a URL on another host is refused before anything is submitted |
list_bing_webmaster_sitemaps
The sitemaps Bing has for this site
The sitemaps registered for this site — Bing calls them FEEDS — with the status, URL count, file size and last-crawled date Bing holds for each. This is the read to make BEFORE submitting or removing one, because both of those are addressed by the sitemap's full URL exactly as Bing stores it. Pass `feedUrl` to expand a sitemap INDEX into its child sitemaps (Microsoft's GetFeedDetails); an empty answer for a plain non-index sitemap is a real answer, not a failure. Read-only, 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| siteUrl | string | oui | the exact site string from list_bing_webmaster_sites |
| feedUrl | string | non | optional — the full URL of a sitemap INDEX, to list its children |
submit_bing_webmaster_sitemap
Register a sitemap with Bing
Register a sitemap with Bing so it discovers new and changed pages by itself — the durable twin of submit_bing_webmaster_urls, which spends a small per-site daily quota every time. Takes the sitemap's FULL URL, not a path. Bing accepts Sitemap, RSS 2.0, Atom 0.3, Atom 1.0 and plain text files (Microsoft's own list). A sitemap hosted on ANOTHER host is not refused — Bing allows that when the other host is also verified — but it is called out, because it is the likeliest reason one silently never crawls. SubmitFeed returns no body whatsoever, so the answer is read back from Bing's own feed list and reports what Bing says rather than that the call returned. 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| siteUrl | string | oui | the exact site string from list_bing_webmaster_sites |
| feedUrl | string | oui | the FULL sitemap URL, e.g. "https://example.com/sitemap.xml" |
remove_bing_webmaster_sitemap
Remove a sitemap from Bing
Remove a sitemap from Bing. GATED ON BLAST RADIUS, not just on intent: called WITHOUT `confirm` it removes nothing and reports what Bing says that sitemap actually carries — its URL count, status and type — and a sitemap carrying any URLs then ALSO needs `confirmUrlCount` set to that number. confirm:true proves you meant to remove something; the echoed count proves you aimed at the sitemap you inspected rather than one that merely shares a name. A sitemap Bing reports as empty stays a one-call removal. Removing it does NOT remove those pages from Bing's index — Bing simply stops using it to find new ones — and it can be submitted again at any time. If the read-back that confirms the removal cannot run, the answer says "could not tell", never "removed". 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| siteUrl | string | oui | the exact site string from list_bing_webmaster_sites |
| feedUrl | string | oui | the FULL sitemap URL to remove, exactly as list_bing_webmaster_sitemaps shows it |
| confirm | boolean | non | must be true; without it nothing is removed and you get the radius instead |
| confirmUrlCount | number | non | the URL count Bing reports for that sitemap — required when it carries any |
list_bing_webmaster_fetched_urls
What Bingbot fetched on demand
The URLs fetched on demand as Bingbot for this site, or one of them in detail (pass `url`) including what Bingbot actually received. This is how you see a page through the CRAWLER's eyes rather than a browser's — a robots block, a redirect chain or a JS-only page all look fine in a browser and wrong here. An empty list means nothing has been fetched on demand yet, which is a real answer and not a failure. Read-only, 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| siteUrl | string | oui | the exact site string from list_bing_webmaster_sites |
| url | string | non | optional — one full URL, for the stored detail of that fetch |
fetch_bing_webmaster_url
Ask Bingbot to fetch a page now
Ask Bingbot to fetch one URL now, so you can then read back what the crawler actually received with list_bing_webmaster_fetched_urls. THE FETCH IS QUEUED, NOT PERFORMED WHILE YOU WAIT — so "it has not appeared in the fetched list yet" is the normal FIRST answer, and it is reported as "requested, not yet done" rather than as a failure or as success. A URL that is not on this site is refused before anything is requested. 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| siteUrl | string | oui | the exact site string from list_bing_webmaster_sites |
| url | string | oui | the full URL on THIS site for Bingbot to fetch |
submit_bing_webmaster_content
Hand Bing a page's content directly
Give Bing a page's content DIRECTLY instead of waiting for it to crawl — for a page Bingbot renders badly or cannot reach. YOU PASS THE HTML AND NOTHING ELSE: Microsoft's httpMessage parameter is a base64 raw HTTP response whose status line and every header must end CRLF with exactly two CRLFs before the body, and an LF-only message is accepted with a 200 while indexing nothing useful — a silent wrong answer — so Hermoso builds that framing and computes Content-Length itself. Optional `structuredData` carries JSON-LD for non-HTML content such as images or PDFs; `dynamicServing` is left at "none" unless the site really does serve different content per device, because declaring otherwise is a claim about the customer's infrastructure. This spends the CONTENT submission budget, which is separate from the URL one and is read first — check both with bing_webmaster_submission_quota. Max 10MB per submission. 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| siteUrl | string | oui | the exact site string from list_bing_webmaster_sites |
| url | string | oui | the full URL on this site that this content belongs to |
| html | string | oui | the page content Bing should index for that URL |
| status | number | non | HTTP status for the message, default 200 |
| contentType | string | non | default text/html |
| headers | object | non | extra response headers. Content-Length is always computed and never taken from you. |
| structuredData | string | non | optional JSON-LD, for non-HTML content types |
| dynamicServing | string | non | none (default) | pc-laptop | mobile | amp | tablet | non-visual-browser |
add_bing_webmaster_site
Add a site to the Bing Webmaster account
Add a site to the connected Bing Webmaster account. Important: ADDING IS NOT VERIFYING, and saying so is most of this tool's value: the site arrives UNVERIFIED and every read on it is refused until an ownership proof is placed on the site itself — an XML file at the root, a meta tag in the home page , or a CNAME DNS record — which no API can do. Place one, then call verify_bing_webmaster_site. Microsoft documents that adding a site which is already there does NOT error, so a success here is not even evidence anything changed, which is why the answer is read back from Bing's site list. It is also NOT shared with this profile until the user ticks it under Connectors > Bing Webmaster Tools > Manage accounts (or call list_connector_accounts with provider bing_webmaster, then set_connector_accounts). 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| siteUrl | string | oui | the site with its scheme, e.g. "https://example.com" |
verify_bing_webmaster_site
Ask Bing to verify site ownership
Ask Bing to CHECK the ownership proof for a site already on the account. IT DOES NOT PLACE THE PROOF — nothing can over an API. The user puts an XML file at the site root, a meta tag in the home page , or a CNAME DNS record, and Bing Webmaster Tools shows the exact filename and value for each. A negative answer therefore means "the proof is not in place yet", never that Hermoso or the connection failed, and the reply says which three options exist. Bing refuses to verify a site that was never added, which is knowable for free, so that is refused here with add_bing_webmaster_site named as the fix. The verdict is read back from the site LIST rather than taken from the call's own return value — the two can disagree. 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| siteUrl | string | oui | the site to verify, exactly as it was added |
remove_bing_webmaster_site
Remove a site from the Bing Webmaster account
Remove a site from the connected Bing Webmaster account — the heaviest thing in this connector. GATED ON BLAST RADIUS: called WITHOUT `confirm` it removes nothing and reports whether Bing holds the site as VERIFIED and how many sitemaps are registered on it; a site that is verified or has any sitemaps then ALSO needs `confirmSiteUrl` set to that exact site string, which is a fact you only have after inspecting it. A site that was never verified and has no sitemaps is the empty radius and stays a one-call removal — friction that does not scale with the loss just gets routed around. RE-ADDING A VERIFIED SITE LATER MEANS PROVING OWNERSHIP FROM SCRATCH; no API restores it. Nothing about the site itself or its Bing ranking changes. The site is also dropped from this brand's shared list, and if the read-back that confirms the removal cannot run the answer says "could not tell", never "removed". 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| siteUrl | string | oui | the exact site string from list_bing_webmaster_sites |
| confirm | boolean | non | must be true; without it nothing is removed and you get the radius instead |
| confirmSiteUrl | string | non | the exact site string again — required unless the site is unverified with no sitemaps |
submit_indexnow
Tell the IndexNow search engines a page changed
Ping the IndexNow search engines that pages were added, updated or deleted — Bing, Yandex, Naver, Seznam.cz and Yep, all reached by ONE submission. Important: GOOGLE DOES NOT PARTICIPATE IN INDEXNOW and never has, so say that plainly rather than letting anyone expect a Google effect; for Google use submit_search_console_sitemap and search_console_url_inspection. NO CONNECTION IS NEEDED, because the credential belongs to the USER: they generate a key, host it as a plain text file on their own web server, and any engine fetching that file is the whole ownership check. HERMOSO VERIFIES THAT FILE BEFORE SUBMITTING — that it is reachable and that its contents are exactly the key — and refuses with an explanation if not, because we have no write access to a customer's web root and cannot place it for them. If the key file is moved off the site root with `keyLocation`, it authorises ONLY URLs under that directory, and URLs outside it are refused before anything is sent (IndexNow rejects the whole batch for one out-of-scope URL). Up to 10,000 URLs per submission, all on the one host. HTTP 202 is a SUCCESS ("received, validation pending"), not a reason to retry. 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| host | string | oui | the bare hostname that owns these URLs, e.g. "example.com" |
| key | string | oui | the IndexNow key — 8-128 letters, numbers and dashes — ALREADY hosted as .txt on that site |
| urls | array<string> | oui | the full URLs that were added, updated or deleted, all on `host` |
| keyLocation | string | non | the full URL of the key file if it is NOT at the site root. Moving it NARROWS the key to that directory only. |
list_posthog_projects
List the PostHog projects this key can see
The PostHog projects the connected personal API key can see, and which ONE this profile 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 profile to a different project, the user reconnects PostHog under Connectors > PostHog, or with connect_connector, with that project id. Read-only, 0 credits.
Aucun paramètre.
posthog_query
Ask PostHog a question in HogQL
ASK POSTHOG A QUESTION IN HogQL — their SQL dialect over the `events`, `persons` and `sessions` tables. Use it for per-user funnels, retention and custom breakdowns, 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| query | string | oui | a HogQL (ClickHouse-flavoured SQL) query — one bounded question, never a page of an export |
| limit | number | non | 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 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| insightId | string | non | omit to list the saved insights and their ids |
| refresh | boolean | non | default true (recompute if stale); false = return the cached result even if stale |
list_posthog_session_recordings
List PostHog session replays
SESSION REPLAYS. 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| limit | number | non | 1–100, default 20 |
posthog_persons
Look up people in PostHog
Look up PEOPLE in PostHog by distinct id, email or a free-text search, with their properties. Use it to resolve a specific customer, then use their distinct id inside posthog_query to see exactly what that one human did. Read-only, 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| distinctId | string | non | PostHog distinct id |
| string | non | exact email match | |
| search | string | non | free-text search across person properties |
| limit | number | non | 1–100, default 20 |
mixpanel_insights
Read a saved Mixpanel report
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| bookmarkId | string | oui | the saved report's bookmark id, from its URL in Mixpanel |
mixpanel_retention
Mixpanel retention cohorts
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. Warning: 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| fromDate | string | non | YYYY-MM-DD (default 30 days ago) |
| toDate | string | non | YYYY-MM-DD (default today) |
| retentionType | enum: "birth" | "compounded" | non | "birth" = cohort by first occurrence of bornEvent; "compounded" = anyone active |
| bornEvent | string | non | the event that puts someone into the cohort — REQUIRED by Mixpanel when retentionType is "birth", which is the default |
| event | string | non | the returning event; omitted means any event |
| unit | enum: "day" | "week" | "month" | non | the interval unit (default day) |
| interval | number | non | 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 | non | HOW MANY buckets to return (default 1). A "0th" bucket is always included for events inside the first interval |
| bornWhere | string | non | a Mixpanel segmentation expression filtering who ENTERS the cohort (the born event) |
| where | string | non | a Mixpanel segmentation expression filtering the RETURNING event |
| on | string | non | 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 | non | top N segmentation values; does nothing unless "on" is set |
| unboundedRetention | boolean | non | accumulate right-to-left, so day N means "retained on day N or any day after" |
mixpanel_segmentation
Mixpanel event segmentation (maintenance mode)
One Mixpanel event over time, optionally broken down by a property (`on`) and filtered (`where`). Warning: 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| event | string | oui | a SINGLE event name — not an array |
| fromDate | string | non | YYYY-MM-DD (default 30 days ago) |
| toDate | string | non | YYYY-MM-DD (default today) |
| on | string | non | a segmentation expression to break down by, e.g. properties["$browser"] |
| where | string | non | a segmentation expression to filter by |
| unit | enum: "minute" | "hour" | "day" | "month" | non | NOTE: Mixpanel offers no "week" on segmentation, unlike retention |
| interval | number | non | the number of days each bucket covers — Mixpanel offers this in lieu of "unit" when "type" is not "general" |
| type | enum: "general" | "unique" | "average" | non | count type: general (event count, default), unique (distinct users) or average |
| limit | number | non | 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)
A saved Mixpanel funnel. Call with NO id to LIST the saved funnels and their ids; call with funnelId to read its conversion data. Warning: 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| funnelId | string | non | omit to list the saved funnels and their ids |
| fromDate | string | non | YYYY-MM-DD (default 30 days ago) |
| toDate | string | non | YYYY-MM-DD (default today) |
| length | number | non | the conversion window, counted in lengthUnits — the TOTAL may not exceed 90 days. Omit to use the funnel own saved value |
| lengthUnit | enum: "second" | "minute" | "hour" | "day" | non | the unit "length" is counted in (Mixpanel offers no week or month here). Omit to use the funnel own saved value |
| unit | enum: "day" | "week" | "month" | non | the bucket the results are grouped into |
| interval | number | non | the number of days each bucket covers — an alternative to "unit" (default 1) |
| on | string | non | a property expression to break the funnel down by |
| where | string | non | a segmentation expression to filter by |
| limit | number | non | 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)
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| event | string | non | pass an event name to list ITS properties instead of listing events |
| window | enum: "vocabulary" | "today" | non | "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 | enum: "general" | "unique" | "average" | non | count type for the event amounts: general (default), unique or average |
| limit | number | non | Mixpanel own defaults are 255 for the vocabulary, 100 for today and 10 for properties |
amplitude_segmentation
Amplitude event segmentation
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| events | array<any> | non | one or two event specs: a plain name, or {eventType, filters:[{subprop_type,subprop_key,subprop_op,subprop_value}], groupBy:[…]} |
| event | string | non | shorthand for a single event name |
| metric | enum: "uniques" | "totals" | "pct_dau" | "average" | "histogram" | "sums" | "value_avg" | "formula" | non | default uniques |
| formula | string | non | required when metric is "formula" |
| start | string | non | YYYYMMDD or YYYY-MM-DD (default 30 days ago) |
| end | string | non | YYYYMMDD or YYYY-MM-DD (default today) |
| interval | number | non | -300000 realtime, -3600000 hourly, 1 daily, 7 weekly, 30 monthly |
| groupBy | string | non | user property or event property to break the series down by, e.g. gp:utm_campaign or country |
| groupBy2 | string | non | a SECOND group-by (Amplitude's g2), e.g. groupBy gp:utm_campaign + groupBy2 country |
| segments | array<object> | non | FILTER to only these users (Amplitude's segment `s`): [{prop:'gp:utm_campaign', op:'is', values:['summer']}]. op is one of is, is not, contains, does not contain, less, less or equal, greater, greater or equal, set is, set is not. Custom user properties are gp: ; built-ins are country, city, region… |
| limit | number | non | ≤1000 |
amplitude_funnel
Amplitude funnel (conversion + drop-off)
AMPLITUDE FUNNELS: conversion and drop-off across ordered steps. 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| events | array<any> | oui | ordered steps — plain event names, or {eventType, filters:[…]} objects |
| mode | enum: "ordered" | "unordered" | "sequential" | non | default ordered |
| conversionWindowSeconds | number | non | Amplitude default is 2592000 (30 days) — say which window you used |
| start | string | non | YYYYMMDD or YYYY-MM-DD (default 30 days ago) |
| end | string | non | YYYYMMDD or YYYY-MM-DD (default today) |
| groupBy | string | non | at most ONE — a second is refused |
| users | enum: "active" | "new" | non | 'new' = first-time users only (the acquisition funnel); Amplitude's default is active |
| segments | array<object> | non | FILTER to only these users (Amplitude's segment `s`): [{prop:'gp:utm_campaign', op:'is', values:['summer']}]. op is one of is, is not, contains, does not contain, less, less or equal, greater, greater or equal, set is, set is not. Custom user properties are gp: ; built-ins are country, city, region… |
amplitude_retention
Amplitude retention
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| startEvent | string | non | "_new" (default) or an event name |
| returnEvent | string | non | "_active" (default) or an event name |
| start | string | non | YYYYMMDD or YYYY-MM-DD (default 30 days ago) |
| end | string | non | YYYYMMDD or YYYY-MM-DD (default today) |
| retentionMode | enum: "n-day" | "bracket" | "rolling" | non | n-day, bracket (needs brackets) or rolling |
| brackets | array<number> | non | required when retentionMode is "bracket" |
| interval | number | non | 1 daily, 7 weekly, 30 monthly |
| groupBy | string | non | ONE property to group by |
| segments | array<object> | non | FILTER to only these users (Amplitude's segment `s`): [{prop:'gp:utm_campaign', op:'is', values:['summer']}]. op is one of is, is not, contains, does not contain, less, less or equal, greater, greater or equal, set is, set is not. Custom user properties are gp: ; built-ins are country, city, region… |
amplitude_active_users
Amplitude active / new users
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| start | string | non | YYYYMMDD or YYYY-MM-DD (default 30 days ago) |
| end | string | non | YYYYMMDD or YYYY-MM-DD (default today) |
| metric | enum: "active" | "new" | non | default active |
| interval | number | non | 1 daily, 7 weekly, 30 monthly |
| groupBy | string | non | ONE property to group by |
| segments | array<object> | non | FILTER to only these users (Amplitude's segment `s`): [{prop:'gp:utm_campaign', op:'is', values:['summer']}]. op is one of is, is not, contains, does not contain, less, less or equal, greater, greater or equal, set is, set is not. Custom user properties are gp: ; built-ins are country, city, region… |
amplitude_user_activity
One person’s Amplitude activity stream
ONE PERSON'S ACTIVITY STREAM in Amplitude. 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| user | string | oui | a numeric Amplitude ID to read activity, or a user id / device id / user-id prefix to search |
| search | boolean | non | force a search even when the value is numeric |
| limit | number | non | maximum events to return, up to 1000 |
list_amplitude_events
Amplitude taxonomy (declared events and properties)
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| category | enum: "category" | "event" | "event-property" | "user-property" | "group-property" | non | default "event" |
amplitude_chart
Read a saved Amplitude chart
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 the saved-chart read for Amplitude, 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| chartId | string | oui | the saved chart's id, or its full URL — the id is the segment after /chart/ |
list_amplitude_annotations
List Amplitude chart annotations
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| category | string | non | category NAME — does not combine with chartId |
| chartId | string | non | only annotations shown on this chart — does not combine with category |
| start | string | non | ISO 8601, e.g. '2026-08-01T00:00:00+00:00' |
| end | string | non | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| label | string | oui | the title shown on the chart, e.g. "Meta: summer UGC campaign live" |
| start | string | oui | ISO 8601 WITH time and offset, e.g. '2026-08-18T14:30:00+00:00' — a bare YYYYMMDD is refused |
| end | string | non | ISO 8601 — only for an annotation that spans a period |
| chartId | string | non | omit for a GLOBAL annotation that appears on every chart in the project |
| category | string | non | an EXISTING category name in Amplitude — they answer 404 for one that does not exist |
| details | string | non | longer body text for the annotation |
list_posthog_annotations
List PostHog annotations
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| limit | number | non | 1–100, default 25 |
| offset | number | non | for the next page — this tool does not paginate for you |
| search | string | non | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| content | string | oui | the text shown on the chart, ≤8192 characters |
| dateMarker | string | non | ISO 8601 — defaults to now, which is right for "this just went live" |
| scope | enum: "project" | "organization" | "dashboard" | "dashboard_item" | non | default project. PostHog's `recording` scope is deprecated and rejected by PostHog |
| creationType | enum: "USR" | "GIT" | non | USR = a person wrote it, GIT = a bot or deployment did |
| dashboardId | number | non | REQUIRED when scope is "dashboard" |
| insightId | number | non | REQUIRED when scope is "dashboard_item" — the numeric id of the insight |
list_mixpanel_annotations
List Mixpanel annotations
The markers already on this Mixpanel project's charts (launches, campaigns, incidents) with their date, text, tags and who wrote them. READ THESE BEFORE EXPLAINING A CHANGE IN A CHART: an annotation is an explanation somebody already wrote down. fromDate / toDate (YYYY-MM-DD, both inclusive) narrow the window. Read-only, 0 credits. Needs Mixpanel connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| fromDate | string | non | YYYY-MM-DD, inclusive |
| toDate | string | non | YYYY-MM-DD, inclusive |
create_mixpanel_annotation
Mark the Mixpanel timeline
MARK THE MIXPANEL TIMELINE: write what just happened into Mixpanel at the moment it happened, so every chart afterwards shows it in place. The same closed loop as the PostHog and Amplitude annotation tools, worth reaching for unprompted after a campaign goes live, a creative is swapped or a landing page changes. `date` is "YYYY-MM-DD HH:mm:ss" (Mixpanel's own format, charted in the PROJECT's timezone), "YYYY-MM-DD", or an ISO timestamp with its offset (written in the project's timezone so the mark sits at that exact instant, read back to prove it); omit it for NOW. tags are numeric annotation-tag ids. The stored row is read back. Mixpanel only lets a service account with at least the ANALYST role write annotations; a lower role is refused by name, and that is a role change in Mixpanel, not a reconnect. 0 credits. Needs Mixpanel connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| description | string | oui | the text shown on the chart, e.g. "Meta: summer UGC campaign went live" |
| date | string | non | "YYYY-MM-DD HH:mm:ss", "YYYY-MM-DD" or ISO with offset; default now |
| tags | array<number> | non | annotation-tag ids |
update_mixpanel_annotation
Edit a Mixpanel annotation
Change the text or tags of a Mixpanel annotation (annotationId from list_mixpanel_annotations). Mixpanel cannot move an annotation to a new date; to fix a wrong date, delete it and create a new one. The edited row is read back. Needs the ANALYST role on the service account. 0 credits. Needs Mixpanel connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| annotationId | number | oui | from list_mixpanel_annotations |
| description | string | non | new annotation text; empty text is refused |
| tags | array<number> | non | annotation-tag ids |
delete_mixpanel_annotation
Delete a Mixpanel annotation
Permanently delete a Mixpanel annotation from every chart in the project. WITHOUT confirm:true nothing is deleted and you get the exact annotation that would go, to show the user; call again with confirm:true only after they say yes. The delete is verified by reading it back. Needs the ANALYST role on the service account. 0 credits. Needs Mixpanel connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| annotationId | number | oui | from list_mixpanel_annotations |
| confirm | boolean | non | true only after the user approved deleting this exact annotation |
list_posthog_surveys
PostHog surveys
PostHog SURVEYS. Without surveyId: the project's surveys (name, type, running / complete / draft / archived, dates, questions); filter by status or search. With surveyId: that survey's questions (with their ids, for posthog_survey_responses) plus its stats: shown / dismissed / sent counts, response and dismissal rates, and per-question distributions and rating averages. NEEDS THE OPTIONAL survey:read SCOPE on the PostHog personal API key: a key without it connects fine and works for everything else, and this tool then says exactly which box to tick in PostHog > Settings > Personal API keys. That is never a reconnect. Read-only, 0 credits. Needs PostHog connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| surveyId | string | non | one survey: its questions and stats |
| status | enum: "running" | "complete" | "draft" | non | only surveys in this state |
| search | string | non | match survey names containing this text |
| archived | boolean | non | PostHog archived filter: true or false; omit to leave it unfiltered |
| limit | number | non | 1-100, default 25 |
| offset | number | non | skip this many surveys; use the nextOffset from the previous reply |
| dateFrom | string | non | stats window start, ISO |
| dateTo | string | non | stats window end, ISO |
posthog_survey_responses
PostHog survey responses
THE ANSWERS people gave a PostHog survey, with the QUESTION TEXT resolved beside each answer: who (distinct_id), when, country, device and the page they were on. The customers' own words: the best raw input for ad hooks, angles and objections. questionId narrows to one question; with scoreLte / scoreGte on a rating question it pulls e.g. NPS detractors (scoreLte 6) or promoters (scoreGte 9). since / until are ISO timestamps. One page (limit 1-500, default 100) and the next offset when there is more. NEEDS THE OPTIONAL survey:read SCOPE on the PostHog personal API key (plus query:read, which every connection already has); without it this tool names the box to tick in PostHog, never a reconnect. Read-only, 0 credits. Needs PostHog connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| surveyId | string | oui | from list_posthog_surveys |
| questionId | string | non | one question id from the survey (see list_posthog_surveys with surveyId) |
| scoreLte | number | non | needs questionId; e.g. 6 for NPS detractors |
| scoreGte | number | non | needs questionId; e.g. 9 for NPS promoters |
| since | string | non | ISO timestamp |
| until | string | non | ISO timestamp |
| excludeArchived | boolean | non | true = leave out responses to archived questions |
| limit | number | non | 1-500, default 100 |
| offset | number | non | skip this many responses; use the nextOffset from the previous reply |
list_mixpanel_cohorts
List saved Mixpanel cohorts
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.
Aucun paramètre.
mixpanel_profiles
Read the people in a Mixpanel cohort
THE PEOPLE in Mixpanel, with their profile properties. 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| cohortId | string | non | a numeric cohort id from list_mixpanel_cohorts |
| where | string | non | a Mixpanel segmentation expression over profile properties, e.g. properties["$city"] == "London" |
| distinctId | string | non | one person |
| distinctIds | array<string> | non | several people by distinct id |
| outputProperties | array<string> | non | only return these properties — strongly recommended, it is much faster and much smaller |
| dataGroupId | string | non | group key — for GROUP profiles rather than user profiles |
| page | number | non | pages start at ZERO; any page above 0 REQUIRES sessionId |
| sessionId | string | non | from the previous page — required for page > 0 |
| includeAllUsers | boolean | non | only applies alongside cohortId; false = only distinct ids that actually have a profile |
list_vercel_projects
List Vercel projects
The brand's Vercel projects (its websites): name, id, framework, production URL and state, the latest deployment (URL, state, target, when), the linked git repo, and whether Web Analytics and Speed Insights are on. search filters by project name. Read-only, free. Needs Vercel connected (Connectors > Vercel, or connect_connector with an access token).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| search | string | non | part of a project name |
| limit | number | non | 1-50, default 20 |
| cursor | string | non | nextCursor from a previous call |
list_vercel_deployments
List Vercel deployments
Deployments on the brand's Vercel account, newest first: URL, state (READY, BUILDING, QUEUED, ERROR, CANCELED...), target (production or preview), when it was created and became ready, the commit message and Vercel's inspector link. Filter by projectId, target or state, or pass deploymentId (an id or a deployment URL) to read one, e.g. to see whether a page you just deployed is READY. Read-only, free. Needs Vercel connected (Connectors > Vercel, or connect_connector with an access token).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| projectId | string | non | project id or name |
| deploymentId | string | non | read ONE deployment by id or URL |
| target | enum: "production" | "preview" | "staging" | non | filter by environment: production, preview or staging |
| state | enum: "BLOCKED" | "BUILDING" | "CANCELED" | "DELETED" | "ERROR" | "INITIALIZING" | "QUEUED" | "READY" | non | filter to deployments in this state |
| limit | number | non | 1-50, default 20 |
| until | string | non | the nextCursor a previous page returned — the next (older) page |
list_vercel_domains
List Vercel domains
The domains on the brand's Vercel account (verified or not, when they expire), or with projectId the domains assigned to one project (and any redirect or git branch on them). Read-only, free. Needs Vercel connected (Connectors > Vercel, or connect_connector with an access token).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| projectId | string | non | project id or name, for that project's domains |
| limit | number | non | 1-50, default 20 |
vercel_web_analytics
Vercel Web Analytics
Vercel WEB ANALYTICS for one project: page views and unique visitors over a window (default the last 30 days, production traffic), and with `by` a breakdown by requestPath (which pages), referrerHostname (where visitors came from), country, deviceType, osName, browserName, route, utmSource / utmMedium / utmCampaign / utmContent / utmTerm (which campaigns and ads brought them), or a time step (day, week, month). Use it to see which landing pages and ad campaigns actually bring traffic. Needs Web Analytics turned on for the project in Vercel. Read-only, free. Needs Vercel connected (Connectors > Vercel, or connect_connector with an access token).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| projectId | string | oui | project id or name (list_vercel_projects) |
| by | string | non | one or TWO comma-separated dimensions (at most one time step): requestPath, referrerHostname, country, deviceType, osName, browserName, route, utmSource, utmMedium, utmCampaign, utmContent, utmTerm, environment, flags, flags/ , hour, day, week, month, year — e.g. 'day,utmCampaign' |
| days | number | non | 1-366, default 30 |
| since | string | non | YYYY-MM-DD (instead of days) |
| until | string | non | YYYY-MM-DD (default now) |
| limit | number | non | rows in the breakdown, 1-100, default 10 |
| filter | string | non | Vercel's OData filter, e.g. utmSource eq 'facebook' |
vercel_event_analytics
Vercel custom events (conversions)
Vercel CUSTOM EVENTS, the CONVERSIONS on a Vercel-hosted site (signups, purchases, any track('Name') from @vercel/analytics): the count and unique visitors over a window, and with `by` a breakdown by eventName, eventData/ (e.g. eventData/plan), utmSource / utmMedium / utmCampaign / utmContent / utmTerm (which ad or campaign drove the conversion), requestPath, country and the rest, or a time step. Up to TWO at once, e.g. by 'utmCampaign,eventName' or 'day,utmCampaign'. eventName narrows to one event. This is the conversion half of an ad report for a landing page on Vercel; vercel_web_analytics is the traffic half. Custom events need Web Analytics on and a Vercel Pro or Enterprise plan. Read-only, free. Needs Vercel connected (Connectors > Vercel, or connect_connector with an access token).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| projectId | string | oui | project id or name (list_vercel_projects) |
| eventName | string | non | only this event, e.g. 'Signup' |
| by | string | non | one or TWO comma-separated dimensions: eventName, eventData, eventData/ , utmSource, utmMedium, utmCampaign, utmContent, utmTerm, requestPath, referrerHostname, country, deviceType, osName, browserName, route, environment, flags, flags/ , or one time step hour/day/week/month/year |
| days | number | non | 1-366, default 30 |
| since | string | non | YYYY-MM-DD (instead of days) |
| until | string | non | YYYY-MM-DD (default now) |
| limit | number | non | rows in the breakdown, 1-100, default 10 |
| filter | string | non | Vercel's OData filter, e.g. utmSource eq 'facebook' |
deploy_vercel_page
Deploy a page to Vercel
Publish a STATIC landing page to the brand's Vercel account from HTML (it becomes index.html) or a few files [{file, data, encoding:'utf-8'|'base64'}], up to 50 files and 4 MB. project names the Vercel project (created if it does not exist; it becomes part of the URL). target 'preview' (default) makes a new preview URL and leaves the live site alone; 'production' REPLACES what the project's domains serve. WITHOUT confirm:true nothing is sent and you get the exact preview to show the user; call again with confirm:true only after they say yes. The answer is Vercel's own deployment row (URL and state); a new deployment is QUEUED or BUILDING for a moment, so read it back with list_vercel_deployments deploymentId until READY. Free. Needs Vercel connected (Connectors > Vercel, or connect_connector with an access token).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| project | string | oui | Vercel project name, e.g. spring-sale |
| html | string | non | the full HTML of the page |
| files | array<object> | non | instead of (or as well as) html: relative paths with their content |
| target | enum: "preview" | "production" | non | default preview |
| confirm | boolean | non | true only after the user approved this exact deploy |
delete_vercel_deployment
Delete a Vercel deployment
PERMANENTLY delete one Vercel deployment: its URL stops working and Vercel has no undo. Without confirm:true nothing is deleted and you get the deployment it would delete (URL, target, state) to show the user; a production deployment the domains still serve takes the site down. Call again with confirm:true only after the user says yes to that exact deployment. Free. Needs Vercel connected (Connectors > Vercel, or connect_connector with an access token).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| deploymentId | string | oui | from list_vercel_deployments |
| confirm | boolean | non | true only after the user approved deleting this exact deployment |
list_trade_desk_advertisers
List Trade Desk advertisers
The Trade Desk advertisers shared with this brand (set_connector_accounts with provider "trade_desk" changes which): id, name, currency. Only these are usable. Read-only, free.
Aucun paramètre.
list_trade_desk_campaigns
List Trade Desk campaigns
The brand's Trade Desk campaigns on one advertiser: id, name, budget, dates, archived or not. advertiserId is optional when one advertiser is shared with this brand. A campaign delivers only through its enabled ad groups (list_trade_desk_ad_groups). Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| advertiserId | string | non | Trade Desk advertiser id |
| search | string | non | name search |
| includeArchived | boolean | non | |
| limit | number | non | up to 2000, default 500 |
list_trade_desk_ad_groups
List Trade Desk ad groups
The ad groups in one Trade Desk campaign: id, name, ENABLED or paused, budget, daily budget, base and max bid CPM, and the creatives each serves. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| campaignId | string | oui | from list_trade_desk_campaigns |
| includeArchived | boolean | non |
list_trade_desk_creatives
List Trade Desk creatives
The creatives on one Trade Desk advertiser (id, name, type), to put on an ad group. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| advertiserId | string | non | |
| limit | number | non |
create_trade_desk_campaign
Create a Trade Desk campaign (cannot spend yet)
Create a Trade Desk campaign that maximizes reach: name, goal awareness (Display, default) or video_views (Video), optional LIFETIME budget (paced evenly), startDate, endDate. It is created with NO ad groups, so it spends nothing until ad groups built in The Trade Desk are enabled (set_trade_desk_status). Read back from The Trade Desk. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| advertiserId | string | non | |
| name | string | oui | |
| goal | enum: "awareness" | "video_views" | "audio" | "ctv" | "native" | "dooh" | non | default awareness |
| budget | number | non | lifetime, advertiser currency |
| startDate | string | non | YYYY-MM-DD, default today |
| endDate | string | non | |
| description | string | non |
update_trade_desk_campaign
Edit a Trade Desk campaign
Rename a Trade Desk campaign, change its description, or move its end date. A new end date changes how long it can spend, so it needs confirm:true after the user says yes. Budgets live on flights and ad groups (update_trade_desk_ad_group). Read back. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| campaignId | string | oui | |
| name | string | non | |
| description | string | non | |
| endDate | string | non | YYYY-MM-DD |
| confirm | boolean | non |
update_trade_desk_ad_group
Edit a Trade Desk ad group
Change a Trade Desk ad group: name, budget, dailyBudget, baseBidCpm, maxBidCpm (each changes spend, so confirm:true after the user says yes), or creativeIds (the creatives it serves; the list REPLACES the old one, so leaving one out takes it off the ad group). Read back. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adGroupId | string | oui | |
| name | string | non | |
| budget | number | non | |
| dailyBudget | number | non | |
| baseBidCpm | number | non | |
| maxBidCpm | number | non | |
| creativeIds | array<string> | non | |
| confirm | boolean | non |
set_trade_desk_status
Pause or enable Trade Desk ad groups
level adgroup: status active (starts spending, needs confirm:true after the user says yes) or paused. level campaign: paused switches off every enabled ad group in it; a campaign has no on/off switch of its own, so active is refused (enable its ad groups instead). Read back. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| level | enum: "campaign" | "adgroup" | non | |
| campaignId | string | non | |
| adGroupId | string | non | |
| status | enum: "active" | "paused" | oui | |
| confirm | boolean | non |
archive_trade_desk_object
Archive a Trade Desk campaign or ad group
ARCHIVE a Trade Desk campaign or ad group. PERMANENT at The Trade Desk (a campaign takes every ad group with it), so it needs confirm:true after the user says yes; set_trade_desk_status paused stops spending without it. Read back. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| level | enum: "campaign" | "adgroup" | non | |
| campaignId | string | non | |
| adGroupId | string | non | |
| confirm | boolean | non |
list_taboola_ads_campaigns
List Taboola campaigns
The brand's Taboola campaigns: id, name, active or paused, status, approval, CPC, daily cap and spending limit. Needs the Backstage API credentials on the Taboola card (created in Taboola Ads, API Keys). Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| account | string | non | when the credentials reach several accounts |
taboola_ads_report
Taboola campaign performance
Taboola performance per campaign for a date range (from / to YYYY-MM-DD, or days, default 7, up to 92): spend, clicks, impressions, CTR, CPC, conversions and conversion value, with totals. Taboola can still update conversions for 30 days. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| from | string | non | |
| to | string | non | |
| days | number | non | |
| account | string | non |
list_outbrain_ads_marketers
List Outbrain marketers
The Outbrain marketers (advertiser accounts) shared with this brand (set_connector_accounts with provider "outbrain_ads" changes which): id and name. Only these are usable. Read-only, free.
Aucun paramètre.
list_outbrain_ads_budgets
List Outbrain budgets
The budgets on one Outbrain marketer: id, name, amount, amount left and spent, type (CAMPAIGN one-time, MONTHLY, DAILY), pacing, daily target, end date. marketerId is optional when one marketer is shared with this brand. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| marketerId | string | non | |
| detachedOnly | boolean | non | only budgets no campaign uses yet |
list_outbrain_ads_campaigns
List Outbrain campaigns
The brand's Outbrain campaigns on one marketer: id, name, ENABLED or paused, on air or why not, CPC, objective, amount spent and its budget. marketerId is optional when one marketer is shared with this brand. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| marketerId | string | non | |
| includeArchived | boolean | non | |
| limit | number | non | up to 500, default 200 |
list_outbrain_ads_promoted_links
List Outbrain promoted links
The promoted links (the ads) in one Outbrain campaign: id, headline, url, enabled or paused, approval status and whether it is on air. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| campaignId | string | oui | from list_outbrain_ads_campaigns |
| enabled | boolean | non | only enabled (true) or only paused (false) |
| limit | number | non |
outbrain_ads_report
Outbrain performance
Outbrain performance for a date range (from / to YYYY-MM-DD, or days, default 7, up to a year), by campaign (default) or by date (a row a day): spend, impressions, clicks, CTR, average CPC, conversions, CPA and conversion value, with totals. campaignId narrows it to one campaign. Reports run 10-30 minutes behind and allow 10 reads a minute per marketer. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| by | enum: "campaign" | "date" | non | |
| from | string | non | |
| to | string | non | |
| days | number | non | |
| campaignId | string | non | |
| marketerId | string | non |
create_outbrain_ads_campaign
Create an Outbrain campaign (paused)
Create an Outbrain campaign, always PAUSED so it spends nothing: name (unique per marketer, up to 100 characters), cpc in the marketer's currency, objective Traffic (default) or Awareness, optional platforms and trackingSuffix (utm parameters). Pass budgetId for an existing budget OR budget {amount, type, pacing, dailyTarget, startDate, endDate} for a new one. Then add_outbrain_ads_promoted_links, and set_outbrain_ads_status after the user says yes. Read back. Free. Outbrain sets a minimum budget per account and currency (on ours, US$140 for a one-time CAMPAIGN budget and US$600 MONTHLY) and says so when one is too low; language is the two-letter code of the promoted pages (default en).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| marketerId | string | non | |
| name | string | oui | |
| cpc | number | oui | cost per click, the marketer's currency |
| objective | enum: "Traffic" | "Awareness" | non | |
| platforms | array<enum: "DESKTOP" | "MOBILE" | "TABLET"> | non | |
| language | string | non | two-letter language of the promoted pages, default en |
| trackingSuffix | string | non | e.g. utm_source=outbrain&utm_campaign=x |
| budgetId | string | non | an existing budget (list_outbrain_ads_budgets) |
| budget | object | non | a new budget for this campaign |
add_outbrain_ads_promoted_links
Add Outbrain promoted links
Add promoted links (a page to promote, with an optional headline, image and description) to an Outbrain campaign, up to 50 a call. Outbrain crawls the title and image when they are left out and reviews every link. If the campaign is already ENABLED, enabled links start spending once approved, so that needs confirm:true after the user says yes (or enabled:false per link). Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| campaignId | string | oui | |
| links | array<object> | oui | |
| confirm | boolean | non |
update_outbrain_ads_budget
Change an Outbrain budget
Change an Outbrain budget: amount, dailyTarget, endDate or runForever:true, pacing, type, startDate. Every change decides what its campaigns can spend, so without confirm:true nothing changes and you get the before and after; call again with confirm:true after the user says yes. Read back. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| budgetId | string | oui | |
| marketerId | string | non | |
| amount | number | non | |
| dailyTarget | number | non | |
| endDate | string | non | |
| runForever | boolean | non | |
| pacing | enum: "AUTOMATIC" | "SPEND_ASAP" | "DAILY_TARGET" | non | |
| type | enum: "CAMPAIGN" | "MONTHLY" | "DAILY" | non | |
| startDate | string | non | |
| confirm | boolean | non |
set_outbrain_ads_status
Pause or turn on Outbrain
Pause or turn on an Outbrain campaign (level campaign, campaignId) or one promoted link (level promoted_link, promotedLinkId). status active starts spending, so it needs confirm:true after the user says yes; paused needs none. Read back. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| level | enum: "campaign" | "promoted_link" | non | |
| campaignId | string | non | |
| promotedLinkId | string | non | |
| status | enum: "active" | "paused" | oui | |
| confirm | boolean | non |
delete_outbrain_ads_object
Archive an Outbrain campaign or delete an unused budget
ARCHIVE an Outbrain campaign (Outbrain has no campaign delete: say ARCHIVED, never deleted; it drops out of the campaign lists and its promoted links go with it) or DELETE a budget no campaign uses and that has spent nothing (Outbrain refuses any other). Call it WITHOUT confirm FIRST: that only reads and says what would be lost; then confirm:true, plus confirmName (the exact name) and confirmChildren when the answer asks for them, after the user says yes. set_outbrain_ads_status paused stops spending without archiving. Read back. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| level | enum: "campaign" | "budget" | non | default campaign |
| campaignId | string | non | |
| budgetId | string | non | |
| marketerId | string | non | |
| confirm | boolean | non | |
| confirmName | string | non | the exact name, when asked |
| confirmChildren | number | non | the promoted link count, when asked |
list_woocommerce_orders
List WooCommerce orders
The brand's WooCommerce orders, newest first: number, date, status, total, refunded, buyer and items. Filter by status (any, pending, processing, on-hold, completed, cancelled, refunded, failed; several comma-separated), after / before (YYYY-MM-DD), search, page and perPage (up to 100). Pass id for ONE order in full: addresses, payment method, its notes and its refunds. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| id | string | non | one order number, for the order in full |
| status | string | non | any (default), pending, processing, on-hold, completed, cancelled, refunded, failed; comma-separated for several |
| after | string | non | YYYY-MM-DD: created on or after |
| before | string | non | YYYY-MM-DD: created on or before |
| search | string | non | |
| page | number | non | |
| perPage | number | non | 1-100, default 20 |
update_woocommerce_order
Update a WooCommerce order
Change a WooCommerce order: status (pending, processing, on-hold, completed, cancelled, refunded, failed; cancelling puts the stock back, most status changes email the buyer, and 'refunded' moves NO money: use refund_woocommerce_order), note (an internal note; noteToCustomer:true emails it to the buyer), shipping and billing details (only the fields given change), metaData [{key, value}]. An internal note and metaData apply at once and are read back. A status, address or buyer note is a preview until confirm:true: show the user what changes, get a yes, then call again with confirm:true. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | the order number |
| status | enum: "pending" | "processing" | "on-hold" | "completed" | "cancelled" | "refunded" | "failed" | non | |
| note | string | non | a note on the order |
| noteToCustomer | boolean | non | true: the buyer sees the note and is emailed it |
| shipping | object | non | first_name, last_name, company, address_1, address_2, city, state, postcode, country (two letters), phone |
| billing | object | non | the same fields plus email |
| metaData | array<object> | non | |
| confirm | boolean | non | true to apply a status, address or buyer-note change |
refund_woocommerce_order
Refund a WooCommerce order
Refund a WooCommerce order: full:true (everything still refundable), lineItems [{ lineItemId, quantity }] and/or amount (a sum of money, e.g. a goodwill refund). By default the money goes back through the order's payment gateway; apiRefund:false only RECORDS the refund in WooCommerce, for money returned by hand (an order paid by bank transfer, cheque or cash on delivery can only be recorded). Refunded items go back into stock unless restock:false. Without confirm:true NOTHING is refunded and the reply shows the amount: show the user, get a yes, then call again with confirm:true and confirmAmount set to that exact amount. Retrying the same confirmed refund never refunds twice. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | the order number |
| full | boolean | non | |
| lineItems | array<object> | non | |
| amount | string | non | refund this much money instead, e.g. "10.00" |
| reason | string | non | |
| apiRefund | boolean | non | default true: through the payment gateway |
| restock | boolean | non | default true for refunded lines |
| confirm | boolean | non | |
| confirmAmount | string | non | the amount the preview showed |
| idempotencyKey | string | non | only to repeat an identical refund on purpose: any new text |
get_woocommerce_stock
Get WooCommerce stock
Stock on the brand's WooCommerce store: pass productId (a variable product lists every variation), variationId or sku. Each item: how many are in stock, or that stock is not tracked, and its stock status. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| productId | string | non | |
| variationId | string | non | |
| sku | string | non |
set_woocommerce_stock
Set or adjust WooCommerce stock
Change stock on the brand's WooCommerce store. mode set (quantity becomes the count) or adjust (quantity is added; negative subtracts). changes: [{ productId, variationId or sku, quantity }], up to 100. Without confirm:true NOTHING changes and the reply shows the count now and after for each: show the user, get a yes, then call again with confirm:true and each change's expected set to its 'now' number, so a sale in between is refused instead of overwritten. An item whose stock is not tracked yet gets tracking turned on at the new count. Read back. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| mode | enum: "set" | "adjust" | non | default set |
| changes | array<object> | oui | |
| confirm | boolean | non |
manage_woocommerce_products
WooCommerce products
Products on the brand's WooCommerce store. action list (status, query, sku, categoryId, page), get (id: variations, options, images), create (title, description, shortDescription, sku, tags, categoryIds, status draft (default) | publish, price + compareAtPrice (or regularPrice / salePrice), options [{name, values}] with variants [{price, compareAtPrice, sku, options [{name, value}]}], images [{url, alt}]), update (those fields; a simple product's price), duplicate (id, newTitle: always a draft), set_status (id or ids, status publish | draft | pending | private), delete (id or ids: to the trash; permanent:true for good), tags (ids, addTags, removeTags), add_variants / update_variants (variants with id) / delete_variants (variantIds), add_options (options) / delete_options (names), add_images / remove_images / reorder_images (imageIds in the new order, first = main image), meta (id; set {key: value}, delete [keys]; neither = list), store (the shop's own settings). Publishing, unpublishing, deleting, a live price change and removing variants, options or images are previews until confirm:true. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "list" | "get" | "create" | "update" | "duplicate" | "set_status" | "delete" | "tags" … | non | default list (get when id is passed) |
| id | string | non | the product id |
| ids | array<string> | non | |
| title | string | non | |
| newTitle | string | non | |
| description | string | non | |
| shortDescription | string | non | |
| handle | string | non | |
| sku | string | non | |
| tags | array<string> | non | |
| addTags | array<string> | non | |
| removeTags | array<string> | non | |
| categoryIds | array<string> | non | |
| featured | boolean | non | |
| status | enum: "publish" | "draft" | "pending" | "private" | "any" | non | |
| price | string | non | |
| compareAtPrice | string | non | |
| regularPrice | string | non | |
| salePrice | string | non | |
| options | array<object> | non | |
| names | array<string> | non | |
| variants | array<object> | non | |
| variantIds | array<string> | non | |
| images | array<object> | non | |
| imageIds | array<string> | non | |
| set | object | non | meta: keys to set |
| delete | array<string> | non | meta: keys to remove |
| permanent | boolean | non | |
| query | string | non | |
| categoryId | string | non | |
| page | number | non | |
| limit | number | non | |
| confirm | boolean | non |
manage_woocommerce_categories
WooCommerce categories
Product categories (collections) on the brand's WooCommerce store. action list (query), get (id, with its first products), create (title, handle, description, parentId, imageUrl, productIds), update, delete (id: permanent; products stay), add_products / remove_products (id, productIds). Delete is a preview until confirm:true. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "list" | "get" | "create" | "update" | "delete" | "add_products" | "remove_products" | non | default list (get when id is passed) |
| id | string | non | |
| title | string | non | |
| handle | string | non | |
| description | string | non | |
| parentId | string | non | |
| imageUrl | string | non | |
| productIds | array<string> | non | |
| query | string | non | |
| limit | number | non | |
| confirm | boolean | non |
manage_woocommerce_coupons
WooCommerce coupons
Coupons (discount codes) on the brand's WooCommerce store. action list (status on | off, query), get (id or code), create (code, percentOff or amountOff (appliesOnEachItem for a per-item amount) or freeShipping, minSubtotal, endsAt, usageLimit, oncePerCustomer, productIds, categoryIds, emails, individualUse, excludeSaleItems), update (those), activate / deactivate (switch a code on or off; off keeps it), delete (to the trash; permanent:true for good). Creating, changing a live code, switching on or off and deleting are previews until confirm:true. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "list" | "get" | "create" | "update" | "activate" | "deactivate" | "delete" | non | default list (get when id or code is passed) |
| id | string | non | |
| code | string | non | |
| title | string | non | |
| description | string | non | |
| percentOff | number | non | |
| amountOff | number | non | |
| appliesOnEachItem | boolean | non | |
| freeShipping | boolean | non | |
| minSubtotal | string | non | |
| endsAt | string | null | non | |
| usageLimit | number | null | non | |
| oncePerCustomer | boolean | non | |
| productIds | array<string> | non | |
| categoryIds | array<string> | non | |
| emails | array<string> | non | |
| individualUse | boolean | non | |
| excludeSaleItems | boolean | non | |
| status | enum: "on" | "off" | non | |
| query | string | non | |
| permanent | boolean | non | |
| page | number | non | |
| limit | number | non | |
| confirm | boolean | non |
stripe_report
Stripe revenue report
Revenue from the brand's OWN Stripe account: gross, refunds, net and succeeded-charge count per day/week/month, new customers in the window, and active subscriptions + MRR where the key can read them. This is the money side of the loop — read an ad, a hook or a launch against real revenue instead of clicks. Default window is the last 30 days; a window with no charges answers a real zero, not a failed read. Read-only, never moves money, free. Needs Stripe connected (Connectors > Stripe, or connect_connector: paste a restricted key from Developers > Restricted keys).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| since | string | non | YYYY-MM-DD (default 30 days ago) |
| until | string | non | YYYY-MM-DD (default today) |
| granularity | enum: "day" | "week" | "month" | non | default day |
| currency | string | non | ISO code to isolate one currency, e.g. USD; omit to sum every currency as-is |
list_stripe_customers
List Stripe customers
Recent customers on the brand's OWN Stripe account — email, name, created, currency, delinquent — newest first, or one customer by exact email. Read-only, free. Needs Stripe connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| string | non | exact email match | |
| limit | number | non | 1–100, default 25 |
| after | string | non | pagination cursor: the last id of the previous page |
list_stripe_charges
List Stripe charges
Recent charges on the brand's OWN Stripe account — amount, currency, status, refunds, customer email, description — newest first, optionally for one customer. Read-only, free. Needs Stripe connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | non | a Stripe customer id (cus_…) |
| limit | number | non | 1–100, default 25 |
| after | string | non | pagination cursor: the last id of the previous page |
list_stripe_subscriptions
list stripe subscriptions
Subscriptions on the brand's OWN Stripe account with each item's price in MAJOR units (19.00 means $19.00), interval and quantity, and the MRR each contributes. With NO status it returns everything that counts toward MRR — active + trialing + past_due — and says so; pass status all, canceled, unpaid, incomplete, incomplete_expired or paused for the rest, or filter by customer or price. Read-only, free. Needs Stripe connected (Connectors > Stripe, or connect_connector).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| status | string | non | filter by status (all, active, trialing, past_due, canceled and others); omit for MRR statuses |
| customerId | string | non | Stripe customer id, cus_... |
| priceId | string | non | Stripe price id, price_...; only subscriptions on this price |
| limit | number | non | rows to return, 1 to 100; default 25 |
| after | string | non | pagination cursor: the last subscription id from the previous page |
list_stripe_invoices
list stripe invoices
Invoices on the brand's Stripe account, newest first: number, status (draft, open, paid, uncollectible, void), amount due and paid, customer email, dates and the hosted invoice link; filter by status or customer. Read-only, free. Needs Stripe connected (Connectors > Stripe, or connect_connector).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| status | string | non | filter to draft, open, paid, uncollectible or void |
| customerId | string | non | Stripe customer id, cus_... |
| limit | number | non | rows to return, 1 to 100; default 25 |
| after | string | non | pagination cursor: the last invoice id from the previous page |
list_stripe_products
list stripe products
Products on the brand's Stripe account with their active prices (amount, currency, one-time or recurring interval), which is what create_stripe_payment_link and create_stripe_subscription take. active:false lists archived products too. Read-only, free. Needs Stripe connected (Connectors > Stripe, or connect_connector).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| active | boolean | non | false also lists archived products; omit or true for active products only |
| limit | number | non | rows to return, 1 to 100; default 25 |
| after | string | non | pagination cursor: the last product id from the previous page |
stripe_balance
stripe balance
The brand's Stripe balance (available and pending, per currency) and the most recent payouts with status and arrival date. Read-only, free. Needs Stripe connected (Connectors > Stripe, or connect_connector).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| limit | number | non | number of recent payouts to show, 1 to 100; default 25 |
list_stripe_refunds
list stripe refunds
Refunds on the brand's Stripe account, newest first: amount, status, reason and the charge refunded; filter by charge. Read-only, free. Needs Stripe connected (Connectors > Stripe, or connect_connector).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| chargeId | string | non | only refunds of this charge, ch_... |
| limit | number | non | rows to return, 1 to 100; default 25 |
| after | string | non | pagination cursor: the last refund id from the previous page |
list_stripe_coupons
list stripe coupons
Coupons on the brand's Stripe account: percent or amount off, duration, validity and redemptions. Read-only, free. Needs Stripe connected (Connectors > Stripe, or connect_connector).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| limit | number | non | rows to return, 1 to 100; default 25 |
| after | string | non | pagination cursor: the last coupon id from the previous page |
create_stripe_product
create stripe product
Create a product on the brand's Stripe account together with its default price: name, optional description, `amount` in MAJOR units — 19 or 19.00 both mean $19.00, and a zero-decimal currency like JPY is whole — a 3-letter currency, and an optional recurring interval (day, week, month, year) with intervalCount. Returns both ids, read back. On a LIVE key it shows what it is about to create and needs confirm:true; on a test key it just does it. Idempotent on its arguments. Needs Stripe connected (Connectors > Stripe, or connect_connector).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| name | string | oui | product name |
| description | string | non | product description shown to customers in Stripe |
| amount | number | oui | MAJOR units — 19 or 19.00 is $19.00, never 1900 |
| currency | string | oui | 3-letter ISO currency code, e.g. usd |
| interval | string | non | recurring interval: day, week, month or year; omit for a one-time price |
| intervalCount | number | non | intervals between charges, e.g. 3 with month for quarterly |
| nickname | string | non | internal label for the default price; not shown to customers |
| metadata | object | non | key/value metadata stored on the product |
| confirm | boolean | non | true on a live key, after the user approves the preview |
create_stripe_price
create stripe price
Add a price to an existing Stripe product: `amount` in MAJOR units (19 or 19.00 is $19.00, never 1900), currency, optional recurring interval and intervalCount, optional nickname. Read back. LIVE key: confirm:true after showing the preview. Idempotent on its arguments. Needs Stripe connected (Connectors > Stripe, or connect_connector).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| productId | string | oui | product id, prod_..., from create_stripe_product or list_stripe_products |
| amount | number | oui | MAJOR units — 19 or 19.00 is $19.00, never 1900 |
| currency | string | oui | 3-letter ISO currency code, e.g. usd |
| interval | string | non | recurring interval: day, week, month or year; omit for a one-time price |
| intervalCount | number | non | intervals between charges, e.g. 3 with month for quarterly |
| nickname | string | non | internal label for the price; not shown to customers |
| confirm | boolean | non | true on a live key, after the user approves the preview |
create_stripe_payment_link
create stripe payment link
Create a shareable Stripe Payment Link: for ONE price pass priceId (price_…) with an optional quantity; for several pass lineItems: [{priceId, quantity}]. Optionally redirect to afterCompletionUrl when paid. allowPromotionCodes:true shows the promotion-code box at checkout — needed for any 'use code X' ad. referenceId and utm return a taggedUrl: put THAT URL in the ad, and get_stripe_payment_link_revenue (groupBy reference) then counts that ad's purchases. Returns the URL. LIVE key: confirm:true after showing the preview. Idempotent on its arguments. Needs Stripe connected (Connectors > Stripe, or connect_connector).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| priceId | string | non | one price — the shorthand for a single line item |
| quantity | number | non | quantity of priceId, e.g. 2 |
| lineItems | array<object> | non | several prices at once; use instead of priceId |
| afterCompletionUrl | string | non | URL the buyer is sent to after paying |
| allowPromotionCodes | boolean | non | show the promotion-code box at checkout |
| referenceId | string | non | letters, digits, dashes, underscores (up to 200) — tags the returned taggedUrl for one ad; Stripe stores it on each purchase |
| utm | object | non | UTM values on the taggedUrl (letters, digits, dashes, underscores, up to 150 each); Stripe passes them to the after-payment redirect only |
| metadata | object | non | key/value metadata stored on the payment link |
| confirm | boolean | non | true on a live key, after the user approves the preview |
create_stripe_coupon
create stripe coupon
Create a Stripe coupon: exactly one of percentOff (1–100) or amountOff (major units) + currency; duration once (default), repeating (with durationInMonths) or forever; optional name, id and maxRedemptions. A coupon alone has NO code a customer can type: pass `code` (letters, digits, dashes) to also mint the customer-typable promotion code in the same call, with optional codeMaxRedemptions, expiresAt, firstTimeOnly and minimumAmount. Read back. LIVE key: confirm:true after showing the preview. Needs Stripe connected (Connectors > Stripe, or connect_connector).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| name | string | non | display name for the coupon, for your records |
| id | string | non | custom coupon id; Stripe generates one if omitted |
| percentOff | number | non | percent discount, 1 to 100; use this or amountOff |
| amountOff | number | non | fixed discount in major units, e.g. 5 = 5.00; needs currency |
| currency | string | non | 3-letter currency code; required with amountOff |
| duration | string | non | once (default), repeating or forever |
| durationInMonths | number | non | months the discount applies, with duration repeating |
| maxRedemptions | number | non | uses of the COUPON across every code |
| code | string | non | the customer-typable promotion code, e.g. SUMMER20 — letters, digits and dashes only; refused (never altered) otherwise |
| codeMaxRedemptions | number | non | uses of this CODE |
| expiresAt | string | non | YYYY-MM-DD the code stops working |
| firstTimeOnly | boolean | non | the code works only on a customer's first purchase |
| minimumAmount | number | non | minimum order in MAJOR units for the code |
| minimumAmountCurrency | string | non | currency for the code's minimumAmount, e.g. usd |
| confirm | boolean | non | true on a live key, after the user approves the preview |
create_stripe_customer
create stripe customer
Create a Stripe customer by email (optional name, phone, description, metadata). If a customer with that email already exists it is returned instead and nothing is created — pass allowDuplicate:true to create a second one on purpose. LIVE key: confirm:true after showing the preview. Needs Stripe connected (Connectors > Stripe, or connect_connector).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| string | oui | customer email; the key Stripe matches duplicates on | |
| name | string | non | customer name |
| phone | string | non | customer phone number |
| description | string | non | internal note on the customer record |
| metadata | object | non | key/value metadata stored on the customer |
| allowDuplicate | boolean | non | true = create a second customer even if this email already has one |
| confirm | boolean | non | true on a live key, after the user approves the preview |
create_stripe_subscription
create stripe subscription
Subscribe a Stripe customer (cus_…) to a price (price_…), optional quantity and trialDays. THIS CHARGES THE CUSTOMER'S SAVED PAYMENT METHOD when there is no trial, so it ALWAYS needs confirm:true (test keys included) after you show the user exactly what will be created. Read back; an INCOMPLETE status means no chargeable card is on file. Needs Stripe connected (Connectors > Stripe, or connect_connector).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| customerId | string | oui | customer id, cus_... |
| priceId | string | oui | recurring price id, price_... |
| quantity | number | non | quantity of the price, e.g. number of seats |
| trialDays | number | non | free trial length in days before the first charge |
| metadata | object | non | key/value metadata stored on the subscription |
| confirm | boolean | non | true to charge the saved card; always required, test keys included |
cancel_stripe_subscription
cancel stripe subscription
Cancel a Stripe subscription: at the end of the current period by default (the customer keeps access until then), or immediately:true to end it now. ALWAYS needs confirm:true, test keys included. The read-back distinguishes the two — a period-end cancel reports the date it will end and the status it keeps until then, an immediate one reports status canceled. Needs Stripe connected (Connectors > Stripe, or connect_connector).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| subscriptionId | string | oui | subscription id, sub_... |
| immediately | boolean | non | true = end now; omitted or false = end at the period end |
| confirm | boolean | non | true after the user approves this cancellation |
refund_stripe_charge
refund stripe charge
Refund a Stripe charge (ch_… or a pi_… payment intent): the full refundable amount, or a partial `amount` in major units; optional reason duplicate / fraudulent / requested_by_customer. ALWAYS needs confirm:true, test keys included. Read back. Needs Stripe connected (Connectors > Stripe, or connect_connector).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| chargeId | string | oui | charge id, ch_..., or payment intent id, pi_... |
| amount | number | non | partial refund in major units; omit to refund the full refundable amount |
| reason | string | non | duplicate, fraudulent or requested_by_customer |
| confirm | boolean | non | true after the user approves this refund |
list_stripe_promotion_codes
list stripe promotion codes
Promotion codes on the brand's Stripe account — the codes customers TYPE at checkout — with the coupon each applies, active or not, times redeemed / max, expiry, first-purchase-only and minimum-order rules. Filter by active, code or couponId. Read-only, free. Needs Stripe connected (Connectors > Stripe, or connect_connector).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| active | boolean | non | true = active codes only; false = inactive codes only |
| code | string | non | customer-typable promotion code text to find |
| couponId | string | non | only codes that apply this coupon, from list_stripe_coupons |
| limit | number | non | rows to return, 1 to 100; default 25 |
| after | string | non | pagination cursor: the last promotion code id from the previous page |
create_stripe_promotion_code
create stripe promotion code
Create a customer-typable promotion code (e.g. SUMMER20) for an existing Stripe coupon — the thing a "use code X" ad needs, since a coupon alone has no code. couponId (from list_stripe_coupons); optional code (letters, digits and dashes; Stripe generates one if omitted — a code with spaces or symbols is refused, never altered), maxRedemptions, expiresAt (YYYY-MM-DD), firstTimeOnly, minimumAmount + minimumAmountCurrency (major units), customerId. Read back. LIVE key: confirm:true after showing the preview. Use it on a payment link with allowPromotionCodes. Needs Stripe connected (Connectors > Stripe, or connect_connector).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| couponId | string | oui | coupon id to apply, from list_stripe_coupons |
| code | string | non | customer-typable code, letters, digits and dashes; Stripe generates one if omitted |
| maxRedemptions | number | non | maximum uses of this code |
| expiresAt | string | non | last day the code works, YYYY-MM-DD |
| firstTimeOnly | boolean | non | true = valid only on a customer's first purchase |
| minimumAmount | number | non | MAJOR units |
| minimumAmountCurrency | string | non | 3-letter currency code for minimumAmount |
| customerId | string | non | restrict the code to one customer (cus_…) |
| metadata | object | non | key/value metadata stored on the code |
| confirm | boolean | non | true on a live key, after the user approves the preview |
update_stripe_promotion_code
update stripe promotion code
Switch a Stripe promotion code OFF (active:false) or back on (active:true), or change its metadata. Pass promotionCodeId (promo_…) or the code itself. Switching a code off ALWAYS needs confirm:true, test keys included, because anyone holding it from an ad is then refused at checkout. Read back; a code Stripe will not reactivate (its coupon is no longer valid) is reported, not claimed. Needs Stripe connected (Connectors > Stripe, or connect_connector).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| promotionCodeId | string | non | promotion code id, promo_...; give this or code |
| code | string | non | the customer-typable code text, if promotionCodeId is not given |
| active | boolean | non | false switches the code off; true switches it back on |
| metadata | object | non | key/value metadata to set on the code |
| confirm | boolean | non | true to switch a code off, as well as to confirm a live-key write |
list_stripe_payment_links
list stripe payment links
Payment links on the brand's Stripe account: URL, active or not, whether the promotion-code box shows, what happens after payment, and their line items (price, amount). Filter active true/false. Read-only, free. Needs Stripe connected (Connectors > Stripe, or connect_connector).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| active | boolean | non | true = active links only; false = inactive links only |
| limit | number | non | rows to return, 1 to 100; default 25 |
| after | string | non | pagination cursor: the last payment link id from the previous page |
update_stripe_payment_link
update stripe payment link
Change a Stripe payment link (plink_…). active:false DEACTIVATES it — its URL then shows a "no longer available" page, in every ad that points at it — and ALWAYS needs confirm:true, test keys included; active:true reactivates it. allowPromotionCodes shows or hides the promotion-code box; afterCompletionUrl (redirect) or afterCompletionMessage (Stripe's confirmation page); inactiveMessage (up to 500 characters, shown while it is off); metadata. Read back. LIVE key: confirm:true after showing the preview. Needs Stripe connected (Connectors > Stripe, or connect_connector).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| paymentLinkId | string | oui | payment link id, plink_..., from list_stripe_payment_links |
| active | boolean | non | false deactivates the link; true reactivates it |
| allowPromotionCodes | boolean | non | true shows the promotion-code box at checkout; false hides it |
| afterCompletionUrl | string | non | URL the buyer is redirected to after paying |
| afterCompletionMessage | string | non | message shown on Stripe's confirmation page after paying |
| inactiveMessage | string | non | message shown while the link is off, up to 500 characters |
| metadata | object | non | key/value metadata to set on the link |
| confirm | boolean | non | true to deactivate the link, and to confirm a live-key write |
get_stripe_payment_link_revenue
stripe payment link revenue
How much money the brand's Stripe PAYMENT LINKS made — the "what did the link in this ad earn" question. Paid purchases and revenue (MAJOR units, per currency) from completed checkouts between since and until (YYYY-MM-DD, default the last 30 days), for one paymentLinkId or every link. groupBy: link (default without an id — which link earned most), reference (default with an id — per ad, from the referenceId a taggedUrl carries), promotion_code, or day. For a subscription link only the first payment counts; renewals are in stripe_report. Says when the read is capped. Read-only, free. Needs Stripe connected (Connectors > Stripe, or connect_connector).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| paymentLinkId | string | non | one payment link, plink_...; omit for every link |
| since | string | non | start date, YYYY-MM-DD; default 30 days before until |
| until | string | non | end date, YYYY-MM-DD; default today |
| groupBy | enum: "link" | "reference" | "promotion_code" | "day" | non | link, reference, promotion_code or day; default link without paymentLinkId, reference with it |
revenue_by_source
Revenue by source (posts, ads, emails)
Which posts, ads and emails led to actual sales: the brand's payments (Shopify orders and Stripe charges, whichever is connected) matched back to what Hermoso published or sent, with revenue, payments and customers per channel, campaign, single post/ad/email (groupBy item) or match method. Each payment is matched ONCE, strongest first, and says how: utm (a Hermoso tracking id on the visit), reference (a Hermoso id on a Stripe checkout), code (a discount code Hermoso created, or one you name in codes), ad_utm (the UTM tags Hermoso puts on ads it builds), tag (Hermoso's tags without an id) — these LED TO the sale; email (the buyer is someone Hermoso emailed or who replied, within emailWindowDays before paying) and referrer (the visit came from a social platform the brand posts to) are looser matches, never causation. The unattributed remainder is stated plainly. GA4's own attribution of purchases to Hermoso's tags and the ad platforms' own reported conversions (Meta, Google Ads) are shown APART, never added in: they can describe the same sales again. Money is per currency, never summed across currencies. A source that could not be read is said as such, never as zero sales. Default: the last 30 days (Shopify lets apps read its last 60). Read-only, free. Links carry Hermoso's ids only when tracking links are on (set_tracking_links).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| since | string | non | start date, YYYY-MM-DD; default 30 days before until |
| until | string | non | end date, YYYY-MM-DD; default today |
| days | number | non | the last N days, instead of since |
| groupBy | enum: "channel" | "campaign" | "item" | "method" | non | channel (default), campaign, item (one row per post, ad, email or code) or method |
| sources | array<enum: "shopify" | "stripe" | "ga4" | "email" | "ads"> | non | which to read; default all that are connected |
| codes | array<string> | non | more discount or promotion codes to count as Hermoso’s |
| emailWindowDays | number | non | how many days after an email a payment still matches the person; default 30, at most 90 |
| includeTest | boolean | non | true to count Shopify test orders |
| ga4Property | string | non | which shared GA4 property, e.g. properties/123; default the first shared one |
| googleAdsCustomerId | string | non | which Google Ads account for platform-reported conversions |
| platformReported | boolean | non | false to skip the ad platforms’ own reported conversions |
set_tracking_links
Tracking links: setting, or one tagged link
TRACKING LINKS, two jobs in one tool. (1) The brand setting: call with no arguments to read it, enabled:true/false to turn it on or off, campaign for the utm_campaign, domains for more sites that are the brand's own. When on, every link to the brand's OWN site that Hermoso publishes or sends (posts on every channel, scheduled posts, email sequences and new emails) gets utm_source (the channel), utm_medium (social, email or organic), utm_campaign ("hermoso" or yours) and an id in utm_content, so revenue_by_source can tie a sale to the exact post or email. A link that already has utm_ tags, a link to another site, a short link and a link inside the brand's own blog are never changed; Instagram and TikTok captions have no tappable link, so nothing is tagged there; ads already carry their platform's UTM template. Every publish that tagged a link says so in its reply. Brands created from 2026-11-18 get it on by default after one notice; older brands keep links exactly as written until this turns it on. (2) ONE tagged link for a place the user puts it themselves (a bio link, a QR code, a newsletter, an ad made elsewhere): pass url (+ channel, campaign, medium, label, kind) and get it back with Hermoso's tags; a Stripe payment link also gets the id as client_reference_id. That works whether or not the setting is on, on any site; a link already carrying utm_ tags is returned unchanged. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| enabled | boolean | non | true to tag links to the brand site, false to publish links exactly as written; omit to read |
| campaign | string | non | the utm_campaign (for the setting, or for the one link with url); empty string resets the setting to hermoso |
| domains | array<string> | non | more domains that are the brand’s own site, e.g. shop.example.com |
| url | string | non | ONE link to tag now, https://…; returns the tagged link instead of the setting |
| channel | string | non | with url: where it will be clicked (instagram_bio, newsletter, qr, facebook …); becomes utm_source |
| medium | string | non | with url: utm_medium; default social (email for channel email) |
| label | string | non | with url: what this link is, shown in revenue_by_source |
| kind | enum: "link" | "post" | "email" | "ad" | non | with url: what carries it; default link |
list_hubspot_contacts
List or search HubSpot contacts
Contacts from the brand's OWN HubSpot CRM, newest first — email, name, lifecycle stage, lead status, created date, original source — or a search by email / first name / last name (whole-token match, wildcards allowed). Read-only, free. Needs HubSpot connected (Connectors > HubSpot).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| search | string | non | email or name to search for |
| limit | number | non | 1–100, default 25 |
| after | string | non | pagination cursor from the previous page |
create_hubspot_contact
Create or update a HubSpot contact
Create a contact in the brand's HubSpot by email, or UPDATE the contact that already has that email — HubSpot's duplicate answer carries the existing id, so this is an UPSERT and never makes a twin. Optional firstname, lastname, phone, company, website, lifecyclestage, hs_lead_status, hubspotOwnerId (the sales rep to assign it to — an owner id from list_hubspot_owners), plus any other writable contact property in `properties` (by internal name). The contact is READ BACK after the write; the reply says created or updated. Free. Needs HubSpot connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| string | oui | the contact email — the key HubSpot de-duplicates on | |
| firstname | string | non | contact first name |
| lastname | string | non | contact last name |
| phone | string | non | contact phone number |
| company | string | non | company name on the contact |
| website | string | non | company website URL |
| lifecyclestage | string | non | HubSpot lifecycle stage internal value, e.g. lead or customer |
| hs_lead_status | string | non | HubSpot lead status internal value, e.g. NEW |
| hubspotOwnerId | string | non | HubSpot owner id (digits) from list_hubspot_owners |
| ownerId | string | non | older name for hubspotOwnerId (MCP only) |
| properties | object | non | any other writable contact properties, by internal name |
sync_leads_to_hubspot
Push lead-form leads into HubSpot
Push the leads the brand's LEAD FORMS collected into HubSpot as contacts — Meta, LinkedIn, TikTok (every published Instant Form, every lead region), X Ads, Snapchat and ChatGPT Ads (the last two: leads delivered to Hermoso by their lead webhooks). Each lead is upserted by email with lead status NEW and the platform + form + campaign written into the contact's Message property (a default HubSpot property, so no schema scope is needed). Synced lead ids are remembered per workspace, so a re-run, a scheduled run, a retry or a second agent never creates twins. Reports created / updated / already-synced / no-email per platform; a platform that is not connected, or cannot be read (Reddit has no API for leads), is REPORTED, not fatal. platforms narrows it. dryRun:true lists what would be synced and writes nothing. set_hubspot_lead_sync runs it automatically. Free. Needs HubSpot connected, plus the platforms whose leads you want.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| since | string | non | ISO date; default 7 days ago |
| platforms | array<enum: "meta" | "linkedin" | "tiktok" | "x" | "snapchat" | "chatgpt" | "reddit"> | non | default every connected one |
| tiktokRegions | array<enum: "us" | "eu" | "other"> | non | TikTok stores leads per region; default all three |
| dryRun | boolean | non | list what would be synced and write nothing |
hubspot_deals_report
HubSpot deals report
Deals from the brand's HubSpot created in the window (default the last 90 days): count and amount by stage (labels resolved through the deal pipelines, closed-won recognised from the stage's own metadata), by original source, BY CAMPAIGN (source -> platform -> campaign from HubSpot's Original Source drill-downs, so PAID_SOCIAL splits into the actual campaigns), BY OWNER (the sales rep holding each deal, by name), a monthly created / closed-won series, and totals. Capped at 2,000 deals and says so. Read-only, free. Needs HubSpot connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| since | string | non | YYYY-MM-DD, default 90 days ago |
| until | string | non | YYYY-MM-DD, default today |
list_hubspot_companies
List or search HubSpot companies
COMPANIES (accounts) from the brand's OWN HubSpot CRM, newest first: name, domain, website, LinkedIn company page, industry, employees, annual revenue, lifecycle stage, lead status, country/city, owner (rep name), original source + drill-downs, associated contacts and deals, total revenue — plus a de-duplicated `domains` list, which is what LinkedIn company targeting and account-based (ABM) audiences are built from. search matches name / domain / website / phone; filters lifecycleStage (e.g. customer, opportunity, salesqualifiedlead), industry (HubSpot's internal value, e.g. COMPUTER_SOFTWARE), hubspotOwnerId, createdSince (YYYY-MM-DD). Read-only, free. Needs HubSpot connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| search | string | non | name, domain, website or phone |
| lifecycleStage | string | non | internal value, e.g. customer, opportunity, salesqualifiedlead, lead |
| industry | string | non | HubSpot's internal industry value, e.g. COMPUTER_SOFTWARE |
| hubspotOwnerId | string | non | owner id from list_hubspot_owners |
| ownerId | string | non | older name for hubspotOwnerId (MCP only) |
| createdSince | string | non | YYYY-MM-DD |
| limit | number | non | 1–100, default 25 |
| after | string | non | pagination cursor from the previous page |
list_hubspot_owners
List HubSpot owners (sales reps)
The sales reps (OWNERS) in the brand's HubSpot: id, name, email, teams. An owner's id is what create_hubspot_contact's hubspotOwnerId assigns a lead to, and what list_hubspot_companies filters by. search narrows by name or email; archived:true lists DEACTIVATED owners instead. Read-only, free. Needs HubSpot connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| search | string | non | name or email contains |
| archived | boolean | non | true = deactivated owners only |
manage_hubspot_deal
Read a HubSpot deal
One HubSpot deal by dealId: its name, stage, pipeline, amount, currency, close date and owner (hubspot_deals_report lists deals, pipelines and stages; list_hubspot_owners names the owners). Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| dealId | string | oui | the HubSpot deal id |
log_hubspot_activity
Log an activity in HubSpot
Log something that happened on a HubSpot contact (and its deal): type note, call, email, meeting or task (default from channel: call, meeting and email become their own kinds, anything else a note), body, subject, channel (whatsapp, sms, email, call, meeting, instagram, messenger, telegram, other), direction inbound/outbound, occurredAt, durationMinutes (calls, meetings), dueAt (tasks), hubspotOwnerId. contact is the HubSpot contact id or email; dealId attaches it to a deal too. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| contact | string | non | HubSpot contact id or email |
| dealId | string | non | |
| type | enum: "note" | "call" | "email" | "meeting" | "task" | non | |
| body | string | oui | |
| subject | string | non | |
| channel | enum: "whatsapp" | "sms" | "email" | "call" | "meeting" | "instagram" | "messenger" | "telegram" … | non | |
| direction | enum: "inbound" | "outbound" | non | |
| occurredAt | string | non | |
| durationMinutes | number | non | |
| dueAt | string | non | tasks: when it is due |
| hubspotOwnerId | string | non | HubSpot owner id (digits; list_hubspot_owners) |
| ownerId | string | non | older name for hubspotOwnerId (MCP only) |
highlevel_crm
HighLevel CRM (contacts, opportunities, pipelines)
The CRM of the brand's HighLevel sub-account. action search_contacts (q, or email / phone for the exact one; limit 1-100, page) | get_contact (contactId) | create_contact / update_contact (firstName, lastName, name, email, phone, company (create only), assignedTo, tags, source, website, timezone, address1, city, state, postalCode, country, dnd, fields { custom field id or key: value }) | log_activity (contactId, body, subject, channel, direction, occurredAt; type task with dueAt makes a task, anything else a note) | list_opportunities (q, stage, pipelineId, status open/won/lost/abandoned/all, assignedTo, contactId, limit, page) | get_opportunity (opportunityId) | update_opportunity (opportunityId + stage, pipelineId, status, amount, assignedTo, name, fields) | list_pipelines (with their stages) | list_users (the assignedTo values). Writes are read back. An action the app's permission does not cover is refused by name. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| action | enum: "search_contacts" | "get_contact" | "create_contact" | "update_contact" | "log_activity" | "list_opportunities" | "get_opportunity" | "update_opportunity" … | oui | |
| q | string | non | |
| string | non | ||
| phone | string | non | |
| contactId | string | non | |
| opportunityId | string | non | |
| firstName | string | non | |
| lastName | string | non | |
| name | string | non | |
| company | string | non | |
| assignedTo | string | non | the HighLevel user the contact or opportunity is assigned to (a list_users id) |
| ownerId | string | non | older name for assignedTo (MCP only) |
| tags | array<string> | non | |
| source | string | non | |
| website | string | non | |
| timezone | string | non | |
| address1 | string | non | |
| city | string | non | |
| state | string | non | |
| postalCode | string | non | |
| country | string | non | |
| dnd | boolean | non | |
| fields | object | non | |
| stage | string | non | pipeline stage id |
| pipelineId | string | non | |
| status | string | non | open, won, lost or abandoned (all, for list) |
| amount | number | null | non | |
| body | string | non | |
| subject | string | non | |
| channel | string | non | |
| direction | enum: "inbound" | "outbound" | non | |
| occurredAt | string | non | |
| type | enum: "note" | "task" | non | |
| dueAt | string | non | |
| limit | number | non | |
| page | number | non |
get_hubspot_lead_sync
Read the automatic HubSpot lead sync
Whether the brand's lead-form leads are pushed into HubSpot AUTOMATICALLY: on or off, how often (everyMinutes), which platforms, when it runs next, and what the last run did — counts per platform, or why it did not run (HubSpot disconnected, a platform not readable). Read-only, free. Needs HubSpot connected.
Aucun paramètre.
set_hubspot_lead_sync
Turn the automatic HubSpot lead sync on or off
Switch the AUTOMATIC HubSpot lead sync on or off for this brand: enabled, everyMinutes (a whole number from 15 to 1440; default 60 — anything outside that is refused, not clamped), optional platforms (meta, linkedin, tiktok, x, snapchat, chatgpt, reddit; default every connected one). Each run is sync_leads_to_hubspot reading from the last successful run, so a new lead reaches the CRM within minutes and nothing is ever created twice. If HubSpot is disconnected a run records that and the schedule backs off to once a day — no emails. runNow:true runs the first one straight away. Answers with the stored setting and the armed run, read back. Free. Needs HubSpot connected to switch on.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| enabled | boolean | oui | true turns the automatic lead sync on; false turns it off |
| everyMinutes | number | non | 15–1440, default 60 |
| platforms | array<enum: "meta" | "linkedin" | "tiktok" | "x" | "snapchat" | "chatgpt" | "reddit"> | non | omit for every connected one |
| runNow | boolean | non | true = run the first sync immediately |
list_salesforce_records
List or search Salesforce records
Contacts, leads, accounts or opportunities from the brand's OWN Salesforce org, most recently changed first, or a search through Salesforce's own index (phone matches however the org typed it). Filters: email (exact, never lags), phone, stage and open (opportunities), status (leads), salesforceOwnerId, salesforceAccountId, updatedSince; converted leads are left out unless includeConverted. fields adds any field by API name; offset pages up to 2,000. Read-only, free. Needs Salesforce connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| object | enum: "contact" | "lead" | "account" | "opportunity" | oui | contact, lead, account or opportunity |
| search | string | non | |
| string | non | ||
| phone | string | non | |
| stage | string | non | |
| status | string | non | |
| open | boolean | non | opportunities: only the open ones |
| salesforceOwnerId | string | non | |
| salesforceAccountId | string | non | |
| updatedSince | string | non | YYYY-MM-DD or ISO date-time |
| includeConverted | boolean | non | |
| fields | array<string> | non | extra field API names |
| limit | number | non | 1-200, default 25 |
| offset | number | non | 0-2000 |
get_salesforce_record
Read one Salesforce record
ONE Salesforce record by id (contact 003…, lead 00Q…, account 001…, opportunity 006…), with an opportunity's contact roles. fields adds any field by API name. Read-only, free. Needs Salesforce connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | the record id |
| object | enum: "contact" | "lead" | "account" | "opportunity" | non | contact, lead, account or opportunity |
| fields | array<string> | non |
create_salesforce_record
Create a Salesforce record
Create a contact, lead, account or opportunity in the brand's Salesforce, then read it back. Required: contact lastName; lead lastName (company defaults to "[not provided]"); account name; opportunity name, stage and closeDate. Any other field by API name in fields (describe_salesforce_object lists them, which are required, and the picklist values). The org's validation and duplicate rules answer in Salesforce's words. Free. Needs Salesforce connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| object | enum: "contact" | "lead" | "account" | "opportunity" | oui | contact, lead, account or opportunity |
| firstName | string | null | non | |
| lastName | string | null | non | |
| string | null | non | ||
| phone | string | null | non | |
| title | string | null | non | |
| company | string | null | non | lead only |
| status | string | null | non | lead status |
| name | string | null | non | account or opportunity name |
| website | string | null | non | |
| industry | string | null | non | |
| stage | string | null | non | opportunity StageName |
| amount | number | null | non | |
| closeDate | string | null | non | YYYY-MM-DD |
| salesforceAccountId | string | null | non | the account (001…) a contact or opportunity belongs to |
| salesforceOwnerId | string | null | non | a user id from list_salesforce_owners |
| leadSource | string | null | non | |
| description | string | null | non | |
| fields | object | non | any other field by API name, e.g. Industry__c; null clears it on update |
update_salesforce_record
Update a Salesforce record
Change fields on one Salesforce record (move an opportunity's stage, set an amount, owner or close date, fix an email), then read it back. Send only what changes; null clears a field. Free. Needs Salesforce connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | the record id |
| object | enum: "contact" | "lead" | "account" | "opportunity" | non | contact, lead, account or opportunity |
| firstName | string | null | non | |
| lastName | string | null | non | |
| string | null | non | ||
| phone | string | null | non | |
| title | string | null | non | |
| company | string | null | non | lead only |
| status | string | null | non | lead status |
| name | string | null | non | account or opportunity name |
| website | string | null | non | |
| industry | string | null | non | |
| stage | string | null | non | opportunity StageName |
| amount | number | null | non | |
| closeDate | string | null | non | YYYY-MM-DD |
| salesforceAccountId | string | null | non | the account (001…) a contact or opportunity belongs to |
| salesforceOwnerId | string | null | non | a user id from list_salesforce_owners |
| leadSource | string | null | non | |
| description | string | null | non | |
| fields | object | non | any other field by API name, e.g. Industry__c; null clears it on update |
delete_salesforce_record
Delete a Salesforce record
Delete one Salesforce record; it goes to the org's Recycle Bin for 15 days. Without confirm:true nothing is deleted and you get the record it would delete; call again with confirm:true only after the user says yes. Free. Needs Salesforce connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | the record id |
| object | enum: "contact" | "lead" | "account" | "opportunity" | non | contact, lead, account or opportunity |
| confirm | boolean | non | true only after the user said yes |
describe_salesforce_object
Salesforce fields and picklists
Every field a create or update can set on a Salesforce contact, lead, account or opportunity: API name, label, type, whether it is required, and each picklist's active values (lead status, lead source, industry), plus the opportunity stages with closed and won flags. search narrows by name or label. Read-only, free. Needs Salesforce connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| object | enum: "contact" | "lead" | "account" | "opportunity" | oui | contact, lead, account or opportunity |
| search | string | non |
list_salesforce_owners
List Salesforce users
The active Salesforce users records can be assigned to: id, name, email, username, title. An id is what salesforceOwnerId takes. search narrows by name or email. Read-only, free. Needs Salesforce connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| search | string | non | |
| limit | number | non | 1-200, default 100 |
log_salesforce_activity
Log an activity in Salesforce
Log something that happened as a completed Task on a Salesforce contact or lead, or on an account or opportunity: body (the text), optional subject, channel (call, email, meeting, whatsapp, sms, instagram, messenger, telegram, other), direction and occurredAt. Read back. Free. Needs Salesforce connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| recordId | string | oui | a contact, lead, account or opportunity id |
| body | string | oui | |
| subject | string | non | |
| channel | enum: "call" | "email" | "meeting" | "whatsapp" | "sms" | "instagram" | "messenger" | "telegram" … | non | |
| direction | enum: "inbound" | "outbound" | non | |
| occurredAt | string | non | ISO date-time; default now |
sync_leads_to_salesforce
Push lead-form leads into Salesforce
Push the leads the brand's LEAD FORMS collected (Meta, LinkedIn, TikTok, X, Snapchat, ChatGPT Ads) into Salesforce as Leads. Someone already a contact or lead (matched by email) is left as they are; synced leads are remembered per brand, so a re-run or a second agent never makes twins. leadSource sets LeadSource (one of the org's picklist values); dryRun lists what would happen and writes nothing. Free. Needs Salesforce connected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| since | string | non | ISO date; default 7 days ago |
| platforms | array<enum: "meta" | "linkedin" | "tiktok" | "x" | "snapchat" | "chatgpt" | "reddit"> | non | default every connected one |
| leadSource | string | non | |
| dryRun | boolean | non |
list_microsoft_ads_campaigns
List Microsoft Advertising accounts / campaigns
Read the brand’s connected Microsoft Advertising (Bing Ads) account(s). Call with NO adAccountId to list the accounts shared with this profile — do this first to pick a target. Call WITH adAccountId to list that account’s campaigns (id, name, status, daily budget, campaign type, and whether the budget is SHARED). Microsoft statuses are Active / Paused — never Google’s ENABLED — and Microsoft also sets BudgetPaused, BudgetAndManualPaused and Suspended on its own, so report the status you read rather than assuming a paused campaign was paused by a person. Read-only, free. Needs Microsoft Advertising connected (Connectors > Microsoft Advertising).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
microsoft_ads_report
Microsoft Advertising performance report
Performance for a Microsoft Advertising account — impressions, clicks, CTR, average CPC, spend, conversions. `reportType` picks WHICH report, and that is the whole Microsoft reporting surface, not just campaigns: AdGroupPerformance, AdPerformance, KeywordPerformance, SearchQueryPerformance (the actual search terms people typed), GeographicPerformance, UserLocationPerformance, AgeGenderAudience and ProfessionalDemographicsAudience (LinkedIn-sourced job function and industry, inside Bing), ConversionPerformance, DestinationUrlPerformance, ShareOfVoice, AssetPerformance, ProductDimensionPerformance, SearchCampaignChangeHistory ("what changed on Tuesday") and ~30 more — an unknown name is refused WITH the full list rather than forwarded. `aggregation` controls the row grain (Summary / Daily / Hourly / Weekly / Monthly / Yearly / HourOfDay / DayOfWeek). Two reports keep far less history than the usual 36 months — AssetPerformance 30 days, ShareOfVoice 6 — and the reply says so, because an empty short-retention report is a retention limit, not an absence of delivery. Window via timePeriod (Today | Yesterday | LastSevenDays | Last14Days | Last30Days | ThisWeek | LastWeek | LastFourWeeks | ThisMonth | LastMonth | LastThreeMonths | LastSixMonths | ThisYear | LastYear | ThisWeekStartingMonday | LastWeekStartingMonday | LastFourWeeksStartingMonday) or since+until (YYYY-MM-DD) — default Last30Days. An unrecognised timePeriod is REFUSED, never silently swapped for another window. Microso…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| timePeriod | string | non | predefined Microsoft window, default Last30Days — must be one of the values in the description; anything else is rejected |
| since | string | non | YYYY-MM-DD custom range start (with until) |
| until | string | non | YYYY-MM-DD custom range end |
| columns | array<string> | non | report columns — defaults to campaign performance. Each report type accepts only its OWN column set; Microsoft also refuses impression-share columns alongside BidMatchType / BudgetName / DeviceOS / Goal / TopVsOther in the same request. |
| reportType | string | non | which report — default CampaignPerformanceReportRequest. An unknown name is refused with the full list. |
| aggregation | enum: "Summary" | "Hourly" | "Daily" | "Weekly" | "Monthly" | "Yearly" | "HourOfDay" | "DayOfWeek" … | non | default Summary. Hourly accepts only Today/Yesterday or a custom range. |
| reportRequestId | string | non | pick up a report that came back pending — pass it back and this RESUMES that exact report instead of submitting a new one |
microsoft_ads_keyword_ideas
Microsoft Advertising keyword planner
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. 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| keywords | array<string> | non | seed terms to expand from |
| url | string | non | a landing page for Microsoft to mine ideas from |
| categoryId | number | non | Microsoft keyword category id to mine ideas from |
| locationIds | array<string> | oui | REQUIRED — Microsoft location ids (microsoft_ads_geo_search resolves names to ids, free) |
| language | string | non | default English |
| network | enum: "OwnedAndOperatedAndSyndicatedSearch" | "OwnedAndOperatedOnly" | "SyndicatedSearchOnly" | non | search network the volume is measured on: Microsoft-owned, partner-syndicated or both |
| competition | array<string> | non | filter to Low | Medium | High |
| minSearchVolume | number | non | only ideas with at least this many monthly searches |
| maxSearchVolume | number | non | only ideas with at most this many monthly searches |
| attributes | array<string> | non | which idea attributes to return — omit for all |
| expandIdeas | boolean | non | false = do not expand; then keywords[] is mandatory |
microsoft_ads_traffic_estimates
Microsoft Advertising traffic estimates
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| keywords | array<string> | oui | the keywords to estimate |
| maxCpc | number | oui | REQUIRED — the max CPC bid to estimate at, in the account currency |
| matchType | enum: "Exact" | "Phrase" | "Broad" | non | default Exact |
| locationIds | array<string> | oui | REQUIRED — Microsoft location ids |
| language | string | non | language to estimate for, e.g. English |
| network | string | non | search network to estimate for; same values as microsoft_ads_keyword_ideas network |
| dailyBudget | number | non | daily budget in account currency the estimate assumes |
microsoft_ads_budget_opportunities
Where Microsoft says budget is capping delivery
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| campaignId | string | non | omit for the whole account |
microsoft_ads_geo_search
Find Microsoft Advertising location ids
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| query | string | array<string> | oui | 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, 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 d…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| name | string | oui | campaign name, ≤128 characters |
| dailyBudget | number | oui | daily budget in the account’s currency |
| budgetType | enum: "DailyBudgetStandard" | "DailyBudgetAccelerated" | "LifetimeBudgetStandard" | non | default DailyBudgetStandard; Accelerated is Audience-campaign only |
| campaignType | string | non | Search (default), Shopping, DynamicSearchAds, Audience or PerformanceMax. Search (and DynamicSearchAds, which Microsoft now builds AS a Search campaign) take the full tree below; Shopping, Audience and PerformanceMax are created as a campaign on its own (finish it in Microsoft Advertising), and pas… |
| storeId | string | non | Shopping (required) or retail Performance Max (optional): the Microsoft Merchant Center store id. Checked against the account’s own stores before anything is created. |
| shoppingPriority | integer | non | Shopping only: 0 (Low, the default), 1 or 2 — decides which campaign serves when several share a store. Performance Max is always 4, set for you. |
| salesCountryCode | string | non | Shopping: two-letter country to filter the store catalog to, e.g. "US". Not with feedLabel. |
| feedLabel | string | non | Shopping: advertise every product with this feed label (≤20 characters). Not with salesCountryCode. |
| localInventoryAds | boolean | non | Shopping: enable local inventory ads (only where Microsoft has enabled the feature for the account) |
| dynamicSearchAds | object | non | Dynamic search ads: required for campaignType DynamicSearchAds, optional on Search. Microsoft retired the DynamicSearchAds TYPE, so the campaign is a Search campaign carrying this setting. |
| biddingScheme | enum: "EnhancedCpc" | "MaxClicks" | "MaxConversions" | "MaxConversionValue" | "TargetImpressionShare" | "TargetCpa" | "TargetRoas" | non | bid strategy. Search takes any; Audience EnhancedCpc/MaxConversions; Shopping EnhancedCpc; Performance Max MaxConversions/MaxConversionValue. TargetCpa/TargetRoas are sent as MaxConversions/MaxConversionValue with the target (Microsoft converts them silently since 2025-08-04). Omitted = Microsoft’s… |
| maxCpc | number | non | bid cap for MaxClicks / MaxConversions / MaxConversionValue / TargetImpressionShare (not Performance Max) |
| targetImpressionShare | number | non | 1–100, with biddingScheme TargetImpressionShare |
| targetAdPosition | enum: "FirstPage" | "MainLine" | "MainLine1" | non | with TargetImpressionShare; MainLine1 = the very top |
| targetCpa | number | non | Performance Max with MaxConversions: target cost per acquisition, account currency |
| targetRoas | number | non | Performance Max with MaxConversionValue: target return on ad spend as a ratio, e.g. 4 = 400% |
| finalUrlExpansionOptOut | boolean | non | Performance Max: true = serve only the final URLs you give; default false lets Microsoft use the whole domain |
| timeZone | string | non | Microsoft time-zone enum (e.g. EasternTimeUSCanada); default the ad account’s own. Microsoft marks a campaign time zone deprecated and may keep its own — the reply states the zone it stored |
| locations | array<string> | non | 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 | array<string> | non | locations to EXCLUDE from the targeted set |
| locationIntent | enum: "PeopleInOrSearchingForOrViewingPages" | "PeopleIn" | non | default PeopleInOrSearchingForOrViewingPages — someone OUTSIDE the target still sees the ad if they search for the place; PeopleIn restricts to people physically there |
| worldwide | boolean | non | 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 | array<string> | non | campaign languages, e.g. ["English"] |
| adGroup | object | non | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| campaignId | string | oui | the campaign this ad group belongs to |
| name | string | oui | ad group name, ≤256 characters |
| status | enum: "Active" | "Paused" | non | default Paused |
| cpcBid | number | non | default max CPC in the account currency |
| language | string | non | required if the campaign has no language set |
| ad | object | non | create the responsive search ad in the same call |
| keywords | array<object> | non | keywords to add: [{text, matchType, bid, status}]; status defaults to Paused |
| confirm | boolean | non | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| adGroupId | string | oui | the ad group this ad lives in |
| headlines | array<string> | non | 3–15 headlines, each ≤30 characters |
| descriptions | array<string> | non | 2–4 descriptions, each ≤90 characters |
| finalUrls | array<string> | non | The landing page(s) — at least one is required. |
| path1 | string | non | display-URL path segment, ≤15 chars, no "/" |
| path2 | string | non | second display-URL path segment (only with path1) |
| status | enum: "Active" | "Paused" | non | default Paused |
| confirm | boolean | non | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| adGroupId | string | oui | the ad group to add them to |
| keywords | array<object> | oui | the keywords |
| confirm | boolean | non | REQUIRED true to add an Active keyword to a LIVE ad group |
search_microsoft_ads_profiles
Find Microsoft Advertising LinkedIn profile ids
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| profileType | enum: "CompanyName" | "Industry" | "JobFunction" | oui | what to search: CompanyName, Industry or JobFunction |
| query | string | oui | part of the name to find (3+ characters for a company) |
| languageLocale | string | non | en (default), fr, de, it, pt-BR, es or zh-Hant |
| limit | number | non | 1-100, default 25 |
list_microsoft_ads_profile_targeting
Read a Microsoft Advertising campaign’s LinkedIn profile targeting
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| campaignId | string | oui | Microsoft campaign id to read LinkedIn profile targeting from |
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| campaignId | string | oui | Microsoft campaign id to change LinkedIn profile targeting on |
| add | array<object> | non | profile criteria to add: [{profileType, profileId, bidAdjustment}] |
| update | array<object> | non | bid adjustments to change on existing criteria: [{criterionId, bidAdjustment}] |
| confirm | boolean | non | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| campaignId | string | oui | the campaign whose budget changes |
| dailyBudget | number | oui | new daily budget in the account’s currency |
| confirm | boolean | non | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| level | enum: "campaign" | "adGroup" | "ad" | non | what to change — default campaign |
| campaignId | string | non | campaign id (level:"campaign") |
| adGroupId | string | non | ad group id (level:"adGroup", or with adId for level:"ad") |
| adId | string | non | ad id (level:"ad" — pass adGroupId too) |
| status | enum: "Active" | "Paused" | oui | Active = start spending; Paused = stop |
| confirm | boolean | non | REQUIRED true to set Active (real spend) |
delete_microsoft_ads_object
Delete a Microsoft Advertising campaign / ad group / ad / keyword
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| level | enum: "campaign" | "adGroup" | "ad" | "keyword" | non | what to delete — default campaign |
| campaignId | string | non | campaign id (level:"campaign"; also the parent for level:"adGroup" if you know it) |
| adGroupId | string | non | ad group id (level:"adGroup"; REQUIRED as the parent for level:"ad" and level:"keyword") |
| adId | string | non | ad id (level:"ad" — pass adGroupId too) |
| keywordId | string | non | keyword id (level:"keyword" — pass adGroupId too) |
| confirm | boolean | non | REQUIRED true — the delete is permanent |
| confirmName | string | non | the object’s EXACT name, required when it has children / is Active / has spent |
| confirmChildren | number | non | the exact number of children reported by the unconfirmed call, required when it has any |
list_microsoft_merchant_stores
List Microsoft Merchant Center stores
List the brand's MICROSOFT MERCHANT CENTER stores, the product-feed side of Microsoft Advertising. THIS IS WHERE THE merchantId COMES FROM: every other Microsoft Merchant tool needs it. 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
list_microsoft_merchant_products
List Microsoft Merchant Center product offers
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| merchantId | string | non | Microsoft Merchant Center store id from list_microsoft_merchant_stores — omit when the account has exactly one store |
| productId | string | non | fully qualified id (channel:contentLanguage:targetCountry:offerId, e.g. Online:en:US:Sku123) to fetch ONE offer |
| limit | number | non | up to 250, default 25 |
| pageToken | string | non | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| merchantId | string | non | Microsoft Merchant Center store id from list_microsoft_merchant_stores — omit when the account has exactly one store |
| product | object | non | ONE whole offer — availability, channel, condition, contentLanguage, imageLink, link, offerId, price{value,currency}, targetCountry, title are required; brand/gtin/mpn strongly recommended |
| products | array<object> | non | several whole offers in one batch, maximum 300 |
| catalogId | string | non | write into a specific catalog instead of the store default |
| dryRun | boolean | non | 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
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| merchantId | string | non | Microsoft Merchant Center store id from list_microsoft_merchant_stores — omit when the account has exactly one store |
| productId | string | oui | the FULLY QUALIFIED id (channel:contentLanguage:targetCountry:offerId), not the offerId |
| confirm | boolean | non | 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
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| merchantId | string | non | Microsoft Merchant Center store id from list_microsoft_merchant_stores — omit when the account has exactly one store |
| limit | number | non | up to 250, default 25 |
| pageToken | string | non | nextPageToken from a previous result, to get the next page |
list_microsoft_merchant_catalogs
List Microsoft Merchant Center catalogs
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| merchantId | string | non | 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
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| merchantId | string | non | Microsoft Merchant Center store id from list_microsoft_merchant_stores — omit when the account has exactly one store |
| catalogId | string | non | set to UPDATE or DELETE an existing catalog; omit to create a new one |
| name | string | non | unique within the store, maximum 70 characters |
| market | string | non | REQUIRED when creating — where the products are served, e.g. en-US. Not settable afterwards |
| isPublishingEnabled | boolean | non | products serve ONLY when this is true — never defaulted on |
| deleteIt | boolean | non | true to delete the catalog named by catalogId |
| confirm | boolean | non | REQUIRED true to delete |
microsoft_ads_editorial_reasons
Why a Microsoft ad or keyword was disapproved
WHY a Microsoft Advertising ad or keyword was DISAPPROVED: Microsoft's editorial reason codes, the word or phrase it objected to (term), where it appeared (location), the countries it applies to, and any appeal status, read live from Microsoft. Use it whenever a read-back shows editorialStatus Disapproved, or the user asks why a Bing ad is not running. Pass adGroupId plus adIds OR keywordIds (Microsoft will not mix ads and keywords in one request). The reply links Microsoft's table of what each code means. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| adGroupId | string | oui | the ad group the ads or keywords sit in |
| adIds | array<string> | non | the ads to explain |
| keywordIds | array<string> | non | or the keywords to explain (not both) |
list_microsoft_ads_negative_keywords
List Microsoft Advertising negative keywords
The NEGATIVE keywords (excluded searches) on a Microsoft Advertising campaign (campaignId) or ad group (adGroupId) with their ids and match types; with no id, the account’s SHARED negative keyword lists; with listId, the keywords in one list. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| campaignId | string | non | campaign whose negative keywords to list |
| adGroupId | string | non | ad group whose negative keywords to list |
| listId | string | non | a shared negative keyword list |
add_microsoft_ads_negative_keywords
Exclude searches on Microsoft Advertising (negative keywords)
EXCLUDE searches from a Microsoft Advertising campaign or ad group with negative keywords — Exact or Phrase only (Microsoft has no broad negative; default Phrase, which blocks every search containing the phrase), up to 20,000 per campaign or ad group. Broad-match keywords without negatives are the classic way to waste money: “stop paying for free” is this tool. It can only narrow spend, so it is never confirm-gated. Read back. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| campaignId | string | non | campaign to add negatives to; pass this or adGroupId |
| adGroupId | string | non | pass this OR campaignId |
| keywords | array<object> | oui | negative keywords, each with text and matchType (Exact or Phrase) |
remove_microsoft_ads_negative_keywords
Remove Microsoft Advertising negative keywords
Remove negative keywords (by id, from list_microsoft_ads_negative_keywords) from a Microsoft Advertising campaign or ad group. On a LIVE campaign that lets those searches trigger paid ads again, so it needs confirm:true after the user agrees. Read back. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| campaignId | string | non | campaign to remove negatives from; pass this or adGroupId |
| adGroupId | string | non | ad group to remove negatives from; pass this or campaignId |
| negativeKeywordIds | array<string> | oui | ids of the negative keywords to remove, from list_microsoft_ads_negative_keywords |
| confirm | boolean | non | REQUIRED true on a LIVE campaign |
manage_microsoft_ads_negative_keyword_list
Manage a shared Microsoft negative keyword list
A SHARED negative keyword list on Microsoft Advertising — one set of exclusions reused across up to 20 campaigns. action: create (name + keywords; campaignIds attaches it straight away), add (keywords), remove (negativeKeywordIds), attach / detach (campaignIds), delete (permanent, confirm:true). Removing, detaching or deleting on a LIVE campaign lets those searches trigger paid ads again, so it needs confirm:true. Read back. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| action | enum: "create" | "add" | "remove" | "attach" | "detach" | "delete" | oui | create, add, remove, attach, detach or delete a shared negative keyword list |
| listId | string | non | every action but create |
| name | string | non | create: ≤255 characters |
| keywords | array<object> | non | keywords for create or add: [{text, matchType}] |
| negativeKeywordIds | array<string> | non | keyword ids to remove from the list (action remove) |
| campaignIds | array<string> | non | campaigns to attach to or detach from the list (action attach or detach) |
| confirm | boolean | non | true to delete the list, or to remove, detach or delete on a LIVE campaign |
set_microsoft_ads_bidding
Change a Microsoft Advertising bid strategy
Change a Microsoft Advertising campaign’s BID STRATEGY, read back: EnhancedCpc, MaxClicks (maxCpc cap), MaxConversions (optional targetCpa), MaxConversionValue (optional targetRoas), TargetImpressionShare (targetImpressionShare + targetAdPosition). Search takes any; Audience EnhancedCpc / MaxConversions; Shopping EnhancedCpc; Performance Max MaxConversions / MaxConversionValue. TargetCpa and TargetRoas are sent as MaxConversions / MaxConversionValue with the target, which is what Microsoft converts them to since 2025-08-04. Conversion strategies need a UET tag and a conversion goal recording conversions. On a LIVE campaign it needs confirm:true. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| campaignId | string | oui | Microsoft campaign id whose bid strategy changes |
| biddingScheme | enum: "EnhancedCpc" | "MaxClicks" | "MaxConversions" | "MaxConversionValue" | "TargetImpressionShare" | "TargetCpa" | "TargetRoas" | oui | new bid strategy; TargetCpa and TargetRoas are sent as MaxConversions and MaxConversionValue |
| maxCpc | number | non | bid cap in account currency, for MaxClicks and MaxConversions |
| targetCpa | number | non | target cost per conversion in account currency, for MaxConversions |
| targetRoas | number | non | ratio, e.g. 4 = 400% |
| targetImpressionShare | number | non | 1–100 |
| targetAdPosition | enum: "FirstPage" | "MainLine" | "MainLine1" | non | FirstPage, MainLine or MainLine1 (MainLine1 = very top), with TargetImpressionShare |
| confirm | boolean | non | REQUIRED true on a LIVE campaign |
list_microsoft_ads_uet_tags
List Microsoft Advertising UET tags
The UET tags (Microsoft’s site tracking pixel) on this Microsoft Advertising customer: id, name, status (Active / Inactive / Unverified) and each tag’s install snippet. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| tagIds | array<string> | non | only these UET tag ids; omit for all tags |
create_microsoft_ads_uet_tag
Create a Microsoft Advertising UET tag
Create a UET tag (Microsoft’s site tracking pixel) and get its install snippet, read back. Url / Event / Duration / PagesViewedPerVisit conversion goals, remarketing lists and conversion bidding all need one. Name ≤100 characters, unique per customer. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| name | string | oui | tag name, up to 100 characters, unique per customer |
| description | string | non | optional note on what the tag tracks |
create_microsoft_ads_conversion_goal
Create a Microsoft Advertising conversion goal
Create a Microsoft Advertising CONVERSION GOAL, read back. type: Url (a thank-you page: urlExpression + urlOperator), Event (a UET custom event: eventAction / eventCategory / eventLabel / eventValue), OfflineConversion (conversions uploaded from a CRM with send_microsoft_ads_offline_conversions — no tag; Microsoft asks for 2 hours before the first upload), Duration (minimumDurationSeconds) or PagesViewedPerVisit (minimumPagesViewed). Every type but OfflineConversion needs tagId (create_microsoft_ads_uet_tag). category is required for Url / Event / Offline. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| name | string | oui | ≤100 characters, unique per customer |
| type | enum: "Url" | "Event" | "OfflineConversion" | "Duration" | "PagesViewedPerVisit" | oui | Url (thank-you page), Event (UET custom event), OfflineConversion, Duration or PagesViewedPerVisit |
| tagId | string | non | UET tag id from create_microsoft_ads_uet_tag; not needed for OfflineConversion |
| category | enum: "AddToCart" | "BeginCheckout" | "BookAppointment" | "Contact" | "Download" | "GetDirections" | "OutboundClick" | "PageView" … | non | conversion category, e.g. Purchase or Signup; required for Url, Event and OfflineConversion |
| urlExpression | string | non | Url goals: the thank-you page URL or path to match |
| urlOperator | enum: "Equals" | "BeginsWith" | "Contains" | "RegularExpression" | non | Url goals: how urlExpression matches the page: Equals, BeginsWith, Contains or RegularExpression |
| eventAction | string | non | Event goals: UET custom event action |
| eventCategory | string | non | Event goals: UET custom event category |
| eventLabel | string | non | Event goals: UET custom event label |
| eventValue | number | non | Event goals: numeric value attached to each event |
| minimumDurationSeconds | number | non | Duration goals: visit length in seconds that counts as a conversion |
| minimumPagesViewed | number | non | PagesViewedPerVisit goals: page count that counts as a conversion |
| revenueType | enum: "FixedValue" | "VariableValue" | "NoValue" | non | FixedValue (one value per conversion), VariableValue or NoValue |
| revenue | number | non | FixedValue: the value of one conversion; VariableValue: the default |
| currencyCode | string | non | 3-letter ISO currency code for the revenue value, e.g. USD |
| countType | enum: "All" | "Unique" | non | All or Unique: how repeat conversions are counted |
| conversionWindowDays | number | non | 1–90 |
| scope | enum: "Account" | "Customer" | non | Account = this ad account only; Customer = shared across the customer |
list_microsoft_ads_audience_targeting
Audiences on a Microsoft campaign or ad group
The audiences (customer lists, remarketing, in-market, custom, similar, combined, product) targeted on — or EXCLUDED from — a Microsoft Advertising campaign or ad group, with each one’s bid adjustment and criterion id. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| campaignId | string | non | campaign whose audience targeting to list; pass this or adGroupId |
| adGroupId | string | non | ad group whose audience targeting to list; pass this or campaignId |
set_microsoft_ads_audience_targeting
Target or exclude a Microsoft audience
Put an audience to work on a Microsoft Advertising campaign or ad group — e.g. the customer list from create_microsoft_ads_customer_list, to retarget it or EXCLUDE existing customers. action add (audienceId, exclude, bidAdjustment -90..900 %) or remove (criterionIds from list_microsoft_ads_audience_targeting). Microsoft allows biddable audiences at the campaign OR the ad-group level of one campaign, not both; exclusions at both; Performance Max can only exclude. Targeting or removing on a LIVE campaign needs confirm:true. Read back. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| campaignId | string | non | campaign to target or exclude the audience on; pass this or adGroupId |
| adGroupId | string | non | ad group to target or exclude the audience on; pass this or campaignId |
| action | enum: "add" | "remove" | non | default add |
| audienceId | string | non | list_microsoft_ads_audiences |
| exclude | boolean | non | true = exclude this audience instead of targeting it |
| bidAdjustment | number | non | -90 to 900 (%); 0 = target without changing the bid |
| criterionIds | array<string> | non | criterion ids to remove (action remove), from list_microsoft_ads_audience_targeting |
| confirm | boolean | non | true required on a LIVE campaign when targeting or removing |
create_microsoft_ads_image_ad
Create a Microsoft image ad from a render (paused)
Turn a Hermoso render, or the user’s own picture (any https URL, or a file via upload_file), into a Microsoft Advertising IMAGE ad: a responsive ad on the Microsoft Audience Network (an Audience campaign) or a multimedia ad on Search. One imageUrl is centre-cropped to the 1.91:1 and 1:1 pictures Microsoft requires (or pass images{landscape, square, logo}), uploaded, and the ad is built PAUSED and read back with its pictures. businessName ≤25, 1–15 headlines ≤30, 1–5 longHeadlines ≤90, 1–5 descriptions ≤90. Search multimedia ads get a callToAction button (default LearnMore); Audience ads have none. videoIds attach videos from upload_microsoft_ads_video. Creating it Active in a live ad group needs confirm:true. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| adGroupId | string | oui | ad group to place the image ad in |
| businessName | string | oui | business name shown on the ad, up to 25 characters |
| headlines | array<string> | oui | 1-15 headlines, up to 30 characters each |
| longHeadlines | array<string> | oui | 1-5 long headlines, up to 90 characters each |
| descriptions | array<string> | oui | 1-5 descriptions, up to 90 characters each |
| finalUrls | array<string> | oui | landing page URL(s) the ad sends people to |
| imageUrl | string | non | one picture, cut to both shapes for you |
| images | object | non | pictures by shape: {landscape, square, logo} URLs, instead of imageUrl |
| logoUrl | string | non | logo picture URL |
| callToAction | string | non | Search multimedia ads only, e.g. LearnMore, ShopNow, SignUp |
| videoIds | array<string> | non | video ids from upload_microsoft_ads_video to attach |
| videoSubType | enum: "VideoMedia16X9" | "VideoMedia5X4" | "VideoMedia1X1" | "VideoMedia4X5" | "VideoMedia9X16" | non | aspect ratio of the attached video: 16x9, 5x4, 1x1, 4x5 or 9x16 |
| status | enum: "Active" | "Paused" | non | default Paused |
| confirm | boolean | non | true required to create the ad Active in a live ad group |
upload_microsoft_ads_video
Upload a video to Microsoft Advertising
Upload videos (a Hermoso render, or the user’s own clip: any direct-download https file or an upload_file URL) to Microsoft Advertising, or check ones already uploaded with videoIds: Draft (still processing), Active, or Failed with Microsoft’s reason. Microsoft enables video per account and refuses clips under 6 seconds. Use the ids in create_microsoft_ads_image_ad(videoIds). Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| urls | array<string> | non | direct-download https URLs of videos to upload; clips under 6 seconds are refused |
| videoIds | array<string> | non | existing video ids to check the status of, instead of uploading |
| description | string | non | description stored with the uploaded video |
list_microsoft_ads_audiences
List Microsoft Advertising audiences (Customer Match lists)
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| audienceIds | array<string> | non | up to 100 specific ids — omit for all of the requested type |
| types | array<string> | non | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| name | string | oui | maximum 128 characters |
| description | string | non | maximum 1024 characters |
| membershipDuration | number | non | 1–390 days, or -1 for no expiration. Microsoft’s default is 30 |
| scope | enum: "Account" | "Customer" | non | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| audienceId | string | oui | the customer list to write into |
| emails | array<string> | non | 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 | enum: "Add" | "Remove" | "Replace" | non | Add (default) is additive across calls |
| subType | enum: "Email" | non | Email is the only identifier Microsoft supports here — it publishes Phone and CRM as “Not currently supported” |
| acceptTerms | boolean | non | REQUIRED true — the user must agree to Microsoft’s Customer Match terms first. Without it nothing is uploaded and nothing is hashed |
list_applovin_ads_campaigns
List AppLovin Ads campaigns
The brand’s AppLovin Ads campaigns: id, name, LIVE/PAUSED, daily budget, goal, countries, landing page. Rename or edit one with update_applovin_ads_campaign; pause or go live with set_applovin_ads_status. Read-only, free. Needs the Campaign Management key, which exists once AppLovin enables API access on the account; without it the answer says how to get it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| campaignIds | array<string> | non | only these ids (up to 100) |
| page | number | non | from 1 |
| size | number | non | 1–100, default 100 |
create_applovin_ads_campaign
Create an AppLovin Ads campaign (paused)
Create an AppLovin Ads campaign, read back PAUSED: AppLovin ignores status on create, so Hermoso pauses it straight after. A WEB campaign needs name, websiteUrl, countries, dailyBudget, goalType and goalValue (CPE also eventTarget; CHK_ROAS also roasDayTarget). APP campaigns add platform, packageName, trackingMethod, clickUrl, impressionUrl (iOS: itunesId). Every field is checked before AppLovin is called. Needs the Campaign Management key, which exists once AppLovin enables API access on the account; without it the answer says how to get it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| name | string | oui | campaign name |
| type | enum: "WEB" | "APP" | non | default: the connected account’s type |
| websiteUrl | string | non | WEB: full landing page URL with tracking parameters |
| countries | array<string> | oui | ISO codes, e.g. ["US","CA"] |
| usRegions | array<string> | non | US state codes, only with US |
| usMetros | array<string> | non | US metro names such as NEW_YORK; not with usRegions |
| dailyBudget | number | non | account currency per day, all countries |
| countryBudgets | object | non | per country instead, e.g. {"US":50} |
| goalType | enum: "CPE" | "CPP" | "CHK_ROAS" | "CPI" | "AD_ROAS" | "BLD_ROAS" | oui | WEB: CPE, CPP, CHK_ROAS |
| goalValue | number | non | target cost (CPE/CPP/CPI) or ROAS ratio (0.9 = 90%) |
| countryGoals | object | non | per-country goal values keyed by ISO code, e.g. {US: 2.5} |
| roasDayTarget | enum: "DAY0" | "DAY7" | "DAY28" | non | WEB DAY0/DAY7; APP DAY7/DAY28 |
| eventTarget | string | non | CPE: the event, e.g. GENERATE_LEAD |
| audienceStrategy | enum: "UNIVERSAL" | "PROSPECTING" | "DISCOVERY" | non | CPP / CHK_ROAS only |
| startDate | string | non | YYYY-MM-DD, default tomorrow (UTC) |
| endDate | string | non | end date, YYYY-MM-DD |
| catalogId | string | non | product catalog id for DPA or DOA campaigns |
| variantSetId | string | non | product variant set id within the catalog |
| catalogType | enum: "DPA" | "DOA" | non | product catalog type: DPA or DOA |
| platform | enum: "IOS" | "ANDROID" | non | app platform: IOS or ANDROID |
| packageName | string | non | app package name, for app campaigns |
| itunesId | number | non | iOS App Store numeric id, for iOS app campaigns |
| trackingMethod | enum: "ADJUST" | "APPSFLYER" | "APSALAR" | "BRANCH" | "KOCHAVA" | "TENJIN" | non | mobile measurement partner that tracks installs: ADJUST, APPSFLYER, APSALAR, BRANCH, KOCHAVA or TENJIN |
| clickUrl | string | non | click-tracking URL from the measurement partner, for app campaigns |
| impressionUrl | string | non | impression-tracking URL from the measurement partner, for app campaigns |
| biddingStrategy | enum: "AUTO_BIDDING_WITH_CPM_BILLING" | "TARGET_GOAL_WITH_CPI_BILLING" | non | automatic bidding billed per thousand impressions, or target goal billed per install |
update_applovin_ads_campaign
Update an AppLovin Ads campaign
Rename an AppLovin campaign or change its budget, goal value, countries, US states or metros, end date or landing page, read back. On a LIVE campaign a budget, goal, country or end-date change needs confirm:true. Status is set_applovin_ads_status; goal type, bidding and start date cannot change. Needs the Campaign Management key, which exists once AppLovin enables API access on the account; without it the answer says how to get it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| campaignId | string | oui | AppLovin campaign id |
| name | string | non | new campaign name |
| dailyBudget | number | non | new daily budget in account currency, all countries |
| countryBudgets | object | non | per-country daily budgets keyed by ISO code, e.g. {US: 50} |
| goalValue | number | non | new target cost, or ROAS ratio (0.9 = 90%) |
| countryGoals | object | non | per-country goal values keyed by ISO code |
| countries | array<string> | non | ISO country codes the campaign runs in |
| usRegions | array<string> | non | US state codes; only when US is a target country |
| usMetros | array<string> | non | US metro names such as NEW_YORK; not together with usRegions |
| endDate | string | non | YYYY-MM-DD |
| websiteUrl | string | non | landing page URL for a WEB campaign |
| audienceStrategy | enum: "UNIVERSAL" | "PROSPECTING" | "DISCOVERY" | non | audience strategy: UNIVERSAL, PROSPECTING or DISCOVERY |
| clickUrl | string | non | click-tracking URL for app campaigns |
| impressionUrl | string | non | impression-tracking URL for app campaigns |
| confirm | boolean | non | required for a spend change on a LIVE campaign |
set_applovin_ads_status
Turn an AppLovin campaign or creative set live or paused
LIVE or PAUSED for an AppLovin campaign (campaignId) or creative set (creativeSetId), read back. LIVE starts real ad spend: show the user the budget, get an explicit yes, then call with confirm:true. Pausing is always safe. AppLovin’s API has no delete; pause instead. Needs the Campaign Management key, which exists once AppLovin enables API access on the account; without it the answer says how to get it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| level | enum: "campaign" | "creative_set" | non | inferred from the id you pass |
| campaignId | string | non | AppLovin campaign id; pass this or creativeSetId |
| creativeSetId | string | non | AppLovin creative set id; pass this or campaignId |
| status | enum: "LIVE" | "PAUSED" | oui | LIVE starts real spend; PAUSED stops delivery |
| confirm | boolean | non | required true for LIVE |
list_applovin_ads_creative_sets
List AppLovin creative sets
AppLovin creative sets with their assets and review status, for one campaign (campaignId) or the whole account. Read-only, free. Needs the Campaign Management key, which exists once AppLovin enables API access on the account; without it the answer says how to get it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| campaignId | string | non | campaign whose creative sets to list; omit for the whole account |
| creativeSetIds | array<string> | non | only these creative set ids |
| page | number | non | page number of the listing |
| size | number | non | rows per page |
create_applovin_ads_creative_set
Create an AppLovin creative set (paused)
Create an AppLovin creative set from uploaded asset ids, born PAUSED, optionally inside a campaign. It must hold EITHER an HTML playable OR a portrait image (IMG_INTER_P) plus a video; Hermoso checks that against AppLovin’s own asset types before creating it. Needs the Campaign Management key, which exists once AppLovin enables API access on the account; without it the answer says how to get it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| name | string | oui | creative set name |
| assetIds | array<string> | oui | AppLovin asset ids |
| campaignId | string | non | campaign to place the creative set in; optional |
| countries | array<string> | non | ISO country codes for the creative set |
| languages | array<string> | non | e.g. ENGLISH |
| url | string | non | landing page for this set only (WEB) |
| brandInfo | object | non | override the account brand on THIS creative set — how a brand A/B tests the end card |
| useAccountBrandInfo | boolean | non | true = go back to the account-level brand info |
remove_applovin_ads_creative_set
Remove an AppLovin creative set from its campaigns
Take an AppLovin creative set out of its campaigns (all of them, or campaignIds). AppLovin’s API has no delete or archive, so this is its only removal: the set and its assets stay on the account and can be added back. Call it WITHOUT confirm FIRST: nothing changes and you get the campaigns it is in; show the user, then call with confirm:true, plus confirmName (its exact name) and confirmChildren when the reply asks for them. Needs the Campaign Management key, which exists once AppLovin enables API access on the account; without it the answer says how to get it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| creativeSetId | string | oui | AppLovin creative set to take out of its campaigns |
| campaignIds | array<string> | non | only these campaigns (up to 20); omit for all |
| confirm | boolean | non | true to remove, after a first call without it has shown the campaigns |
| confirmName | string | non | its exact name, when asked |
| confirmChildren | number | non | the campaign count the unconfirmed call reported |
update_applovin_ads_creative_set
Edit an AppLovin creative set
Edit an AppLovin creative set, read back: rename it, change its countries or languages (an empty list means all), its landing page (url; "" falls back to the campaign’s), replace its assets (assetIds, checked against AppLovin’s own asset types first), or add it to more campaigns (addToCampaignIds, up to 20). Adding a LIVE set to a LIVE campaign needs confirm:true. Status is set_applovin_ads_status. Needs the Campaign Management key, which exists once AppLovin enables API access on the account; without it the answer says how to get it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| creativeSetId | string | oui | AppLovin creative set id to edit |
| name | string | non | new creative set name |
| countries | array<string> | non | ISO codes; [] = all countries |
| languages | array<string> | non | e.g. ENGLISH; [] = all |
| url | string | non | landing page for this set; "" = the campaign’s |
| assetIds | array<string> | non | REPLACES the set’s assets |
| addToCampaignIds | array<string> | non | also run it in these campaigns (up to 20) |
| brandInfo | object | non | override the account brand on THIS creative set — how a brand A/B tests the end card |
| useAccountBrandInfo | boolean | non | true = go back to the account-level brand info |
| confirm | boolean | non | required to add a LIVE set to a LIVE campaign |
clone_applovin_ads_creative_set
Copy an AppLovin creative set into another campaign (paused)
Copy an AppLovin creative set into another campaign, born PAUSED and read back. AppLovin only clones a set that already belongs to a campaign. Needs the Campaign Management key, which exists once AppLovin enables API access on the account; without it the answer says how to get it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| creativeSetId | string | oui | creative set to copy; it must already belong to a campaign |
| campaignId | string | oui | the campaign to copy it into |
applovin_ads_change_history
AppLovin campaign change history
Who changed what on the brand’s AppLovin campaigns, and when: creation, edits (field by field, before and after), status changes and ARCHIVING — including archived campaigns that list_applovin_ads_campaigns no longer returns. One campaign (campaignId) or the whole account; since/until must fall within the latest 30 UTC days and go together (neither = the last 7 days). Read-only, free. Needs the Campaign Management key, which exists once AppLovin enables API access on the account; without it the answer says how to get it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| campaignId | string | non | ONE campaign id; omit for every campaign |
| since | string | non | YYYY-MM-DD UTC, with until |
| until | string | non | YYYY-MM-DD UTC, with since |
| page | number | non | from 1 |
| size | number | non | 1–100, default 100 |
list_applovin_ads_catalogs
List AppLovin catalogs
The AppLovin account’s product catalogs and their variant sets: the catalogId and variantSetId a dynamic-ads campaign (create_applovin_ads_campaign) needs. Website accounts. Read-only, free. Needs the Campaign Management key, which exists once AppLovin enables API access on the account; without it the answer says how to get it.
Aucun paramètre.
list_applovin_ads_assets
List AppLovin assets
Assets on the AppLovin account: id, type (VID_LONG_P, VID_SHORT_P, IMG_INTER_P, IMG_BANNER, HOSTED_HTML), review status and rejection reasons. Read-only, free. Needs the Campaign Management key, which exists once AppLovin enables API access on the account; without it the answer says how to get it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| assetIds | array<string> | non | only these asset ids |
| resourceType | enum: "image" | "video" | "html" | non | asset kind to list: image, video or html |
| page | number | non | page number of the listing |
| size | number | non | rows per page |
upload_applovin_ads_assets
Upload assets to AppLovin
Upload videos, images or an HTML playable to AppLovin from Hermoso render or Library urls or public files (mp4, mov, jpg, png, gif, html; up to 40). Returns AppLovin asset ids once processed; pass uploadId to check a pending upload again. New assets go through AppLovin review. Needs the Campaign Management key, which exists once AppLovin enables API access on the account; without it the answer says how to get it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| urls | array<string> | non | files to upload; a local file goes through upload_file first |
| uploadId | string | non | re-check an earlier upload instead |
applovin_ads_report
AppLovin Ads performance report
AppLovin Ads performance: impressions, clicks, CTR, spend, sales, ROAS and checkout revenue by day, campaign, creative set or country. Works with the Reporting Key alone, which every AppLovin account has. Web reports reach back 90 days, app 45; UTC. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| since | string | non | YYYY-MM-DD, default 7 days ago |
| until | string | non | YYYY-MM-DD, default today |
| columns | array<string> | non | e.g. day, campaign, campaign_id_external, creative_set, country, impressions, clicks, ctr, cost, sales, roas_7d, chka_usd_7d |
| attribution | enum: "click" | "click_and_view" | non | web only, default click |
| filters | object | non | column -> values |
| cohort | boolean | non | attribute to impression day |
| notZero | boolean | non | drop rows whose metrics are all zero |
| having | string | non | server-side numeric filter, e.g. "cost > 0 AND roas_7d = <= = !=, AND, OR, parentheses (AppLovin warns it slows the report) |
| limit | number | non | 1–10000, default 1000 |
| offset | number | non | rows to skip, for paging past the limit |
applovin_ads_pixel
AppLovin pixel install snippet
The AppLovin pixel for the brand’s website: AppLovin’s own install snippet with the account’s Event Key filled in, where it goes (every page’s , Google Tag Manager, or the AppLovin Shopify app), the events to fire for a store or a lead-gen site with copy-ready examples, dedupe ids, and how to validate it. The Event Key is public by design. Calls nothing at AppLovin. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| eventKey | string | non | the AppLovin Event Key; omit to use the one saved on the connection |
| siteType | enum: "purchase" | "lead" | non | default purchase |
| platform | enum: "html" | "gtm" | "shopify" | non | where it is installed, default html |
send_applovin_ads_events
Send conversion events to AppLovin
Send website conversion events to AppLovin from the server (its Conversion API): purchase, generate_lead, add_to_cart and the rest, up to 100 per batch, each with the visitor’s public IP, user agent and one identifier. Email and phone are hashed with AppLovin’s own normalisation before sending; a purchase dedupes on its transaction id. Needs the Conversion API key, which AppLovin enables per account on request; without it the answer says how to get it. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| events | array<object> | oui | 1–100 events; one invalid event makes AppLovin drop the whole batch, so all are checked first |
list_openai_ads_campaigns
List ChatGPT Ads account / campaigns / ad groups / ads
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 (its three names: brandName shown in ads, accountName internal to Ads Manager, legalName; currency, status, brand review and business 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 under Connectors > ChatGPT Ads in the Hermoso app; one connection covers one ad account.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| campaignId | string | non | list this campaign’s ad groups |
| adGroupId | string | non | list this ad group’s ads |
| limit | number | non | page size, default 100 |
| after | string | non | pagination cursor from a previous page |
openai_ads_report
ChatGPT Ads performance report
Performance for ChatGPT Ads: impressions, clicks, spend, CTR, CPC, CPM; CONVERSIONS with CPA, post-click conversion rate and attributed order sales / ROAS; and REACH by default (reach = unique people, frequency, click reach / frequency, total reach / frequency, unique CTR, unique CPC, cost per 1,000 reached). totals.reach is OpenAI’s de-duplicated number for the whole window, never a sum of rows. OpenAI returns conversions only with granularity none or daily and no segment or a country/device one, CPA, conversion rate and sales only with no segment, and reach with any segment but product; the note names any column OpenAI left out (their limit, not a zero). Since OpenAI’s 2026-09-30 change conversions count click-through PLUS view-through goal conversions within the reporting windows (default 30-day click, 1-day view, by ad interaction time); CPA uses them, post-click conversion rate click-through only. clickWindowDays (7, 14, 30), viewWindowDays (0 = clicks only, or 1) and attributionTimeBasis set those windows for this report only; the reply’s `attribution` names them. Scope: none = the whole ad account, or campaignId / adGroupId / adId. PRODUCT-FEED CAROUSEL ads also report per card: ask in `fields` for carousel_product_card_impressions / _clicks and the product_* fields (impressions, clicks, spend, ctr, cpc, cpm, title, price, feed_id); they come back under each row’s `fields`. A card impression is NOT billable; never add it to spend math. granularity hourly, daily, month…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| campaignId | string | non | scope the report to one campaign; omit for the whole ad account |
| adGroupId | string | non | scope the report to one ad group |
| adId | string | non | scope the report to one ad |
| since | string | non | YYYY-MM-DD |
| until | string | non | YYYY-MM-DD |
| granularity | enum: "hourly" | "daily" | "monthly" | "none" | non | default daily |
| level | enum: "ad_account" | "campaign" | "ad_group" | "ad" | non | roll rows up to this level |
| segment | enum: "product" | "country" | "device" | "platform" | non | 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 | non | rows per page, up to 2000 |
| filters | array<object> | non | keep only matching rows, e.g. {field:"campaign.status",operator:"IN",value:["active"]} or {field:"ad.clicks",operator:"GREATER_THAN",value:100} |
| sort | array<object> | non | order rows, e.g. {field:"campaign.spend",direction:"desc"} |
| includeZeroImpressions | boolean | non | also list campaigns / ad groups / ads with no impressions (unsegmented reports only) |
| after | string | non | nextAfter from the previous page; limit goes up to 2000 rows |
| conversions | boolean | non | default true: add conversions, CPA, conversion rate and sales where OpenAI allows them. false leaves them out. |
| fields | array<string> | non | extra insight fields by name, e.g. product_title, product_price, carousel_product_card_impressions; each row returns them under `fields` |
| attributedEvents | boolean | non | add events attributed beyond the goal |
| eventNames | array<string> | non | only these events, e.g. ["order_created"] |
| attributionTimeBasis | enum: "ad_event_time" | "conversion_time" | non | default ad_event_time |
| clickWindowDays | number | number | number | non | default 30 |
| viewWindowDays | number | number | non | default 1; 0 = no views |
| reach | boolean | non | default true: add reach, frequency, click reach / frequency, total reach / frequency, unique CTR, unique CPC and cost per 1,000 reached (not with segment product). false leaves them out. |
openai_ads_geo_search
Find ChatGPT Ads location ids
Look up ChatGPT Ads location ids by name (countries, regions and markets) so a campaign can be geo-targeted, product-feed campaigns included. 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 (or excludedLocationIds to leave a place out) when creating or updating a campaign; a campaign with no location targeting runs everywhere available. OpenAI opens new markets without notice (Indonesia, Malaysia, the Philippines, Singapore, Thailand, Vietnam and Taiwan went live 2026-09-30), so search a market rather than assuming from memory that ChatGPT Ads does not serve it. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| query | string | oui | a place name, e.g. "Toronto" or "United Kingdom" |
| limit | number | non | maximum number of locations to return |
list_x_ads_accounts
List X ad accounts
List the X (Twitter) ad accounts this profile 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.
Aucun paramètre.
list_x_ads_campaigns
List X ads campaigns
List campaigns on an X ad account — status, budgets, and whether X considers each servable. Omit adAccountId when only one account is reachable and it resolves itself. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | X ad account id (list_x_ads_accounts); omit if only one is shared |
| accountId | string | non | older name for adAccountId (MCP only) |
| limit | number | non | maximum number of campaigns to return |
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | X ad account id (list_x_ads_accounts); omit if only one is shared |
| accountId | string | non | older name for adAccountId (MCP only) |
| name | string | oui | campaign name |
| fundingInstrumentId | string | non | omit to be shown the account’s usable funding instruments |
| dailyBudget | number | non | in the ad account’s currency |
| totalBudget | number | non | lifetime budget in ad account currency |
| startTime | string | non | ISO 8601 |
| endTime | string | non | ISO 8601 end time; X deprecates campaign schedules, so set the schedule on the line item |
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | X ad account id (list_x_ads_accounts); omit if only one is shared |
| accountId | string | non | older name for adAccountId (MCP only) |
| campaignId | string | non | the whole campaign — pass this OR lineItemId |
| lineItemId | string | non | one ad group — pass this OR campaignId |
| status | enum: "ACTIVE" | "PAUSED" | oui | ACTIVE starts real spend; PAUSED stops delivery |
| confirm | boolean | non | required to set ACTIVE — real money |
microsoft_ads_bulk_download
Export a Microsoft Advertising account as a bulk file
Export a Microsoft Advertising account as a BULK FILE — one spreadsheet holding whatever slice of the account you ask for. This is the ONLY way to read most of a Microsoft account: roughly 185 of Microsoft’s record types are reachable here and nowhere else in Hermoso — sitelink / callout / structured-snippet / image / logo / price / promotion ad extensions, labels, shared negative keyword lists, bid strategies, audiences and their associations, experiments, seasonality adjustments, conversion goals, asset groups and listing groups, feeds. Pass entities[] (default Campaigns, AdGroups, Ads, Keywords), campaignIds[] to narrow it, or since for a DELTA of what changed (Microsoft refuses anything older than 30 days). The reply carries the WHOLE FILE as a string in `file` — edit that and pass it straight to microsoft_ads_bulk_upload, which is the round trip this exists for. A bulk export is a SNAPSHOT of what Microsoft held when it ran, never a live view, so do not quote a status from it as current after a change. Microsoft builds it asynchronously: a large account can come back pending:true with a downloadRequestId — call again with that id rather than resubmitting, which would export the whole account a second time. Read-only, 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| entities | array<string> | non | Microsoft DownloadEntity names — Campaigns, AdGroups, Ads, Keywords (the default), plus SitelinkAdExtensions, CalloutAdExtensions, Labels, Budgets, BidStrategies, AssetGroups, ConversionGoal, Experiments, Audiences and ~180 more. An unknown one is refused BY NAME, because Microsoft answers it with… |
| campaignIds | array<string> | non | export only these campaigns (max 1000) instead of the whole account |
| since | string | non | ISO date — export only what CHANGED since then. Microsoft refuses a delta older than 30 days, and refuses one at all alongside QualityScoreData / BidSuggestionsData |
| fileType | enum: "Csv" | "Tsv" | non | default Csv |
| compression | enum: "GZip" | "Zip" | non | default GZip |
| dataScope | array<string> | non | EntityData (default), QualityScoreData, BidSuggestionsData — the last two force a FULL export |
| limit | number | non | how many rows to return inline, default 200 (the full file is still in `file`) |
| allowUnlistedEntities | boolean | non | send an entity name we do not recognise verbatim — for a record type Microsoft added after our copy of its list was read |
| downloadRequestId | string | non | pick up an export that came back pending. Valid 2 days, and far cheaper than exporting the account again |
| waitMs | number | non | how long to wait for Microsoft to build the file before returning pending, max 120000 |
microsoft_ads_bulk_upload
Apply a Microsoft Advertising bulk file (spend-gated)
Apply a Microsoft Advertising BULK FILE — edit hundreds of campaigns, ad groups, ads, keywords, extensions or labels in one request. Pass `file` as the CSV/TSV string; microsoft_ads_bulk_download returns exactly that shape in its `file` field. THE SPEND GATE, AND IT IS UNLIKE EVERY OTHER TOOL HERE. A bulk file carries a Status column, so one upload can turn campaigns ON — and confirm:true ALONE IS NOT ENOUGH for a file: it proves you meant to upload something, not that you know what THIS file does, and it reads identically for a file that changes two bids and one that activates fifty campaigns. So: call it ONCE with no confirmation. Nothing is uploaded, and you are told exactly how many objects the file would ACTIVATE (they can then spend real money) and DELETE (which Microsoft never undoes — a deleted object is never returned by any read again), each named with its row number, type, id and name. SHOW THAT LIST TO THE USER, get an explicit yes, then call again with confirm:true, confirmActivations: and confirmDeletions: . If the activations are incidental — a file you round-tripped out of a download and only meant to edit bids in — pass pauseInstead:true instead and those rows are written as Paused, so everything else lands with nothing armed; it is refused when the file also deletes, because pausing is a safe substitute for activating and there is none for deleting. Partial success is normal on this API: rows Microsoft rejects come back listed individually and the correct o…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| file | string | oui | the bulk file itself, CSV or TSV, whose first column header must be "Type" |
| fileType | enum: "Csv" | "Tsv" | non | inferred from the file when omitted |
| confirm | boolean | non | the user has SEEN what this file activates and deletes and said yes. Not sufficient on its own — the two echo counts below are also required |
| confirmActivations | number | non | echo back how many objects this file ACTIVATES — the exact count the un-confirmed call reported |
| confirmDeletions | number | non | echo back how many objects this file DELETES — the exact count the un-confirmed call reported |
| pauseInstead | boolean | non | rewrite every activation to Paused so the rest of the file uploads with nothing armed. Never applied unless asked: an unrequested rewrite would PAUSE A LIVE CAMPAIGN |
| dryRun | boolean | non | report what the file would do and upload nothing at all |
| responseMode | enum: "ErrorsAndResults" | "ErrorsOnly" | non | default ErrorsAndResults, so the outcome can be read back rather than assumed |
| uploadRequestId | string | non | read the outcome of an upload that came back pending. NEVER re-upload the file — it is already queued, and a second upload applies every row twice |
| waitMs | number | non | how long to wait for Microsoft to apply the file before returning pending, max 120000 |
list_microsoft_ads_conversion_goals
Microsoft Advertising conversion goals
The conversion goals on a Microsoft Advertising account — what the account COUNTS as a conversion, and therefore what every conversion-optimised bid strategy on it is optimising toward. Flags which ones are OFFLINE goals: those are the only goals send_microsoft_ads_offline_conversions can post to, and its conversionName must match one of their names EXACTLY, including case and spacing. An account with no goals at all has no conversion tracking — say that plainly rather than reporting an empty list, because it means smart bidding there has nothing to aim at. Read-only, 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| goalIds | array<string> | non | specific goal ids — omit for all of them |
| goalType | string | non | filter to one Microsoft ConversionGoalType, e.g. OfflineConversion |
send_microsoft_ads_offline_conversions
Send offline + enhanced conversions to Microsoft
Tell Microsoft Advertising about conversions that happened OFF the website — a phone sale, an in-store purchase, a lead that closed weeks after the click — so smart bidding on that account stops optimising against only what converted online. Each row needs conversionName (an existing OFFLINE conversion goal, matched by name — list_microsoft_ads_conversion_goals shows them), conversionTime (within the last 90 days AND after the click), and an identifier: either microsoftClickId (the msclkid Microsoft appends to the landing-page URL) or, for ENHANCED conversions, a plain email and/or phone. YOU PASS PLAIN VALUES AND THE HASHING HAPPENS SERVER-SIDE: emails are normalized and SHA-256’d to Microsoft’s own published five-step spec, which is verified against Microsoft’s own worked digests. A PHONE MUST ALREADY CARRY ITS COUNTRY CODE (+14255551234) and is refused otherwise — Microsoft’s spec says "normalize to E.164 format with country code" and stops there, and guessing which country a bare 4255551234 belongs to is not a mistake you would ever see: the upload succeeds and matches nobody. SAY THIS WHEN REPORTING: accepted is not the same as visible. Microsoft takes up to 6 hours to show offline conversion data and applies nothing at all in the first 2 hours after a goal is created, and a conversion only counts inside the goal’s own conversion window. Duplicates are silently ignored (the first wins), so re-sending a batch is safe and changes nothing. 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| conversionName | string | non | default goal name for every row that does not carry its own |
| conversions | array<object> | oui | up to 1000 per request — Microsoft applies each request independently |
microsoft_ads_auction_insights
Who else is bidding on the same Microsoft auctions
Who ELSE is competing for the same Microsoft Advertising auctions — the other advertisers’ domains with their impression share, overlap rate, position-above rate, top-of-page rate and outranking share. microsoft_ads_report tells you what the account did; this tells you who it did it against, which is the input to a bid or a creative decision rather than a report. Scope it with entityType Account (default, the whole account) / Campaign / AdGroup / Keyword plus entityIds (max 200), and optionally segment by up to three of Day, DayOfWeek, Device. SAY THIS WHEN REPORTING: every figure is a share of the auctions YOUR ads entered, never a measure of a competitor’s whole account or budget — a competitor missing from the list did not necessarily not bid. An empty result means there was no delivery to compare in that window, which is MISSING data; never report it as "nobody is bidding against you". Read-only, 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| entityType | enum: "Account" | "Campaign" | "AdGroup" | "Keyword" | non | default Account |
| entityIds | array<string> | non | REQUIRED for Campaign / AdGroup / Keyword, max 200. Microsoft only defaults to the whole account for entityType Account |
| since | string | non | YYYY-MM-DD, default 30 days back |
| until | string | non | YYYY-MM-DD, default today |
| segments | array<enum: "Day" | "DayOfWeek" | "Device"> | non | at most three — Microsoft’s own limit |
microsoft_ads_recommendations
What Microsoft suggests changing on the account
What Microsoft Advertising ITSELF suggests changing on the account: budget raises, new keywords, broad-match widenings, conflicting negative keywords to remove, and responsive search ads or extra headlines Microsoft has written. Each row carries the campaign and ad group it touches plus Microsoft’s OWN estimate of what applying it would add to clicks, impressions, conversions and COST; a budget recommendation states the current and the recommended daily amount, so the money is a vendor fact rather than a guess. SAY THIS WHEN REPORTING: every Microsoft recommendation INCREASES what the account buys, that is what they are for, so none of them is a free win, and an empty list means Microsoft has no ADVICE (usually too little delivery to compute any), never that the account is optimal. Dismissed recommendations are hidden unless you ask for them. Read-only, 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| types | array<string> | non | narrow to some of ADD_BROAD_MATCH_KEYWORD, CAMPAIGN_BUDGET, KEYWORD, REMOVE_CONFLICTING_NEGATIVE_KEYWORD, RESPONSIVE_SEARCH_AD, RESPONSIVE_SEARCH_AD_ASSET, all six by default. An unknown name is refused BY NAME, because Microsoft answers one with a deserialization error that names no field |
| limit | number | non | Microsoft’s MaxCount, omit for everything |
| includeDismissed | boolean | non | also show recommendations already dismissed |
apply_microsoft_ads_recommendations
Apply Microsoft recommendations (spend-gated)
Apply Microsoft Advertising recommendations by id. THIS SPENDS REAL MONEY AND HAS NO UNDO. It raises daily budgets, adds keywords, widens keywords to broad match, DELETES negative keywords so the account buys more searches, and publishes Microsoft-written ads under the brand’s name, all live at the next auction. THE GATE IS UNLIKE THE OTHER MICROSOFT SPEND SWITCHES, AND confirm:true ALONE IS REFUSED: it proves you meant to apply something, not that you know what THESE ones do, and it reads identically for one keyword suggestion and forty budget raises. So call it ONCE with no confirmation. Nothing is applied, and you get every recommendation named with its campaign, exactly what it changes, the current -> recommended budget where there is one, and Microsoft’s own cost estimate. SHOW THAT LIST TO THE USER, get an explicit yes, then call again with confirm:true, confirmCount: and confirmCostIncrease: . BOTH NUMBERS ARE RECOMPUTED FROM A FRESH READ at that moment, so a recommendation Microsoft has withdrawn, already applied or re-priced since you looked fails the check instead of being applied unseen. If ANY id you name is no longer on offer, NOTHING is applied, not even the ones that still are, because applying part of a set you inspected whole is not what you asked for. Microsoft can reject individual items and apply the rest, so the result reports per item: never call a partial apply a failure, and never call it a success. 0 credits to us; the spend lands on the ad account.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| recommendationIds | array<string> | oui | ids from microsoft_ads_recommendations, max 100. There is deliberately no "apply everything" |
| confirm | boolean | non | the user has SEEN the pre-flight list and said yes. Not sufficient on its own, both echo numbers below are also required |
| confirmCount | number | non | echo back how many recommendations this applies: the exact count the un-confirmed call reported |
| confirmCostIncrease | number | non | echo back Microsoft’s own summed cost estimate for them: the exact number the un-confirmed call reported |
| dryRun | boolean | non | report what would happen and apply nothing at all |
dismiss_microsoft_ads_recommendations
Dismiss Microsoft recommendations
Dismiss Microsoft Advertising recommendations by id so Microsoft stops offering them. IT CANNOT SPEND and it changes nothing about what the account runs (it takes advice off the list), so it takes no confirmation at all, which is the point: reach for this rather than applying something just to clear it. Nothing is destroyed either: Microsoft still returns a dismissed recommendation from a read, flagged as dismissed, and microsoft_ads_recommendations will show it again with includeDismissed. Ids Microsoft has already withdrawn are reported and are not an error, they are already off the list, which is the outcome you wanted. 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| recommendationIds | array<string> | oui | ids from microsoft_ads_recommendations, max 100 |
microsoft_ads_auto_apply
Is Microsoft changing this ad account by itself?
Whether Microsoft is allowed to change this ad account BY ITSELF, unattended: the auto-apply opt-in status for each of the five recommendation types Microsoft supports. THIS IS THE READ THAT ANSWERS "is something changing my account when nobody is looking?", and it is worth running on any Microsoft account you inherit: an account can already be opted in without anyone at the brand having done it, and there is no other way to find out from here. A type Microsoft returns no status for is reported as UNKNOWN, never as off. TWO THINGS THAT CATCH PEOPLE OUT AND ARE STATED IN THE REPLY: these five type names are a DIFFERENT, case-sensitive vocabulary from the six microsoft_ads_recommendations uses (Microsoft cannot auto-apply a budget recommendation at all, there is no such type), and three of the five have no readable recommendation, so there is no way to preview what auto-apply would do for those. Read-only, 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| types | array<string> | non | narrow to some of ResponsiveSearchAdsOpportunity, MultiMediaAdsOpportunity, RemoveConflictingNegativeKeywordOpportunity, FixConversionGoalSettingsOpportunity, CreateConversionGoalOpportunity, all five by default |
set_microsoft_ads_auto_apply
Let Microsoft change the account by itself, or stop it (per type)
Switch Microsoft’s auto-apply on or off, per recommendation type. SWITCHING ONE ON IS UNLIKE EVERY OTHER WRITE IN HERMOSO: it is STANDING PERMISSION FOR MICROSOFT TO CHANGE THIS AD ACCOUNT ON ITS OWN, indefinitely, with nobody watching, publishing search and multimedia ads it wrote under the brand’s name, DELETING negative keywords so the account starts buying searches it currently blocks, or creating and changing conversion goals so every smart-bidding strategy on the account re-aims. It has no expiry and no schedule you can inspect, and nothing in Hermoso will ever turn it off for the user. AND THERE IS NOTHING TO PREVIEW: Microsoft decides later, on evidence that does not exist yet, so no count, no dry run and no list can tell you what it will do, which is exactly why a blast-radius echo would be meaningless here and each type has to be named instead. To turn any type ON: confirm:true AND confirmTypes listing every type being turned on, individually. There is no "all" and no default; naming four of five leaves the fifth refused BY NAME. TURNING IT OFF IS NEVER GATED, set those types to false and it goes straight through, because that only ever reduces what Microsoft does unattended. A type already in the state you asked for is not sent at all. THE ANSWER IS THE READ-BACK: the result re-reads Microsoft and says done / not done / could not tell PER TYPE, and you report that, never the fact that the call returned. 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| optIns | object | oui | map of Microsoft auto-apply type name to true/false, e.g. {"RemoveConflictingNegativeKeywordOpportunity": false}. Case-sensitive keys: ResponsiveSearchAdsOpportunity, MultiMediaAdsOpportunity, RemoveConflictingNegativeKeywordOpportunity, FixConversionGoalSettingsOpportunity, CreateConversionGoalOpp… |
| confirm | boolean | non | required to turn ANY type ON, after the user has been told what Microsoft will be allowed to do unattended. Never needed to turn one off |
| confirmTypes | array<string> | non | every type you are turning ON, named individually. That is the echo which proves you know WHICH permission you are granting, where a count could not |
get_microsoft_ads_account_properties
Read Microsoft Advertising account settings
Read a Microsoft Advertising ad account’s account-level settings (Microsoft’s GetAccountProperties): TrackingUrlTemplate, FinalUrlSuffix, MSCLKIDAutoTaggingEnabled, AdClickParallelTracking, IncludeViewThroughConversions, ProfileExpansionEnabled, AllowImageAutoRetrieve, BusinessAttributes, AssetAIEnhancementOptout, AIDetectedContentWatermarkPolicy and the rest Microsoft returns, each flagged settable or read-only here. A property Microsoft does not return is reported as UNREAD (often a feature that has not reached the account yet), never as off or empty. AIDetectedContentWatermarkPolicy is the account-level AI-detected content watermark policy; Microsoft has not documented its values, so report what the account stores verbatim and do not guess what it means. Read-only, 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| names | array<string> | non | narrow to some account property names, e.g. ["AIDetectedContentWatermarkPolicy"]; all of them by default |
set_microsoft_ads_account_properties
Change Microsoft Advertising account settings
Change a Microsoft Advertising ad account’s account-level settings (Microsoft’s SetAccountProperties). They apply to EVERY campaign in the account. Settable: TrackingUrlTemplate and FinalUrlSuffix ("" clears them), MSCLKIDAutoTaggingEnabled, AdClickParallelTracking (true only, Microsoft made it mandatory), IncludeViewThroughConversions, ProfileExpansionEnabled, AllowImageAutoRetrieve, BusinessAttributes (an array or a semicolon list of Microsoft’s attribute names, "" clears), AssetAIEnhancementOptout and AIDetectedContentWatermarkPolicy. Readable but refused here, by name: AutoApplyRecommendations (use set_microsoft_ads_auto_apply), the Nielsen and Netflix terms acceptances (a person accepts terms, not an agent), and properties whose values Microsoft does not document. confirm:true is required to turn ProfileExpansionEnabled ON (it widens reach and can raise spend), to turn AllowImageAutoRetrieve ON (it grants Microsoft a licence to your site images), and for ANY AIDetectedContentWatermarkPolicy value: Microsoft has not documented those values, so read the property first, tell the user that, and pass the value verbatim. Microsoft sets all or none. A value already in place is not sent. THE ANSWER IS THE READ-BACK: per property done / not done / could not tell, with the previous value and the call that restores it. Report that, never the fact that the call returned. 0 credits.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | Microsoft ad account id — omit to use the single shared account |
| accountId | string | non | older name for adAccountId (MCP only) |
| properties | object | oui | map of account property name to value, e.g. {"MSCLKIDAutoTaggingEnabled": true}, {"FinalUrlSuffix": "utm_source=bing"} or {"AIDetectedContentWatermarkPolicy": " "} |
| confirm | boolean | non | the user said yes. Required for ProfileExpansionEnabled=true, AllowImageAutoRetrieve=true and any AIDetectedContentWatermarkPolicy value |
list_apple_ads_campaigns
List Apple Ads campaigns
Read the brand’s connected Apple Ads (Apple Search Ads) campaigns — App Store search ads, on Apple’s Platform API. Each row carries status, the system-computed displayStatus, the daily budget, the bid strategy, the countries and placements it runs in and, when a campaign cannot run, systemStatusReasons stating exactly why. Read-only, free, zero spend risk. Needs Apple Ads connected (Connectors > Apple Ads, or connect_connector): there is no OAuth — Hermoso generates an EC signing key, the user pastes the public half into Apple Ads > Account Settings > API and pastes back clientId / teamId / keyId. To BUILD on this account, use create_apple_ads_campaign / create_apple_ads_ad_group / add_apple_ads_keywords: everything is created PAUSED and only set_apple_ads_status(confirm:true) can arm spend.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| limit | number | non | page size, default 100, Apple’s max is 1000 |
| offset | number | non | offset pagination |
list_apple_ads_ad_groups
List Apple Ads ad groups
Ad groups on the brand’s Apple Ads account — status, the system-computed displayStatus, pricing model, the bid off the ad group’s bidStrategy, and whether Search Match (Apple’s automated keyword matching) is on. campaignId is OPTIONAL: with it, the ad groups of that one campaign; WITHOUT it, every ad group in the ad account, each row carrying its own campaignId. (Apple’s older API had no account-wide ad-group list and required the campaign id; its Platform API does, and this now uses it.) Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| campaignId | string | non | optional — from list_apple_ads_campaigns. Omit for every ad group in the ad account. |
| limit | number | non | maximum number of ad groups to return |
| offset | number | non | ad groups to skip, for paging |
list_apple_ads_keywords
List Apple Ads targeting or negative keywords
Targeting or negative keywords with their match type, status and bid. THE TWO RESOURCES SCOPE DIFFERENTLY and Apple enforces it: TARGETING keywords (the default) need campaignId OR adGroupId — campaignId alone now returns every targeting keyword in the campaign, which Apple’s older API had no way to ask for. NEGATIVE keywords (negative:true) always need one of the two as well, and Apple splits them by LEVEL: campaignId alone returns the CAMPAIGN-level negatives that suppress the whole campaign (scope ‘campaign’, the default), scope ‘adgroup’ returns every AD-GROUP-level negative across that campaign in one call, and naming an adGroupId returns just that ad group’s. The reply states which level it counted, because the row shapes are identical and the number means different things. There is no account-wide keyword list. Apple allows up to 5000 keywords per ad group. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| campaignId | string | non | the campaign — required unless you pass adGroupId |
| adGroupId | string | non | narrow to one ad group. Outranks scope on both resources. |
| negative | boolean | non | list negative keywords instead of targeting keywords |
| scope | enum: "campaign" | "adgroup" | non | NEGATIVE keywords only, with campaignId and no adGroupId: "campaign" (default) = the campaign-level negatives; "adgroup" = every ad-group-level negative across the campaign. |
| limit | number | non | maximum number of keywords to return |
| offset | number | non | keywords to skip, for paging |
apple_ads_report
Apple Ads performance report
Apple Ads performance — impressions, taps, installs, spend, TTR, CPT, CPA. level is campaign / adgroup / ad / keyword / searchterm; promotedObjectType is apps (App Store, the default) or business-brands (Ads on Apple Maps). startTime and endTime are REQUIRED, as YYYY-MM-DD. campaignId is REQUIRED for every level except campaign — it moved from the URL into a filter, but Apple still enforces it (measured: “campaignId filter is required for AD_GROUP reports when promotedObjectType is APPS”), so only a campaign-level report may be account-wide. adGroupId narrows it further. groupBy is restricted PER LEVEL and an unsupported dimension is refused by name, never dropped: campaign and adgroup take deviceClass/ageRange/gender/countryCode/adminArea/locality/storefront/countryOrRegion, keyword and searchterm take only deviceClass/storefront/countryOrRegion, and ad takes only storefront/countryOrRegion. granularity is optional and carries Apple’s own date rules (HOURLY reaches back 7 days and is unavailable on ad and searchterm reports; DAILY 90 days and needs a range longer than one day; WEEKLY 365 days with an end date at least 14 days ago; MONTHLY needs an end date at least 90 days ago). FOR A SINGLE DAY, OMIT granularity — the totals come back in each row’s totalMetrics. Search-term reports are ORTZ-only. grandTotals adds a summary row; emptyMetrics includes entities with no delivery — App Store reports only, never together with groupBy, and never on a search-term report. A report…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| level | enum: "campaign" | "adgroup" | "keyword" | "searchterm" | "ad" | non | default campaign |
| promotedObjectType | enum: "apps" | "business-brands" | non | apps = App Store (default), business-brands = Ads on Apple Maps |
| campaignId | string | non | REQUIRED for every level except campaign. It moved from the URL into a filter in the Platform API, but Apple still enforces it — only a campaign-level report may be account-wide. |
| adGroupId | string | non | optional second filter — v5 had no path for this |
| startTime | string | oui | YYYY-MM-DD (required) |
| endTime | string | oui | YYYY-MM-DD (required) |
| granularity | enum: "HOURLY" | "DAILY" | "WEEKLY" | "MONTHLY" | non | omit entirely for a single day, or for totals only |
| groupBy | array<string> | non | restricted per level — see the description; an unsupported value is refused by name |
| timeZone | enum: "ORTZ" | "UTC" | non | ORTZ = the organization time zone, Apple’s default. Search-term reports accept ORTZ only. |
| grandTotals | boolean | non | add a summary row across all result rows |
| emptyMetrics | boolean | non | include entities with no delivery. App Store reports only, and never together with groupBy. |
| fields | array<string> | non | limit the returned fields. Omit for all of them. |
| offset | number | non | row to start at (default 0). hasMore is now MEASURED against Apple’s own pagination.totalCount rather than inferred from a full page, and the default ordering is localSpend DESCENDING — so omitted rows are the LOW-SPEND tail. |
| limit | number | non | rows per page, up to 5000 (default 100) |
list_apple_ads_orgs
List Apple Ads organizations
The Apple Ads ad accounts these credentials can act as, with the roles held on each, plus the organization’s currency, time zone and payment model. NAMING: Apple’s older API called these “organizations” (campaign groups) and its Platform API calls them AD ACCOUNTS — the id is the same number, and `orgId` and `adAccountId` on each row are equal. One login can cover several: an agency managing multiple clients has one per client. Reading this does NOT switch account: Apple Ads is pinned to the ONE chosen when the connection was made, so an agent can never act as another client’s. To use a different one, pick it in Connectors > Apple Ads > Manage accounts, with set_connector_accounts, or by reconnecting. A payment model of null is worth reporting: Apple states that without one, campaigns cannot run. Read-only, free.
Aucun paramètre.
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| name | string | oui | REQUIRED. Unique across the entire Apple Ads organization. |
| appAdamId | string | oui | REQUIRED. App Store id of the promoted app, e.g. "6752439949". |
| dailyBudget | string | oui | REQUIRED. Decimal string, e.g. "25.00". |
| countries | array<string> | oui | REQUIRED. ISO 3166-1 alpha-2 codes, e.g. ["US","CA"]. |
| placements | array<string> | non | 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 | enum: "MANUAL_CPT" | "MAX_CONVERSIONS" | non | Default MANUAL_CPT. |
| bid | string | non | MAX_CONVERSIONS only — the target CPA. Refused on MANUAL_CPT. |
| currency | string | non | Defaults to the connected ad account’s currency; an account cannot mix currencies. |
| startTime | string | non | campaign start time, ISO 8601 |
| endTime | string | non | Omit to run indefinitely. |
| budgetOrderIds | array<string> | non | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| campaignId | string | oui | REQUIRED. |
| name | string | oui | REQUIRED. |
| defaultBid | string | non | Max cost per tap, e.g. "1.50". |
| currency | string | non | ISO 4217 currency code of the ad group bids |
| startTime | string | non | Defaults to now. |
| endTime | string | non | Omit to inherit the campaign end date. |
| searchMatch | boolean | non | Opt into Apple’s automated keyword matching. |
| pricingModel | enum: "CPT" | "CPM" | "CPA" | non | Default CPT; must match the campaign billing event. |
| targeting | object | non | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adGroupId | string | oui | REQUIRED. |
| keywords | array<object> | oui | REQUIRED. Up to 1000. |
| matchType | enum: "EXACT" | "BROAD" | "PHRASE" | "CATEGORY" | non | Default for entries that do not set one. |
| currency | string | non | ISO 4217 currency code for the bids |
| confirm | boolean | non | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| campaignId | string | non | Campaign-wide. Pass this OR adGroupId, never both. |
| adGroupId | string | non | One ad group. Pass this OR campaignId, never both. |
| keywords | array<object> | oui | REQUIRED. |
| matchType | enum: "EXACT" | "BROAD" | "PHRASE" | "CATEGORY" | non | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| level | enum: "campaign" | "adgroup" | "keyword" | "creative" | "ad" | "location_group" | oui | REQUIRED. |
| id | string | oui | REQUIRED. |
| name | string | non | new name for the campaign, ad group, creative, ad or location group |
| dailyBudget | string | non | Campaign only. |
| defaultBid | string | non | Ad group only. |
| bid | string | non | Keyword only. |
| countries | array<string> | non | Campaign only. REPLACES the whole list. |
| bidStrategyType | enum: "MANUAL_CPT" | "MAX_CONVERSIONS" | non | Campaign only. |
| searchMatch | boolean | non | Ad group only. |
| targeting | object | non | 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 | array<string> | non | Location group only (STATIC). REPLACES the whole membership. |
| rules | array<object> | non | Location group only (DYNAMIC). REPLACES every rule and puts the group back to PENDING. |
| description | string | non | Location group only. |
| startTime | string | non | start time, ISO 8601 |
| endTime | string | non | end time, ISO 8601 |
| currency | string | non | ISO 4217 currency code |
| budgetOrderIds | array<string> | non | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| level | enum: "campaign" | "adgroup" | "keyword" | "negative_keyword" | "ad" | oui | REQUIRED. |
| id | string | oui | REQUIRED. |
| status | enum: "ENABLED" | "PAUSED" | oui | REQUIRED. |
| confirm | boolean | non | REQUIRED to ENABLE — it arms real spend. Pausing needs none. |
delete_apple_ads_object
Delete an Apple Ads object
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…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| level | enum: "campaign" | "adgroup" | "keyword" | "negative_keyword" | "ad" | "creative" | "asset" | "location_group" … | oui | REQUIRED. |
| id | string | oui | REQUIRED. |
| confirm | boolean | non | REQUIRED. Nothing is deleted without it. |
| confirmName | string | non | Optional — echo the object’s exact name to prove you aimed at the right one. |
search_apple_ads_apps
Find an App Store app to advertise
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| query | string | non | App name or developer to search the App Store for. |
| adamId | string | non | Fetch one app’s full details instead of searching. |
| ownedOnly | boolean | non | 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 | array<string> | non | App Store country/region codes to search in, e.g. ["US","GB"]. |
| cpids | string | non | Comma-separated iTunes content provider ids to scope the search to. |
| limit | number | non | maximum number of apps to return |
| offset | number | non | apps to skip, for paging |
check_apple_ads_app_eligibility
Check whether an app may be advertised
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adamId | string | oui | REQUIRED — from search_apple_ads_apps. |
| supplyPlacement | array<string> | non | Narrow to placements, e.g. ["APPSTORE_SEARCH_RESULTS","APPSTORE_SEARCH_TAB"]. |
| countryOrRegion | array<string> | non | ISO 3166-1 alpha-2 codes. |
| deviceClass | array<string> | non | IPHONE and/or IPAD. |
| limit | number | non | maximum number of eligibility rows to return |
list_apple_ads_product_pages
List App Store product pages
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adamId | string | non | App Store id — one app’s pages, or its DEFAULT listing’s locale details. |
| productPageId | string | non | A specific custom product page (UUID). |
| localeDetails | boolean | non | Read per-language content instead of the page list. |
| languageCode | string | non | With localeDetails — one locale, e.g. "en-US". Omit for all. |
| language | string | non | With localeDetails — a language, e.g. "en". |
| state | string | non | Filter by page state; the typical live value is PUBLISHED. |
| limit | number | non | maximum number of rows to return |
| offset | number | non | rows to skip, for paging |
list_apple_ads_creatives
List Apple Ads creatives
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| id | string | non | Fetch one creative. |
| creativeType | enum: "DEFAULT_PRODUCT_PAGE" | "CUSTOM_PRODUCT_PAGE" | "LOCAL_ADS_SEARCH_CREATIVE" | non | creative kind: DEFAULT_PRODUCT_PAGE, CUSTOM_PRODUCT_PAGE or LOCAL_ADS_SEARCH_CREATIVE |
| systemStatus | enum: "VALID" | "INVALID" | "PENDING" | non | Apple's review state: VALID, INVALID or PENDING |
| name | string | non | Name prefix. |
| eligibility | enum: "ELIGIBLE" | "INELIGIBLE" | non | ELIGIBLE or INELIGIBLE for ad placement |
| includeDeleted | boolean | non | true = include deleted creatives, which Apple hides by default |
| limit | number | non | maximum number of creatives to return |
| offset | number | non | creatives to skip, for paging |
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 mapsBrandId (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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| name | string | oui | REQUIRED. |
| creativeType | enum: "DEFAULT_PRODUCT_PAGE" | "CUSTOM_PRODUCT_PAGE" | "LOCAL_ADS_SEARCH_CREATIVE" | non | Default DEFAULT_PRODUCT_PAGE. |
| adamId | string | non | REQUIRED for App Store creatives — the App Store id. |
| productPageId | string | non | REQUIRED for CUSTOM_PRODUCT_PAGE; refused on DEFAULT_PRODUCT_PAGE, which is the app’s standard listing. |
| mapsBrandId | string | non | Apple Maps only — the brand this creative belongs to. |
| brandId | string | non | older name for mapsBrandId (MCP only) |
| creativeSubtype | enum: "BUSINESS_LOGO" | "BUSINESS_ASSET" | non | Apple Maps only. Default BUSINESS_LOGO. |
| assetIds | array<string> | non | Apple Maps only — ids from upload_apple_ads_asset. |
| localizedText | object | non | Apple Maps only — promo copy per locale, e.g. {"en-US":"Visit us today"}. |
| defaultLocale | string | non | Apple Maps only, e.g. "en-US". |
list_apple_ads_ads
List Apple Ads ads
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| id | string | non | Fetch one ad. |
| adGroupId | string | non | only ads in this ad group |
| campaignId | string | non | only ads in this campaign |
| creativeId | string | non | only ads that use this creative |
| status | enum: "ENABLED" | "PAUSED" | non | advertiser's own setting: ENABLED or PAUSED |
| includeDeleted | boolean | non | true = include deleted ads |
| limit | number | non | maximum number of ads to return |
| offset | number | non | ads to skip, for paging |
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adGroupId | string | oui | REQUIRED. |
| creativeId | string | oui | REQUIRED — from create_apple_ads_creative. |
| name | string | oui | 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 mapsBrandId, 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| imageUrl | string | oui | REQUIRED — a PNG, JPG or HEIC image Hermoso can fetch. |
| mapsBrandId | string | non | REQUIRED: the Apple Maps brand this asset belongs to. |
| brandId | string | non | older name for mapsBrandId (MCP only) |
| filename | string | non | Decides the format Apple is told; defaults to the name in the URL. |
| promotedObjectType | enum: "BUSINESS_BRAND" | non | Only BUSINESS_BRAND is accepted. |
list_apple_ads_assets
List Apple Ads image assets
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 mapsBrandId (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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| id | string | non | Fetch one asset — the only way to see a crop or variant. |
| mapsBrandId | string | non | Scope to one brand or app (promotedObjectId). |
| brandId | string | non | older name for mapsBrandId (MCP only) |
| promotedObjectType | enum: "APPSTORE_APP" | "BUSINESS_BRAND" | non | APPSTORE_APP or BUSINESS_BRAND: which kind of promoted object the assets belong to |
| assetType | enum: "IMAGE" | non | asset type; IMAGE is the only one listed |
| limit | number | non | maximum number of assets to return |
| offset | number | non | assets to skip, for paging |
list_apple_ads_brands
List Apple Maps brands
The Apple Maps brands on this Apple Ads account. A BRAND IS THE ROOT OF EVERY ADS-ON-APPLE-MAPS CAMPAIGN and its id is what three other calls need: it is the promotedObjectId of a BUSINESS_BRAND campaign, the mapsBrandId upload_apple_ads_asset uploads against, and the mapsBrandId a LOCAL_ADS_SEARCH_CREATIVE carries. A brand must read eligibility ELIGIBLE before Apple will let a campaign use it. YOU CANNOT CREATE A BRAND HERE and that is Apple’s design, not a gap: brands come from Apple Business Connect, and Ads on Apple Maps additionally need the ad account to carry productFeatures BUSINESS_BRAND_MANUAL plus a BUSINESS_BRAND delegation, neither of which any API can grant. AN EMPTY LIST IS THE NORMAL ANSWER FOR AN APP STORE ADVERTISER and does not mean anything is broken — App Store campaigns need no brand at all. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| mapsBrandId | string | non | Fetch one brand by id. |
| brandId | string | non | older name for mapsBrandId (MCP only) |
| name | string | non | brand name to filter by |
| countryOrRegion | string | non | Two-letter code, e.g. "US". |
| eligibilityStatus | string | non | Usually ELIGIBLE — only an ELIGIBLE brand can be used in a campaign. |
| limit | number | non | maximum number of brands to return |
| offset | number | non | brands to skip, for paging |
list_apple_ads_locations
List Apple Maps business locations
The physical business locations behind an Apple Maps brand — the shops, restaurants or service centres an Ads-on-Apple-Maps campaign promotes. Filter by mapsBrandId (do: without it Apple returns every location across every brand, which can be a very large page), plus status, eligibility or address. LOCATIONS ARE READ-ONLY THROUGH THIS API BY APPLE’S DESIGN: Apple Business Connect creates and maintains them, so a missing shop, a wrong address or a closure is fixed there and appears here afterwards — there is no create, update or delete to look for. Only a location with status OPEN and eligibility ELIGIBLE is targetable. You do not target locations directly: collect the ids you want, put them in a location group with create_apple_ads_location_group, then point an ad group at that group. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| id | string | non | Fetch one location. |
| mapsBrandId | string | non | Strongly recommended — scopes to one brand. |
| brandId | string | non | older name for mapsBrandId (MCP only) |
| status | enum: "OPEN" | "OPENING_SOON" | "CLOSED" | "MOVED" | "TEMPORARILY_CLOSED" | non | Usually OPEN — only OPEN locations are targetable. |
| eligibilityStatus | enum: "ELIGIBLE" | "INELIGIBLE" | "LIMITED" | "PENDING" | "UNDEFINED" | non | Apple eligibility state; only ELIGIBLE locations can be targeted |
| countryOrRegion | string | non | Two-letter code. |
| adminArea | string | non | Full state or province name, e.g. "California". |
| locality | string | non | City name. |
| postalCode | string | non | postal code to filter by |
| name | string | non | location name to filter by |
| limit | number | non | maximum number of locations to return |
| offset | number | non | locations to skip, for paging |
list_apple_ads_location_groups
List Apple Maps location groups
The location groups on this Apple Ads account — named sets of a brand’s shops that an ad group targets. Each row carries its type (STATIC or DYNAMIC), Apple’s systemStatus and groupTotal, the number of locations currently in it. READ groupTotal BEFORE TARGETING A GROUP: a DYNAMIC group sits at PENDING while Apple evaluates its rules, and a group that evaluated to ZERO is Apple’s one silent failure here — it reports no error, so a rule spelled "CA" instead of "California" builds an empty group that looks fine. Soft-deleted groups are excluded unless you pass includeDeleted. There is no filter for "which groups contain this location": query by mapsBrandId and inspect membership. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| id | string | non | Fetch one group. |
| mapsBrandId | string | non | Apple Maps brand id from list_apple_ads_brands |
| brandId | string | non | older name for mapsBrandId (MCP only) |
| name | string | non | Substring match. |
| groupType | enum: "STATIC" | "DYNAMIC" | non | STATIC (fixed shop list) or DYNAMIC (rule-based) |
| includeDeleted | boolean | non | Deleted groups are hidden by default. |
| eligibilityStatus | string | non | filter by Apple eligibility state of the group |
| limit | number | non | maximum number of location groups to return |
| offset | number | non | groups to skip, for paging |
create_apple_ads_location_group
Create an Apple Maps location group
Create a location group — the set of a brand’s shops an Apple Maps ad group promotes. TWO KINDS. STATIC takes an explicit locationIds list (from list_apple_ads_locations) and is VALID immediately. DYNAMIC takes rules and maintains itself as the brand opens and closes shops, but starts PENDING while Apple evaluates them — wait for systemStatus VALID before targeting it. A RULE THAT MATCHES NOTHING IS APPLE’S ONE SILENT FAILURE HERE: it returns no error and simply builds a group with groupTotal 0, so adminArea must be the FULL English name ("California", never "CA") and locality must be countryOrRegion|adminArea|locality ("US|New York|Brooklyn", never "Brooklyn") — both shapes are refused here before the group is built. A group SPENDS NOTHING and does not decide who sees the ad or how near they are: it only scopes WHICH shops the ad group promotes, while radius and geo targeting on the ad group decide reach. mapsBrandId and the ad account are locked in permanently at creation. Target it afterwards with create_apple_ads_ad_group(targeting.locationGroupIds) or update_apple_ads_object(level:"adgroup"). Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| name | string | oui | REQUIRED. |
| mapsBrandId | string | non | REQUIRED: from list_apple_ads_brands. Immutable afterwards. |
| brandId | string | non | older name for mapsBrandId (MCP only) |
| groupType | enum: "STATIC" | "DYNAMIC" | non | Default STATIC. Immutable afterwards. |
| locationIds | array<string> | non | REQUIRED for STATIC — ids from list_apple_ads_locations. |
| rules | array<object> | non | REQUIRED for DYNAMIC. value is a string for EQUALS/NOT_EQUALS and an array for IN/NOT_IN. |
| description | string | non | description of the location group |
apple_ads_keyword_suggestions
Apple Ads keyword, phrase and category suggestions
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| kind | enum: "keyword" | "phrase" | "category" | non | Default keyword. Each kind takes DIFFERENT filters — see the description. |
| promotedObjectId | string | oui | REQUIRED — the app’s adamId, or an Apple Maps brandId. |
| promotedObjectType | enum: "APPSTORE_APP" | "BUSINESS_BRAND" | non | Default APPSTORE_APP. |
| terms | array<string> | non | kind:"keyword" ONLY. Seed search terms to expand from, e.g. ["productivity","task management"]. Refused on phrase/category. |
| phrases | array<string> | non | kind:"phrase" ONLY, and REQUIRED there on the SEARCH route — the phrases to look up, e.g. ["best productivity app"]. |
| categories | array<string> | non | kind:"category" ONLY, and REQUIRED there on the SEARCH route — the App Store categories to look up, e.g. ["Utilities"]. |
| countriesOrRegions | array<string> | non | ISO 3166-1 alpha-2, e.g. ["US","GB"]. |
| queryType | enum: "SUGGESTION" | "SEARCH" | non | phrase/category ONLY (refused on keyword). Default SEARCH. SUGGESTION is measured BROKEN at Apple — ~34s then a server error. |
| limit | number | non | maximum number of suggestions to return |
| offset | number | non | suggestions to skip, for paging |
apple_ads_target_cpa_suggestion
Apple Ads suggested target CPA
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| promotedObjectId | string | oui | REQUIRED — the app’s adamId. |
| promotedObjectType | enum: "APPSTORE_APP" | "BUSINESS_BRAND" | non | Default APPSTORE_APP. |
| countriesOrRegions | array<string> | non | ISO 3166-1 alpha-2 markets to consider, e.g. ["US","GB","CA"]. |
list_apple_ads_recommendations
List Apple Ads recommendations
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| type | enum: "daily_budget" | "target_cpa" | non | Default daily_budget. |
| promotedObjectId | string | oui | REQUIRED — the app’s adamId, or an Apple Maps brandId. |
| promotedObjectType | enum: "APPSTORE_APP" | "BUSINESS_BRAND" | non | Default APPSTORE_APP. |
| state | string | non | AVAILABLE (default), APPLIED, DISMISSED, DELETE, or "ALL" to skip the filter. |
| limit | number | non | maximum number of recommendations to return |
| offset | number | non | recommendations to skip, for paging |
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 the daily budget current -> recommended (Apple keeps no current target CPA anywhere readable, so a target-CPA refusal states the recommended target against the campaign’s average CPA so far), and quotes Apple’s own projected spend over the next seven days — so you are confirming a specific change to a specific campaign rather than confirming that you pressed a button. Apple publishes no dry-run for this call; that refusal IS the preview, and it dispatches nothing. An id Hermoso cannot read back from Apple right now (unknown, expired, another app, or Apple not answering) is refused even WITH confirm:true. 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. APPLIED is reported only from READ-BACKS, never from Apple’s acknowledgement: a daily budget only when the re-re…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| type | enum: "daily_budget" | "target_cpa" | non | Default daily_budget. |
| id | string | oui | REQUIRED — the recommendation id from list_apple_ads_recommendations. |
| promotedObjectId | string | oui | REQUIRED — the same app or brand id the recommendation was queried for. |
| promotedObjectType | enum: "APPSTORE_APP" | "BUSINESS_BRAND" | non | Default APPSTORE_APP. |
| amount | string | non | Override Apple’s suggestion with your own decimal amount, e.g. "500.00". Omit to apply what Apple suggested. |
| currency | string | non | ISO 4217; defaults to the currency of the recommendation Apple quoted (then the ad account’s). A different currency from the recommendation’s is refused — an Apple Ads account cannot mix currencies. |
| confirm | boolean | non | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| type | enum: "daily_budget" | "target_cpa" | non | Default daily_budget. |
| id | string | oui | REQUIRED — the recommendation id. |
| promotedObjectId | string | oui | REQUIRED — the same app or brand id the recommendation was queried for. |
| promotedObjectType | enum: "APPSTORE_APP" | "BUSINESS_BRAND" | non | Default APPSTORE_APP. |
apple_ads_impression_share
Apple Ads impression share
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| promotedObjectId | string | oui | REQUIRED — the app’s adamId. Apple answers 400 without it. |
| countryOrRegion | array<string> | non | ISO 3166-1 alpha-2, e.g. ["US"]. |
| start | string | oui | REQUIRED YYYY-MM-DD. Must be a SUNDAY when granularity is WEEKLY_SUN_SAT. |
| end | string | oui | REQUIRED YYYY-MM-DD. |
| granularity | enum: "DAILY" | "WEEKLY_SUN_SAT" | non | Default DAILY (max 30-day window). WEEKLY_SUN_SAT allows at most 4 weeks. |
| reportType | enum: "FIRST_SLOT" | "ALL_SLOTS" | non | Default FIRST_SLOT. |
| limit | number | non | maximum number of rows to return |
| offset | number | non | rows to skip, for paging |
apple_ads_search_term_popularity
Apple Ads search term popularity
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. Rows carry rankInGenre, searchPopularityInGenre and searchPopularity1to100 (1–100, in genre / all genres) and searchPopularity1to5. 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| countryOrRegion | array<string> | non | ISO 3166-1 alpha-2, e.g. ["US","GB","DE"]. |
| genre | array<string> | non | Apple genre names: BUSINESS, EDUCATION, ENTERTAINMENT, FINANCE, FOOD_DRINK, GAMES, HEALTH_FITNESS, LIFESTYLE, NEW_PUBLICATION, PHOTO_VIDEO, PRODUCTIVITY_UTILITIES, SHOPPING, SOCIAL_NETWORKING, SPORTS, TRAVEL. |
| searchTerm | string | non | terms containing this text |
| searchTermMatch | enum: "CONTAINS" | "STARTS_WITH" | "EQUALS" | "IN" | non | |
| filters | array<object> | non | Apple filters, e.g. {field:"searchPopularity1to5",operator:"GREATER_THAN_OR_EQUAL_TO",value:4} |
| sorting | array<object> | non | default genre, rankInGenre ASC |
| start | string | oui | REQUIRED YYYY-MM-DD. Must be a SUNDAY when granularity is WEEKLY_SUN_SAT. |
| end | string | oui | REQUIRED YYYY-MM-DD. |
| granularity | enum: "WEEKLY_SUN_SAT" | "MONTHLY" | non | Default WEEKLY_SUN_SAT. DAILY does NOT exist on this report. |
| limit | number | non | maximum number of rows to return |
| offset | number | non | rows to skip, for paging |
apple_ads_rejection_reasons
Why an Apple Ads creative or brand was rejected
WHY an Apple Ads creative, custom product page or Maps brand was REJECTED: Apple’s reason code, type and level (default or custom product page, or a locale of one), the asset or product page it applies to, the country and language, and Apple’s comment — read live. Use it whenever list_apple_ads_creatives shows systemStatus INVALID, or the user asks why an Apple ad is not running. Pass adamId for an app’s reasons, mapsBrandId for a Maps brand’s policy reasons, or rejectionReasonId for one reason. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adamId | string | non | the app’s App Store id — every reason Apple holds for it |
| mapsBrandId | string | non | a Maps brand id (list_apple_ads_brands) — its policy rejection reasons. Not `brandId`: over the REST API that name means a Hermoso brand |
| rejectionReasonId | string | non | one reason by id |
| limit | number | non | maximum number of reasons to return |
| offset | number | non | reasons to skip, for paging |
apple_ads_change_history
Apple Ads change history
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| detailId | string | non | 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 | non | YYYY-MM-DD. Required unless end or an explicit eventTime filter is given. |
| end | string | non | YYYY-MM-DD. |
| filters | array<object> | non | Extra conditions, e.g. [{"field":"campaignId","operator":"EQUALS","value":"123"}]. Non-time fields accept only EQUALS and IN. |
| limit | number | non | maximum number of changes to return |
| offset | number | non | changes to skip, for paging |
list_apple_ads_budget_orders
List Apple Ads budget orders
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| id | string | non | Fetch one budget order, including its invoice details and assigned ad accounts. |
| filters | array<object> | non | Query conditions, e.g. [{"field":"name","operator":"CONTAINS","value":"Q3"}]. |
| limit | number | non | maximum number of budget orders to return |
| offset | number | non | budget orders to skip, for paging |
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| name | string | oui | REQUIRED. |
| startTime | string | oui | REQUIRED. Must be TOMORROW or later (midnight UTC) — Apple rejects today. |
| endTime | string | non | Omit for an open-ended budget. |
| amount | string | oui | REQUIRED total budget as a decimal string, e.g. "50000.00". |
| currency | string | non | ISO 4217; defaults to the ad account’s currency, which it must match. |
| primaryBuyerEmail | string | oui | REQUIRED — Apple bills and notifies this address. |
| billingEmail | string | oui | REQUIRED. |
| invoiceName | string | non | name shown on the invoice |
| orderNumber | string | non | purchase order or internal order number |
| clientName | string | non | client name shown on the invoice |
| primaryBuyerName | string | non | name of the primary buyer on the invoice |
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | REQUIRED. |
| name | string | non | new budget order name |
| startTime | string | non | Must still be TOMORROW or later. |
| endTime | string | non | Can only SHORTEN an active budget order’s window. |
| openEnded | boolean | non | true clears the end date entirely, making the budget open-ended. This is the only way to extend rather than shorten. |
| amount | string | non | New total, e.g. "75000.00". Raise it to extend a budget nearing exhaustion. |
| currency | string | non | ISO 4217 currency code |
| adAccountId | string | non | Exactly one — Apple rejects more. |
| orderNumber | string | non | purchase order or internal order number |
| invoiceName | string | non | name shown on the invoice |
| clientName | string | non | client name shown on the invoice |
| primaryBuyerName | string | non | name of the primary buyer on the invoice |
| primaryBuyerEmail | string | non | email address Apple bills and notifies for this budget order |
| billingEmail | string | non | billing contact email for invoices |
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| kind | enum: "keyword" | "negative_keyword" | non | Default keyword. |
| op | enum: "create" | "update" | non | Default create. |
| items | array<object> | oui | REQUIRED. create: [{adGroupId,text,matchType,bid?}] for keywords, or [{campaignId|adGroupId,text,matchType}] for negatives. update: [{id,bid?,status?}]. |
| allowPartialSuccess | boolean | non | true keeps the items that succeeded when others fail. Apple’s default is all-or-nothing. |
| currency | string | non | ISO 4217 for bids; defaults to the ad account’s currency. |
| confirm | boolean | non | 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
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| supplySource | enum: "APPSTORE" | "MAPS" | oui | REQUIRED. APPSTORE for App Store campaigns, MAPS for Apple Maps. Decides which entity types exist. |
| query | string | non | Name to search, minimum 2 characters. "*" returns everything at the entity level. |
| entity | enum: "Country" | "AdminArea" | "Locality" | "PostalCode" | non | Narrow to one granularity. |
| countryCode | string | non | ISO 3166-1 alpha-2 to scope the search. |
| eligible | boolean | non | false excludes soft-blocked geos entirely. Default includes them with eligibility data. |
| geos | array<object> | non | 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 | non | maximum number of geo locations to return |
| offset | number | non | geo locations to skip, for paging |
list_apple_ads_supported_languages
List Apple Ads supported languages
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| filters | array<object> | non | Scope to specific markets, e.g. [{"field":"countryCode","operator":"IN","value":["US","DE"]}]. |
| limit | number | non | maximum number of markets to return |
| offset | number | non | markets to skip, for paging |
get_apple_ads_ad_account
Get an Apple Ads ad account
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| id | string | non | Defaults to the ad account this Apple Ads connection resolved. |
list_apple_ads_advertiser_resources
List Apple Ads advertiser resources
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| resourceType | enum: "CONTENT_PROVIDER" | "BUSINESS_BRAND" | oui | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| name | string | oui | REQUIRED. |
| productFeatures | enum: "APPSTORE_APP_MANUAL" | "BUSINESS_BRAND_MANUAL" | oui | REQUIRED and IMMUTABLE. App Store or Apple Maps, never both. |
| delegations | array<object> | non | [{"resourceType":"CONTENT_PROVIDER","resourceId":" "}] 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| id | string | non | Defaults to the ad account this connection resolved. |
| name | string | non | new ad account name |
| delegations | array<object> | non | REPLACES the entire set. [{"resourceType":"CONTENT_PROVIDER","resourceId":" "}]. |
update_x_ads_campaign
Change an X campaign budget or settings
Change a LIVE X campaign — budget, name, delivery pacing. THIS IS HOW YOU THROTTLE OR RAISE SPEND on a running campaign without rebuilding it, and lowering dailyBudget is the fastest way to slow money down short of pausing. Budgets are in the ad account's own currency. Only fields X actually applies are offered: startTime/endTime are DEPRECATED on an X campaign (its schedule lives on the LINE ITEM — use update_x_ads_line_item) and frequency capping needs an X account feature we cannot enable, so both are refused BY NAME with the reason instead of being sent and silently ignored. THE READ-BACK IS A DIFF against the before-state: a field X did not move is reported as REFUSED, never counted as applied. Print the returned note verbatim.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | X ad account id (list_x_ads_accounts); omit if only one is shared |
| accountId | string | non | older name for adAccountId (MCP only) |
| campaignId | string | oui | from list_x_ads_campaigns |
| name | string | non | new campaign name |
| dailyBudget | number | non | in the ad account's currency |
| totalBudget | number | non | new lifetime budget in ad account currency |
| standardDelivery | boolean | non | false = accelerated. Works on a campaign-budget campaign; with line item budgets set it on the line item |
| purchaseOrderNumber | string | non | purchase order number recorded on the campaign |
update_x_ads_line_item
Change an X line item (ad group)
Change an X line item — BID, bid strategy, SCHEDULE, goal or name. An X campaign's start and end times are deprecated, so the schedule genuinely lives HERE. Lowering `bidAmount` is also the fix when X refuses a campaign budget with “Bid is too close to Budget”. NOT changeable after creation: `objective` and `productType` — X answers 200 and silently keeps the old value (measured), so both are refused BY NAME here and a different objective means a NEW line item. Changing `goal` also requires `bidAmount` (X refuses the goal alone) and that is stated up front rather than relayed. A line-item dailyBudget/totalBudget is only legal when the parent campaign is NOT budget-optimised — that is the campaign's setting, so those two are forwarded and X's own refusal names the remedy rather than Hermoso blocking a legal edit. THE READ-BACK IS A DIFF against an independent re-read: a field X accepted but did not move is reported as REFUSED. Print the returned note verbatim.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | X ad account id (list_x_ads_accounts); omit if only one is shared |
| accountId | string | non | older name for adAccountId (MCP only) |
| lineItemId | string | oui | from list_x_ads_line_items |
| name | string | non | new line item (ad group) name |
| bidAmount | number | non | in the ad account's currency |
| bidStrategy | enum: "AUTO" | "GUARANTEED" | "MAX" | "TARGET" | non | AUTO, GUARANTEED, MAX or TARGET; MAX and TARGET need bidAmount |
| goal | enum: "APP_CLICKS" | "APP_INSTALLS" | "APP_PURCHASES" | "ENGAGEMENT" | "FOLLOWERS" | "LINK_CLICKS" | "MAX_REACH" | "PREROLL" … | non | requires bidAmount too |
| startTime | string | non | ISO 8601 |
| endTime | string | non | ISO 8601 end time for this line item |
| dailyBudget | number | non | only if the campaign is not budget-optimised |
| totalBudget | number | non | only if the campaign is not budget-optimised |
| standardDelivery | boolean | non | false = accelerated, only with line item budgets; X refuses it under a campaign budget |
list_x_ads_promoted_tweets
List X promoted posts
List the promoted posts (the CREATIVES) attached to an X line item, or across the whole ad account. Two things only this can tell you: each post's APPROVAL STATUS, so an ad X rejected — which can never serve however the statuses are set — is visible rather than mysterious; and the promoted-tweet ID, which is the only way to remove one. NOTE a promoted post cannot be PAUSED on X (its PUT accepts only an approval appeal), so the reversible way to stop it is to pause its LINE ITEM. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | X ad account id (list_x_ads_accounts); omit if only one is shared |
| accountId | string | non | older name for adAccountId (MCP only) |
| lineItemId | string | non | scope to one line item |
| limit | number | non | maximum number of promoted posts to return |
list_x_ads_targeting
List an X line item’s targeting
List every targeting criterion an X line item carries, WITH THE ID of each — the id needed to remove one with delete_x_ads_object. READ THE EMPTY CASE CORRECTLY: no targeting criteria on X means the line item is UNRESTRICTED and will reach the broadest possible audience once ACTIVE — it does NOT mean it cannot serve. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | X ad account id (list_x_ads_accounts); omit if only one is shared |
| accountId | string | non | older name for adAccountId (MCP only) |
| lineItemId | string | oui | X line item id from list_x_ads_line_items |
list_x_ads_funding_instruments
List X ad account payment methods
List the funding instruments (payment methods) on an X ad account — type, currency, credit limit, credit remaining, and whether each can currently fund a campaign. THIS IS THE ANSWER TO “why is my X campaign not delivering?” whenever the cause is a cancelled card or an exhausted credit line, which is invisible from the campaign itself, and it shows what a campaign will spend against BEFORE anyone activates it. Hermoso cannot add a payment method — that is done at ads.x.com. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | X ad account id (list_x_ads_accounts); omit if only one is shared |
| accountId | string | non | older name for adAccountId (MCP only) |
x_ads_targeting_search
Find X targeting ids (interests, devices, languages…)
Resolve X targeting ids by name for every vocabulary BEYOND location — INTEREST, CONVERSATION, PLATFORM, DEVICE, LANGUAGE, APP_STORE_CATEGORY, NETWORK_OPERATOR, TV_MARKET, TV_SHOW, EVENT. X's targeting ids are opaque (an interest is a 19-digit number, a device is “96”) and X has NO name-based targeting parameter, so this is the only way to obtain one — without it add_x_ads_targeting accepts vocabularies nobody can supply a value for. Pass a result as criteria:[{targetingType, targetingValue}]. Locations have their own tool: x_ads_geo_search. TV_SHOW requires a `locale`, which comes from kind:"TV_MARKET". Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| kind | enum: "INTEREST" | "CONVERSATION" | "PLATFORM" | "DEVICE" | "LANGUAGE" | "APP_STORE_CATEGORY" | "NETWORK_OPERATOR" | "TV_MARKET" … | oui | targeting vocabulary to search, e.g. INTEREST, DEVICE, LANGUAGE or EVENT |
| query | string | non | filter by name |
| osType | enum: "ANDROID" | "IOS" | non | APP_STORE_CATEGORY |
| countryCode | string | non | NETWORK_OPERATOR, e.g. US |
| locale | string | non | TV_SHOW — required; get one from kind:"TV_MARKET" |
| eventTypes | enum: "CONFERENCE" | "HOLIDAY" | "MOVIE_RELEASE" | "MUSIC_AND_ENTERTAINMENT" | "OLYMPICS" | "OTHER" | "POLITICS" | "RECURRING" … | non | EVENT |
| limit | number | non | maximum number of results to return |
delete_x_ads_object
Delete an X ads object (permanent, cascades)
PERMANENTLY delete an X campaign, line item, promoted post, promoted account or targeting criterion — or ARCHIVE a lead form (it stops collecting and its leads can no longer be exported, so run get_x_ads_leads first), or remove a card, a Media Library item (type media: id is the media_key) or a custom audience (custom_audience). X CASCADES AND PUBLISHES NO UNDO: deleting a campaign destroys its line items and their promoted posts too — verified live, the children answer 404 the moment the parent is deleted. RUN IT WITHOUT confirm FIRST: that deletes nothing and reports the REAL blast radius read back off X (what is underneath it, whether it is live, whether it has spent). Show the user exactly that, get an unambiguous yes, then call again with confirm:true — and, for anything with children / live delivery / real spend, also confirmName set to its exact name and confirmChildren set to the real count, because confirm:true alone proves you meant to delete SOMETHING and cannot prove you aimed at the right object. TO STOP DELIVERY WITHOUT DESTROYING ANYTHING use set_x_ads_status PAUSED, which is reversible — except for a promoted post, which cannot be paused on X at all, so pause its LINE ITEM instead. Removing a targeting criterion WIDENS the audience rather than narrowing it. The result is confirmed by re-reading the object, never by X's 200.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | X ad account id (list_x_ads_accounts); omit if only one is shared |
| accountId | string | non | older name for adAccountId (MCP only) |
| type | enum: "campaign" | "line_item" | "promoted_tweet" | "targeting_criterion" | "promoted_account" | "lead_form" | "card" | "media" … | oui | kind of object the id names; for media, id is the media_key |
| id | string | oui | campaign/line-item id, or the id from list_x_ads_promoted_tweets / list_x_ads_targeting |
| lineItemId | string | non | REQUIRED for type "targeting_criterion" — X cannot look one up without its line item |
| confirm | boolean | non | omit on the first call to see the blast radius |
| confirmName | string | non | the target's exact name — required once it has children, is live, or has spent |
| confirmChildren | number | non | the real number of children, from the unconfirmed call |
list_x_ads_line_items
List X ads line items
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | X ad account id (list_x_ads_accounts); omit if only one is shared |
| accountId | string | non | older name for adAccountId (MCP only) |
| campaignId | string | non | scope to one campaign's line items; omit for all |
| limit | number | non | maximum number of line items to return |
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | X ad account id (list_x_ads_accounts); omit if only one is shared |
| accountId | string | non | older name for adAccountId (MCP only) |
| campaignId | string | oui | from create_x_ads_campaign or list_x_ads_campaigns |
| name | string | non | line item (ad group) name |
| objective | enum: "APP_ENGAGEMENTS" | "APP_INSTALLS" | "ENGAGEMENTS" | "FOLLOWERS" | "PREROLL_VIEWS" | "REACH" | "VIDEO_VIEWS" | "WEBSITE_CLICKS" | oui | one per campaign (X refuses a second objective). For an X LEAD AD use WEBSITE_CLICKS with a lead-form card — X retired LEAD_GENERATION |
| productType | enum: "MEDIA" | "PROMOTED_ACCOUNT" | "PROMOTED_TWEETS" | non | default PROMOTED_TWEETS — PROMOTED_ACCOUNT when objective is FOLLOWERS, and that line item serves the ACCOUNT attached with create_x_ads_promoted_account |
| placements | array<enum: "ALL_ON_TWITTER" | "PUBLISHER_NETWORK" | "TAP_BANNER" | "TAP_FULL" | "TAP_FULL_LANDSCAPE" | "TAP_MRECT" | "TAP_NATIVE" | "TWITTER_MEDIA_VIEWER" …> | non | default ALL_ON_TWITTER |
| goal | enum: "APP_CLICKS" | "APP_INSTALLS" | "APP_PURCHASES" | "ENGAGEMENT" | "FOLLOWERS" | "LINK_CLICKS" | "MAX_REACH" | "PREROLL" … | non | optimization goal, e.g. LINK_CLICKS or WEBSITE_CONVERSIONS; these are goals, not objectives |
| standardDelivery | boolean | non | false = accelerated, only with line item budgets; X refuses it under a campaign budget |
| bidStrategy | enum: "AUTO" | "GUARANTEED" | "MAX" | "TARGET" | non | AUTO lets X set the bid; MAX and TARGET need bidAmount |
| bidAmount | number | non | required for MAX/TARGET; in the ad account's currency |
| totalBudget | number | non | lifetime budget for this line item in ad account currency |
| startTime | string | non | ISO 8601; defaults to now |
| endTime | string | non | ISO 8601 end time for this line item |
create_x_ads_promoted_account
Attach an X account to a follower line item (paused)
THE CREATIVE OF AN X FOLLOWER CAMPAIGN. A line item with objective FOLLOWERS (productType PROMOTED_ACCOUNT, which create_x_ads_line_item now defaults to for FOLLOWERS) promotes an X ACCOUNT, and until one is attached here it has nothing to show and never serves. Omit userId and the ad account’s own promotable account is used; if it may promote several, the choice is refused rather than guessed (list_x_ads_promotable_users shows them). A line item of any other product type is refused for free, naming X’s INCOMPATIBLE_LINE_ITEM rule. You may ALSO attach a post with create_x_ads_promoted_tweet, which X adds as a mobile timeline placement. The attachment is READ BACK from the line item before it is reported. Nothing spends: the campaign and line item stay PAUSED until set_x_ads_status(confirm:true). X cannot edit a promoted account, only remove it (delete_x_ads_object type:"promoted_account"). Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | X ad account id (list_x_ads_accounts); omit if only one is shared |
| accountId | string | non | older name for adAccountId (MCP only) |
| lineItemId | string | oui | a PROMOTED_ACCOUNT line item (objective FOLLOWERS) from create_x_ads_line_item |
| userId | string | non | the numeric X user id to promote — omit for the ad account’s own promotable account |
list_x_ads_promotable_users
List the X accounts an ad account may promote
The X accounts this ad account may promote — FULL (can be promoted for followers with create_x_ads_promoted_account and have its posts promoted) or RETWEETS_ONLY (posts only). Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | X ad account id (list_x_ads_accounts); omit if only one is shared |
| accountId | string | non | older name for adAccountId (MCP only) |
list_x_ads_lead_forms
List X lead forms
List the lead forms on an X ad account (or one, with leadFormId) — fields, privacy policy, and the customer-list audience X builds from each form's leads. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | X ad account id (list_x_ads_accounts); omit if only one is shared |
| accountId | string | non | older name for adAccountId (MCP only) |
| leadFormId | string | non | one lead form id; omit for all forms |
| withDeleted | boolean | non | include archived forms |
| limit | number | non | maximum number of lead forms to return |
create_x_ads_lead_form
Create an X lead form
Create an X lead form — the native form an X lead ad opens, so people sign up without leaving X. The X lead ad chain: lead form -> create_x_ads_card(leadFormId) -> create_x_ads_post(cardUri, lineItemId) on a WEBSITE_CLICKS line item (X retired the LEAD_GENERATION objective) -> get_x_ads_leads. Needs name, purpose, fields (at least one required), and an https privacy policy URL + company name. X ties every form to a conversion event: an ad account with no X Pixel needs conversionEventId, and the refusal says so plainly. X also builds a customer-list audience of the form's leads. Read back from X. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | X ad account id (list_x_ads_accounts); omit if only one is shared |
| accountId | string | non | older name for adAccountId (MCP only) |
| name | string | oui | internal name of the lead form |
| purpose | string | oui | what the leads are used for (shown to the person) |
| fields | array<object> | oui | at least one must not be optional |
| privacyPolicyUrl | string | oui | https |
| companyName | string | oui | company name shown on the form |
| headline | string | non | intro card headline |
| description | string | non | intro card text |
| thankYouHeadline | string | non | headline on the thank-you page shown after submit |
| thankYouDescription | string | non | text on the thank-you page shown after submit |
| thankYouUrl | string | non | https link on the thank-you button |
| thankYouButton | string | non | label of the thank-you page button |
| conversionEventId | string | non | Event ID from X Events Manager — required when the ad account has no X Pixel |
update_x_ads_lead_form
Change an X lead form
Change an X lead form. Only the fields you pass change — but X replaces the fields list and each section (intro, thank-you page, privacy policy) WHOLE, so pass the complete new value of any you touch. An archived form cannot be changed. Read back from X. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | X ad account id (list_x_ads_accounts); omit if only one is shared |
| accountId | string | non | older name for adAccountId (MCP only) |
| leadFormId | string | oui | lead form id from list_x_ads_lead_forms |
| name | string | non | new internal name of the lead form |
| purpose | string | non | what the leads are used for, shown to the person |
| fields | array<object> | non | replaces the whole field list; each entry as in create_x_ads_lead_form |
| privacyPolicyUrl | string | non | https link to the privacy policy shown on the form |
| companyName | string | non | company name shown on the form |
| headline | string | non | intro card headline |
| description | string | non | intro card text |
| thankYouHeadline | string | non | thank-you page headline; X replaces the whole section |
| thankYouDescription | string | non | thank-you page text; X replaces the whole section |
| thankYouUrl | string | non | https link on the thank-you button |
| thankYouButton | string | non | thank-you page button label |
| conversionEventId | string | non | X Events Manager event id; needed when the account has no X Pixel |
get_x_ads_leads
Read the leads from an X lead form
Read the leads submitted to an X lead form over a window (default the last 30 days) — each lead's answers keyed by field (EMAIL, FULL_NAME…). X builds the export as a job; this waits up to ~45s and, if X is still working, returns an exportId to collect later with no new job. X lets only an ACCOUNT ADMIN export leads, and refuses an ARCHIVED form, so export before archiving. format csv/xlsx returns a download link instead. The result is personal information. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | X ad account id (list_x_ads_accounts); omit if only one is shared |
| accountId | string | non | older name for adAccountId (MCP only) |
| leadFormId | string | non | X lead form id from list_x_ads_lead_forms; required unless exportId is given |
| startTime | string | non | ISO 8601 |
| endTime | string | non | ISO 8601; default now |
| days | number | non | window length when startTime is omitted; default 30 |
| format | enum: "json" | "csv" | "xlsx" | non | json (default, returns leads inline) | csv | xlsx (returns a download link) |
| exportId | string | non | collect an export that was still running |
upload_x_ads_media
Upload media to an X ad account
Upload an image or video (any URL — a Hermoso render, an upload_file URL, a public file) to an X ad account and return its media_key, for create_x_ads_card or create_x_ads_post. Added to the ad account's Media Library and read back. A card image must be 1:1 ≥600×600, 1.91:1 ≥600×314, 16:9 ≥600×337, 9:16 ≥600×1066, 2:3 ≥600×900 or 4:5 ≥600×750. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | X ad account id (list_x_ads_accounts); omit if only one is shared |
| accountId | string | non | older name for adAccountId (MCP only) |
| url | string | oui | public image or video URL: a Hermoso render, an upload_file URL or any public file |
| name | string | non | label in the Media Library |
list_x_ads_media
List an X ad account’s Media Library
List the X ad account's Media Library — media keys usable in cards and promoted-only posts. Read-only, free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | X ad account id (list_x_ads_accounts); omit if only one is shared |
| accountId | string | non | older name for adAccountId (MCP only) |
| mediaType | enum: "IMAGE" | "VIDEO" | "GIF" | non | IMAGE, VIDEO or GIF; omit for all types |
| limit | number | non | max items to return, 1-50; default 20 |
create_x_ads_card
Build an X ad card
Create an X card — the big image/video with a headline or button that an X ad clicks through on. ONE destination: websiteUrl (a website card, with a headline `title`), leadFormId (opens an X lead form — headline, or a button with buttonLabel), or an app (iosAppId/googlePlayAppId + countryCode, a button). Media: mediaKey, or 2–6 mediaKeys for a swipeable card (upload_x_ads_media). utm {source,medium,campaign,content,term} is appended to websiteUrl without overwriting the URL's own. Read back from X; a card is used by create_x_ads_post(cardUri). Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| adAccountId | string | non | X ad account id (list_x_ads_accounts); omit if only one is shared |
| accountId | string | non | older name for adAccountId (MCP only) |
| name | string | oui | internal name for the card |
| mediaKey | string | non | one media key from upload_x_ads_media (single image or video) |
| mediaKeys | array<string> | non | 2-6 media keys from upload_x_ads_media, for a swipeable card |
| title | string | non | headline, for website and lead-form cards |
| websiteUrl | string | non | Destination URL for a website card. |
| utm | object | non | UTM tags object: source, medium, campaign, content, term; appended to websiteUrl |
| leadFormId | string | non | X lead form id from list_x_ads_lead_forms, for a lead-form card |
| buttonLabel | enum: "BOOK" | "CONNECT" | "INSTALL" | "OPEN" | "ORDER" | "PLAY" | "SHOP" | non | button text shown on a lead-form or app card |
| iosAppId | string | non | iOS App Store app id, for an app card |
| googlePlayAppId | string | non | Google Play package id, for an app card |
| countryCode | string | non | 2-letter store country for an app card, e.g. US |
| iosDeepLink | string | non | iOS deep link for an app card |
| googlePlayDeepLink | string | non | Android deep link for an app card |
Compatibilité clients
Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://app.hermoso.ai/mcp?src=registry. Formats repris de la documentation de chaque client.
claude mcp add --transport http hermoso https://app.hermoso.ai/mcp?src=registryCustomize > Connectors > + Add > Add custom connector ; Name : hermoso ; URL : https://app.hermoso.ai/mcp?src=registrychatgpt.com/plugins > + > Add custom MCP server ; Name : hermoso ; Server URL : https://app.hermoso.ai/mcp?src=registry ; Create as a plugin{
"mcpServers": {
"hermoso": {
"url": "https://app.hermoso.ai/mcp?src=registry"
}
}
}{
"mcpServers": {
"hermoso": {
"type": "http",
"url": "https://app.hermoso.ai/mcp?src=registry",
"tools": ["*"]
}
}
}{
"mcpServers": {
"hermoso": {
"url": "https://app.hermoso.ai/mcp?src=registry"
}
}
}{
"mcpServers": {
"hermoso": {
"httpUrl": "https://app.hermoso.ai/mcp?src=registry"
}
}
}[mcp_servers.hermoso]
url = "https://app.hermoso.ai/mcp?src=registry"Citer cette source
Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.
Hermoso · L’Atlas · Test du
[Hermoso — L’Atlas](https://latlas.dev/mcp/io.github.hermoso-ai/hermoso)Source : Registre officiel MCP · relevé le 2 déc. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.