简体   繁体   English

在VAST代码中运行外部脚本

[英]Running an external script in a VAST tag

I have a 3rd party script (which does some data analysis in the client browser) that usually gets appended to an ad creative on a display ad. 我有一个第三方脚本(在客户端浏览器中进行一些数据分析),该脚本通常会附加到展示广告中的广告素材中。

I would like to append this script to a video ad, using a VAST tag. 我想使用VAST标签将此脚本附加到视频广告中。 I have read the VAST spec, and I have not found an example of running a script in the browser - just examples of calling a server upon specific events. 我已经阅读了VAST规范,但没有找到在浏览器中运行脚本的示例-只是在发生特定事件时调用服务器的示例。

Can anybody point me to an example of how to append a script to a VAST tag so that it can run code in the browser? 谁能给我一个例子,说明如何将脚本附加到VAST标记中,以便它可以在浏览器中运行代码?

Thanks! 谢谢!

Indeed, the regular VAST standard does not cover adding custom scripts to the web page you delivering ads to. 实际上,常规VAST标准并不涵盖在向其投放广告的网页上添加自定义脚本。 You could use VPAID to do this or use a VAST Extension. 您可以使用VPAID进行此操作,也可以使用VAST扩展程序。 Extensions can be more or less freely configured, but of course such an extension will only work in players which support this extension. 扩展可以或多或少地自由配置,但是这样的扩展当然只能在支持该扩展的播放器中使用。

If you do not have control of the player, try using VPAID -- or find a better (simpler) way to track what you need. 如果您无法控制播放器,请尝试使用VPAID-或找到一种更好(更简单)的方式来跟踪所需内容。 VAST video advertisement is different from display ads, you can use simple tracking pixels, but no scripts. VAST视频广告与展示广告不同,您可以使用简单的跟踪像素,但不能使用脚本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM