Skip to main content

Using Tags

Sometimes your URL will not match a category precisely. In these cases, you can insert 'tags' into the code of your ad zones to manually match them to the type of advertising you want. For example, you could insert the tag 'cartoon' into your ad zone code to increase the chances of showing products related to this term.

There are different ways of adding tags depending on the ad format you use. Please check the examples below to find out how it is done for each format.


Note: When adding multiple tags, separate them with commas and no spaces.


Code examples

Asynchronous ad zones (Banner, Sticky Banner, Instant Message, Outstream, etc.)

Added data-keywords="cartoon"


<script async type="application/javascript" src="https://a.examplesite.com/ads.js"></script>
<ins class="adsbynetwork" data-zoneid="1234567" data-keywords="cartoon"></ins>
<script>(AdProvider = window.AdProvider || []).push({"serve": {}});</script>

iFrame Banners

Added &tags='cartoon'


<iframe src="//a.examplesite.com/iframe.php?idzone=1234567&size=300x250&tags=cartoon" width="300" height="250" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>

Popunder

When you create your Popunder Zone HTML tag, you can choose from two options:

  • Inline + Remote Script (Recommended): This is the recommended format, as it enables popunders to continue working when ad blockers are installed.
  • Remote Script only: If the remote script doesn't load (possibly due to an ad blocker) we will fall back to using the Inline + Remote Script.

Added "tags"="cartoon"


<script type="application/javascript">
(function() {

//version 1.0.0

var adConfig = {
"ads_host": "a.examplesite.com",
"syndication_host": "syndication.examplesite.com",
"idzone": 1234567,
"popup_fallback": false,
"popup_force": false,
"chrome_enabled": true,
"new_tab": false,
"frequency_period": 720,
"frequency_count": 1,
"trigger_method": 3,
"trigger_class": "",
"only_inline": false,
"tags": "cartoon"
};

Remote Script only

Added ad_tags='cartoon'


<script type="application/javascript">
var ad_idzone = "1234567",
ad_popup_fallback = false,
ad_popup_force = false,
ad_chrome_enabled = true,
ad_new_tab = false,
ad_frequency_period = 720,
ad_frequency_count = 1,
ad_trigger_method = 3,
ad_tags='cartoon';
</script>
<script type="application/javascript" src="https://a.examplesite.com/popunder1000.js"></script>

Video

In-Stream Video & In-Video Banner (VAST)

Added &tags=cartoon


https://syndication.examplesite.com/splash.php?idzone=1234567&tags=cartoon

Video Slider

Added "tags"="cartoon"


<script type="text/javascript" src="https://a.examplesite.com/video-slider.js"></script>
<script type="text/javascript">
var adConfig = {
"idzone": 3723071,
"frequency_period": 15,
"close_after": 0,
"sound_enabled": 0,
"on_complete": "repeat",
"branding_enabled": 1,
"sub": "10004734",
"tags": "cartoon"
};
ExoVideoSlider.init(adConfig);
</script>

Video tutorial

You can also watch our video tutorial regarding keywords here