microsoft_ads_bulk_upload
Apply a Microsoft Advertising bulk file (spend-gated) destructive
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) |
filerequired | 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.
Related tools
microsoft_ads_bulk_downloadExport a Microsoft Advertising account as a bulk filelist_microsoft_ads_conversion_goalsMicrosoft Advertising conversion goalssend_microsoft_ads_offline_conversionsSend offline + enhanced conversions to Microsoftmicrosoft_ads_auction_insightsWho else is bidding on the same Microsoft auctions