视频广告JS Vast Tag示例

时间:2015-10-19 11:57:05

标签: ads vast video-ads

您能否请一些文档从我可以看到视频广告Java脚本标签的示例。我已经使用大量XML实现了VAST / VPAID。现在我需要Java Script Vast Tag。我在这里阅读了一份文档 enter link description here

Inneractive JS Ad Tag Start

 * -=====================================================================-
 *   Inneractive JS Ad Tag
 * -=====================================================================-
 *   Update Date: February, 10th, 2014
 *   Further documentation found here: 
 *   https://inneractive.jira.com/wiki/display/DevWiki/JavaScript+Ad+Tag
 * -=====================================================================-


<!-- Final Ad is attached to this DIV. Can be placed anywhere on the page. -->
<div id='iaAdPlaceholder'></div>
<script>
    try {
        (function() {   
            if (typeof ia === 'undefined') {
                ia = {};
            }

            // CHANGE AD SETTINGS BELOW.
            // More details about the different parameters can be found here:
            // https://inneractive.jira.com/wiki/display/DevWiki/JavaScript+Ad+Tag#JavaScriptAdTag-RequestParameters
            ia.adSettings = {
                APP_ID:'MyCompany_MyApp',
                IS_MOBILE_WEB: false,
                IS_ORMMA_SUPPORT: false,
                IS_MRAID_SUPPORT: false,
                IS_VIDEO_SUPPORT : false,
                IS_INTERSTITIAL_AD: false,
                IS_FLOATING_BANNER: false, // Glues banner ad position to bottom of the page, even when the page is scrolled. Supported only for banner ads, on iOS (>= 5.0) and Android (>= 2.2). Does not apply when IS_INTERSTITIAL_AD: true.
                IMEI_MD5: '',
                IMEI_SHA1: '',
                IMSI_MD5: '',
                IMSI_SHA1: '',
                ANDROID_ID_MD5: '',
                ANDROID_ID_SHA1: '',
                IDFA:'',
                IDFV:'',
                PACKAGE_NAME:'', // In Android - The application name as a reverse domain notation string (e.g., 'com.inneractive.adTag'). In iOS - the App Store Id from the iTunes URL (e.g., "123456789" for the following iTunes link: 'https://itunes.apple.com/iw/app/myApp/id123456789?mt=8').
                CATEGORY:'', // e.g., Music
                AGE:'',
                GENDER:'',
                KEYWORDS: '', // e.g., Rock,Pop,Jazz,Blues
                LOCATION:'',
                GPS_COORDINATES:'',
                DEVICE_WIDTH:'', // resolution width of the device
                DEVICE_HEIGHT:'', // resolution height of the device
                MOBILE_NETWORK_CODE:'',
                MOBILE_COUNTRY_CODE:'',
                NETWORK:'', // values are 3G or WIFI
                REQUIRED_WIDTH:'',
                REQUIRED_HEIGHT:'',
                FAILOVER: ''
            };
            // CHANGE AD SETTINGS  ABOVE.
        })();
    }
    catch (e) {
    }
</script>
<script src='http://cdn2.inner-active.mobi/wv-js/iaAdTagInternal.min.js' type='text/javascript'></script>
<!-- Inneractive JS Ad Tag End -->
是吗?我将如何以及在何处添加所有事件跟踪链接? 请帮帮我

2 个答案:

答案 0 :(得分:0)

我建议您在这里查看JW Player的广告测试人员:

http://demo.jwplayer.com/ad-tester/

在这里你可以看到一切都在行动。

如果您只想查看典型的广泛响应,只需转到“要加载的广告代码”输入字段中的网址。

答案 1 :(得分:0)