hermosodocs

create_openai_ads_conversion_event

Define a ChatGPT Ads conversion

Area: X ADS CUSTOM AUDIENCES + CONVERSION API · Ad campaign management. Generated from the running MCP server, like the rest of the tool 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

ParameterTypeDescription
namerequiredstringdisplay name of the conversion event
eventTyperequiredstringe.g. order_created, lead_created, registration_completed — the plausible words "purchase", "lead" and "signup" are all REFUSED by ChatGPT Ads
sourceIdsrequiredstring[]exactly ONE source id from create_openai_ads_pixel (ChatGPT Ads takes one source per event; create one event per pixel)
customEventNamestringfor a non-standard event
attributionWindowDaysnumberdefault 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.

All 759 Ad campaign management tools · tools.json