# Hermoso: set_microsoft_ads_audience_targetin · Hermoso developer docs

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

# `set_microsoft_ads_audience_targeting`

Target or exclude a Microsoft audience 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

Put an audience to work on a Microsoft Advertising campaign or ad group — e.g. the customer list from create_microsoft_ads_customer_list, to retarget it or EXCLUDE existing customers. action add (audienceId, exclude, bidAdjustment -90..900 %) or remove (criterionIds from list_microsoft_ads_audience_targeting). Microsoft allows biddable audiences at the campaign OR the ad-group level of one campaign, not both; exclusions at both; Performance Max can only exclude. Targeting or removing on a LIVE campaign needs confirm:true. Read back. Free.

## 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)

`campaignId` `string` campaign to target or exclude the audience on; pass this or adGroupId

`adGroupId` `string` ad group to target or exclude the audience on; pass this or campaignId

`action` `"add" | "remove"` default add

`audienceId` `string` list_microsoft_ads_audiences

`exclude` `boolean` true = exclude this audience instead of targeting it

`bidAdjustment` `number` -90 to 900 (%); 0 = target without changing the bid

`criterionIds` `string[]` criterion ids to remove (action remove), from list_microsoft_ads_audience_targeting

`confirm` `boolean` true required on a LIVE campaign when targeting or removing

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

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

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"set_microsoft_ads_audience_targeting","arguments":{}}}`
**CLI**

`hermoso call set_microsoft_ads_audience_targeting --json '{}'`

## 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_audience_targeting](https://hermoso.ai/docs/reference/ads/list_microsoft_ads_audience_targeting/) Audiences on a Microsoft campaign or ad group
- [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)
- [create_microsoft_ads_conversion_goal](https://hermoso.ai/docs/reference/ads/create_microsoft_ads_conversion_goal/) Create a Microsoft Advertising conversion goal
- [upload_microsoft_ads_video](https://hermoso.ai/docs/reference/ads/upload_microsoft_ads_video/) Upload a video to Microsoft Advertising
- [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_audiences](https://hermoso.ai/docs/reference/ads/list_microsoft_ads_audiences/) List Microsoft Advertising audiences (Customer Match lists)
- [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
- [apply_microsoft_ads_customer_list](https://hermoso.ai/docs/reference/ads/apply_microsoft_ads_customer_list/) Upload customer emails into a Microsoft Customer Match list

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