Ima Dai Sdk

作者 google55b4e13eba6dApache-2.021K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫今天更新

Integrates the Google Interactive Media Ads (IMA) Dynamic Ad Insertion (DAI) SDK into websites, web apps, mobile apps, or TV apps. Use when: - A video player needs to load and play HLS or DASH streams in web apps, Android apps, iOS apps, tvOS apps, Cast (CAF) receivers, or Roku channels. - The app needs to make use of a Google DAI livestream event asset key, or content source CMS ID, video ID for video on demand. Don't use this skill to load and play a VAST or VMAP URL.

精選僅含說明Software Development
AI 產生的概覽

指導在網頁、行動裝置、Cast 與 Roku 平台上整合 Google IMA 動態廣告插入 SDK,以載入 HLS 或 DASH 串流。

功能
此技能提供各平台專屬的指引,用於將 Google Interactive Media Ads(IMA)動態廣告插入(DAI)SDK 整合至影片播放器。內容涵蓋為直播活動與隨選影片內容載入 HLS 或 DASH 串流,並說明通用流程:匯入並初始化 SDK、加入串流事件監聽器、轉送計時中繼資料、發出串流請求,以及在串流失敗或使用者離開時清理資源。它也會引導讀者查閱 Web、Cast、Android、iOS/tvOS 與 Roku 的參考指南。
適用情境
當影片播放器需要在網頁應用程式、Android、iOS、tvOS、Cast 接收器或 Roku 頻道中載入並播放 HLS 或 DASH 串流時使用。當應用程式需要使用 Google DAI 直播活動資產金鑰,或用於隨選影片的內容來源 CMS ID、影片 ID 時也適用。它不適用於載入與播放 VAST 或 VMAP URL。
執行需求
僅為說明文件,未隨附指令碼。需要目標平台對應的 Google IMA DAI SDK,以及存取在 Google Ad Manager 中設定的直播活動或已匯入的隨選內容。隨附的參考指南用於查閱各平台的具體整合細節。

IMA DAI SDK

Use the IMA DAI SDK to load HLS or DASH streams into the app for:

  • Livestream events configured in Google Ad Manager.
  • Video on demand (VOD) content ingested into Google Ad Manager.

Prerequisites

Review the platform-specific integration guides for the target platforms:

  • Web/HTML5/ReactJs/NodeJs/Angular: Read StreamManager guide [blocked] for loading stream URL from Google full-service DAI into <video> element.

  • ChromeCast: Read StreamManager guide [blocked] for integrating the IMA DAI SDK into a ChromeCast Web Receiver.

  • Android: Read ImaServerSideAdInsertionMediaSource guide [blocked] for integrating Media3 Exoplayer IMA extension.

  • iOS/tvOS: Read IMAStreamRequest guide [blocked] for playing streams with AVPlayer.

  • Roku: Read StreamManager guide [blocked] for implementing DAI on Roku SceneGraph.

Quick start (general workflow)

  1. Import the SDK
  2. Initialize the SDK
  3. Add stream event listeners
  4. Set up timed metadata forwarding
  5. Make a stream request
  6. Clean up SDK resources when the stream fails or the user leaves the stream.

來源與署名

來源:google/skills位於skills/ads/ima-dai-sdk提交55b4e13

授權條款: Apache-2.0

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架

更多來自 google/skills 的技能

Dpop Adoption

google

精選

指導為 Google OAuth 平台實作 OAuth 2.0 DPoP(RFC 9449)傳送方約束的更新權杖。

Security21K今天更新

Finding Google Skills

google

精選

Google platform decision and setup guidance, loaded on demand from Google's skill catalog. Use when a developer is choosing or setting up part of their stack, such as where to run a service, a database, storage, messaging, authentication, analytics, ads, or AI model serving, and a Google product is a reasonable candidate - whether or not a vendor is named - or when a request names a Google product or API. Brings in the matching Google skill so the answer can weigh Google options, their trade-offs, and when they are not the right fit. Skip when the stack is already settled on another provider and no Google product is named, or the task involves no platform choice.

待分類21K今天更新

Spanner Basics

google

精選

指導 Google Cloud Spanner 的執行個體與資料庫管理、結構定義設計、查詢與效能診斷。

Data & Analytics21K今天更新

Secops Triage

google

精選

引導 SOC 分析師對 Google SecOps 安全警示進行分診,從調查到結案或升級。

Security21K今天更新

Secops Investigate

google

精選

指導 SOC 分析師在 Google SecOps 中使用 UDM 查詢與時間軸進行深入的安全事件與實體調查。

Security21K今天更新

Secops Hunt

google

精選

指導在 Google SecOps 中使用 UDM 查詢、IoC 回溯、普遍性與異常分析進行主動威脅狩獵。

Security21K今天更新