hermosodocs

microsoft_ads_bulk_upload

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

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

ParameterTypeDescription
adAccountIdstringMicrosoft ad account id — omit to use the single shared account
accountIdstringolder name for adAccountId (MCP only)
filerequiredstringthe bulk file itself, CSV or TSV, whose first column header must be "Type"
fileType"Csv" | "Tsv"inferred from the file when omitted
confirmbooleanthe 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
confirmActivationsnumberecho back how many objects this file ACTIVATES — the exact count the un-confirmed call reported
confirmDeletionsnumberecho back how many objects this file DELETES — the exact count the un-confirmed call reported
pauseInsteadbooleanrewrite 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
dryRunbooleanreport 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
uploadRequestIdstringread 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
waitMsnumberhow 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.

All 759 Ad campaign management tools · tools.json