hermosodocs

send_x_ads_conversions

Send conversions to X (Conversion API) destructive

Area: X ADS CUSTOM AUDIENCES + CONVERSION API · Ad campaign management. Generated from the running MCP server, like the rest of the tool reference.

Description

Report conversions to X server-side (the X Conversion API) — purchases, sign-ups, leads — so X attributes them to the ads that caused them and conversion bidding (goal WEBSITE_CONVERSIONS_V2) has something to optimise toward. Leave pixelId out and name each event by eventType (PURCHASE, SIGN_UP…) or eventId: Hermoso reads the ids from the ad account's conversion events (manage_x_ads_conversion_events). Each event needs a click id (twclid from the landing URL), an email or an E.164 phone — emails and phones are SHA-256 hashed on Hermoso's server; IP + user agent only count together or beside one of those. Send conversionId to deduplicate against the X Pixel. Free.

Parameters

ParameterTypeDescription
adAccountIdstringX ad account id (list_x_ads_accounts); omit if only one is shared
accountIdstringolder name for adAccountId (MCP only)
pixelIdstringthe X Pixel (event source) id; omit to use the one on the ad account
eventIdstringdefault Event ID for every event
eventTypestringdefault event by its kind, e.g. PURCHASE; resolved on the ad account
eventsrequiredobject[]conversion events to report, one entry per purchase, sign-up or lead
events[].eventIdstringevent id for this one event; overrides the top-level eventId
events[].eventTypestringthis event by its kind instead of its id
events[].conversionTimestringISO 8601; default now
events[].twclidstringX click id from the landing URL's twclid parameter
events[].emailstringemail address; normalised and SHA-256 hashed on Hermoso's server
events[].phonestringphone in E.164 form, e.g. +14155550100; hashed before sending
events[].ipAddressstringvisitor IP address; counts only with userAgent or an email or phone
events[].userAgentstringvisitor browser user agent; counts only with ipAddress or an email or phone
events[].valuenumberconversion value in the currency given by currency
events[].currencystringISO 4217 currency code, e.g. USD
events[].numberItemsnumbernumber of items in the conversion
events[].conversionIdstringdedup key shared with the X Pixel
events[].descriptionstringfree-text description of the conversion
events[].eventSourceUrlstringURL of the page where the conversion happened

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_x_ads_conversions.

MCP (tools/call)

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

CLI

hermoso call send_x_ads_conversions --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