Skip to content
Skillpedia
Video editing22k · #10194

ima-dai-sdk

What it does

It shows how to load a livestream or on-demand stream from Google Ad Manager with ads already inserted, across web, Android, iOS, Cast, and Roku. It is for developers building video players with server-side ads.

When to use it

  • ✓When you need to play a livestream that has ads inserted by Google Ad Manager.
  • ✓When you want to load on-demand video with dynamic ads in a web, mobile, or TV app.
  • ✓When your player must support HLS or DASH streams on Android, iOS, Cast, or Roku.

Skill link

https://github.com/google/skills/blob/main/skills/ads/ima-dai-sdk/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/google/skills/blob/main/skills/ads/ima-dai-sdk/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Add Google's dynamic ad insertion to my web video player so ads play in my livestream.”

5 new skills a week. 1 minute to read.

How it works

It picks the guide for your platform, imports the SDK, sets up stream listeners and timed metadata, makes the stream request, and cleans up when the stream ends or the viewer leaves.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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:

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.
FAQ

Does it cover client-side ads?

No. Client-side video ads use a different skill, the IMA SDK client-side skill.

Which platforms does it support?

Web, Android, iOS, tvOS, Cast receivers, and Roku.

What do I need from Ad Manager?

Depending on the stream, you need a livestream event asset key, or a content source ID and video ID.

Details

Original description by the author

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.

repo: google/skills

Popularity

GitHub stars
22k
Ranking position
#10194
License
Apache-2.0
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills