[英]How to play audio only ads using Google IMA HTML5
I'm using Google IMA HTML5 SDK to display audio only ads on my website, I followed this tutorial: https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side But it ends up showing a video player with black screen and playing the audio in the background, what I want to do is to show audio player instead of the video one.我正在使用 Google IMA HTML5 SDK 在我的网站上显示纯音频广告,我遵循了本教程: https : //developers.google.com/interactive-media-ads/docs/sdks/html5/client-side但它结束了显示黑屏视频播放器并在后台播放音频,我想要做的是显示音频播放器而不是视频播放器。
As they claim here: https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/compatibility正如他们在这里声称的那样: https : //developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/compatibility
The HTML5 SDK supports audio only content. HTML5 SDK 支持纯音频内容。
The constructor for AdDisplayContainer takes a second argument named videoElement which IMA tracks as the content player.
AdDisplayContainer 的构造函数采用名为 videoElement 的第二个参数,IMA 将其作为内容播放器进行跟踪。 This argument accepts both a or tag.
此参数接受 a 或标记。 For audio content and ads, this guide recommends using an tag to construct an AdDisplayContainer.
对于音频内容和广告,本指南建议使用标签来构建 AdDisplayContainer。 If you have video content, you can use a tag for showing a mix of audio and video ads...
如果您有视频内容,您可以使用标签来展示音频和视频广告的混合...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.