MICROSOFT ADS AdRails 0.14.4

Let an agent watch Microsoft Ads without the keys to spend

AdRails 0.14.0 adds a read-only Microsoft Ads (Bing Ads) monitor: six MCP tools that read accounts, campaigns, the full build with editorial approvals, daily stats, search terms and a health check. There is no write tool and the client has no write method, so a monitoring agent can be given it safely. It was verified against a live account on 2026-11-16.

Last reviewed 2026-11-16 with AdRails 0.14.4

READ-ONLY MONITOR

What can an AI agent see on Microsoft Ads with AdRails?

Six adsops_msads_* tools read the account in detail. None of them can change a bid, a budget or a status.

The build

  • Accounts. adsops_msads_accounts shows who the sign-in is and every ad account it can see: number, ids, status, currency. C2 · live 2026-11-16
  • Campaigns. adsops_msads_campaigns returns status, daily budget, bid strategy, max CPC cap, time zone and tracking suffix. C2 · live
  • Structure. adsops_msads_structure returns ad groups, every keyword with its match type and editorial approval, every ad with approval and final URLs, and the campaign's negative keywords. C2 · live: 6 ad groups, 72 keywords, 310 negatives

The numbers

  • Performance. adsops_msads_performance returns daily impressions, clicks, spend and conversions at campaign, ad group or keyword level, with totals, CTR, average CPC and cost per conversion. C2, C6 · selftest + live
  • Search terms. adsops_msads_search_terms returns what people actually typed, sorted by spend, plus the terms that spent with no conversion. C2 · selftest + live
  • History. adsops_metrics_pull stores Microsoft days beside Google Ads with the same metric names, so adsops_impact can say whether a change worked. C7 · selftest

There is no write tool, and the Microsoft client inside AdRails has no write method. A selftest fails if one appears. C1 · selftest: msads_tools, platforms.microsoft_ads

THE DAILY CHECK

What does the Microsoft Ads health check flag?

adsops_msads_health reads every Active campaign and returns findings by severity. ok is false only on a critical one.

Critical: nothing can serve

  • No active ad group under an Active campaign. This is easy to miss when a campaign is built in drafts and only the campaign gets switched on. C5 · selftest
  • No serving keyword or ad in an active ad group, because all of them are paused or disapproved. C5 · selftest

Warnings and notes

  • Disapprovals. Keywords or ads rejected by editorial review, with examples. C5
  • Self-blocking negatives. A negative keyword that blocks one of your own keywords. C5
  • Zero impressions on an Active campaign in the window. C5 · live: flagged on a campaign under an hour old
  • Budget reached today, and a missing tracking suffix (leads arrive in your CRM without campaign ids). C5

A simple recipe for a monitoring agent: once a day, call adsops_msads_health. If ok is false, alert a person. Otherwise post yesterday's adsops_msads_performance and the top search terms.

SETUP

How do I connect Microsoft Ads?

You need a developer token and one sign-in. No campaigns or state files are needed, because the monitor never writes.

1. Developer token and config

  • Request a developer token in Microsoft Advertising's Developer Portal.
  • Add a microsoft_ads block to your config: the token source (file, env or 1Password), the sign-in provider and, optionally, the account numbers to read.
  • Pinned account ids skip account discovery during daily runs.

2. Sign in once

  • Microsoft Ads login is "Sign in with Google": use provider google. A Google OAuth web client with a localhost redirect, published "In production".
  • Microsoft or work account: use provider microsoft with a device code you can enter on a phone.
  • Run adrails msads-auth. The refresh token is saved with mode 0600 and never printed. C3, C4 · selftest

Full guide with the config block: docs/MICROSOFT_ADS.md. Live proof: LIVE-PROOF-MSADS-2026-11-16.md.

FAQ

Straight answers.

Can the agent change my Microsoft Ads campaigns?

No. The six adsops_msads_* tools only read. The Microsoft client inside AdRails has no create, update, delete, pause or enable method at all, and a selftest fails if one is added. Changes stay with you in the Microsoft Ads UI or your own reviewed process.

What does the health check catch?

Anything that stops an Active campaign from serving or wastes money: no active ad group, an active ad group whose keywords or ads are all paused or disapproved, editorial disapprovals, negative keywords that block your own keywords, an Active campaign with zero impressions, today's spend reaching the daily budget, and a missing final URL suffix (leads then arrive in your CRM without campaign ids). Paused campaigns are not alarms.

I sign in to Microsoft Ads with Google. Does that work?

Yes. Set provider google in the config, create a Google OAuth web client with a localhost redirect, set its consent screen to In production, and run adrails msads-auth once. Microsoft's own SDK uses the same Google sign-in for its API. Microsoft or work accounts use provider microsoft with a device code instead.

Where do my credentials go?

Nowhere but Microsoft and the sign-in provider. AdRails runs on your machine; the developer token and client secret come from a file, an environment variable or 1Password, and the refresh token is stored on your disk with mode 0600. None of them appears in a tool result, an error or a log line.

Can I compare Microsoft Ads with Google Ads?

Yes. adsops_metrics_pull stores Microsoft campaign and search-term days in the same local history as Google Ads, with the same metric names (cost, clicks, impressions, conversions), so adsops_metrics and adsops_impact read both platforms side by side.

What has not been verified live yet?

Reports with non-zero rows (the live account had just launched, so every report came back empty, which is Microsoft's no-data answer; CSV parsing is covered offline) and the provider microsoft device-code sign-in (the live run used Google sign-in). Both are listed in the live proof.