hermosodocs

create_openai_ads_audience

Create a ChatGPT Ads custom audience

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

Description

Create a ChatGPT Ads custom audience from a customer list. Pass plain emails and/or phone numbers: Hermoso NORMALISES AND SHA-256 HASHES THEM LOCALLY and uploads only the digests, so no plaintext personal data leaves Hermoso. OR pass fileUrl: a public link to a UTF-8 .csv or .txt customer list (a CSV needs a header naming its column: email, phone_number, email_sha256, phone_number_sha256 or gaid; identifierResolution "auto" reads several columns at once). A file is uploaded to ChatGPT Ads as it is and OpenAI hashes raw emails and phones itself; the members list is hashed here first. Matching is asynchronous, so read the audience back for its matched count. Values that are neither an email nor a phone number are skipped and counted, never silently dropped. An audience is a definition and cannot spend.

Parameters

ParameterTypeDescription
namerequiredstringaudience name
membersstring[]emails and/or phone numbers (already-SHA256-hashed emails are passed through as-is); or use fileUrl
fileUrlstringpublic link to a UTF-8 .csv or .txt customer list; upload_file turns a local file into one
fileNamestringthe file name with .csv or .txt, when the link hides it
identifierType"email" | "phone" | "email_sha256" | "phone_number_sha256" | "gaid"the one identifier the file holds (inferred from a CSV header when omitted)
identifierResolution"auto"auto = read every identifier column of a mixed CSV
descriptionstringoptional audience description

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

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_openai_ads_audience","arguments":{"name":"<string>"}}}

CLI

hermoso call create_openai_ads_audience --json '{"name":"<string>"}'

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