Skip to content
Skillpedia
Video editing22k · #10195

ima-sdk-client-side

What it does

It shows how to load in-stream video and audio ads from VAST or VMAP requests and control playback around them. It is for developers who want ads inside their own video player on web, mobile, or TV.

When to use it

  • ✓When you want pre-roll or mid-roll video ads in a website or app.
  • ✓When your ad server returns VAST or VMAP ad responses.
  • ✓When you need video ads on Android, iOS, or TV apps.

Skill link

https://github.com/google/skills/blob/main/skills/ads/ima-sdk-client-side/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-sdk-client-side/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 pre-roll video ads to my website player using VAST tags from my ad server.”

5 new skills a week. 1 minute to read.

How it works

It reads the guides for your platform, sets up the SDK, makes an ad request tied to a user action, handles the load success or failure, and manages ad playback.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

IMA SDK client-side

The Google IMA SDK (Interactive Media Ads) lets you load in-stream video and audio ads into websites, apps, TVs and other digital platforms. Use an IMA SDK to request ads from any VAST-compliant ad server and manage ad playback.

Prerequisites

Before integrating the IMA SDK, you must read the platform-specific guide below to support all platforms that your app can support:


Quick start (general workflow)

  1. Import the SDK: Prerequisites, dependencies.
  2. Initialization: Early setup, Warmup, Settings Configuration, and Ad UI Setup.
  3. Ad Request: Creating and triggering the request, User gesture compliance.
  4. Ad Load Success/Failure: Handling the load event to get the AdsManager, or handling early fatal errors.
  5. Ad Playback Events: Listening to playback events via AdsManager to coordinate content play/pause, and handling non-fatal LOG events and fatal active playback errors.
  6. Cleanup: Properly destroying the AdsManager to release resources and prevent memory leaks.

For detailed, platform-specific implementation details, always refer to the guides in the Prerequisites section.

FAQ

Does it cover server-side ad insertion?

No. Dynamic Ad Insertion, SSAI, and SGAI are outside this skill.

Which platforms are covered?

Web, Android, Android TV, React Native, iOS, and tvOS.

Does it handle user gestures?

Yes. Its ad request guidance covers user gesture compliance.

Details

Original description by the author

Supports Interactive Media Ads (IMA) SDK. Use this skill for client-side ad insertion when you are requesting video ads for websites, apps, TVs or other platforms using VAST or VMAP. Do not use for Dynamic Ad Insertion (DAI), SSAI, or SGAI.

repo: google/skills

Popularity

GitHub stars
22k
Ranking position
#10195
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