Microsoft Ads offline conversions: import affiliate sales with the MSCLKID
November 28, 2026 · Hoplytic team · 5 min read
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 can only credit an imported sale if the click carried an MSCLKID, so auto-tagging of the Microsoft Click ID must be on before the click.
- Create the offline conversion goal first and wait about two hours before the first import; the conversion name in the file must match the goal exactly.
- A conversion must be less than 90 days old, after its click, and inside the goal's conversion window, or it is rejected or not counted.
- Rows with the same MSCLKID and conversion time are ignored as duplicates, so re-importing a rolling file is safe.
- Imported conversions can take up to about six hours to show in Microsoft Advertising reports.
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
- In Microsoft Advertising, create a new conversion goal and choose Offline conversions as the type.
- Give it a clear name, such as
Affiliate sale. Every row in your file must use this name exactly. - Set the value to vary per conversion, so your commission comes through.
- 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.
- 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
- Parameters line: sets the time zone of the times below. Using UTC (
+0000) avoids daylight saving surprises. Through the API, times must be UTC. - Microsoft Click Id: the msclkid exactly as it arrived.
- Conversion Name: the goal name, exact.
- Conversion Time: when the sale happened, from the network's report.
- Conversion Value and Currency: optional; if left out, the goal's default value and currency are used.
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
| Rule | What happens if broken |
|---|---|
| Conversion time within the last 90 days | The row fails at import. |
| Conversion time later than the click | Not counted. Usually a time zone mistake. |
| Inside the goal's conversion window | Accepted, but not counted as a conversion. |
| Goal name matches exactly | The row is not applied. |
| Same MSCLKID and same conversion time as an earlier row | Ignored 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
- Manual upload: import the file from the offline conversions page. Fine for a weekly routine.
- Scheduled import: some accounts can point a schedule at a file address so Microsoft fetches it by itself. Check whether your account shows that option.
- API: the Campaign Management API's
ApplyOfflineConversionstakes up to 1,000 conversions per request. Worth it only if you build your own tooling.
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
- No MSCLKID on the clicks that bought. Auto-tagging was off, or a redirect between the ad and your page dropped the query string. Test the chain with the redirect checker.
- Time zone wrong. Times written in local time with a
+0000header can land before the click. - Goal too new. Imports in the first two hours after creating the goal can fail.
- Different account. Click IDs must belong to the account you import into.
- Outside the window. Long approval delays plus a short window means accepted but uncounted.
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.
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