Help Center Manage Your Account Ad Tag
What are custom ad serving settings and variables?
These are additional settings available to the serving code for advanced functionality.Custom Parameters
You can enter one of the following values, without the quotes, into the "Custom Parameters" field when generating the serving code. For example:&dim=0x0x4|120x300x2|120x600
serves ads of multiple dimensions together, including text ads and banners&keywords=garden+vegetables
applies keyword targeting&wmode=transparent
changes WMODE setting&custom=Custom+Ad+Data
to pass custom/dynamic data to your ad&cb=[cachebuster]&r=[ENCODED_CLICK_REDIRECT_MACRO]
for a click macro
Pass-along Parameters
You can pass a variable into our ad tag and we will pass that variable to the ad. This is useful when the ad displays dynamic content based on certain input. For example, an ad displays today's interest rate for a mortgage loan that need the actual interest rate supplied from outside. Learn moreSpecial Variables
There are special variables and macros that will be replaced with the actual value when an ad is served.[cachebuster]
,[cache_buster]
, or[timestamp]
will be replaced with the current timestamp and it can be used as a cache buster[random_number]
will be replaced with a random number[referrer_url]
will be replaced with the ad request's referring URL in encoded format (if provided by the browser)[referrer_domain]
will be replaced with the ad request's referring domain in encoded format (if provided by the browser)[md5_referrer_domain]
will be replaced with the ad request's referring domain as an MD5 hash (if provided by the browser)[device_ua]
will be replaced with the visitor's User-Agent string in encoded format (if provided by the browser)[device_ip]
will be replaced with the visitor's anonymized IP address[device_ip_lat]
will be replaced with the anonymized IP's latitude[device_ip_long]
will be replaced with the anonymized IP's longitude[device_ip_city]
will be replaced with the anonymized IP's city[device_ip_region]
will be replaced with the anonymized IP's region/state/province[device_ip_country]
will be replaced with the anonymized IP's country[do_not_track]
will be replaced with the visitor's Do-Not-Track browser's setting (0 for disabled, 1 for enabled)[ASZoneID]
will be replaced with the zone ID[ASAdID]
will be replaced with the ad ID[ASCamID]
will be replaced with the campaign ID(s), if available[ASAdvID]
will be replaced with the advertiser ID, if available
Other Articles in Ad Tag
This section describes the ad tag (serving code) with basic and advanced settings. It includes common ad serving setup instructions and answers frequently asked questions when integrating the ad tag into your site, blog or app.
- Accelerated Mobile Pages Project - AMP Ad Tag
- Can I have ads refresh automatically without a page reload?
- How can I avoid document.write warning in Chrome?
- How can I avoid duplicate ads on the same page?
- How can I combine multiple ads in the same placement?
- How can I defer ads until after the page has finished loading?
- How can I display an ad only when it is visible on screen?
- How can I measure ad viewability?
- How can I mix ad dimensions or mix banners with text-link ads?
- How can I put ads into my blog/website?
- How can I serve multiple ad dimensions in the same place?
- How can I serve multiple zones with a single server request?
- How can I support click tracking for external ad servers?
- How can I turn off ad serving error messages?
- How do I add current timestamp into the serving code?
- How do I display mobile ads using Android WebView?
- How do I display mobile ads using Apple iOS WKWebView?
- How do I integrate AdSpeed mobile ad serving API?
- How do I make ads responsive on mobile devices?
- How do I pass custom data and variables into the ad?
- How do I set up advertising on WordPress?
- How do I setup a companion ad in video ad serving?
- How do I setup a passback ad tag?
- How do I switch to secure SSL/https ad serving?
- Should I use protocol-relative URLs in ad tags?
- What are different formats of serving code?
- What are different types of ad tag?
- What are the effects of ad blocking software?
- What is the pop-up and pop-under ad tag?
- What is the serving code or ad tag?
- What is WMODE for SWF ads? How can I change it?
- Where is the publisher-side file for iframe busting?
- Why doesn't the provided HTML serving code work?
Cannot find an answer for your question? Ask our Customer Care team
Related
- How do I add current timestamp into the serving code?
"When creating and setting up a new ad, you can put an always-changing value into the ad code for cache ..."
- How do I pass custom data and variables into the ad?
"You can pass a custom value into the ad tag and our ad server will pass that same value along ..."
- Customize the email report template
"Publishers can customize the text of your scheduled email reports. The message should only contain plain text and no HTML ..."
- How can I support click tracking for external ad servers?
"This feature is used when you send AdSpeed's ad tag to another ad server and the other ad server also ..."
- Customize the welcome message to new site partners
"Publishers can change the text of the welcome message when inviting a new website partner. The message should only contain ..."