Microsoft Ads URL parameters: the full list for tracking

November 19, 2026 · Hoplytic team · 2 min read

Microsoft Ads fills in URL parameters on every click, so your tracker knows which campaign, ad group and ad it came from. Here is the full list we use, where it comes from, and how to set it up.

Short answer: Microsoft Ads adds its own click ID (msclkid) to every ad click by itself. For campaign and ad details, add URL parameters to the URL: {CampaignId} (campaign ID), {AdGroupId} (ad group ID), {keyword} (keyword).

Microsoft Ads URL parameters

Parameter on your linkMicrosoft Ads macroFilled with
campaign{CampaignId}Campaign ID
adgroup{AdGroupId}Ad group ID
kw{keyword}Keyword

The parameter names on the left are your choice; the macros on the right must be copied exactly, brackets included.

The automatic click ID

Microsoft Ads appends msclkid to the landing URL on its own. You don't add a macro for it: your tracker reads it from the URL and stores it with the click. Keep it intact: link shorteners or redirects that drop query strings will lose it.

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

Microsoft Ads replaces each macro when someone clicks. Your tracker stores the values, creates its own click ID, and passes it to the affiliate network's sub-ID so the sale can be matched back to this exact ad.

Sending conversions back to Microsoft Ads

Microsoft Ads learns which clicks bought through offline conversion imports with the msclkid.

Where this list comes from

Checked against Microsoft Ads' own documentation () in November 2026. Platforms rename macros now and then: if a value arrives empty or literal, check Microsoft Ads' current list.

On Hoplytic

Pick Microsoft (Bing) Ads in the link maker and these URL parameters are added for you, and msclkid is stored automatically. Reports can then group by any of them, for example campaign → ad → country, with cost, profit and ROAS. See every ad platform's macros or the guide to sub-ID tracking.

Questions people ask

What is the Microsoft Ads click ID?

Microsoft Ads adds msclkid to the landing URL by itself. A tracker stores it with the click so the sale can be reported back to Microsoft Ads later.

Why does my tracker show {CampaignId} literally instead of a value?

The ad platform didn't fill it in. Usually the macro is misspelled, uses the wrong brackets, or the ad was created before the parameter was added. Copy the macro exactly as Microsoft Ads writes it and check a live click.

More in Traffic sources and macros

Also: tracking glossary · ad platform macros · Markdown copy