動態廣告插播 (DAI) API 可讓您要求及追蹤 DAI 隨選影片 (VOD) 和線性 (LIVE) 串流。這個 API 支援的功能與 IMA DAI SDK 相同,但可靈活地在任何平台上呼叫。
瞭解 DAI Full Service API
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-21 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間: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,["The 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- [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- [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)"]]