如何在HTML5视频播放器中显示预卷广告?

发布于 2025-02-01 20:28:27 字数 195 浏览 4 评论 0 原文

因此,我有一个像YouTube这样的网站,我想通过它获利。它使用简单的HTML5视频播放器显示动态视频。我不想整合任何其他播放器,因为我的网站是为HTML5播放器设计的。我已经观看了有关此视频的几个视频,并且两个源代码都没有使用(它没有显示广告本身)。我使用Adsterra广阔的标签,所以我不知道这是否是他们的问题。如果有人可以帮助我使用文档或示例代码,我会很高兴。谢谢你!

So I have a website like YouTube and I want to monetize it. It uses simple HTML5 video player to display dynamic videos. I don't want to integrate any other player because my site is designed for HTML5 players. I have watched couple of videos about this, and neither of the source codes worked (It didn't display the ad itself). I use Adsterra VAST tag, so I don't know if it's their problem or not. I would be very happy if someone can help me with documentations or sample codes. Thank you!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风追烟花雨 2025-02-08 20:28:27

因此,您需要将IMA SDK用于HTML5播放器:

在那里您可以找到必要的代码来执行此操作,对不起,我刚刚找到了这张票。

So you would need to use IMA SDK for html5 player:
https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side

In there you can find the necessary code to do it, sorry for the late reply i just found this ticket.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文