hermosodocs

create_microsoft_ads_campaign

Build a Microsoft Advertising campaign (paused) destructive

Area: MICROSOFT AD INSIGHT · Ad campaign management. Generated from the running MCP server, like the rest of the tool 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

ParameterTypeDescription
adAccountIdstringMicrosoft ad account id — omit to use the single shared account
accountIdstringolder name for adAccountId (MCP only)
namerequiredstringcampaign name, ≤128 characters
dailyBudgetrequirednumberdaily budget in the account’s currency
budgetType"DailyBudgetStandard" | "DailyBudgetAccelerated" | "LifetimeBudgetStandard"default DailyBudgetStandard; Accelerated is Audience-campaign only
campaignTypestringSearch (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.
storeIdstringShopping (required) or retail Performance Max (optional): the Microsoft Merchant Center store id. Checked against the account’s own stores before anything is created.
shoppingPriorityintegerShopping 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.
salesCountryCodestringShopping: two-letter country to filter the store catalog to, e.g. "US". Not with feedLabel.
feedLabelstringShopping: advertise every product with this feed label (≤20 characters). Not with salesCountryCode.
localInventoryAdsbooleanShopping: enable local inventory ads (only where Microsoft has enabled the feature for the account)
dynamicSearchAdsobjectDynamic 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.domainNamerequiredstringthe website, e.g. "example.com"
dynamicSearchAds.languagerequiredstringthe 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.dynamicDescriptionEnabledbooleantrue = 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
maxCpcnumberbid cap for MaxClicks / MaxConversions / MaxConversionValue / TargetImpressionShare (not Performance Max)
targetImpressionSharenumber1–100, with biddingScheme TargetImpressionShare
targetAdPosition"FirstPage" | "MainLine" | "MainLine1"with TargetImpressionShare; MainLine1 = the very top
targetCpanumberPerformance Max with MaxConversions: target cost per acquisition, account currency
targetRoasnumberPerformance Max with MaxConversionValue: target return on ad spend as a ratio, e.g. 4 = 400%
finalUrlExpansionOptOutbooleanPerformance Max: true = serve only the final URLs you give; default false lets Microsoft use the whole domain
timeZonestringMicrosoft 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
locationsstring[]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
excludeLocationsstring[]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
worldwidebooleanset 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
languagesstring[]campaign languages, e.g. ["English"]
adGroupobjectbuild the serving tree in the same call — WITHOUT this you get a campaign shell that can never show an ad
adGroup.namestringad group name, up to 256 characters
adGroup.cpcBidnumberdefault max CPC for the ad group, in account currency
adGroup.languagestringad 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.adobjectresponsive search ad: headlines, descriptions, finalUrls and optional path1/path2
adGroup.ad.headlinesstring[]3–15 headlines, each ≤30 characters
adGroup.ad.descriptionsstring[]2–4 descriptions, each ≤90 characters
adGroup.ad.finalUrlsstring[]the landing page(s) — at least one is required. A Hermoso page works: publish_page’s live URL, or get_page adDestinations.
adGroup.ad.path1stringdisplay-URL path segment, ≤15 chars, no "/"
adGroup.ad.path2stringsecond display-URL path segment (only with path1)
adGroup.keywordsobject[]keywords for the ad group, each with text, matchType, bid and status
adGroup.keywords[].textrequiredstring≤100 characters
adGroup.keywords[].matchType"Exact" | "Phrase" | "Broad"default Phrase — Microsoft has no broad-match-modifier
adGroup.keywords[].bidnumberper-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.

All 759 Ad campaign management tools · tools.json