hermosodocs

create_x_ads_audience

Create an X 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 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

ParameterTypeDescription
adAccountIdstringX ad account id (list_x_ads_accounts); omit if only one is shared
accountIdstringolder name for adAccountId (MCP only)
namerequiredstringunique per account
descriptionstringoptional description of the audience
emailsstring[]plain addresses or 64-hex SHA-256 hashes
phonesstring[]E.164, e.g. +14155550100, or hashes
handlesstring[]X handles, with or without @
twitterIdsstring[]X user ids to add; hashed on Hermoso's server before X receives them
deviceIdsstring[]IDFA / AdID / Android id
usersobject[]one person per entry with several identifiers: {email, phone, handle, twitterId, deviceId}
expiresAtstringISO 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.

All 759 Ad campaign management tools · tools.json