IMA DAI SDK Integration

IMA DAI SDK Integration

Guides an AI coding agent to integrate the Google IMA Dynamic Ad Insertion SDK into web, Android, iOS, Cast and Roku video players.

Skill files6 files

references/

SKILL.md57 lines
1
---
2
name: ima-dai-sdk
3
description: >-
4
Integrates the Google Interactive Media Ads (IMA) Dynamic Ad Insertion (DAI)
5
SDK into websites, web apps, mobile apps, or TV apps.
6
Use when:
7
- A video player needs to load and play HLS or DASH streams in web apps,
8
Android apps, iOS apps, tvOS apps, Cast (CAF) receivers, or Roku channels.
9
- The app needs to make use of a Google DAI livestream event asset key, or
10
content source CMS ID, video ID for video on demand.
11
Don't use this skill to load and play a VAST or VMAP URL.
12
license: Apache-2.0
13
metadata:
14
author: Google LLC
15
version: "1.0.1"
16
category: GoogleAds
17
---
18
19
# IMA DAI SDK
20
21
Use the IMA DAI SDK to load HLS or DASH streams into the app for:
22
23
* **Livestream events** configured in Google Ad Manager.
24
* **Video on demand (VOD)** content ingested into Google Ad Manager.
25
26
## Prerequisites
27
28
Review the platform-specific integration guides for the target platforms:
29
30
* **Web/HTML5/ReactJs/NodeJs/Angular:** Read
31
[StreamManager guide](references/web-StreamManager-guide.md) for loading
32
stream URL from Google full-service DAI into `<video>` element.
33
34
* **ChromeCast:** Read
35
[StreamManager guide](references/cast-StreamManager-guide.md) for
36
integrating the IMA DAI SDK into a ChromeCast Web Receiver.
37
38
* **Android:** Read
39
[ImaServerSideAdInsertionMediaSource guide](references/android-ImaServerSideAdInsertionMediaSource-guide.md)
40
for integrating Media3 Exoplayer IMA extension.
41
42
* **iOS/tvOS:** Read
43
[IMAStreamRequest guide](references/ios-IMAStreamRequest-guide.md) for
44
playing streams with `AVPlayer`.
45
46
* **Roku:** Read [StreamManager guide](references/roku-StreamManager-guide.md)
47
for implementing DAI on Roku SceneGraph.
48
49
## Quick start (general workflow)
50
51
1. Import the SDK
52
2. Initialize the SDK
53
3. Add stream event listeners
54
4. Set up timed metadata forwarding
55
5. Make a stream request
56
6. Clean up SDK resources when the stream fails or the user leaves the stream.
57

© Google LLC · Apache 2.0 · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 13,358 prompts

More by @OpenSourceBuffGuy

See all
Woman with towel turban cooking chicken in night kitchen prompt image

Woman with towel turban cooking chicken in night kitchen

Generates a realistic handheld camcorder-style vlog of a fitness influencer cooking a high-protein meal late at night, mixing selfie shots and jump-cut fixed angles.

video-prompt, wan, vlog, handheld, home-video, cooking, food-photography, nutrition, fitness, night-scene, cozy, soft-lighting, photorealistic, multi-shot, pov, ugc-video, short-form-video, camera-movement, casual, for-content-creators, long-form, guardrails, reference-image, candid

Cute 3D animals introduced one by one in meadow prompt image

Cute 3D animals introduced one by one in meadow

Generates a 50-second vertical 3D cartoon where eight friendly animals appear one by one in a meadow with a big word label above each.

video-prompt, seedance, animals, animation, 3d-render, cartoon, pixar-style, family-friendly, for-young-learners, early-years-education, education, vertical-format, text-rendering, multi-shot, scene-transitions, vibrant-colors, camera-movement, forest, whimsical, explainer-video, vocabulary, storybook, long-form

Heartbroken man kneels in rain as woman turns away prompt image

Heartbroken man kneels in rain as woman turns away

Draws a cinematic heartbreak scene of a man kneeling in a storm as a woman sits turned away, with symbolic keepsakes and split cool and warm lighting.

image-prompt, gemini, photorealistic, cinematic, rain, dramatic-lighting, poster, widescreen, moody, couple, man, woman, cityscape, night-scene, multi-panel, low-angle, still-life, romance, album-cover, for-artists, long-form, structured-output, negative-space, flowers

Reviews

Loading reviews…

Discussion

Loading comments…