# Hermoso: create_microsoft_ads_campaign · Hermoso developer docs

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

# `create_microsoft_ads_campaign`

Build a Microsoft Advertising campaign (paused) destructive

Area: MICROSOFT AD INSIGHT · [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

Build a campaign on a connected Microsoft Advertising (Bing Ads) account. ALWAYS created Paused — it spends NOTHING until you activate it with set_microsoft_ads_status(confirm:true). Microsoft’s object graph is campaign -> ad group -> responsive search ad -> keywords, so a campaign ON ITS OWN CANNOT SERVE AN IMPRESSION: pass adGroup{name, ad{headlines,descriptions,finalUrls}, keywords[]} and this builds the whole tree. Microsoft has NO atomic multi-object write, so the levels are created in sequence and the campaign is DELETED again if anything below it is rejected — you never inherit a half-built campaign. Microsoft requires 3–15 headlines (≤30 chars) and 2–4 descriptions (≤90 chars); expanded text ads can no longer be created at all. dailyBudget is in the ACCOUNT’S currency, not necessarily USD. LOCATION TARGETING: pass locations[] (country / region / city names, ISO country codes, or numeric Microsoft location ids). A Microsoft campaign has NO geo targeting unless it is set, and Microsoft does not require any — so if you pass none, the campaign IS CREATED and serves WORLDWIDE (Microsoft’s own default), and the returned note says so loudly. That is safe at this stage because the campaign is Paused and spends nothing; it is NOT safe to activate without telling the user, so relay the warning. Nothing is created when a location you DID name cannot be resolved (call microsoft_ads_geo_search to disambiguate, then pass the id). Pass worldwide:true to record that everywhere was deliberate and suppress the nudge. The locations are written and READ BACK inside the same rollback as the rest of the tree, so a campaign is either targeted as asked or does not exist. Everything is READ BACK from Microsoft before you are told it exists; print the returned note verbatim, and if it says the campaign cannot serve yet, say that rather than calling it a finished ad.

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

`name` required `string` campaign name, ≤128 characters

`dailyBudget` required `number` daily budget in the account’s currency

`budgetType` `"DailyBudgetStandard" | "DailyBudgetAccelerated" | "LifetimeBudgetStandard"` default DailyBudgetStandard; Accelerated is Audience-campaign only

`campaignType` `string` Search (default), Shopping, DynamicSearchAds, Audience or PerformanceMax. Search (and DynamicSearchAds, which Microsoft now builds AS a Search campaign) take the full tree below; Shopping, Audience and PerformanceMax are created as a campaign on its own (finish it in Microsoft Advertising), and passing `adGroup` with one of those is refused before anything is created. PER-TYPE SETTINGS: Shopping needs storeId (a Microsoft Merchant Center store; with exactly one store on the account it is used and named in the reply, with none the create is refused in plain words). DynamicSearchAds needs dynamicSearchAds{domainName, language}. PerformanceMax needs a language (none given = All, said in the reply) and takes biddingScheme/targetCpa/targetRoas, finalUrlExpansionOptOut and an optional storeId for a retail campaign.

`storeId` `string` Shopping (required) or retail Performance Max (optional): the Microsoft Merchant Center store id. Checked against the account’s own stores before anything is created.

`shoppingPriority` `integer` Shopping only: 0 (Low, the default), 1 or 2 — decides which campaign serves when several share a store. Performance Max is always 4, set for you.

`salesCountryCode` `string` Shopping: two-letter country to filter the store catalog to, e.g. "US". Not with feedLabel.

`feedLabel` `string` Shopping: advertise every product with this feed label (≤20 characters). Not with salesCountryCode.

`localInventoryAds` `boolean` Shopping: enable local inventory ads (only where Microsoft has enabled the feature for the account)

`dynamicSearchAds` `object` Dynamic search ads: required for campaignType DynamicSearchAds, optional on Search. Microsoft retired the DynamicSearchAds TYPE, so the campaign is a Search campaign carrying this setting.

`dynamicSearchAds.domainName` required `string` the website, e.g. "example.com"

`dynamicSearchAds.language` required `string` the pages’ language: Dutch, English, French, German, Italian, Spanish or Swedish

`dynamicSearchAds.source` `"SystemIndex" | "AdvertiserSuppliedUrls" | "All"` which pages ads are built from: SystemIndex (Microsoft index), AdvertiserSuppliedUrls or All

`dynamicSearchAds.dynamicDescriptionEnabled` `boolean` true = Microsoft generates ad descriptions from page content

`biddingScheme` `"EnhancedCpc" | "MaxClicks" | "MaxConversions" | "MaxConversionValue" | "TargetImpressionShare" | "TargetCpa" | "TargetRoas"` bid strategy. Search takes any; Audience EnhancedCpc/MaxConversions; Shopping EnhancedCpc; Performance Max MaxConversions/MaxConversionValue. TargetCpa/TargetRoas are sent as MaxConversions/MaxConversionValue with the target (Microsoft converts them silently since 2025-08-04). Omitted = Microsoft’s default, read back in the reply. Change it later with set_microsoft_ads_bidding

`maxCpc` `number` bid cap for MaxClicks / MaxConversions / MaxConversionValue / TargetImpressionShare (not Performance Max)

`targetImpressionShare` `number` 1–100, with biddingScheme TargetImpressionShare

`targetAdPosition` `"FirstPage" | "MainLine" | "MainLine1"` with TargetImpressionShare; MainLine1 = the very top

`targetCpa` `number` Performance Max with MaxConversions: target cost per acquisition, account currency

`targetRoas` `number` Performance Max with MaxConversionValue: target return on ad spend as a ratio, e.g. 4 = 400%

`finalUrlExpansionOptOut` `boolean` Performance Max: true = serve only the final URLs you give; default false lets Microsoft use the whole domain

`timeZone` `string` Microsoft time-zone enum (e.g. EasternTimeUSCanada); default the ad account’s own. Microsoft marks a campaign time zone deprecated and may keep its own — the reply states the zone it stored

`locations` `string[]` where the ads may serve — omit for worldwide (Microsoft’s default, warned about in the read-back), e.g. ["United States"] or ["Seattle, Washington, United States","CA"]. Resolved to Microsoft location ids BEFORE anything is created; an ambiguous or unknown one refuses the whole create and names it

`excludeLocations` `string[]` locations to EXCLUDE from the targeted set

`locationIntent` `"PeopleInOrSearchingForOrViewingPages" | "PeopleIn"` default PeopleInOrSearchingForOrViewingPages — someone OUTSIDE the target still sees the ad if they search for the place; PeopleIn restricts to people physically there

`worldwide` `boolean` set true when the user DELIBERATELY wants to serve everywhere. Omitting locations already creates a worldwide campaign; this only records that it was intended, so the read-back stops nudging you to add locations

`languages` `string[]` campaign languages, e.g. ["English"]

`adGroup` `object` build the serving tree in the same call — WITHOUT this you get a campaign shell that can never show an ad

`adGroup.name` `string` ad group name, up to 256 characters

`adGroup.cpcBid` `number` default max CPC for the ad group, in account currency

`adGroup.language` `string` ad group language; required if the campaign has no language set

`adGroup.status` `"Active" | "Paused"` Active or Paused for the ad group; the campaign itself is always created Paused

`adGroup.ad` `object` responsive search ad: headlines, descriptions, finalUrls and optional path1/path2

`adGroup.ad.headlines` `string[]` 3–15 headlines, each ≤30 characters

`adGroup.ad.descriptions` `string[]` 2–4 descriptions, each ≤90 characters

`adGroup.ad.finalUrls` `string[]` the landing page(s) — at least one is required. A Hermoso page works: publish_page’s live URL, or get_page adDestinations.

`adGroup.ad.path1` `string` display-URL path segment, ≤15 chars, no "/"

`adGroup.ad.path2` `string` second display-URL path segment (only with path1)

`adGroup.keywords` `object[]` keywords for the ad group, each with text, matchType, bid and status

`adGroup.keywords[].text` required `string` ≤100 characters

`adGroup.keywords[].matchType` `"Exact" | "Phrase" | "Broad"` default Phrase — Microsoft has no broad-match-modifier

`adGroup.keywords[].bid` `number` per-keyword max CPC in the account currency

`adGroup.keywords[].status` `"Active" | "Paused"` default Paused

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

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

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_microsoft_ads_campaign","arguments":{"name":"<string>","dailyBudget":"<number>"}}}`
**CLI**

`hermoso call create_microsoft_ads_campaign --json '{"name":"<string>","dailyBudget":"<number>"}'`

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

- [set_microsoft_ads_status](https://hermoso.ai/docs/reference/ads/set_microsoft_ads_status/) Activate or pause a Microsoft Advertising campaign / ad group / ad
- [microsoft_ads_geo_search](https://hermoso.ai/docs/reference/ads/microsoft_ads_geo_search/) Find Microsoft Advertising location ids
- [create_microsoft_ads_ad_group](https://hermoso.ai/docs/reference/ads/create_microsoft_ads_ad_group/) Add a Microsoft Advertising ad group
- [microsoft_ads_budget_opportunities](https://hermoso.ai/docs/reference/ads/microsoft_ads_budget_opportunities/) Where Microsoft says budget is capping delivery
- [create_microsoft_ads_ad](https://hermoso.ai/docs/reference/ads/create_microsoft_ads_ad/) Create a Microsoft responsive search ad
- [microsoft_ads_traffic_estimates](https://hermoso.ai/docs/reference/ads/microsoft_ads_traffic_estimates/) Microsoft Advertising traffic estimates
- [add_microsoft_ads_keywords](https://hermoso.ai/docs/reference/ads/add_microsoft_ads_keywords/) Add Microsoft Advertising keywords
- [microsoft_ads_keyword_ideas](https://hermoso.ai/docs/reference/ads/microsoft_ads_keyword_ideas/) Microsoft Advertising keyword planner
- [search_microsoft_ads_profiles](https://hermoso.ai/docs/reference/ads/search_microsoft_ads_profiles/) Find Microsoft Advertising LinkedIn profile ids
- [list_microsoft_ads_profile_targeting](https://hermoso.ai/docs/reference/ads/list_microsoft_ads_profile_targeting/) Read a Microsoft Advertising campaign’s LinkedIn profile targeting

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