send_x_ads_conversions
Send conversions to X (Conversion API) destructive
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
| Parameter | Type | Description |
|---|---|---|
adAccountId | string | X ad account id (list_x_ads_accounts); omit if only one is shared |
accountId | string | older name for adAccountId (MCP only) |
pixelId | string | the X Pixel (event source) id; omit to use the one on the ad account |
eventId | string | default Event ID for every event |
eventType | string | default event by its kind, e.g. PURCHASE; resolved on the ad account |
eventsrequired | object[] | conversion events to report, one entry per purchase, sign-up or lead |
events[].eventId | string | event id for this one event; overrides the top-level eventId |
events[].eventType | string | this event by its kind instead of its id |
events[].conversionTime | string | ISO 8601; default now |
events[].twclid | string | X click id from the landing URL's twclid parameter |
events[].email | string | email address; normalised and SHA-256 hashed on Hermoso's server |
events[].phone | string | phone in E.164 form, e.g. +14155550100; hashed before sending |
events[].ipAddress | string | visitor IP address; counts only with userAgent or an email or phone |
events[].userAgent | string | visitor browser user agent; counts only with ipAddress or an email or phone |
events[].value | number | conversion value in the currency given by currency |
events[].currency | string | ISO 4217 currency code, e.g. USD |
events[].numberItems | number | number of items in the conversion |
events[].conversionId | string | dedup key shared with the X Pixel |
events[].description | string | free-text description of the conversion |
events[].eventSourceUrl | string | URL 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.
Related tools
manage_x_ads_conversion_eventsX Pixel conversion events (list / create / update)create_x_ads_promoted_tweetAttach a post to an X line item (paused)update_x_ads_audienceChange an X custom audienceadd_x_ads_targetingTarget an X ads line itemcreate_x_ads_audienceCreate an X custom audiencex_ads_geo_searchFind X ads location idslist_x_ads_audiencesList X custom audiencesx_ads_reportX ads performance reportlist_openai_ads_conversion_eventsList ChatGPT Ads conversion eventscreate_openai_ads_pixelCreate a ChatGPT Ads pixel