Skip to main content
Salesforce → Microsoft AdsIntegration guide

Connecting Salesforce to Microsoft Ads

Salesforce holds the opportunity, the amount and the close — the only place the actual revenue outcome is recorded. Microsoft Ads reaches an older, higher-income, more desktop-weighted audience than Google, and it is routinely the cheapest qualified traffic a B2B advertiser can buy. The join between them succeeds or fails on one thing: whether the MSCLKID reaches the Salesforce Lead or Opportunity before the conversion happens, because Microsoft Ads can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Salesforce to Microsoft Ads: MSCLKID from Lead to Closed Won upload

Microsoft Ads matches offline conversions on the MSCLKID, so create a custom field on Lead, Contact and Opportunity, mapped through conversion, and pass it from the web form. Upload a qualified-lead stage and Closed Won at amount as separate offline goals, checking deal timing against the import window. Look for blank MSCLKID fields on Microsoft-sourced leads.

Microsoft Ads matches offline conversions on the MSCLKID, so the Salesforce build is a custom field on Lead, Contact and Opportunity, mapped through Lead conversion, plus a web form that passes the MSCLKID into the Lead. A web-to-lead form will carry it in a hidden field, but only if your page reads the parameter from the URL into that field and the field name matches the Salesforce one. Test with a real Microsoft click, not a URL you typed yourself.

Upload stages as separate offline goals: a qualified-lead stage, then Closed Won at amount. The Closed Won timestamp is the conversion time, and it must fall inside Microsoft's import window from the click; run a Salesforce report of median days from Lead created to Closed Won and compare it with the window in your account. If most deals close after it, the qualified-stage goal is the one Microsoft's bidding can actually use.

A one-minute diagnostic for this pair: a Salesforce report of Leads from Microsoft traffic, with a count of blank MSCLKID fields. If gclid is filled and msclkid is empty on Microsoft-sourced leads, the Microsoft account is not auto-tagging or the form is not reading the parameter, and every upload row will be rejected. Opportunities moved back out of Closed Won should be retracted where your account supports adjustments.

Salesforce → Microsoft Ads · what breaks

Why this join usually fails — Salesforce → Microsoft Ads

  1. 01

    The MSCLKID never reaches Salesforce

    Lead conversion is where identifiers die. A custom field on Lead that has no mapped counterpart on Contact or Opportunity is silently discarded when the Lead converts, and nobody notices until months of data are unattributable.

  2. 02

    The identifier is lost at lead conversion

    This one failure explains most broken Salesforce attribution. The data is captured correctly, then thrown away by a mapping nobody configured.

  3. 03

    Auto-tagging switched off

    Microsoft auto-tagging is frequently disabled in accounts that were set up quickly or imported from Google, and without it no MSCLKID arrives at all — so the entire offline import has nothing to match against and fails silently.

  4. 04

    Nothing reconciles afterwards

    Microsoft Ads reports offline conversion uploads with rows accepted and rejected. A successful upload is not a matched conversion — check that conversions actually appear against campaigns afterwards.

Salesforce → Microsoft Ads · the fix

What working looks like — Salesforce → Microsoft Ads

  • The MSCLKID on every opportunity

  • Conversions arriving in Microsoft Ads

    Conversions appear against the campaign, ad group and keyword that produced the click, with the value you sent, and become usable for automated bidding.

  • Reconciled against the source

Salesforce → Microsoft Ads · architecture

How Salesforce and Microsoft Ads actually connect

  1. 1

    Salesforce holds the truth

    The opportunity carries the amount, stage and close date. Because Leads convert into Contacts, Accounts and Opportunities, the identifier must be mapped through the conversion or it is dropped exactly at the moment the record becomes valuable.

  2. 2

    Microsoft Ads needs a click to match

    Microsoft matches uploaded conversions to clicks using the MSCLKID, and the conversion goal must be created as an offline conversion type. The click has to fall inside Microsoft's import window — verify the current limit in your account rather than assuming it matches Google's.

  3. 3

    The identifier is the bridge

    The MSCLKID, captured at the visit and carried into the Salesforce Lead or Opportunity.

  4. 4

    The event source decides reliability

    Fire on the transition into Closed Won, carrying the amount and the identifier. Note that Salesforce's own advertising integrations vary in what they support — build on the record, not on a connector that might change.

  5. 5

    Deduplication at the destination

    Microsoft deduplicates on the combination of click identifier, conversion name and conversion time. Uploading the same click against a second conversion goal counts twice, which is the usual cause of inflated numbers here.

Salesforce → Microsoft Ads · normal or broken

Working vs. broken, side by side — Salesforce → Microsoft Ads

Normal, not a fault

  • The MSCLKID present on the opportunity

  • Sent from a Salesforce flow, Apex trigger or scheduled export on StageName change

  • Deduplicated correctly

    Microsoft deduplicates on the combination of click identifier, conversion name and conversion time. Uploading the same click against a second conversion goal counts twice, which is the usual cause of inflated numbers here.

  • Reconciles with the source

Actually broken

  • The MSCLKID missing on most records

    Lead conversion is where identifiers die. A custom field on Lead that has no mapped counterpart on Contact or Opportunity is silently discarded when the Lead converts, and nobody notices until months of data are unattributable.

  • Sent from the browser

    This one failure explains most broken Salesforce attribution. The data is captured correctly, then thrown away by a mapping nobody configured.

  • Counted twice, or not at all

    Microsoft auto-tagging is frequently disabled in accounts that were set up quickly or imported from Google, and without it no MSCLKID arrives at all — so the entire offline import has nothing to match against and fails silently.

  • Nobody has reconciled it

Salesforce → Microsoft Ads · diagnose

Diagnostic order — Salesforce → Microsoft Ads

  1. 01

    Count opportunitys carrying the MSCLKID

  2. 02

    Follow one real conversion end to end

  3. 03

    Convert a test Lead and inspect the resulting Opportunity

    If the identifier is not on the Opportunity, the field mapping is missing. This takes five minutes and rules out the most likely cause outright.

  4. 04

    Confirm auto-tagging is enabled and check the upload diagnostics

    One account setting decides whether any of this works. Then read the per-row errors on the upload rather than the success count.

  5. 05

    Read the match rate, not the success message

    Microsoft Ads reports offline conversion uploads with rows accepted and rejected. A successful upload is not a matched conversion — check that conversions actually appear against campaigns afterwards.

Salesforce → Microsoft Ads · prove

How it gets proven — Salesforce → Microsoft Ads

Source of truth

A Salesforce report of Closed Won opportunities for the same window, by close date.

  • The MSCLKID confirmed present on a live opportunity.
  • Auto-tagging confirmed on, and the accepted count reconciled against conversions appearing in campaign reporting.
  • A test lead converted end to end with the identifier confirmed present on the resulting opportunity.

Salesforce → Microsoft Ads · free audit

What we check in the free audit

  • Count opportunitys carrying the MSCLKID
  • Follow one real conversion end to end
  • Convert a test Lead and inspect the resulting Opportunity
  • Confirm auto-tagging is enabled and check the upload diagnostics
  • Read the match rate, not the success message

Checked against

A Salesforce report of Closed Won opportunities for the same window, by close date.

Get my free conversion tracking audit

Free30 minutesNo obligation

Salesforce → Microsoft Ads · when not to buy

When you don't need this — Salesforce → Microsoft Ads

  • Measure identifier coverage yourself first — pull your last hundred opportunitys and count how many carry the MSCLKID.
  • If your Salesforce instance is heavily customized and administered by another team, scope their availability before commissioning this — the build is usually blocked on admin access rather than on the tracking work.
  • If you are not running Microsoft Ads at meaningful spend, skip it — though for B2B the traffic is often cheaper and better qualified than people expect, which is worth testing before dismissing.

Salesforce → Microsoft Ads · what we deliver

What gets built — Salesforce → Microsoft Ads

  • Identifier capture into Salesforce

    Custom field on Lead, matching custom field on Contact and Opportunity, and the field mapping configured so conversion carries it across. Verify by converting a test lead and reading the resulting opportunity.

  • Event source: a Salesforce flow, Apex trigger or scheduled export on StageName change

    Fire on the transition into Closed Won, carrying the amount and the identifier. Note that Salesforce's own advertising integrations vary in what they support — build on the record, not on a connector that might change.

  • Dispatch to Microsoft Ads

    Offline conversion import through the Microsoft Advertising API or a scheduled upload.

  • Reversals where they exist

    An opportunity moved back out of Closed Won can be retracted, and enterprise pipelines do this often enough to be worth wiring.

Written guarantee

95%+ tracking accuracy

Measured against A Salesforce report of Closed Won opportunities for the same window, by close date.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Salesforce → Microsoft Ads questions, answered

Capture the MSCLKID on the Lead, map it through conversion to the Opportunity, and upload Closed Won with amount to an offline conversion goal. Auto-tagging must be on.

Free · 30 min

Get Salesforce and Microsoft Ads joined properly

Free30 minutesNo obligation