set_microsoft_ads_audience_targeting
Target or exclude a Microsoft audience destructive
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.
Related tools
create_microsoft_ads_customer_listCreate an empty Microsoft Advertising Customer Match listlist_microsoft_ads_audience_targetingAudiences on a Microsoft campaign or ad groupcreate_microsoft_ads_image_adCreate a Microsoft image ad from a render (paused)create_microsoft_ads_conversion_goalCreate a Microsoft Advertising conversion goalupload_microsoft_ads_videoUpload a video to Microsoft Advertisingcreate_microsoft_ads_uet_tagCreate a Microsoft Advertising UET taglist_microsoft_ads_audiencesList Microsoft Advertising audiences (Customer Match lists)list_microsoft_ads_uet_tagsList Microsoft Advertising UET tagsset_microsoft_ads_biddingChange a Microsoft Advertising bid strategyapply_microsoft_ads_customer_listUpload customer emails into a Microsoft Customer Match list