# Hermoso: send_x_ads_conversions · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/send_x_ads_conversions/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Ad campaign management](https://hermoso.ai/docs/reference/ads/) / send_x_ads_conversions

# `send_x_ads_conversions`

Send conversions to X (Conversion API) destructive

Area: X ADS CUSTOM AUDIENCES + CONVERSION API · [Ad campaign management](https://hermoso.ai/docs/reference/ads/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/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

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

`events` required `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](https://hermoso.ai/docs/credits/).

## Related tools

- [manage_x_ads_conversion_events](https://hermoso.ai/docs/reference/ads/manage_x_ads_conversion_events/) X Pixel conversion events (list / create / update)
- [create_x_ads_promoted_tweet](https://hermoso.ai/docs/reference/ads/create_x_ads_promoted_tweet/) Attach a post to an X line item (paused)
- [update_x_ads_audience](https://hermoso.ai/docs/reference/ads/update_x_ads_audience/) Change an X custom audience
- [add_x_ads_targeting](https://hermoso.ai/docs/reference/ads/add_x_ads_targeting/) Target an X ads line item
- [create_x_ads_audience](https://hermoso.ai/docs/reference/ads/create_x_ads_audience/) Create an X custom audience
- [x_ads_geo_search](https://hermoso.ai/docs/reference/ads/x_ads_geo_search/) Find X ads location ids
- [list_x_ads_audiences](https://hermoso.ai/docs/reference/ads/list_x_ads_audiences/) List X custom audiences
- [x_ads_report](https://hermoso.ai/docs/reference/ads/x_ads_report/) X ads performance report
- [list_openai_ads_conversion_events](https://hermoso.ai/docs/reference/ads/list_openai_ads_conversion_events/) List ChatGPT Ads conversion events
- [create_openai_ads_pixel](https://hermoso.ai/docs/reference/ads/create_openai_ads_pixel/) Create a ChatGPT Ads pixel

[All 759 Ad campaign management tools](https://hermoso.ai/docs/reference/ads/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
