Microsoft Ads offline conversions: import affiliate sales with the MSCLKID

November 28, 2026 · Hoplytic team · 5 min read

The short version: this guide in 80 seconds.
Read the video transcript

How do you import affiliate sales into Microsoft Ads, so its bidding favors the keywords that earn?

Turn on auto-tagging of the Microsoft Click ID first. Earlier clicks can never be imported. You can't download the MSCLKID later, so your tracker has to save it at the click. Check a live ad click for MSCLKID in the address bar.

Create a conversion goal of the type Offline conversions, with a value that varies. Name it clearly. Every row in your file must use exactly that name. Then wait about two hours before your first import.

Each row has the MSCLKID exactly as it arrived, and the goal name. Then the time of the sale. Using UTC avoids daylight saving surprises. Value and currency are optional.

Rows with the same click ID and time are ignored as duplicates, so re-importing a rolling file is safe.

If sales don't show, check for a missing MSCLKID, a wrong time zone, a goal under two hours old, or the wrong account.

Hoplytic stores the click ID automatically. Under Send back, add Microsoft Ads and set the conversion name to match your goal. You get a private file address to import.

The full guide is right below. Hoplytic: ad tracking made simple.

Key points

Microsoft Advertising traffic converts well for many affiliate offers, but the UET tag never sees a sale on the merchant's site. Offline conversion import fixes that: you hand Microsoft a list of its own click IDs that turned into sales, and its bidding starts favoring the keywords that earn.

Short answer: turn on auto-tagging of the Microsoft Click ID, store each click's msclkid, create an offline conversion goal, wait about two hours, then import a file with Microsoft Click Id, Conversion Name, Conversion Time, Conversion Value and Conversion Currency for every sale less than 90 days old.

Google Ads works the same way with the gclid; that is covered in Google Ads offline conversion import. This guide covers what is specific to Microsoft.

Step 1: make sure every click has an MSCLKID

Microsoft adds msclkid to the landing page URL only when auto-tagging of the Microsoft Click ID is on in your account settings. Check it before anything else, because clicks from before you turn it on can never be imported. Then check a live click: open your ad's landing page from a real ad click and look for msclkid= in the address bar.

The MSCLKID can't be downloaded from Microsoft Advertising later. Your tracker or landing page has to save it at the moment of the click, and pass its own click ID to the affiliate network in a sub-ID so the sale comes back matched. A typical final URL:

https://go.yoursite.com/vpn-deal?campaign={CampaignId}&adgroup={AdGroupId}&kw={keyword}

Microsoft appends msclkid=2f6a91c0e8b14f3d9a7c55e1b0d4a8f2 by itself. The other macros are in the Microsoft Ads macros reference.

Step 2: create the offline conversion goal

  1. In Microsoft Advertising, create a new conversion goal and choose Offline conversions as the type.
  2. Give it a clear name, such as Affiliate sale. Every row in your file must use this name exactly.
  3. Set the value to vary per conversion, so your commission comes through.
  4. Pick the count: All adds up every conversion for the same click at different times; Unique counts only the first conversion after a click. For one-off affiliate sales, Unique is the safer choice. For subscriptions that rebill, All.
  5. Set the conversion window longer than your network's cookie or typical time to sale.

Microsoft's documentation says to wait two hours after creating the goal before you send conversions to it.

Step 3: the import file

Parameters:TimeZone=+0000
Microsoft Click Id,Conversion Name,Conversion Time,Conversion Value,Conversion Currency
2f6a91c0e8b14f3d9a7c55e1b0d4a8f2,Affiliate sale,2026-11-27 18:42:10,32.00,USD
a09d3e7b51c24c8e86f0b2d9e4c7a613,Affiliate sale,2026-11-28 09:05:33,18.50,USD

Download Microsoft's own template from the import screen if you are unsure of the column headers; it is the reference.

The rules that decide whether a sale counts

RuleWhat happens if broken
Conversion time within the last 90 daysThe row fails at import.
Conversion time later than the clickNot counted. Usually a time zone mistake.
Inside the goal's conversion windowAccepted, but not counted as a conversion.
Goal name matches exactlyThe row is not applied.
Same MSCLKID and same conversion time as an earlier rowIgnored as a duplicate.

The duplicate rule is useful: a file that always contains the last 90 days of sales can be imported every day without double counting. It also means a sale that changes value later does not update by re-importing with the same time.

Microsoft's example makes the window rule concrete: with a 30-day window, a click on April 30 can only be credited with a conversion up to May 29, even though the import itself is allowed for 90 days.

Manual, scheduled or API

Imported conversions can take up to about six hours to show in reports. Don't re-upload because nothing appeared after ten minutes.

Commission, pending and rejected sales

Send your commission as the value if you bid toward a ROAS target. For pending sales the choice is speed against accuracy: Microsoft learns sooner from pending sales, but there is no simple way to take back a sale the network later rejects by re-importing the same row. If your network rejects many sales, import approved ones only, and keep the conversion window long enough to cover the approval delay. See attribution windows for how windows and approval delays interact.

When imported sales don't show up

Doing it in Hoplytic

Hoplytic stores the msclkid with every click automatically, along with the campaign, ad group and keyword values from the link maker. Under Send back, add Microsoft Ads and set the conversion name to match your goal. You get a private file address: download it and import it, or point a scheduled import at it if your account offers one. The file uses a UTC time zone line, includes sales from the last 90 days whose click had an msclkid, and leaves out rejected sales; you choose pending or approved only, and commission or order value.

Choose the ad platform, then when to send each sale and its value.

Questions people ask

What is the MSCLKID?

It is Microsoft Advertising's click ID, added to your landing page URL as msclkid when auto-tagging of the Microsoft Click ID is on. It can't be looked up later in Microsoft Advertising, so you must store it when the visitor lands.

How long after the click can I import an offline conversion?

The conversion time must be within the last 90 days when you import it. It also has to fall inside the conversion window set on the offline goal, or it is accepted but not counted.

Can I import the same file twice?

Yes. Microsoft ignores rows with the same MSCLKID and conversion time as one it already has, so a daily file that repeats older rows does not create duplicates.

What time zone should conversion times use?

The file starts with a Parameters line that sets the time zone, for example Parameters:TimeZone=+0000 for UTC. Through the API, times must be UTC.

More in Conversion tracking

Also: tracking glossary · ad platform macros · Markdown copy