Knowledge Base      


What are the ad network tokens I can use in my URLs?


Using ad network tokens allows you to gather useful information so that you can optimize your marketing efforts.

The tokens that you add will be replaced by real values when your ad is actually clicked. For example the Google {keyword} token will be replaced by the actual keyword inside of Google Ads that caused your ad to show up.

 
Caution: Please note that these ad network tokens are NOT valid Sub-ID or UTM values until someone clicks your ad and your ad network replaces the token with a real value.

This means you can’t use them to test your own links. If you need to test your own links you’ll need to provide valid Sub-ID or UTM values such as “test” etc.




If you don’t know how to use these tokens, check out the article that teaches you how to track your Google ads:

How do I track Google Ads?

 
Here are the Google Ads tokens you can use as “placeholders” for UTM values when using Campaigns:

 
{keyword}
the keyword phrase that triggered the ad
{adgroupid}
the ID of the ad group that served the ad
{campaignid}
the ID of the campaign that served the ad
{creative}
the ID of your ad creative
{device}
returns “m” for mobile, “t” for tablet or “c” for computer
{matchtype}
will return “e” for exact, “p” for phrase, or “b” for broad
{network}
returns “g” for Google search, “s” for search partner or “d” for display
{placement}
the site your ad was clicked on
{target}
the category of the placement
Others See “Final URL, tracking template, or custom parameter” section


 
Note: Google does not support the {keyword} token for YouTube ads. To understand why the {keyword} token is meaningless for YouTube ads, read this article:
 
Can ClickMagick track keywords on YouTube ads?



If you don’t know how to use these tokens, check out the article that teaches you how to track your Microsoft ads:

How do I track Microsoft Ads?

 
Here are the Microsoft Ads tokens you can use as “placeholders” for UTM values when using Campaigns, or for Sub-IDs when using Tracking Links:

 
{keyword}
the keyword phrase that triggered the ad
{QueryString}
the exact search phrase entered by the user
{AdGroupID}
the ID of the ad group that triggered the ad
{AdGroup}
the name of the ad group that triggered the ad
{AdID}
the numeric ID of your ad creative
{CampaignID}
the ID of the campaign that triggered the ad
{Campaign}
the name of the campaign that triggered the ad
{Device}
returns “m” for mobile, “t” for tablet or “c” for computer
{MatchType}
will return “e” for exact, “p” for phrase, or “b” for broad
{Network}
returns “o” for Bing and AOL or “s” for syndicated ads
Others Click here for Microsoft’s full set of custom parameters


 
Caution: These tokens will NOT work properly with Microsoft if you have ‘Auto-tagging’ enabled on your account. You must turn that option off if you want Microsoft to send the token information back to ClickMagick. You can learn how to turn off Microsoft’s auto-tagging feature in this article:
 
How do I troubleshoot my Microsoft ad?



If you don’t know how to use these tokens, check out the article that teaches you how to track your Facebook ads:

How do I track Facebook Ads?

 
Here are the Facebook Ads tokens you can use as “placeholders” for UTM values when using Campaigns:

 
{{ad.id}}
the ID of the ad that generated the click
{{adset.id}}
the ID of the ad set that generated the click
{{campaign.id}}
the ID of the campaign that generated the click
{{ad.name}}
the name of the ad that generated the click
{{adset.name}}
the name of the ad set that generated the click
{{campaign.name}}
the name of the campaign that generated the click
{{site_source_name}}
returns “fb” for Facebook, “ig” for Instagram, “msg” for Messenger, or “an” for the Audience Network.
{{placement}}
shows where the ad appeared. Includes: the desktop feed, mobile feed, right column of Facebook Messenger inbox, Messenger inbox, within the Instagram Feed or Instagram Stories.


If you want to learn more about Facebook’s URL parameters, click here to read their documentation.



If you don’t know how to use these tokens, check out the article that teaches you how to track your Snapchat ads:

How do I track Snapchat Ads?

 
Here are the Snapchat Ads tokens you can use as “placeholders” for UTM values when using Campaigns, or for Sub-IDs when using Tracking Links:
 
 
{{ad.id}}
the ID of the ad that generated the click
{{adSet.id}}
the ID of the ad set that generated the click
{{campaign.id}}
the ID of the campaign that generated the click
{{creative.name}}
the name of the ad that generated the click
{{adSet.name}}
the name of the ad set that generated the click
{{campaign.name}}
the name of the campaign that generated the click
{{creative.headline}}
the headline of the ad that generated the click


If you want to learn more about Snapchat’s URL parameters, click here to read their documentation.


Article 502 Last updated: 10/10/2021 12:22:12 PM
https://www.clickmagick.com/kb/?article=502