Bing Ads affiliate tracking: set up Microsoft Advertising so every sale finds its keyword
November 28, 2026 · Hoplytic team · 5 min read
Read the video transcript
Importing your Google campaigns into Microsoft Ads? The ads carry over, but the tracking needs its own check.
First, turn on auto-tagging so every click carries MSCLKID. Without it, you can't tell Microsoft which clicks bought.
Put the values your landing page needs in the final URL suffix. Microsoft spells its own parameters, with capital letters. Add keyword and match type. The suffix can't start with a question mark. QueryString is the real search term. Keep it in your tracker, not in a network sub-ID.
After an import, read every template and suffix that came across. Replace Google-only names, like campaign ID in lower case. And change any fixed label that says Google, or both platforms land in one row.
The visitor lands on your page with those values. Your tracker stores them, and sends its click ID to the network in the sub-ID. Then upload sales to Microsoft with the msclkid, so its bidding learns.
In Hoplytic, pick Microsoft Bing Ads in the link maker and the campaign, ad group and keyword values are added. Under Send back, add Microsoft Ads to get a feed file of sales to import as offline conversions.
The full guide is right below. Hoplytic: ad tracking made simple.
Key points
- Turn on auto-tagging so every click carries msclkid, the ID you need to send sales back to Microsoft Ads.
- Microsoft's URL parameters have their own spellings, such as {CampaignId} and {AdGroupId}, so don't assume a Google template works unchanged.
- Put the values your landing page needs in the final URL suffix, which can't start with ?, & or # and can't contain {lpurl}.
- After importing campaigns from Google, read every tracking template and suffix: imported settings can carry Google-only parameters.
- Track Bing as its own source: its audience, prices and search partners differ from Google's, so its profitable keywords often differ too.
Microsoft Advertising (still "Bing Ads" to most people) is often the cheaper sibling of Google Ads, and many affiliates run it by importing their Google campaigns. That works for the ads. The tracking needs its own check, because Microsoft fills its own parameters and has its own click ID.
Short answer: turn on auto-tagging so each click carries msclkid, add a final URL suffix such as campaign={CampaignId}&adgroup={AdGroupId}&kw={keyword}&match={MatchType}, send the ad to your own landing page, and route the affiliate click through a tracker that stores those values and puts its click ID in the network's sub-ID. Then upload sales to Microsoft with the msclkid so its bidding learns.
Step 1: auto-tagging and msclkid
Auto-tagging adds msclkid to the landing page URL on every click. It's a per-account setting in Microsoft Advertising. Microsoft describes the value as a 32-character GUID, for example msclkid=3f2a9c1e5b7d4e8fa0c6b2d9e1f4a7c3.
Without it you can still see campaign and keyword in your tracker, but you can't tell Microsoft which clicks bought, and its automated bidding keeps optimizing for clicks.
Step 2: the URL parameters worth adding
| Parameter | What it returns |
|---|---|
{CampaignId} | Campaign ID |
{AdGroupId} | Ad group ID |
{AdId} | Ad ID |
{keyword} | The keyword that matched |
{QueryString} | The search the person actually typed |
{MatchType} | Match type used to show the ad |
{BidMatchType} | Match type of the keyword you bid on (it can differ from the one used to show the ad) |
{Device} | m mobile, t tablet, c computer |
{QueryString} is the one Google doesn't offer: the real search term on every click. It's the fastest way to find the queries that click but never buy, so you can add them as negatives. Keep it in your tracker; don't pass free-text search terms into a network sub-ID, where odd characters can get the value dropped.
Microsoft keeps a full list in its help center ("What tracking or URL parameters can I use?"). Copy names from there exactly. A shorter reference is on our Microsoft Ads macros page.
Step 3: suffix, template and their rules
Microsoft uses the same three fields as Google: final URL, final URL suffix and tracking template, plus custom parameters. The rules from Microsoft's documentation:
- Final URL suffix can't start with
?,&or#; writesrc=bing&kw={keyword}, not?src=bing.... It can't contain{lpurl}or its variants. - Tracking template must start with
http://,https://,{lpurl}or{unescapedlpurl}, and is limited to 2,048 characters. Account, campaign and ad group templates must include an{lpurl}tag. - Lower levels win. A keyword or ad template overrides the ad group, campaign and account ones.
- Custom parameters: up to 8 per campaign, ad group, keyword or ad. Microsoft doesn't check that a custom parameter you use exists; an undefined
{_season}is left in the URL as is. - No re-review for tracking edits. Changing a template or suffix doesn't send the ad back to editorial review, so fixing tracking won't pause delivery.
As on Google, put what your landing page must see in the suffix. Why that matters for affiliates is explained in Google Ads tracking templates for affiliates; the reasoning carries over.
Step 4: check what the Google import brought
Importing from Google saves hours, and it's also where most Bing tracking problems start. After each import:
- Open the account, campaign and ad group URL options and read the templates and suffixes that came across.
- Replace Google-only names.
{campaignid}in a Google template should become{CampaignId};{network}values and{placement}don't mean the same thing on Microsoft. - Change any fixed label that says Google, such as
src=google, or both platforms' clicks will land in one row of your reports. - If you schedule repeat imports, check whether they overwrite your Microsoft fixes. If they do, change the import options so URL settings aren't updated.
Step 5: landing page and affiliate click
The visitor arrives on your page with something like
https://bestvpnreviews.example/nordvpn-review?campaign=519933012&adgroup=1284007761&kw=nordvpn+deal&match=p&msclkid=3f2a9c1e5b7d4e8fa0c6b2d9e1f4a7c3
When they click your affiliate button, the tracker records those values with its own click ID, for example c7f3a9e1, and sends the visitor on with that ID in the network's sub-ID. The network's postback later reports the sale with c7f3a9e1, and the sale lands on the click that holds the msclkid.
Step 6: send sales back to Microsoft
Microsoft's offline conversion import takes the msclkid, a conversion name, the conversion time and a value. Create the offline conversion goal first, then upload sales by file or on a schedule. The full walkthrough is in Microsoft Ads offline conversions.
When values come through empty
| What you see | Likely cause |
|---|---|
kw={keyword} literally on the page | A typo or wrong case in the parameter name, or a Google-only parameter left over from an import |
No msclkid at all | Auto-tagging is off, or a redirect on your site drops the query string |
| Values on some ads only | An ad or keyword level suffix or template replacing the account one |
| Values on the page, missing on the affiliate click | The landing page doesn't pass them to the outbound link |
Read Bing results on their own
- Don't copy Google bids. Prices and audiences differ. Let each platform's earnings per click set its own bids.
- Watch search partners. Microsoft also shows ads on partner sites beyond Bing itself. If partner traffic loses money, limit it in the campaign settings.
- Compare by device. The device mix on Bing can differ from your Google campaigns, which can change which offer or page wins.
How to do this in Hoplytic
Pick Microsoft (Bing) Ads in the link maker and the campaign, ad group and keyword values are added for you; msclkid is stored on its own. On your landing page, the site script remembers msclkid and the campaign, adgroup and kw values and adds them to the Hoplytic link the visitor clicks. Under Send back, add Microsoft Ads to get a feed file of sales from Bing clicks to import under offline conversions, as the help article explains.
Questions people ask
Can you use affiliate links on Bing Ads?
Microsoft Advertising accepts ads for affiliate offers within its policies, but the display URL and the landing page must belong together, and many merchants forbid bidding on their brand. Most affiliates send Bing traffic to their own review or comparison page. Check Microsoft's policies and the offer's terms before you launch.
What is msclkid?
Microsoft's click ID, added to the landing page URL when auto-tagging is on. Microsoft describes it as a 32-character GUID. Store it with each click so the sale can be uploaded later as an offline conversion.
Does importing from Google copy my tracking?
The import can bring over tracking templates, suffixes and custom parameters, but Google's ValueTrack names and Microsoft's parameters don't always match. Test a click after every import.
More in Traffic sources and macros
Also: tracking glossary · ad platform macros · Markdown copy