# Hermoso: microsoft_ads_bulk_upload · Hermoso developer docs

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

# `microsoft_ads_bulk_upload`

Apply a Microsoft Advertising bulk file (spend-gated) destructive

Area: MICROSOFT BULK SERVICE + MEASUREMENT · [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

Apply a Microsoft Advertising BULK FILE — edit hundreds of campaigns, ad groups, ads, keywords, extensions or labels in one request. Pass `file` as the CSV/TSV string; microsoft_ads_bulk_download returns exactly that shape in its `file` field. THE SPEND GATE, AND IT IS UNLIKE EVERY OTHER TOOL HERE. A bulk file carries a Status column, so one upload can turn campaigns ON — and confirm:true ALONE IS NOT ENOUGH for a file: it proves you meant to upload something, not that you know what THIS file does, and it reads identically for a file that changes two bids and one that activates fifty campaigns. So: call it ONCE with no confirmation. Nothing is uploaded, and you are told exactly how many objects the file would ACTIVATE (they can then spend real money) and DELETE (which Microsoft never undoes — a deleted object is never returned by any read again), each named with its row number, type, id and name. SHOW THAT LIST TO THE USER, get an explicit yes, then call again with confirm:true, confirmActivations:<n> and confirmDeletions:<n>. If the activations are incidental — a file you round-tripped out of a download and only meant to edit bids in — pass pauseInstead:true instead and those rows are written as Paused, so everything else lands with nothing armed; it is refused when the file also deletes, because pausing is a safe substitute for activating and there is none for deleting. Partial success is normal on this API: rows Microsoft rejects come back listed individually and the correct ones ARE applied, so never describe a CompletedWithErrors upload as a failure. 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)

`file` required `string` the bulk file itself, CSV or TSV, whose first column header must be "Type"

`fileType` `"Csv" | "Tsv"` inferred from the file when omitted

`confirm` `boolean` the user has SEEN what this file activates and deletes and said yes. Not sufficient on its own — the two echo counts below are also required

`confirmActivations` `number` echo back how many objects this file ACTIVATES — the exact count the un-confirmed call reported

`confirmDeletions` `number` echo back how many objects this file DELETES — the exact count the un-confirmed call reported

`pauseInstead` `boolean` rewrite every activation to Paused so the rest of the file uploads with nothing armed. Never applied unless asked: an unrequested rewrite would PAUSE A LIVE CAMPAIGN

`dryRun` `boolean` report what the file would do and upload nothing at all

`responseMode` `"ErrorsAndResults" | "ErrorsOnly"` default ErrorsAndResults, so the outcome can be read back rather than assumed

`uploadRequestId` `string` read the outcome of an upload that came back pending. NEVER re-upload the file — it is already queued, and a second upload applies every row twice

`waitMs` `number` how long to wait for Microsoft to apply the file before returning pending, max 120000

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

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

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

`hermoso call microsoft_ads_bulk_upload --json '{"file":"<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

- [microsoft_ads_bulk_download](https://hermoso.ai/docs/reference/ads/microsoft_ads_bulk_download/) Export a Microsoft Advertising account as a bulk file
- [list_microsoft_ads_conversion_goals](https://hermoso.ai/docs/reference/ads/list_microsoft_ads_conversion_goals/) Microsoft Advertising conversion goals
- [send_microsoft_ads_offline_conversions](https://hermoso.ai/docs/reference/ads/send_microsoft_ads_offline_conversions/) Send offline + enhanced conversions to Microsoft
- [microsoft_ads_auction_insights](https://hermoso.ai/docs/reference/ads/microsoft_ads_auction_insights/) Who else is bidding on the same Microsoft auctions

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