Skip to main content
Chargebee → Microsoft AdsIntegration guide

Connecting Chargebee to Microsoft Ads

Chargebee is a billing system, so it holds the only complete record of what a subscription business earned — and it sits entirely outside the browser. 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 Chargebee subscription 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

Chargebee to Microsoft Ads: MSCLKID on the customer, not the cookie

Read MSCLKID from the landing URL into a Chargebee customer custom field at subscription creation. Build the Microsoft Ads offline import from payment_succeeded: one row per first payment with MSCLKID, amount, currency and payment time, plus an optional trial-start goal. Never upload renewals against the same click. Check auto-tagging and the offline import window.

Microsoft Ads is often where B2B software buyers searching on desktop Bing come from, and those clicks frequently turn into Chargebee trials. The MSCLKID has to be read from the landing URL and written into a custom field on the Chargebee customer when the subscription is created, because nothing on the hosted checkout page will carry it and nothing in the browser will still hold it when the first invoice is paid weeks later.

Build the offline import from the payment_succeeded webhook: one row per first successful payment, with the MSCLKID from the customer, the collected amount and currency, and the payment time as the conversion time. Create a separate offline goal for trial starts if you want an earlier signal for bidding. The trap specific to this pair is uploading each successful renewal against the same MSCLKID under the same goal; Microsoft will count each one, and a two-year-old click will appear to keep converting every month.

Check two things before quoting results. First, that auto-tagging was on when the trials started, since accounts imported from Google often have it off. Second, that your trial length plus time to first payment fits inside Microsoft's offline import window as shown in your account; if it does not, the trial start is the only conversion that can be credited.

Chargebee → Microsoft Ads · what breaks

Why this join usually fails — Chargebee → Microsoft Ads

  1. 01

    The MSCLKID never reaches Chargebee

    The identifier must live on the customer or subscription so it survives a trial period that is longer than any browser cookie you can rely on. Chargebee's hosted checkout is also a different origin, so nothing crosses it by default.

  2. 02

    Trials longer than any cookie

    The gap between signup and first payment is where the identifier has to survive, and it is measured in weeks. Browser storage will not do it.

  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.

Chargebee → Microsoft Ads · the fix

What working looks like — Chargebee → Microsoft Ads

  • The MSCLKID on every subscription

  • 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

Chargebee → Microsoft Ads · architecture

How Chargebee and Microsoft Ads actually connect

  1. 1

    Chargebee holds the truth

    The distinction that matters most here is invoice generated versus payment succeeded. An invoice is a bill you sent; a payment is money you received, and in any business with dunning the gap between them is large.

  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 Chargebee subscription.

  4. 4

    The event source decides reliability

    Fire on payment succeeded, not invoice generated, and key the conversion on the billing period so a dunning sequence with four retries produces one conversion rather than four.

  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.

Chargebee → Microsoft Ads · normal or broken

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

Normal, not a fault

  • The MSCLKID present on the subscription

  • Sent from the Chargebee payment_succeeded 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

    The identifier must live on the customer or subscription so it survives a trial period that is longer than any browser cookie you can rely on. Chargebee's hosted checkout is also a different origin, so nothing crosses it by default.

  • Sent from the browser

    The gap between signup and first payment is where the identifier has to survive, and it is measured in weeks. Browser storage will not do it.

  • 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

Chargebee → Microsoft Ads · diagnose

Diagnostic order — Chargebee → Microsoft Ads

  1. 01

    Count subscriptions carrying the MSCLKID

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether the event fires on invoice or on payment

    Invoice-based firing counts money you have not received, and in a business with dunning that overstates consistently.

  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.

Chargebee → Microsoft Ads · prove

How it gets proven — Chargebee → Microsoft Ads

Source of truth

Chargebee's paid invoices by payment date, net of refunds and failed payments.

  • The MSCLKID confirmed present on a live subscription.
  • Auto-tagging confirmed on, and the accepted count reconciled against conversions appearing in campaign reporting.
  • A dunning sequence confirmed to produce one conversion rather than one per retry.

Chargebee → Microsoft Ads · free audit

What we check in the free audit

  • Count subscriptions carrying the MSCLKID
  • Follow one real conversion end to end
  • Check whether the event fires on invoice or on payment
  • Confirm auto-tagging is enabled and check the upload diagnostics
  • Read the match rate, not the success message

Checked against

Chargebee's paid invoices by payment date, net of refunds and failed payments.

Get my free conversion tracking audit

Free30 minutesNo obligation

Chargebee → Microsoft Ads · when not to buy

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

  • Measure identifier coverage yourself first — pull your last hundred subscriptions and count how many carry the MSCLKID.
  • If your trial is longer than 90 days, uploading the first payment against the original click cannot work — we will tell you that before quoting.
  • 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.

Chargebee → Microsoft Ads · what we deliver

What gets built — Chargebee → Microsoft Ads

  • Identifier capture into Chargebee

    Write the click identifier to a custom field on the Chargebee customer or subscription when the subscription is created, server-side, rather than relying on the hosted checkout page to carry it.

  • Event source: the Chargebee payment_succeeded webhook

    Fire on payment succeeded, not invoice generated, and key the conversion on the billing period so a dunning sequence with four retries produces one conversion rather than four.

  • Dispatch to Microsoft Ads

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

  • Reversals where they exist

    Cancellations and refunds are exposed and should reverse the lifetime value claimed at acquisition.

Written guarantee

95%+ tracking accuracy

Measured against Chargebee's paid invoices by payment date, net of refunds and failed payments.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Chargebee → Microsoft Ads questions, answered

Save the MSCLKID to a Chargebee customer custom field at signup, then upload first successful payments against an offline conversion goal with that MSCLKID, the amount and the payment time. Confirm auto-tagging is enabled first.

Free · 30 min

Get Chargebee and Microsoft Ads joined properly

Free30 minutesNo obligation