For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Using Sub IDs

As a Publisher, once you have added your sites and ad zones, you can use Sub IDs to segment your traffic, for example by traffic source.

This information then appears in the Statistics tab, in the Sub IDs sub-tab.

Putting Sub IDs into Your Ad Zone Code

After you click Create in the New Zone screen, the Admin Panel shows the code for your new ad zone.

To use Sub IDs, add the sub or ad_sub parameter to the ad zone code and specify the number of the Sub ID you want to use.

Note: A Sub ID 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 you use JavaScript tags, 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 script), In-Video Banner (VAST), In-Stream Video, Email Clicks, Direct Link.

ad_sub

Desktop and Mobile Popunder (Remote script), Mobile Interstitial Banner.

data-sub

Native Ads, Banner, Sticky Banner, Outstream Video, Instant Message, Mobile Instant Message, Desktop & Mobile Fullpage Interstitial, Video Slider, In-Page Push Notification, Push Notification.

Examples

Web

Asynchronous Script

Added data-sub = 123456789

iFrame

Added &sub=123456

Popunder

Inline & Remote Script

Added sub: 123456

Remote Script Only

Added ad_sub = 123456

Instant Message

Added data-sub = 123456

Sticky Banner

Added data-sub = 123456

Desktop Fullpage Interstitial

Added data-sub = 123456

Email Banner

Simple Image Tag

Added sub = 123456

Video

In-Video Banner (VAST)

Added &sub=123456

In-Stream Video (VAST)

Added &sub=123456

Video Slider

Asynchronous Script

Added data-sub: 123456

Outstream Video

Added data-sub = 123456

Mobile

Mobile Banner

Asynchronous Script

Added data-sub = 123456780

iFrame

Added &sub=123456

Mobile Popunder

Inline + Remote Script

Added sub: 123456

Remote Script Only

Added ad_sub = 123456

Mobile Instant Message

Added data-sub = 123456

Mobile Fullpage Interstitial

Added data-sub = 123456

Native

Recommendation Widget

Added data-sub = 123456

Push Notification

Added data-sub = 123456

Multi-Format

Added data-sub="123456"

Last updated

Was this helpful?