mcpbeat

Ima SDK Basics

google/ima-sdk-basics

>- Use this skill for Interactive Media Ads (IMA) SDK client-side ad insertion when you are requesting video ads client-side into websites, apps, TVs or other platforms with VAST or VMAP. Do not use for Dynamic Ad Insertion (DAI), SSAI, or SGAI (use the `ima-sdk-dai-basics` skill instead).

9k tokens
context cost
the whole folder, loaded on every use
7
files
instructions only
0
copies elsewhere
how many repositories repackaged it
15506
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/google/skills --skill ima-sdk-basics

What comes with it

32 349 bytes besides the instruction
references/ima-sdk-android-guide.md
references/ima-sdk-ios-guide.md
references/ima-sdk-tvos-guide.md
references/ima-sdk-web-guide.md
references/ima-sdk-web-iframe-mode.md
references/ima-sdk-web-mobile-safari.md

The instruction itself

3 sections, as written by the author

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:

  • Web/HTML5/ReactJs/NodeJs/Angular: Read all these guides

ima-sdk-web-guide.md,

ima-sdk-web-iframe-mode.md,

ima-sdk-web-mobile-safari.md

  • Android/AndroidTV/ReactNative: Read ima-sdk-android-guide.md
  • iOS/tvOS/ReactNative: Read all these guides

ima-sdk-ios-guide.md,

ima-sdk-tvos-guide.md

--------------------------------------------------------------------------------

Quick start (general workflow)

  • Import the SDK: Prerequisites, dependencies.
  • Initialization: Early setup, Warmup, Settings Configuration, and Ad UI

Setup.

  • Ad Request: Creating and triggering the request, User gesture compliance.
  • Ad Load Success/Failure: Handling the load event to get the AdsManager, or

handling early fatal errors.

  • 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.

  • 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.

How to use it

Copy the folder

Take google/ima-sdk-basics from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.