Ima Sdk Client Side

作者 google55b4e13eba6dApache-2.021K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

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.

精选仅含说明Software Development
AI 生成的概览

指导在客户端集成 Google IMA SDK,以请求并播放 VAST 或 VMAP 视频与音频广告。

功能
该技能提供在客户端集成 Google IMA(Interactive Media Ads)SDK 的说明,用于从符合 VAST 的广告服务器请求贴片视频和音频广告并管理广告播放。它给出通用工作流程,涵盖 SDK 导入、初始化、广告请求、加载成功或失败处理、播放事件以及清理。它指向针对 Web、Android、iOS 和 tvOS 的平台专属参考指南。
适用场景
适用于为网站、应用、电视或其他平台添加客户端广告插入,并通过 VAST 或 VMAP 请求视频广告的场景。不适用于动态广告插入(DAI)、服务器端广告插入(SSAI)或服务器引导广告插入(SGAI)。
运行要求
不附带脚本,仅为说明文档和参考指南。代理需要能够读取随附的 Web、Android、iOS 和 tvOS 平台专属参考文件。集成对象为 Google IMA SDK 和符合 VAST 的广告服务器。

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:

  • Web/HTML5/ReactJs/NodeJs/Angular: Read all these guides ima-sdk-web-guide.md [blocked], ima-sdk-web-iframe-mode.md [blocked], ima-sdk-web-mobile-safari.md [blocked]
  • Android/AndroidTV/ReactNative: Read ima-sdk-android-guide.md [blocked]
  • iOS/tvOS/ReactNative: Read all these guides ima-sdk-ios-guide.md [blocked], ima-sdk-tvos-guide.md [blocked]

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.

来源与署名

来源:google/skills位于skills/ads/ima-sdk-client-side提交55b4e13

许可证: Apache-2.0

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架

更多来自 google/skills 的技能