# Hermoso: create_x_ads_audience · Hermoso developer docs

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

# `create_x_ads_audience`

Create an X 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 an X custom audience (a customer list for retargeting or exclusion), optionally filled with people in the same call. Pass ordinary emails, phones (E.164), X handles, X user ids or device ids — they are normalised and SHA-256 hashed on Hermoso's server before X sees them; 64-hex hashes pass as is; anything unusable is named, never sent. X needs up to 48h and about 100 matched people before it can be targeted (add_x_ads_targeting with targetingType CUSTOM_AUDIENCE). Read back. 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)

`name` required `string` unique per account

`description` `string` optional description of the audience

`emails` `string[]` plain addresses or 64-hex SHA-256 hashes

`phones` `string[]` E.164, e.g. +14155550100, or hashes

`handles` `string[]` X handles, with or without @

`twitterIds` `string[]` X user ids to add; hashed on Hermoso's server before X receives them

`deviceIds` `string[]` IDFA / AdID / Android id

`users` `object[]` one person per entry with several identifiers: {email, phone, handle, twitterId, deviceId}

`expiresAt` `string` ISO 8601; X defaults to 13 months

## 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_x_ads_audience`.

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

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

`hermoso call create_x_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

- [add_x_ads_targeting](https://hermoso.ai/docs/reference/ads/add_x_ads_targeting/) Target an X ads line item
- [list_x_ads_audiences](https://hermoso.ai/docs/reference/ads/list_x_ads_audiences/) List X custom audiences
- [update_x_ads_audience](https://hermoso.ai/docs/reference/ads/update_x_ads_audience/) Change an X custom audience
- [manage_x_ads_conversion_events](https://hermoso.ai/docs/reference/ads/manage_x_ads_conversion_events/) X Pixel conversion events (list / create / update)
- [send_x_ads_conversions](https://hermoso.ai/docs/reference/ads/send_x_ads_conversions/) Send conversions to X (Conversion API)
- [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)
- [x_ads_geo_search](https://hermoso.ai/docs/reference/ads/x_ads_geo_search/) Find X ads location ids
- [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)
