Stay organized with collections
Save and categorize content based on your preferences.
This guide provides an overview of the SDK lifecycle and the interactions
between your video stream player, the IMA DAI SDK, and an ad server.
Basic interactions
The following diagram illustrates and annotates the interactions between
your video player, the IMA DAI SDK, and Ad Manager 360.
The web page or app loads the IMA DAI SDK via:
an embedded script tag for HTML5
a native app for Android, Google Cast, iOS, tvOS, or Roku
The IMA DAI SDK requests either a VOD stream or live stream from Google Ad
Manager 360.
Ad Manager 360 responds with the video stream that includes inserted ad
breaks.
The IMA DAI SDK parses the response, determines the correct media type based
on environment, and delivers the video stream (and
companion ads if needed) to the web page or app.
The video player negotiates the playback details with the IMA DAI SDK and
plays the ads.
The IMA SDK fires an impression ping and tracking events, as needed.
Lifecycle
This diagram shows the full lifecycle of the IMA DAI SDK. Constructor and method
calls are highlighted in blue, events are highlighted in red, and error
conditions are shown with red connectors and red text.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-17 UTC."],[[["The IMA DAI SDK facilitates communication between your video player and an ad server (like Google Ad Manager 360) to seamlessly integrate ads into video content."],["The SDK handles requesting the video stream, parsing ad breaks, and delivering the content to the player for playback, including companion ads."],["Throughout the process, the IMA SDK manages playback details, tracks ad impressions, and sends necessary event updates for monitoring and analysis."],["The lifecycle of the SDK involves initialization, stream requests, ad playback, and event handling, with potential error scenarios addressed."]]],[]]