Connector guide — Microsoft Advertising (microsoft_ads)

Fixed sections (Phase D1 format). Facts marked [Validated] are measured in code or tests; [Observed] facts carry a date; [Gap] names an open item. No credential, token, account identifier or tenant value appears in this file.

What it is

Microsoft Advertising (Bing Ads) — search and audience ads on Bing, Microsoft and partner surfaces. For MIZ OKI it would be a paid-media pull rail (campaign performance aggregates) beside Google Ads. Catalog category paid-media, wave 4. Design: docs/design/connectors/microsoft_ads.md.

Status (measured)

[Observed 2026-10-12] available: false, wave 4, in CONNECTOR_CATALOG (services/service-marketing-connectors/connector_credentials.py) — the row is added by the C7 change this guide ships with and enumerates the fields below so the surface can name them; it collects nothing. [Validated] The onboarding UI renders an available: false row as a locked card with a "Wave 4" pill (miz-oki-command-center-ui/components/connectors/marketing-connectors.tsx, the !entry.available branch); posting any payload for the provider returns 409 provider_not_available ("is wave 4 and not yet enabled"). The honest words are "not yet available". The adapter is built only when a tenant declares demand (docs/OPEN_ITEMS.md row); never promise a date.

Who owns the account

The customer. The Microsoft Advertising account, the developer token and the OAuth app registration all stay in the customer's name (law 3); the C7 field set is the bring-your-own-app shape, like the Google Ads typed card, and carries the same small-business limitation OB-GAP-1 names.

Prerequisites

Visibility invite (click path)

ads.microsoft.com → Tools → Account access (Accounts & Billing → Users) → Invite user → the Media Intelligence access seat with a read-only / viewer role on the account. Vendor UIs drift; follow Microsoft's current help if a label differs. This invite is for discovery and review only; it is not the API credential.

Connecting in the onboarding UI

There is nothing to connect yet. The card is locked: it shows the label, the description and the Wave 4 pill, and has no inputs. Do not collect any of the values below by another channel (law 2, law 10); record the tenant's demand instead, so the build is demand-driven and the row can be flipped only after live verification (CDoD point 14).

Fields

key where the tenant finds it format secret? required?
developer_token Microsoft Advertising → developer settings → Request Token (Super Admin; production token) opaque; never echoed yes yes
oauth_client_id the customer's app registration → Application (client) ID opaque id no yes
oauth_client_secret the same app registration → Certificates & secrets opaque; never echoed yes yes
refresh_token issued when the account user consents to the app with offline access opaque; never echoed yes yes
customer_id the cid value in the URL when Campaigns is open digits no yes
account_id the aid value in the same URL (the identifier, not the account number) digits no yes

Test connection

Not applicable until built. Today every post is 409 provider_not_available; that is the surface working as designed, not a fault to work around. The planned verdict table lives in the design note.

What it feeds

When built: the paid-media pull → canonical ingest gate → mizoki_unified_data, aggregates only. No writeback; MEASUREMENT_WRITEBACK=false untouched (law 8).

Aggregate campaign reports are de-personalised by construction; audience uploads and offline conversions are out of scope. The tenant's consent declaration (P2-5) is required regardless and never substitutes for a per-subject basis.

Revoke / offboard

Nothing is stored, so there is nothing to revoke on the platform side. If a customer created a credential in anticipation, ask them to delete or rotate it on the vendor side; never accept it meanwhile.

Known gaps

Last verified

Catalog shape, UI locked-card branch and the 409 path measured 2026-10-12 in the C7 worktree (branch feat/onboarding-connectors-self-healing-20261012). Vendor documentation: Microsoft Advertising API "Get started" (learn.microsoft.com/en-us/advertising/guides/get-started) — fetched 2026-10-12.

← All docsView source on GitHub →