Skip to main content

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";

Use in different ad zone formats

ParameterUsed in
subDesktop and Mobile Popunder (inline & remote script), instant message, In-video Banner (Javascript & VAST), In-Stream Video, Video Slider, Mobile Instant Message.
ad_subWeb and Mobile Banner, Desktop and Mobile Popunder (Remote script), Sticky Banner, Mobile Interstitial Banner, Mobile Fullpage Interstitial (with data- prefix), All Native Ad Formats (with data- prefix).
data-ad_subDesktop & Mobile Fullpage Interstitial, Native Ads.
data-subOutstream Video.

Examples

Web

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 &sub=123456


<script type="application/javascript" src="https://syndication.examplesite.com/splash.php?idzone=1234567&sub=123456"></script>

Sticky Banner

Added ad_sub = 123456


<script type="application/javascript">
var ad_idzone = "1234567",
ad_width = "300",
ad_height = "250",
v_pos = "top",
h_pos = "left",
ad_sub = "123456";
</script>
<script type="application/javascript" src="https://a.examplesite.com/js.php?t=17&idzone=1234567"></script>


Desktop Fullpage Interstitial

Added data-ad_sub=123456


<script type="application/javascript" data-idzone="4197145" data-ad_frequency_count="1" data-ad_frequency_period="720" data-type="desktop" data-browser_settings="1" data-ad_trigger_method="3" data-ad_sub="123456" src="https://a.examplesite.com/fp-interstitial.js"></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

Added sub: 123456


<script type="application/javascript" src="https://a.examplesite.com/video-slider.js"></script>
<script type="application/javascript">
var adConfig = {
"idzone": 1234567,
"frequency_period": 1440,
"close_after": 0,
"sound_enabled": 0,
"on_complete": "repeat",
"branding_enabled": 1,
"sub": 123456
};
ExoVideoSlider.init(adConfig);
</script>

Outstream Video

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 &sub=123456


<script type="application/javascript" src="https://syndication.examplesite.com/splash.php?idzone=1234567&capping=0&sub=123456"></script>


Mobile Fullpage Interstitial

Added data-ad_sub=123456


<script type="application/javascript" data-idzone="1234567" data-ad_frequency_period="720" data-ad_first_trigger_clicks="0" data-ad_next_trigger_clicks="0" data-browser_settings="1" data-ad_trigger_method="3" data-ad_sub="123456" src="https://a.examplesite.com/fp-interstitial.js"></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>

Exit 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>

Interstitial 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></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>