ima-sdk-basics

Integrate VAST and VMAP client-side video ads across web, Android, iOS, tvOS, and React Native.

Updated Jun 26, 2026
One-click install
npx skills add https://github.com/wangx7/skills-collection --skill ima-sdk-basics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ima-sdk-basics
Source: https://github.com/wangx7/skills-collection/tree/main/google-skills/skills/ads/interactive-media-ads/ima-sdk-basics
Command: npx skills add https://github.com/wangx7/skills-collection --skill ima-sdk-basics

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill solves the challenge of integrating compliant, playback-coordinated video and audio ads into digital platforms (websites, apps, TVs, etc.) without building ad insertion logic from scratch, ensuring compatibility with VAST and VMAP ad servers.

Core Features & Use Cases

  • Cross-platform support: Provides implementation guides for web, Android, iOS, tvOS, React Native and other common platforms.
  • Complete ad lifecycle management: Covers all stages from SDK initialization and ad request to playback event handling and resource cleanup.
  • Use case: A developer building a cross-platform video streaming app can use this Skill to add pre-roll, mid-roll and post-roll ads that coordinate seamlessly with content playback, avoiding common issues like memory leaks or ad/content playback conflicts.

Quick Start

Use the ima-sdk-basics skill to implement client-side video ad integration for your web, Android, iOS or tvOS app by following the corresponding platform-specific guide in the skill references.

Frequently Asked Questions about ima-sdk-basics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate VAST video ads into my React Native app?

You integrate VAST video ads into React Native apps using client-side ad insertion via the Google IMA SDK. This skill provides platform-specific guides to handle ad requests and coordinate ad playback with your video content.

What is client-side ad insertion and when do I need it for video streaming?

Client-side ad insertion is the process of requesting and playing video ads directly in the user's player using VAST or VMAP. You need it when building apps or websites requiring coordinated pre-roll, mid-roll, or post-roll ad playback.

Does the Google IMA SDK support tvOS and Android platforms?

Yes, the Google IMA SDK supports tvOS and Android platforms for client-side ad integration. It provides cross-platform implementation guides for websites, mobile apps, and TVs using standard VAST and VMAP ad servers.

How do I handle SDK resource cleanup to prevent audio playback bugs?

You prevent audio playback bugs and memory leaks by following the SDK resource cleanup steps provided in the skill. Proper lifecycle management ensures ad playback stops correctly and releases resources before content continues.

Can I use VMAP ad servers for mid-roll ad scheduling on iOS?

Yes, you can use VMAP compliant ad servers for mid-roll ad scheduling on iOS. The skill enables ad request handling and playback event coordination across iOS to seamlessly integrate scheduled ad breaks with content video.

What is the best way to coordinate ad playback events with content video?

The best way to coordinate ad playback events with content video is using the Google IMA SDK for client-side ad insertion. It manages the complete ad lifecycle from request to playback, preventing conflicts between ads and content.