Skip to main content

使用子 ID

除了添加网站和广告区域外,您还可以使用子 ID来划分流量,例如按流量来源划分。

This information will then be displayed in the Statistics tab, in the Sub IDs sub-tab.

将子 ID 放入广告区代码中

在 "新区域"页面点击 "创建"后,您将看到新广告区域的代码。

要使用子 ID,请添加与所选格式相对应的参数和希望用作子 ID 的数字

参数用于
字幕横幅(iframe)、Popunder(内嵌脚本)、直接链接、电子邮件点击、视频内横幅(VAST)、内流视频、视频滑块
ad_subPopunder(远程脚本)
数据子横幅广告(异步)、粘贴式横幅广告、外流视频、页面内推送、即时信息、原生广告、全页面插播广告

Note: Sub IDs should be a number between 1 and Int32: Do not use zeroes at the beginning of Sub IDs.

在不同的广告区域格式中使用

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

异步广告区:横幅、即时消息、粘贴式横幅等

已添加 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

添加了"&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>

弹出窗口(内嵌)

已添加 "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"
};

Popunder(远程)

已添加 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>

VAST 广告(流内和视频内) )

添加了"&sub=123456

https://syndication.examplesite.com/splash.php?idzone=1234567&sub=123456

视频滑块

添加了"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>

推送通知

该格式目前不支持使用子标识。