# Hermoso: apply_microsoft_ads_customer_list · Hermoso developer docs

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

# `apply_microsoft_ads_customer_list`

Upload customer emails into a Microsoft Customer Match list destructive

Area: Microsoft Advertising: negatives, bidding, conversion tracki… · [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

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)

`audienceId` required `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](https://hermoso.ai/docs/credits/).

## Related tools

- [create_microsoft_ads_customer_list](https://hermoso.ai/docs/reference/ads/create_microsoft_ads_customer_list/) Create an empty Microsoft Advertising Customer Match list
- [list_microsoft_ads_audiences](https://hermoso.ai/docs/reference/ads/list_microsoft_ads_audiences/) List Microsoft Advertising audiences (Customer Match lists)
- [upload_microsoft_ads_video](https://hermoso.ai/docs/reference/ads/upload_microsoft_ads_video/) Upload a video to Microsoft Advertising
- [create_microsoft_ads_image_ad](https://hermoso.ai/docs/reference/ads/create_microsoft_ads_image_ad/) Create a Microsoft image ad from a render (paused)
- [set_microsoft_ads_audience_targeting](https://hermoso.ai/docs/reference/ads/set_microsoft_ads_audience_targeting/) Target or exclude a Microsoft audience
- [list_microsoft_ads_audience_targeting](https://hermoso.ai/docs/reference/ads/list_microsoft_ads_audience_targeting/) Audiences on a Microsoft campaign or ad group
- [create_microsoft_ads_conversion_goal](https://hermoso.ai/docs/reference/ads/create_microsoft_ads_conversion_goal/) Create a Microsoft Advertising conversion goal
- [create_microsoft_ads_uet_tag](https://hermoso.ai/docs/reference/ads/create_microsoft_ads_uet_tag/) Create a Microsoft Advertising UET tag
- [list_microsoft_ads_uet_tags](https://hermoso.ai/docs/reference/ads/list_microsoft_ads_uet_tags/) List Microsoft Advertising UET tags
- [set_microsoft_ads_bidding](https://hermoso.ai/docs/reference/ads/set_microsoft_ads_bidding/) Change a Microsoft Advertising bid strategy

[All 759 Ad campaign management tools](https://hermoso.ai/docs/reference/ads/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
