hermosodocs

update_openai_ads_audience_members

Add, remove or replace ChatGPT Ads audience members destructive

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

Description

Change who is IN a ChatGPT Ads custom audience. Pass plain emails, phone numbers and/or Google Advertising IDs (GAID, UUID-shaped) in ONE list — identifier types may be mixed in a single request: Hermoso normalises and SHA-256 hashes emails and phones locally and only the digests are sent; a GAID rides raw, as the API defines it. SIZE RULES (OpenAI, read 2026-09-03): an audience of ANY size, even empty, can be used for EXCLUSION once ready; for inclusion or bid adjustments plan on 25,000 matched users; there is no 5M ceiling any more, and the reported size is a privacy band (under_25k, 25k_100k, 100k_500k, 500k_1m, 1m_5m, 5m_plus). THREE OPERATIONS: "add" puts people in, "remove" takes the named people OUT (the only way to stop advertising to a segment already in a list), "replace" swaps the WHOLE membership. THIS IS ASYNCHRONOUS — ChatGPT Ads returns an operation id and the change is NOT applied when this returns; poll it with get_openai_ads_audience_operation until it reports succeeded or failed. A replace REQUIRES expectedRevision (read membershipRevision from get_openai_ads_audience) so a wholesale swap cannot land on top of someone else’s change; a mismatch is refused by ChatGPT Ads and applies nothing.

Parameters

ParameterTypeDescription
audienceIdrequiredstringChatGPT Ads audience id, from list_openai_ads_audiences
operationrequired"add" | "remove" | "replace"add | remove | replace — replace swaps the entire membership
membersrequiredstring[]emails and/or phone numbers (already-SHA256-hashed emails pass through as-is)
expectedRevisionnumber | stringREQUIRED for replace, optional for add/remove — membershipRevision from get_openai_ads_audience

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

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"update_openai_ads_audience_members","arguments":{"audienceId":"<string>","operation":"<one of the listed values>","members":"<array>"}}}

CLI

hermoso call update_openai_ads_audience_members --json '{"audienceId":"<string>","operation":"<one of the listed values>","members":"<array>"}'

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