借助动态广告插播 (DAI) API,您可以请求和跟踪 DAI 视频点播 (VOD) 和线性 (LIVE) 直播。它支持与 IMA DAI SDK 相同的功能,但可灵活地在任何平台上调用。
了解 DAI Full Service API
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-21。
[null,null,["最后更新时间 (UTC):2025-08-21。"],[[["\u003cp\u003eThe Dynamic Ad Insertion (DAI) API enables the request and tracking of both video-on-demand (VOD) and linear (LIVE) streams.\u003c/p\u003e\n"],["\u003cp\u003eThis API mirrors the features of the IMA DAI SDK but offers broader platform flexibility.\u003c/p\u003e\n"],["\u003cp\u003eThe IMA DAI SDK is preferred if available on your platform; this API should be used if there is no DAI SDK.\u003c/p\u003e\n"],["\u003cp\u003eThe API documentation provides both implementation guides and reference documentation for VOD and LIVE streams respectively.\u003c/p\u003e\n"]]],["The Dynamic Ad Insertion (DAI) API facilitates requesting and tracking video-on-demand (VOD) and live (LIVE) streams, offering flexibility across platforms. It mirrors the features of the IMA DAI SDK but is designed for platforms lacking a dedicated SDK. Before using the DAI API, one should check for the availability of the IMA DAI SDK, which is the preferred option. The provided links contain the implementation guides and reference documentation for both VOD and LIVE streams.\n"],null,["# Learn the DAI Full Service API\n\nThe Dynamic Ad Insertion (DAI) API lets you request and track DAI\nvideo-on-demand (VOD) and linear (LIVE) streams. It supports the same features\nas the [IMA DAI SDK](/interactive-media-ads), but has the flexibility to be\ncalled on any platform.\n| **Key Point:** Before considering this API, check to see if there is already a DAI SDK for your platform of choice. The [IMA DAI SDK](/interactive-media-ads) is recommended on platforms where it is available. The DAI API is intended to be used only on platforms that don't have a DAI SDK.\n\nDAI API for VOD streams\n-----------------------\n\n- [Request DAI VOD streams](/ad-manager/dynamic-ad-insertion/api/full-service/video-player-vod)\n- [Reference docs](/ad-manager/dynamic-ad-insertion/api/full-service/reference/vod)\n\nDAI API for LIVE streams\n------------------------\n\n- [Manage DAI livestreams](/ad-manager/dynamic-ad-insertion/api/full-service/video-player-live)\n- [Reference docs](/ad-manager/dynamic-ad-insertion/api/full-service/reference/live)"]]