For the complete documentation index, see llms.txt. This page is also available as Markdown.

Using Sub IDs

In addition to adding sites and ad zones, you can use Sub IDs 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, add the parameter corresponding to the format you selected and the number you wish to use as Sub ID:

Parameter
Used in

sub

Banners (iframe), Popunder (inline script), Direct Links, Email Clicks, In-Video Banner (VAST), In-Stream Video

ad_sub

Popunder (remote script)

data-sub

Banners (async), Sticky Banners, Outstream Video, Video Slider, In-Page Push, Instant Message, Native, Fullpage Interstitials

Use in different ad zone formats

Here is an extensive list of examples showing how to add the parameters needed to register Sub IDs.

Asynchronous ad zones: Banners, Instant Messages, Sticky Banners and others

Added data-sub="123456789"

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

iFrame

Added &sub=123456

Popunder (inline)

Added "sub":"123456"

Popunder (remote)

Added ad_sub = "123456"

VAST ads (In-Stream and In-Video)

Added &sub=123456

Push Notifications

This format does not currently support the use of subids.

Last updated

Was this helpful?