# Hermoso: create_openai_ads_conversion_event · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/create_openai_ads_conversion_event/. 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/) / create_openai_ads_conversion_event

# `create_openai_ads_conversion_event`

Define a ChatGPT Ads conversion

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

Define what counts as a conversion on ChatGPT Ads, measured from one or more pixels. THIS IS THE PREREQUISITE for a conversion-optimised campaign: pass the returned id as conversionEventSettingIds to create_openai_ads_campaign. Creating one cannot spend and cannot serve — it is a definition, so it is not confirm-gated.

## Parameters

Parameter Type Description

`name` required `string` display name of the conversion event

`eventType` required `string` e.g. order_created, lead_created, registration_completed — the plausible words "purchase", "lead" and "signup" are all REFUSED by ChatGPT Ads

`sourceIds` required `string[]` exactly ONE source id from create_openai_ads_pixel (ChatGPT Ads takes one source per event; create one event per pixel)

`customEventName` `string` for a non-standard event

`attributionWindowDays` `number` default 30, which is what OpenAI recommends; 1-90

## 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/create_openai_ads_conversion_event`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_openai_ads_conversion_event","arguments":{"name":"<string>","eventType":"<string>","sourceIds":"<array>"}}}`
**CLI**

`hermoso call create_openai_ads_conversion_event --json '{"name":"<string>","eventType":"<string>","sourceIds":"<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

- [create_openai_ads_campaign](https://hermoso.ai/docs/reference/ads/create_openai_ads_campaign/) Build a ChatGPT Ads campaign (paused)
- [create_openai_ads_pixel](https://hermoso.ai/docs/reference/ads/create_openai_ads_pixel/) Create a ChatGPT Ads pixel
- [list_openai_ads_audiences](https://hermoso.ai/docs/reference/ads/list_openai_ads_audiences/) List ChatGPT Ads custom audiences
- [list_openai_ads_conversion_events](https://hermoso.ai/docs/reference/ads/list_openai_ads_conversion_events/) List ChatGPT Ads conversion events
- [create_openai_ads_audience](https://hermoso.ai/docs/reference/ads/create_openai_ads_audience/) Create a ChatGPT Ads custom audience
- [x_ads_report](https://hermoso.ai/docs/reference/ads/x_ads_report/) X ads performance report
- [get_openai_ads_audience](https://hermoso.ai/docs/reference/ads/get_openai_ads_audience/) Read one ChatGPT Ads custom audience
- [x_ads_geo_search](https://hermoso.ai/docs/reference/ads/x_ads_geo_search/) Find X ads location ids
- [update_openai_ads_audience_members](https://hermoso.ai/docs/reference/ads/update_openai_ads_audience_members/) Add, remove or replace ChatGPT Ads audience members
- [add_x_ads_targeting](https://hermoso.ai/docs/reference/ads/add_x_ads_targeting/) Target an X ads line item

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