ima-dai-sdk — Claude Code skill: what it does, how to install
This skill guides Google IMA DAI SDK integration for loading HLS and DASH streams. Use it for livestreams or video on demand in apps and websites.
npx skills add google/skills --skill ima-dai-sdk -a claude-codeWhat ima-dai-sdk does
The skill covers Google IMA DAI SDK integration for livestream events configured in Google Ad Manager and video-on-demand content ingested into Google Ad Manager. It targets HLS and DASH streams, using an event asset key for livestreams or a CMS ID and video ID for VOD.
Platform guides cover Web, HTML5, ReactJs, NodeJs and Angular; ChromeCast; Android; iOS and tvOS; and Roku. The general workflow imports and initializes the SDK, adds stream event listeners, forwards timed metadata, requests a stream, then cleans up SDK resources if the stream fails or the user leaves. This is for DAI streams, not VAST or VMAP URLs. Install it when you are building a Google DAI integration; it is the wrong fit for loading a VAST or VMAP URL.
What it helps with
- load a Google DAI HLS stream in a video player
- request a livestream stream using its event asset key
- load VOD using a CMS ID and video ID
- forward timed metadata to stream handlers
- clean up SDK resources when a viewer leaves a stream
Example prompts for the agent
- Integrate the Google IMA DAI SDK into my video player and load an HLS livestream.
- Show me the Android DAI integration using the Media3 Exoplayer IMA extension.
- Add a VOD stream request using the CMS ID and video ID.
How to install ima-dai-sdk
1Skills CLI (Vercel)
npx skills add google/skills --skill ima-dai-sdk -a claude-code2Manually: put the files in place
~/.claude/skills/ima-dai-sdk/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/ima-dai-sdk/
1Skills CLI (Vercel)
npx skills add google/skills --skill ima-dai-sdk -a codex2Manually: put the files in place
.agents/skills/ima-dai-sdk/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/ima-dai-sdk/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install google/skills ima-dai-sdk2Manually: put the files in place
.github/skills/ima-dai-sdk/SKILL.md1Skills CLI (Vercel)
npx skills add google/skills --skill ima-dai-sdk -a gemini-cli2Platform CLI
gemini skills install https://github.com/google/skills --path skills/ads/ima-dai-sdkManually: put the files in place
.devin/skills/ima-dai-sdk/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set172
The whole set →Similar
Questions about ima-dai-sdk
How do I install ima-dai-sdk in Claude Code?
Run npx skills add google/skills --skill ima-dai-sdk -a claude-code. The skill file is at ~/.claude/skills/ima-dai-sdk/SKILL.md.
What does ima-dai-sdk do?
It guides integration of the Google IMA DAI SDK to load HLS and DASH streams for livestreams and video on demand.
Can I use ima-dai-sdk to load a VAST or VMAP URL?
No. The skill is for Google DAI streams, not for loading VAST or VMAP URLs.
Source text
SKILL.md · Apache-2.0
---
name: ima-dai-sdk
description: >-
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.
license: Apache-2.0
metadata:
author: Google LLC
version: "1.0.0"
category: GoogleAds
---
# 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](references/web-StreamManager-guide.md) for loading
stream URL from Google full-service DAI into `<video>` element.
* **ChromeCast:** Read
[StreamManager guide](references/cast-StreamManager-guide.md) for
integrating the IMA DAI SDK into a ChromeCast Web Receiver.
* **Android:** Read
[ImaServerSideAdInsertionMediaSource guide](references/android-ImaServerSideAdInsertionMediaSource-guide.md)
for integrating Media3 Exoplayer IMA extension.
* **iOS/tvOS:** Read
[IMAStreamRequest guide](references/ios-IMAStreamRequest-guide.md) for
playing streams with `AVPlayer`.
* **Roku:** Read [StreamManager guide](references/roku-StreamManager-guide.md)
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 LLC · Apache-2.0 · google/skills