Skip to main content
Braintree → Microsoft AdsIntegration guide

Connecting Braintree to Microsoft Ads

Braintree is a payment gateway rather than a storefront, so it sits underneath whatever is taking the order and holds the transaction itself. 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 Braintree transaction 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

Braintree to Microsoft Ads: msclkid in custom fields, uploaded offline

Define a Braintree custom field in the Control Panel, write the msclkid into it when your server creates the transaction, and upload settled payments through Microsoft Ads offline conversion import with one consistent conversion time. Long trials can fall outside the import window. Make sure the PayPal and Venmo path also passes the field; refunds can become adjustments.

This pair runs on offline conversion import, which suits Braintree's timing: you upload after the transaction settles rather than racing the browser to a confirmation page. The msclkid has to be written into a Braintree custom field when your server creates the transaction, and Braintree custom fields must be defined in the Control Panel before the API will accept them. Create the field first and test in sandbox; an undefined custom field fails validation instead of quietly storing the value.

Pick one conversion time and use it consistently, settlement or authorization, and make sure it falls after the click. Microsoft only matches clicks inside its import window, so a long free trial ahead of the first charge can push the payment outside it; check the current window in your account and, if trials routinely run long, upload the trial start to a separate offline goal that is not used for bidding alongside the paid one.

Refunds and disputes are easier here than in most pairs: Braintree's refund and dispute records carry the original custom fields, so the msclkid you need is already on hand, and Microsoft supports retracting or restating offline conversions through adjustments; confirm it is available in your account. The usual break is the PayPal branch. The custom field is attached in the card flow, but the PayPal or Venmo path was built separately and never passes it, so a share of payments uploads with nothing to match.

Braintree → Microsoft Ads · what breaks

Why this join usually fails — Braintree → Microsoft Ads

  1. 01

    The MSCLKID never reaches Braintree

    Braintree is a gateway, so it sees the payment and not the marketing. The identifier has to be attached at the point your application creates the transaction, through custom fields, or it never enters Braintree at all.

  2. 02

    A gateway that knows nothing about marketing

    Braintree sees a payment. Whether it can be tied to a click depends entirely on whether your own application attached the identifier when creating the transaction, and most do not.

  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.

Braintree → Microsoft Ads · the fix

What working looks like — Braintree → Microsoft Ads

  • The MSCLKID on every transaction

  • 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

Braintree → Microsoft Ads · architecture

How Braintree and Microsoft Ads actually connect

  1. 1

    Braintree holds the truth

    Settled and authorised are different states. Authorisation reserves the funds; settlement is money moving, and reporting on the wrong one produces a persistent gap against your bank.

  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 Braintree transaction.

  4. 4

    The event source decides reliability

    Fire on settlement rather than authorisation, and note that Braintree's PayPal and wallet flows redirect the buyer away — so the confirmation page is not a reliable trigger.

  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.

Braintree → Microsoft Ads · normal or broken

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

Normal, not a fault

  • The MSCLKID present on the transaction

  • Sent from the Braintree transaction settlement webhook

  • 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

    Braintree is a gateway, so it sees the payment and not the marketing. The identifier has to be attached at the point your application creates the transaction, through custom fields, or it never enters Braintree at all.

  • Sent from the browser

    Braintree sees a payment. Whether it can be tied to a click depends entirely on whether your own application attached the identifier when creating the transaction, and most do not.

  • 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

Braintree → Microsoft Ads · diagnose

Diagnostic order — Braintree → Microsoft Ads

  1. 01

    Count transactions carrying the MSCLKID

  2. 02

    Follow one real conversion end to end

  3. 03

    Open a settled transaction and check its custom fields

    If the identifier is not there, your application never attached it and nothing downstream can recover it.

  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.

Braintree → Microsoft Ads · prove

How it gets proven — Braintree → Microsoft Ads

Source of truth

Braintree's transaction records, filtered to settled, for the same window.

  • The MSCLKID confirmed present on a live transaction.
  • Auto-tagging confirmed on, and the accepted count reconciled against conversions appearing in campaign reporting.
  • A PayPal-funded transaction confirmed to report even though the buyer was redirected away.

Braintree → Microsoft Ads · free audit

What we check in the free audit

  • Count transactions carrying the MSCLKID
  • Follow one real conversion end to end
  • Open a settled transaction and check its custom fields
  • Confirm auto-tagging is enabled and check the upload diagnostics
  • Read the match rate, not the success message

Checked against

Braintree's transaction records, filtered to settled, for the same window.

Get my free conversion tracking audit

Free30 minutesNo obligation

Braintree → Microsoft Ads · when not to buy

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

  • Measure identifier coverage yourself first — pull your last hundred transactions and count how many carry the MSCLKID.
  • If your platform already reports orders accurately and Braintree is purely the funding rail, work at the order layer instead — it is closer to the customer.
  • 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.

Braintree → Microsoft Ads · what we deliver

What gets built — Braintree → Microsoft Ads

  • Identifier capture into Braintree

    Pass the click identifier into the transaction's custom fields when your server creates the charge. Braintree preserves them and they survive to the webhook and to any later refund.

  • Event source: the Braintree transaction settlement webhook

    Fire on settlement rather than authorisation, and note that Braintree's PayPal and wallet flows redirect the buyer away — so the confirmation page is not a reliable trigger.

  • Dispatch to Microsoft Ads

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

  • Reversals where they exist

    Braintree exposes refunds and disputes, both carrying the original custom fields, so reversals are straightforward.

Written guarantee

95%+ tracking accuracy

Measured against Braintree's transaction records, filtered to settled, for the same window.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Braintree → Microsoft Ads questions, answered

Capture msclkid on the landing page, keep it in a first-party cookie or on the user record, and include it as a custom field when your server creates the Braintree transaction. Define that custom field in the Braintree Control Panel first.

Free · 30 min

Get Braintree and Microsoft Ads joined properly

Free30 minutesNo obligation