# Hermoso: create_openai_ads_audience · Hermoso developer docs

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

# `create_openai_ads_audience`

Create a ChatGPT Ads custom audience

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

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

Parameter Type Description

`name` required `string` audience name

`members` `string[]` emails and/or phone numbers (already-SHA256-hashed emails are passed through as-is); or use fileUrl

`fileUrl` `string` public link to a UTF-8 .csv or .txt customer list; upload_file turns a local file into one

`fileName` `string` the 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

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

## Related tools

- [list_openai_ads_audiences](https://hermoso.ai/docs/reference/ads/list_openai_ads_audiences/) List ChatGPT Ads custom audiences
- [get_openai_ads_audience](https://hermoso.ai/docs/reference/ads/get_openai_ads_audience/) Read one ChatGPT Ads custom audience
- [create_openai_ads_conversion_event](https://hermoso.ai/docs/reference/ads/create_openai_ads_conversion_event/) Define a ChatGPT Ads conversion
- [update_openai_ads_audience_members](https://hermoso.ai/docs/reference/ads/update_openai_ads_audience_members/) Add, remove or replace ChatGPT Ads audience members
- [create_openai_ads_pixel](https://hermoso.ai/docs/reference/ads/create_openai_ads_pixel/) Create a ChatGPT Ads pixel
- [list_openai_ads_audience_operations](https://hermoso.ai/docs/reference/ads/list_openai_ads_audience_operations/) List ChatGPT Ads audience membership operations
- [list_openai_ads_conversion_events](https://hermoso.ai/docs/reference/ads/list_openai_ads_conversion_events/) List ChatGPT Ads conversion events
- [cancel_openai_ads_audience_operation](https://hermoso.ai/docs/reference/ads/cancel_openai_ads_audience_operation/) Cancel a ChatGPT Ads audience membership operation
- [x_ads_report](https://hermoso.ai/docs/reference/ads/x_ads_report/) X ads performance report
- [resume_openai_ads_audience_operation](https://hermoso.ai/docs/reference/ads/resume_openai_ads_audience_operation/) Resume a ChatGPT Ads audience membership operation

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