Using Tags
Improving your advertising matches
We use two methods to identify content on your web pages so we can ensure you get the most appropriate advertising:
Method 1: URL detection matches
In this example - https://www.humourgames.com/ the keywords we would detect are “humour” and “games”. If your URL contains any category used by our advertisers, we will send you advertising based on this match.
Method 2: Tags (Keywords) in your ad zones
In many cases your URL will not match a category precisely. In these cases, you can insert 'tags' into the code in your ad zones to manually match them to the type of advertising you want.
For example, you could insert the tags 'general' and 'humour' into your ad zone code, to ensure that you receive this type of advertising.
Depending on which format you are adding tags to, there are a few different ways of doing it, from ad_tags
, &ad_tags
, tags
, &tags
, to data-tags
and data-ad_tags
. See the examples below to see exactly how it is done for each format.
Note: When using multiple tags, they are separated with commas.
Notes about tags:
- Using the tag (keyword) method takes priority over the URL keyword method. Therefore if the ad zone contains the tag “humour” but in the URL the word “games”, the priority for the advertising to target your site(s) will be products for the "humour" keyword .
- Currently, nothing else other than the URL/tag methods are taken into consideration for determining the category of advertising you will receive.
Examples of tags in use
In the examples below, we have added the tags 'humour' and 'general' to the ad zone codes for a banner ad.
Web
Banner
Asynchronous Script
Added data-keywords
='general, humour'
<script async type="application/javascript" src="https://a.examplesite.com/ads.js"></script>
<ins class="adsbynetwork" data-zoneid="3553853" data-keywords="general,humour"></ins>
<script>(AdProvider = window.AdProvider || []).push({"serve": {}});</script>
iFrame
Added &tags
='general, humour'
<iframe src="//a.examplesite.com/iframe.php?idzone=1234567&size=300x250&tags=general,humour" 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.
Inline & remote script (Recommended)
Added tags
='general, humour'
<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": "general,humour”
};
Remote Script only
Added ad_tags
='general, humour'
<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='general,humour';
</script>
<script type="application/javascript" src="https://a.examplesite.com/popunder1000.js"></script>
Instant Message
Added data-keywords
='general, humour'
<script async type="application/javascript" src="https://ads.examplesite.com/ad-provider.js"></script>
<ins class="adsbynetwork" data-zoneid="1234567" data-keywords="general,humour"></ins>
<script>(AdProvider = window.AdProvider || []).push({"serve": {}});</script>
Sticky Banner
Added data-keywords
='general, humour'
<script async type="application/javascript" src="https://ads.examplesite.com/ad-provider.js"></script>
<ins class="adsbynetwork" data-zoneid="1234567" data-keywords="general,humour"></ins>
<script>(AdProvider = window.AdProvider || []).push({"serve": {}});</script>
Desktop Fullpage Interstitial
Added data-keywords
='general, humour'
<script async type="application/javascript" src="https://ads.examplesite.com/ad-provider.js"></script>
<ins class="adsbynetwork" data-zoneid="1234567" data-keywords="general,humour"></ins>
<script>(AdProvider = window.AdProvider || []).push({"serve": {}});</script>
Video
In-Video Banner (JavaScript)
This format does not currently support the use of tags.
In-Stream Video (VAST)
Added &tags
='general, humour'
https://syndication.examplesite.com/splash.php?idzone=1234567&tags=general,humour
In-video Banner (VAST)
Added &tags
='general, humour'
https://syndication.examplesite.com/splash.php?idzone=1234567&tags=general,humour
Video Slider
Asynchronous Script
Added data-keywords
='general,humour'
<script async type="application/javascript" src="https://ads.examplesite.com/ad-provider.js"></script>
<ins class="adsbynetwork" data-zoneid="123456" data-keywords="general,humour"></ins>
<script>(AdProvider = window.AdProvider || []).push({"serve": {}});</script>
Outstream Video
Asynchronous Script
Added data-keywords
='general, humour'
<script async type="application/javascript" src="https://a.examplesite.com/video-outstream.js"></script>
<ins class="adsbynetwork" data-zoneid="1234567" data-keywords="general,humour"></ins>
<script>(AdProvider = window.AdProvider || []).push({"serve": {}});</script>
iFrame
Added data-keywords
='general, humour'
<script type="application/javascript"
data-idzone="1234567"
data-keywords="general,humour"
src="https://a.examplesite.com/video-outstream.js" async
></script>
Mobile
Mobile Banner
Asynchronous Script
Added data-keywords
='general, humour'
<script async type="application/javascript" src="https://a.examplesite.com/ads.js"></script>
<ins class="adsbynetwork" data-zoneid="4104108" data-keywords="general,humour"></ins>
<script>(AdProvider = window.AdProvider || []).push({"serve": {}});</script>
iFrame
Added &tags
='general, humour'
<iframe src="//a.examplesite.com/iframe.php?idzone=1234567&size=300x250&tags=general,humour" width="300" height="250" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
Mobile 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.
Inline + Remote Script
Added tags
='general, humour'
<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": "general,humour"
};
Remote Script Only
Added ad_tags
='general, humour'
<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: "general,humour";
</script>
<script type="application/javascript" src="https://a.examplesite.com/popunder1000.js"></script>
Mobile Instant Message
Added data-keywords
='general, humour'
<script async type="application/javascript" src="https://ads.examplesite.com/ad-provider.js"></script>
<ins class="adsbynetwork" data-zoneid="1234567" data-keywords="general,humour"></ins>
<script>(AdProvider = window.AdProvider || []).push({"serve": {}});</script>
Mobile Fullpage Interstitial
Added data-keywords
='general, humour'
<script async type="application/javascript" src="https://ads.examplesite.com/ad-provider.js"></script>
<ins class="adsbynetwork" data-zoneid="1234567" data-keywords="general,humour"></ins>
<script>(AdProvider = window.AdProvider || []).push({"serve": {}});</script>
Native
Recommendation Widget
Added data-keywords
='general, humour'
<script async type="application/javascript" src="https://ads.examplesite.com/ad-provider.js"></script>
<ins class="adsbynetwork" data-zoneid="1234567" data-keywords="general,humour"></ins>
<script>(AdProvider = window.AdProvider || []).push({"serve": {}});</script>
Push Notification
Push Notifications
This format does not currently support the use of tags.
Multi-Format
Multi-Format
Added data-keywords
='general, humour'
<script async type="application/javascript" src="https://a.examplesite.com/ad-provider.js"></script>
<ins class="adsbynetwork" data-zoneid="4278920" data-keywords="general,humour"></ins>
<script>
(AdProvider = window.AdProvider || []).push({"serve": {}});
</script>