hermosodocs

send_conversion_event

Send a conversion to every ad platform at once destructive

Area: CONVERSIONS HUB + PROFIT PER CAMPAIGN · Ad campaign management. Generated from the running MCP server, like the rest of the tool reference.

Description

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 keeps events sent with a test code, so a dry run never reaches Meta. forward:false only RECORDS the events (page views and other touches for journeys) and sends them nowhere. Every non-test event is stored with its identifiers hashed, for conversion_insights and campaign_profit. Free.

Parameters

ParameterTypeDescription
eventsrequiredobject[]1 to 1,000 events
events[].eventNamerequiredstringPurchase, Lead, QualifiedLead, CompleteRegistration, AddToCart, InitiateCheckout, AddPaymentInfo, Subscribe, StartTrial, ViewContent, Search, Contact, SubmitApplication, Schedule, PageView, AddToWishlist, or your own name
events[].eventIdrequiredstringthe ONE dedup id every platform receives: your order or lead id, the same one the browser pixel sends
events[].eventTimenumber | stringunix seconds, ms or ISO; default now
events[].valuenumberconversion value
events[].currencystringISO code, e.g. USD; needed with a value
events[].actionSource"web" | "app" | "offline" | "crm" | "phone_call" | "system_generated" | "business_messaging" | "email" | "chat" | "other"where it happened; default web when sourceUrl is given, else other
events[].sourceUrlstringthe page URL; its gclid / fbclid / ttclid / utm_* parameters are read
events[].referrerstringthe referring page, for organic and referral touches
events[].userobjectwho converted: send every identifier you have
events[].user.emailstringplain email; each platform hashes it to its own rules on Hermoso’s server, never hash it yourself
events[].user.phonestringwith its country code, e.g. +14155550100
events[].user.firstNamestringfirst name
events[].user.lastNamestringlast name
events[].user.externalIdstringyour own customer id (CRM / user id)
events[].user.ipAddressstringvisitor IP
events[].user.userAgentstringvisitor browser user agent
events[].user.countrystring2-letter country code
events[].user.citystringcity
events[].user.statestringstate or region code
events[].user.zipstringpostal code
events[].user.dobstringdate of birth YYYY-MM-DD
events[].user.genderstringf or m
events[].user.leadIdstringa Meta or TikTok lead id, for CRM lead events
events[].user.visitorIdstringyour anonymous visitor / cookie id: ties page views to a later sale for journeys and paths
events[].user.clickIdsobjectad click ids captured on the landing page: fbc, fbp, gclid, gbraid, wbraid, ttclid, ttp, li_fat_id, epik, rdt_cid, twclid, msclkid, sccid, oppref, aleid, axwrt. Ids in sourceUrl are read automatically
events[].itemsobject[]products in the order
events[].items[].idrequiredstringsku or product id
events[].items[].namestringproduct name
events[].items[].pricenumberunit price
events[].items[].quantitynumberunits
events[].items[].categorystringcategory
events[].campaignobjectthe ad campaign behind it, when you know it; counts the sale toward that campaign in campaign_profit
events[].campaign.idstringplatform campaign id
events[].campaign.namestringcampaign name
events[].campaign.platformstringmeta, tiktok, linkedin …
events[].consentobjectEU/UK consent signals, forwarded where a platform takes them
events[].consent.adUserData"GRANTED" | "DENIED"consent to use the person’s data for ads
events[].consent.adPersonalization"GRANTED" | "DENIED"consent to personalised ads
events[].limitedDataUsebooleanthe person opted out of data sale (US state privacy laws)
destinationsstring | object[]send to these instead of the saved ones: saved destination ids, or destination objects shaped like conversion_destinations action add
validateOnlybooleandry run: platforms with a validate mode check the events and record nothing; the rest are skipped
testCodestringdry run for TikTok and Reddit: the test code from their Events Manager
forwardbooleanfalse records the events for journeys and sends them nowhere
carryClickIdsbooleanfalse stops click ids from the same person’s earlier page views riding along
sourcestringwhere these came from, e.g. crm, shopify, stripe (shown on stored events); default api

Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/send_conversion_event.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"send_conversion_event","arguments":{"events":"<array>"}}}

CLI

hermoso call send_conversion_event --json '{"events":"<array>"}'

Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.

All 759 Ad campaign management tools · tools.json