Ima Dai Sdk

by google55b4e13eba6dApache-2.021K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated today

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.

FeaturedInstructions onlySoftware Development
AI-generated overview

Guides integration of the Google IMA Dynamic Ad Insertion SDK for HLS or DASH streams across web, mobile, Cast and Roku platforms.

What it does
This skill provides platform-specific guidance for integrating the Google Interactive Media Ads (IMA) Dynamic Ad Insertion (DAI) SDK into video players. It covers loading HLS or DASH streams for livestream events and video-on-demand content, and outlines a general workflow: importing and initializing the SDK, adding stream event listeners, forwarding timed metadata, making a stream request, and cleaning up resources. It routes the reader to reference guides for Web, Cast, Android, iOS/tvOS and Roku.
When to use it
Use it when a video player must load and play HLS or DASH streams in web apps, Android, iOS, tvOS, Cast receivers or Roku channels. It also applies when an app needs a Google DAI livestream event asset key, or a content source CMS ID or video ID for video on demand. It is not intended for loading and playing a VAST or VMAP URL.
Requirements
Instructions only; no scripts are shipped. It requires the Google IMA DAI SDK for the target platform and access to Google Ad Manager-configured livestream events or ingested VOD content. The bundled reference guides are read for platform-specific integration details.

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.

Source and attribution

Source:google/skillsinskills/ads/ima-dai-sdkat commit55b4e13

License: Apache-2.0

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal

More from google/skills

Dpop Adoption

google

Featured

Guides implementation of OAuth 2.0 DPoP (RFC 9449) sender-constrained refresh tokens for Google's OAuth platform.

Security21Kupdated today

Finding Google Skills

google

Featured

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.

Awaiting classification21Kupdated today

Spanner Basics

google

Featured

Guides Google Cloud Spanner administration, schema design, querying and performance diagnosis.

Data & Analytics21Kupdated today

Secops Triage

google

Featured

Guides SOC analysts through triaging Google SecOps security alerts, from investigation to closure or escalation.

Security21Kupdated today

Secops Investigate

google

Featured

Guides SOC analysts through deep security incident and entity investigations in Google SecOps using UDM queries and timelines.

Security21Kupdated today

Secops Hunt

google

Featured

Guides proactive threat hunting in Google SecOps using UDM queries, IoC lookback, prevalence and outlier analysis.

Security21Kupdated today