# Hermoso: update_x_ads_audience · Hermoso developer docs

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

# `update_x_ads_audience`

Change an X custom audience destructive

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

Change an X custom audience: rename / redescribe it, and/or ADD or REMOVE people (operation add|remove) — same identifiers as create_x_ads_audience, hashed on our server. X reports how many it processed and Hermoso relays it; a mismatch is flagged as not fully applied. 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)

`audienceId` required `string` custom audience id to change, from list_x_ads_audiences

`name` `string` new audience name

`description` `string` new audience description

`operation` `"add" | "remove"` add or remove: whether the people in this call are added to or removed from 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}

`effectiveAt` `string` ISO 8601 time the membership change takes effect (sent to X as effective_at)

`expiresAt` `string` ISO 8601 time the members expire; must be later than effectiveAt

## 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/update_x_ads_audience`.

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

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

`hermoso call update_x_ads_audience --json '{"audienceId":"<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

- [create_x_ads_audience](https://hermoso.ai/docs/reference/ads/create_x_ads_audience/) Create 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)
- [list_x_ads_audiences](https://hermoso.ai/docs/reference/ads/list_x_ads_audiences/) List X custom audiences
- [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)
- [add_x_ads_targeting](https://hermoso.ai/docs/reference/ads/add_x_ads_targeting/) Target an X ads line item
- [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)
