apply_microsoft_ads_customer_list
Upload customer emails into a Microsoft Customer Match list destructive
Description
Upload customer emails into a Microsoft Advertising Customer Match list so campaigns can target or exclude them. YOU PASS PLAIN EMAIL ADDRESSES — Hermoso normalizes and SHA-256 hashes them locally and sends ONLY the digests, so no plaintext ever leaves the server; values that arrive already hashed (64 hex characters) are passed through untouched. Microsoft's own normalization is applied exactly as published: trim, remove all dots from the user portion, remove any +alias, lowercase, then SHA-256. YOU MUST GET THE USER'S AGREEMENT FIRST: show them https://about.ads.microsoft.com/en-us/legal/customer-match-terms and only then call with acceptTerms:true, which Microsoft says 'eliminates the need to accept terms through the Microsoft Advertising UI' — without it nothing is uploaded and nothing is hashed. action is Add (additive, the default), Remove or Replace. Maximum 1000 items per call; page larger lists. Email is the only supported identifier — Microsoft publishes Phone and CRM as 'Not currently supported' and both are refused by name. DO NOT read a size of 0 afterwards as a failure: Microsoft leaves it empty for up to 48 hours while the audience builds. 0 credits.
Parameters
| Parameter | Type | Description |
|---|---|---|
adAccountId | string | Microsoft ad account id — omit to use the single shared account |
accountId | string | older name for adAccountId (MCP only) |
audienceIdrequired | string | the customer list to write into |
emails | string[] | PLAIN email addresses — normalized and SHA-256 hashed inside Hermoso, never sent as plaintext. Already-hashed 64-hex values pass through untouched. Maximum 1000 per call |
action | "Add" | "Remove" | "Replace" | Add (default) is additive across calls |
subType | "Email" | Email is the only identifier Microsoft supports here — it publishes Phone and CRM as “Not currently supported” |
acceptTerms | boolean | REQUIRED true — the user must agree to Microsoft’s Customer Match terms first. Without it nothing is uploaded and nothing is hashed |
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/apply_microsoft_ads_customer_list.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"apply_microsoft_ads_customer_list","arguments":{"audienceId":"<string>"}}}
CLI
hermoso call apply_microsoft_ads_customer_list --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.
Related tools
create_microsoft_ads_customer_listCreate an empty Microsoft Advertising Customer Match listlist_microsoft_ads_audiencesList Microsoft Advertising audiences (Customer Match lists)upload_microsoft_ads_videoUpload a video to Microsoft Advertisingcreate_microsoft_ads_image_adCreate a Microsoft image ad from a render (paused)set_microsoft_ads_audience_targetingTarget or exclude a Microsoft audiencelist_microsoft_ads_audience_targetingAudiences on a Microsoft campaign or ad groupcreate_microsoft_ads_conversion_goalCreate a Microsoft Advertising conversion goalcreate_microsoft_ads_uet_tagCreate a Microsoft Advertising UET taglist_microsoft_ads_uet_tagsList Microsoft Advertising UET tagsset_microsoft_ads_biddingChange a Microsoft Advertising bid strategy