Using Sub IDs
In addition to adding sites and ad zones, you can use the Sub_ID to segment the traffic, such as by traffic source, for example.
This information will then be displayed in the Statistics tab, in the Sub IDs sub-tab.
Putting Sub IDs into your ad zone code
Once you have clicked on Create in the New Zone screen, you will be presented with the code for your new ad zone.
To use Sub IDs, you add the parameters sub
or ad_sub
to the ad zone code, and indicate the number of the Sub ID you wish to use.
Note: Sub IDs should be a number between 1 and Int32: Do not use zeroes at the beginning of Sub IDs.
Method 1: sub
For iframes or simple links (email zone, direct link) simply add this code to the iframe tags (where XXXXXX is any six-digit integer):
&sub=XXXXXX
Method 2: ad_sub
If JavaScript tags are used, simply add this JavaScript variable (where XXXXXX is any six-digit integer):
ad_sub = "XXXXXX";
Method 3: data-sub
When using the Asynchronous Script, simply add this property to the ins element (where XXXXXX is any six-digit integer):
data-sub = "XXXXXX"
Use in different ad zone formats
Parameter | Used in |
---|---|
sub | Desktop and Mobile Popunder (inline & remote script), In-video Banner (Javascript & VAST), In-Stream Video, Video Slider. |
ad_sub | Desktop and Mobile Popunder (Remote script), Mobile Interstitial Banner. |
data-ad_sub | Native Ads. |
data-sub | Banner, Sticky Banner, Outstream Video, Instant Message, Mobile Instant Message, Desktop & Mobile Fullpage Interstitial. |
Examples
Web
Banner
Asynchronous Script
Added data-sub
= 123456789
<script async type="application/javascript" src="https://a.examplesite.com/ads.js"></script>
<ins class="adsbynetwork" data-zoneid="3553853" data-sub="123456789"></ins>
<script>(AdProvider = window.AdProvider || []).push({"serve": {}});</script>
iFrame
Added &sub
=123456
<iframe src="//a.examplesite.com/iframe.php?idzone=1234567&size=300x250&sub=123456" width="300" height="250" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
Popunder
Inline & remote script
Added sub
: 123456
<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,
"sub": "123456"
};
Remote Script only
Added ad_sub
= 123456
<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_sub = "123456";
</script>
<script type="application/javascript" src="https://a.examplesite.com/popunder1000.js"></script>
Instant Message
Added data-sub
= 123456
<script async type="application/javascript" src="https://ads.examplesite.com/ad-provider.js"></script>
<ins class="adsbynetwork" data-zoneid="1234567" data-sub="123456"></ins>
<script>(AdProvider = window.AdProvider || []).push({"serve": {}});</script>
Sticky Banner
Added data-sub
= 123456
<script async type="application/javascript" src="https://ads.examplesite.com/ad-provider.js"></script>
<ins class="adsbynetwork" data-zoneid="1234567" data-sub="123456"></ins>
<script>(AdProvider = window.AdProvider || []).push({"serve": {}});</script>
Desktop Fullpage Interstitial
Added data-sub
= 123456
<script async type="application/javascript" src="https://ads.examplesite.com/ad-provider.js"></script>
<ins class="adsbynetwork" data-zoneid="1234567" data-sub="123456"></ins>
<script>(AdProvider = window.AdProvider || []).push({"serve": {}});</script>
Video
In-video Banner (VAST)
Added &sub
=123456
https://syndication.examplesite.com/splash.php?idzone=1234567&sub=123456
In-Video Banner (JavaScript)
Added sub
: 123456
<script type="application/javascript">
var exoOpts = {
// postroll: {},
// pause: { padding: 1 },
// offsetY: +40,
idzone_300x250 : 1234567,
preroll: {},
show_thumb: 1,
sub: 123456
};
</script>
<script type="application/javascript" src="https://a.examplesite.com/invideo.js"></script>
In-Stream Video (VAST)
Added &sub
=123456
https://syndication.examplesite.com/splash.php?idzone=1234567&sub=123456
Video Slider
Asynchronous Script
Added data-sub
: 123456
<script async type="application/javascript" src="https://ads.examplesite.com/ad-provider.js"></script>
<ins class="adsbynetwork" data-zoneid="1234567" data-sub="123456"></ins>
<script>(AdProvider = window.AdProvider || []).push({"serve": {}});</script>
Outstream Video
Asynchronous Script
Added data-sub
= 123456
<script async type="application/javascript" src="https://a.examplesite.com/video-outstream.js"></script>
<ins class="adsbynetwork" data-zoneid="1234567" data-sub="123456"></ins>
<script>(AdProvider = window.AdProvider || []).push({"serve": {}});</script>
iFrame
Added data-sub
=123456
<script type="application/javascript"
data-idzone="1234567"
data-sub="123456"
src="https://a.examplesite.com/video-outstream.js" async
></script>
Mobile
Mobile Banner
Asynchronous Script
Added data-sub
= 123456780
<script async type="application/javascript" src="https://a.examplesite.com/ads.js"></script>
<ins class="adsbynetwork" data-zoneid="3553853" data-sub="123456780"></ins>
<script>(AdProvider = window.AdProvider || []).push({"serve": {}});</script>
iFrame
Added &sub
=123456
<iframe src="//a.examplesite.com/iframe.php?idzone=1234567&size=300x250&sub=123456" width="300" height="250" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
Mobile Popunder
Inline + Remote Script
Added sub
: 123456
<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,
"sub": "123456"
};
Remote Script Only
Added ad_sub
= 123456
<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_sub = 123456;
</script>
<script type="application/javascript" src="https://a.examplesite.com/popunder1000.js"></script>
Mobile Instant Message
Added data-sub
= 123456
<script async type="application/javascript" src="https://ads.examplesite.com/ad-provider.js"></script>
<ins class="adsbynetwork" data-zoneid="1234567" data-sub="123456"></ins>
<script>(AdProvider = window.AdProvider || []).push({"serve": {}});</script>
Mobile Fullpage Interstitial
Added data-sub
= 123456
<script async type="application/javascript" src="https://ads.examplesite.com/ad-provider.js"></script>
<ins class="adsbynetwork" data-zoneid="1234567" data-sub="123456"></ins>
<script>(AdProvider = window.AdProvider || []).push({"serve": {}});</script>
Native
Recommendation Widget
Added data-ad_sub
= 123456
<script type="application/javascript" data-idzone="1234567" data-ad_sub="123456" src="https://a.examplesite.com/nativeads.js" ></script>
Push Notification
Push Notifications
This format does not currently support the use of subids.
Multi-Format
Multi-Format
Added data-sub
="123456"
<script async type="application/javascript" src="https://a.examplesite.com/ad-provider.js"></script>
<ins class="adsbynetwork" data-zoneid="4278920" data-sub="123456"></ins>
<script>
(AdProvider = window.AdProvider || []).push({"serve": {}});
</script>