
IMA DAI SDK Integration
Guides an agent through wiring Google's IMA Dynamic Ad Insertion SDK into web, mobile, and TV video players
- Repository
- google/skills
- Stars
- 21,782
- Licence
- Apache-2.0
- Files
- 6 files
What it does
This skill gives an AI agent reference guides for Google's Interactive Media Ads Dynamic Ad Insertion SDK, which stitches ads into live or on-demand HLS and DASH video streams so ads play as part of the video. When a developer asks for help adding this to a website, Android, iOS, tvOS, Cast, or Roku app, the agent follows the platform-specific guide and the general setup steps: import the SDK, initialize it, add listeners, forward timed metadata, make a stream request, and clean up. It does not play VAST or VMAP ad URLs.
Great for
- Developers integrating server-side ad-inserted livestream or VOD playback into a video app
- Teams building on Google Ad Manager who need a Cast, Roku, or mobile player workflow
- Engineers who want an agent to draft integration code from the official reference guides
Skip it if
- Non-developers or people who only want to watch or publish ads: this is code integration work, not an ad tool
- Projects using VAST or VMAP ad tag URLs, which the skill explicitly says not to use it for
- Projects without a Google Ad Manager account and DAI stream setup, since the SDK needs those assets and keys to function
Try asking
- “Add IMA DAI livestream playback with an asset key to my React web app's video player”
- “Set up the IMA DAI SDK in my Android app using the Media3 ExoPlayer extension”
- “Integrate IMA server-side ad insertion for VOD using a CMS ID and video ID in my Cast receiver”
- “Show me how to clean up IMA DAI SDK resources when a viewer leaves the stream on iOS”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 6 original files, the Apache-2.0 licence and an attribution note.
ima-dai-sdk.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip ima-dai-sdk.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip ima-dai-sdk.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Name your platform and whether you are using a livestream asset key or VOD content ID so the agent opens the right guide
- Provide your existing player code so the agent can adapt the SDK steps rather than writing from scratch
- Verify generated code against the official IMA documentation and test ad playback with a Google test stream before shipping
What's inside
- references/android-ImaServerSideAdInsertionMediaSource-guide.md
- references/cast-StreamManager-guide.md
- references/ios-IMAStreamRequest-guide.md
- references/roku-StreamManager-guide.md
- references/web-StreamManager-guide.md
- SKILL.md
Redistributed unmodified from google/skills under the Apache-2.0 licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.