我正在尝试编写一个可以同时(大约)启动两件事的 VAST XML 文件:
- 1个广告视频
- 1 个 VPAID JavaScript 文件
我尝试了很多配置,但都没有成功。以下是我目前正在尝试使用的 3 个示例:
<!-- 1 Creative (adparameter Ad Video + mediafile VPAID JS) -->
<VAST version="3.0">
<Ad id="2016.03.16">
<InLine>
<AdSystem>TestVpaid</AdSystem>
<AdTitle>2016.03.16</AdTitle>
<Error>
about:blank
</Error>
<Impression>
about:blank
</Impression>
<Creatives>
<Creative sequence="1">
<Linear>
<Duration>00:00:30</Duration>
<AdParameters>
<![CDATA[
{"videos":[{"url":"http://cdn.liverail.com/adasset4/1331/229/7969/lo.mp4","mimetype":"video/mp4"}]}
]]>
</AdParameters>
<MediaFiles>
<MediaFile type="application/javascript" apiFramework="VPAID">
https://domain_name/test_vpaid.js
</MediaFile>
</MediaFiles>
</Linear>
</Creative>
</Creatives>
</InLine>
</Ad>
</VAST>
<!-- 1 Creative (staticresource Ad Video + mediafile VPAID JS) -->
<VAST version="3.0">
<Ad id="2016.03.16">
<InLine>
<AdSystem>TestVpaid</AdSystem>
<AdTitle>2016.03.16</AdTitle>
<Error>
about:blank
</Error>
<Impression>
about:blank
</Impression>
<Creatives>
<Creative sequence="1">
<Linear>
<Duration>00:00:30</Duration>
<StaticResource>
<![CDATA[
{"videos":[{"url":"http://cdn.liverail.com/adasset4/1331/229/7969/lo.mp4","mimetype":"video/mp4"}]}
]]>
</StaticResource>
<MediaFiles>
<MediaFile type="application/javascript" apiFramework="VPAID">
https://domain_name/test_vpaid.js
</MediaFile>
</MediaFiles>
</Linear>
</Creative>
</Creatives>
</InLine>
</Ad>
</VAST>
<!-- 2 Creative (mediafile Ad Video + companionads mediafile VPAID JS) -->
<VAST version="2.0">
<Ad id="2016.03.16">
<InLine>
<AdSystem>TestVpaid</AdSystem>
<AdTitle>2016.03.16</AdTitle>
<Error>
about:blank
</Error>
<Impression>
about:blank
</Impression>
<Creatives>
<Creative sequence="1" >
<Linear>
<Duration>00:00:30</Duration>
<MediaFiles>
<MediaFile delivery="progressive" bitrate="400" width="320" height="180" type="video/mp4">
http://cdn.liverail.com/adasset4/1331/229/7969/hi.mp4
</MediaFile>
</MediaFiles>
</Linear>
</Creative>
<Creative sequence="1" >
<CompanionAds>
<Companion>
<Duration>00:00:30</Duration>
<MediaFiles>
<MediaFile type="application/javascript" apiFramework="VPAID">
https://domain_name/test_vpaid.js
</MediaFile>
</MediaFiles>
</Companion>
</CompanionAds>
</Creative>
</Creatives>
</InLine>
</Ad>
</VAST>
对于我的测试,我使用谷歌开发页面: https ://developers.google.com/interactive-media-ads/docs/sdks/html5/vasinspector (感谢他们将其放到网上)
你知道我怎么能做我想做的事吗?
提前感谢,祝你有美好的一天