SDK アーキテクチャについて学習する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このガイドでは、SDK のライフサイクルと、動画ストリーミング プレーヤー、IMA DAI SDK、広告サーバー間のインタラクションの概要について説明します。
基本的なインタラクション
次の図は、動画プレーヤー、IMA DAI SDK、アド マネージャー 360 間のインタラクションを示すものです。

ウェブページまたはアプリが、次の方法で IMA DAI SDK を読み込みます。
- HTML5 用の埋め込みスクリプトタグ
- Android、Google Cast、iOS、tvOS、Roku 向けのネイティブ アプリ
IMA DAI SDK が Google 広告から VOD ストリームまたはライブ ストリームをリクエストします
マネージャー 360。
アド マネージャー 360 は、挿入されたミッドロール挿入点を含む動画ストリームを返します。
IMA DAI SDK はレスポンスを解析し、環境に基づいて適切なメディアタイプを決定し、動画ストリーム(必要に応じてコンパニオン広告)をウェブページまたはアプリに配信します。
動画プレーヤーは、IMA DAI SDK と再生の詳細を交渉し、
広告が再生されます。
IMA SDK は、必要に応じてインプレッション ピングとトラッキング イベントを発生させます。
Lifecycle
次の図は、IMA DAI SDK のライフサイクル全体を示しています。コンストラクタとメソッド
通話は青色でハイライト表示され、イベントは赤色でハイライト表示され、エラー
赤色のコネクタと赤色のテキストで示されています。

特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-21 UTC。
[null,null,["最終更新日 2025-08-21 UTC。"],[[["\u003cp\u003eThe 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.\u003c/p\u003e\n"],["\u003cp\u003eThe SDK handles requesting the video stream, parsing ad breaks, and delivering the content to the player for playback.\u003c/p\u003e\n"],["\u003cp\u003eIt manages the entire ad lifecycle, including displaying ads, tracking impressions, and handling potential errors, ensuring smooth ad integration and delivery.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers need to integrate the IMA DAI SDK into their web page or app, and the SDK will handle the complexities of ad interactions.\u003c/p\u003e\n"]]],[],null,["# Learn the SDK architecture\n\nThis guide provides an overview of the SDK lifecycle and the interactions\nbetween your video stream player, the IMA DAI SDK, and an ad server.\n\nBasic interactions\n------------------\n\nThe following diagram illustrates and annotates the interactions between\nyour video player, the IMA DAI SDK, and Ad Manager 360.\n\n1. The web page or app loads the IMA DAI SDK via:\n\n - an embedded script tag for HTML5\n - a native app for Android, Google Cast, iOS, tvOS, or Roku\n2. The IMA DAI SDK requests either a VOD stream or live stream from Google Ad\n Manager 360.\n\n3. Ad Manager 360 responds with the video stream that includes inserted ad\n breaks.\n\n4. The IMA DAI SDK parses the response, determines the correct media type based\n on environment, and delivers the video stream (and\n companion ads if needed) to the web page or app.\n\n5. The video player negotiates the playback details with the IMA DAI SDK and\n plays the ads.\n\n6. The IMA SDK fires an impression ping and tracking events, as needed.\n\nLifecycle\n---------\n\nThis diagram shows the full lifecycle of the IMA DAI SDK. Constructor and method\ncalls are highlighted in blue, events are highlighted in red, and error\nconditions are shown with red connectors and red text."]]