Connect Microsoft Advertising

Read Microsoft Advertising costs and match tagged paid clicks to recorded first-party conversions.

Last updated November 30, 2026

Microsoft Advertising brings paid search and supported Microsoft campaign costs into Attribution → Advertising economics. Native spend is read-only by default: connecting an advertiser does not enable conversion uploads. Optional Microsoft conversion delivery requires a separate owner review and confirmation. Neither workflow edits ads, creates campaigns or changes spending budgets.

What you need

  • An AEO Goal brand with Site Tracking enabled.
  • A Microsoft Advertising user permitted to read the selected advertiser account.
  • Microsoft Advertising API developer access and an operator-configured OAuth application. Dashboard access alone does not grant API developer access.
  • An EUR or USD advertising account. Other currencies are rejected rather than converted silently.

Connect the advertiser account

  1. Open Attribution → Advertising economics → Native ad accounts.
  2. Select Microsoft Ads under Ad platform.
  3. Choose Connect Microsoft Ads, sign in to Microsoft and approve the Ads permission. Return to the same AEO Goal brand.
  4. Enter Microsoft customer ID and Microsoft advertiser account ID. These are distinct numeric identifiers. In the Microsoft Advertising dashboard URL, cid identifies the customer and aid identifies the advertiser account. Do not use the alphanumeric account number instead.
  5. Choose whether to refresh recent costs automatically, then select Verify Microsoft Ads account.
  6. Review the verified account name, currency and reporting time zone before choosing Sync costs now.

An authorization redirect alone does not verify an advertiser or import costs. Read the synchronization result and any actionable error. Reconnecting requires selecting the account again; it cancels old pending synchronization work while preserving financial history.

Connect recorded revenue to costs

Keep Microsoft click-ID auto-tagging enabled. Site Tracking recognizes msclkid as Microsoft/Bing paid traffic. Without a click ID, explicitly tagged utm_source=microsoft or utm_source=bing with a paid medium can classify the visit. An organic Bing or Microsoft source remains organic.

For exact account, campaign, ad-group and ad matching, expand Match recorded visits to this spend hierarchy and copy the tracking parameters for the verified account into Microsoft’s URL tracking settings. Retain existing tracking and test a resolved landing URL before publishing changes. URL parameters must contain actual identifiers, not unresolved macros.

The tag records a journey only after the configured consent requirements are met. A server checkout, connected payment source or CRM workflow must separately record the conversion. Native cost synchronization cannot discover an unreported sale. Missing or ambiguous account/campaign tags remain unmatched.

Reporting boundaries

Account, campaign, ad-group and ad report levels are independent inclusive views. Never sum them together. Some campaign formats may not report child levels; the UI identifies missing coverage rather than inventing ad detail. Reported costs do not prove incremental sales or Microsoft conversion acceptance.

Microsoft synchronization uses the latest eligible completed account-local calendar days. The selected days must also fit wholly closed UTC reporting dates. Depending on the account time zone, the newest eligible day may be two local days ago. The sync status shows the exact imported dates. Partial today is excluded. The adapter reads bounded hourly reports and reconciles them into those local days, including supported daylight-saving changes. Unrecognized reporting zones and fractional-hour boundaries are rejected rather than silently treated as UTC. Large hourly reports may require a shorter lookback.

Microsoft can still delay a complete-data report while processing its last hours. That response is retryable; no partial cost snapshot is imported as a completed day. Later provider adjustments append auditable cost corrections.

First-party Microsoft/Bing paid attribution and Microsoft’s own modeled, view-through or cross-device attribution can differ. The connection does not import an impression identity graph or create first-party visits from impressions.

Optional Microsoft conversion delivery

Spend access alone never permits uploads. Expand Microsoft conversion delivery (optional) for the verified advertiser. Before enabling it:

  1. Follow Review ad sharing in Site Tracking. In Site Tracking → Connections, review Ad sharing permission in a Google Ads or Meta destination. This shared permission is required, but does not itself enable Microsoft uploads.
  2. Choose Load verified Microsoft goals. Only active offline goals explicitly verified as not externally attributed are eligible. Create or repair goals in Microsoft Advertising first; this connector does not create them.
  3. Select Purchase goal, Lead goal and/or Signup goal. Use a separate goal for each selected event type. Not mapped - do not upload excludes that event type. Review each goal’s conversion window and All/Unique count type.
  4. Review Historical lookback (days). It starts at 0, meaning future events only. Choose 1-90 days explicitly to consider eligible history. Each event mapping has its own reviewed start; adding a mapping does not silently import earlier events. Existing deliveries bind their advertiser and goal; changing a bound mapping requires a controlled migration.
  5. Select I reviewed this advertiser, goals and ad-platform sharing., choose Enable Microsoft conversion delivery, then Confirm Microsoft uploads.

Uploads require a consented, non-bot touch carrying a valid msclkid and an exact aeo_ad_account match to the selected advertiser before the source conversion, within the verified goal’s window and the connector’s 90-day limit. Missing or ambiguous evidence is excluded, not guessed. Sandbox/QA payments and erased source events are excluded. An unmapped CRM outcome is not inferred to be a paid purchase.

Find eligible conversions followed by Confirm reconciliation runs a bounded scan within the reviewed scopes. Last conversion scan explains queued and excluded events. A 0-day resume excludes previously unshared purchases; refunds against purchases already acknowledged by Microsoft can still need adjustment.

Refunds, retries and Microsoft reporting

Refunds update the original purchase projection. A partial refund sends a Restate with the remaining net value after cumulative linked refunds. A full refund sends Retract. No separate negative-value refund conversion is sent. The original click, goal and conversion time stay stable; retry payloads remain fixed for the operation being retried. A retracted projection is not silently restored.

Sent and Last accepted upload mean Microsoft acknowledged the request. They do not prove attribution, a sale in Microsoft’s reports, or bidding impact. Microsoft requires a two-hour wait after creating an offline goal, and conversion data can take up to six hours to appear after submission. Allow that warmup before sending; goal-not-ready and temporary provider failures can be retried.

Each upload or adjustment operation has at most 12 automatic attempts within 90 days of the original source event. After fixing a failure, choose Retry failed deliveries, then Confirm retry. This explicitly resets the attempt budget for up to 100 eligible failed deliveries, without extending their original 90-day deadline or changing the frozen payload. Expired or erased sources cannot be restored this way. Current access, sharing permission and canonical goal settings are checked again before sending.

Last conversion scan separates queued work from excluded events and source processing failures. An oversized visitor or refund history fails that source without blocking later eligible conversions. Contact support for a controlled history review before retrying; do not change payment IDs or delete financial records to bypass a limit. Unrepaired sources remain failed.

Each enabled goal shows Approved events since, because a newly added event type can have a different reviewed history window from an existing mapping. Previously accepted purchases keep their original refund anchor.

Choose Pause Microsoft delivery to stop new delivery work. A request already in flight can finish; pausing does not withdraw previously accepted conversions. Spend reporting remains a separate workflow. Before rollout, verify consent, account tags, goal mappings, upload acknowledgements and linked refund adjustments in a controlled account; local checks alone are not live Microsoft acceptance.

Administrator configuration

Store these values in the backend’s existing secret-management system:

  • MICROSOFT_ADS_CLIENT_ID
  • MICROSOFT_ADS_CLIENT_SECRET
  • MICROSOFT_ADS_DEVELOPER_TOKEN

Do not put them in VITE_ variables, tags or chat. Register this web redirect URI in the Microsoft application:

https://api.aeogoal.com/api/attribution/site/ad-spend/microsoft/oauth/callback

The actual callback uses the deployment’s API_BASE_URL; APP_URL determines the return to AEO Goal. OAuth requests https://ads.microsoft.com/msads.manage and offline access. That provider permission is broader than reporting; the spend connector uses report reads. Conversion writes require the separate confirmed delivery setting above. Use the least-privileged advertiser role required for the workflows you explicitly enable.

Deploy the matching API, Worker, Beat and migration chain before enabling automatic synchronization. Verify the controlled AEO Goal account, daily reconciliation, retries, revocation and a tagged conversion before customer rollout. Local contract tests are not live provider acceptance.

See native ad-spend setup for financial inputs, history, cost restatements and retention.

Provider references: OAuth application and token setup, reporting, UTC data and completeness, URL tracking parameters, offline conversion uploads, warmup and reporting delay, offline conversion adjustments.