New to Claude Skills? Learn how to install them →

google on GitHub

IMA SDK Basics

Free

Integrate video ads into your apps and websites easily.

by google17.6k stars on google/skills
Updated Aug 10, 2026
Get this skill

Free · Opens the source repo

What IMA SDK Basics does

The IMA SDK (Interactive Media Ads) from Google provides a robust solution for client-side ad insertion of video and audio ads across various platforms, including websites, mobile applications, and smart TVs. This skill is specifically designed for developers looking to implement VAST-compliant ad requests, enabling seamless ad playback within their digital content. By leveraging this SDK, developers can enhance their applications with monetization opportunities through in-stream advertising.

To effectively use the IMA SDK, developers must familiarize themselves with platform-specific implementation guides, which cover a range of environments such as Web/HTML5, Android, iOS, and more. Each guide details the prerequisites, setup processes, and configuration settings necessary for successful integration. The skill outlines a clear workflow, from importing the SDK to managing ad requests and playback events, ensuring that developers can follow a structured approach to implementation.

The IMA SDK is particularly useful for developers who need to manage ad playback events, handle ad load success or failure, and ensure compliance with user gesture requirements. By utilizing the AdsManager provided by the SDK, developers can coordinate content playback effectively, enhancing the user experience while maximizing ad revenue.

This skill is intended for developers and designers who are looking to incorporate video advertising into their applications and need a reliable method for managing ad requests and playback. It is not suitable for those seeking to implement Dynamic Ad Insertion (DAI) or server-side ad insertion (SSAI), as those functionalities are covered by a different skill.

When to use it

Use this skill when you need to implement client-side ad insertion for video content across various platforms.

When not to use it

This skill is not suitable for Dynamic Ad Insertion (DAI) or server-side ad insertion (SSAI) scenarios.

What you can build with it

Web Application Integration

Integrate the IMA SDK into your web application to serve video ads alongside your content, enhancing monetization.

Mobile App Development

Use the IMA SDK to implement video ad playback in your mobile applications, ensuring a seamless user experience.

Smart TV Advertising

Leverage the IMA SDK for ad insertion in smart TV applications, allowing for effective monetization of video content.

How to install IMA SDK Basics

View source

1. Install with the skills CLI

npx skills add google/skills/ima-sdk-basics --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by google

IMA SDK basics

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.

Frequently asked questions about IMA SDK Basics

Similar skills