DAI Pod Serving API について学習する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
連続配信広告を使用すると、コンテンツを Google の DAI サーバーに送信することなく、サーバーサイドで Google 広告を使用して広告挿入を行うことができます。既存の動画テクニカル パートナーと連携して、マニフェストを操作することも、DAI Pod Serving API(Live または VOD)を使用して独自のマニフェスト操作サーバーを実装することもできます。
Interactive Media Ads(IMA)DAI SDK を使用して、DAI Pod Serving API とシームレスに連携するウェブおよびモバイル プラットフォーム用のクライアント アプリを開発できます。DAI Pod Serving API を使用して IMA DAI SDK を設定するには、ライブまたは VOD ストリーム形式について、クライアント アプリのプラットフォーム(Android、Chromecast、HTML5、iOS、Roku、tvOS)に固有のガイドをご覧ください。
IMA DAI SDK でサポートされていない特別な要件がある場合は、クライアント動画プレーヤー ガイド(ライブまたは VOD)に沿って、独自のクライアント アプリを開発できます。
DAI Pod Serving コンポーネント
DAI Pod Serving API の実装は、次の 3 つの主要コンポーネントで構成されます。
Google アド マネージャー
Google アド マネージャーは、ユーザー ストリーム セッションの作成と管理、配信する広告の選択、ストリーミング セグメントとしてエンコード、リクエストに応じてクライアントの動画プレーヤーに配信するホスト型サービスです。
ライブ ストリームでは、クライアントの動画プレーヤーから特定のセグメントがリクエストされると、広告がリアルタイムで挿入され、それらのメディア セグメントの URL リダイレクトとしてプレーヤーに配信されます。
VOD ストリームでは、再生の開始前に広告が選択され、各連続配信広告に対応するストリーム マニフェストのセットとしてマニフェスト マニピュレータに配信されます。
マニフェスト マニピュレータ
マニフェスト マニピュレータとは、クライアントの動画プレーヤーからストリーム セッション ID を受け取り、それを使用して広告をストリームに関連付け、ストリーム マニフェストに埋め込みを行うサーバーです。
HLS ライブ ストリームの場合、マニフェスト マニピュレータはアド マネージャーと直接通信しません。代わりに、アド マネージャーの URL を使用してストリーム マニフェストに広告メディア セグメントを配置し、クライアントの動画プレーヤーが広告メディア セグメント ファイルをリクエストできるようにします。
VOD ストリームの場合、マニフェスト マニピュレータはアド マネージャーと直接通信して広告をリクエストし、ストリーミング マニフェストのセットを受信してコンテンツ ストリームと統合します。結合されたマニフェストは、再生のためにクライアントの動画プレーヤーに送信されます。
クライアント動画プレーヤー
クライアント動画プレーヤーは、広告を含む動画ストリームを最終的に再生するアプリまたはウェブサイトです。その前に、アド マネージャーにストリーム ID をリクエストし、その ID をマニフェスト マニピュレータに渡して、再生するストリーミング マニフェストを受け取ります。また、インストリーム メタデータの監視や広告トラッキング イベントのトリガーも行います。
ライブ配信と VOD 連続配信広告の違い
ライブ配信と VOD 連続配信配信は、一見よく似ているように見えることがあります。
ただし、2 つのワークフローには重要な違いがいくつかあります。
ライブ配信連続配信広告 |
VOD 連続配信広告の配信 |
クライアントの動画プレーヤーは、再生全体を通して必要に応じてアド マネージャーに広告をリクエストします。これらの広告は、早期広告ブレーク通知を使用して事前に選択できます。 |
マニフェスト マニピュレータは、再生の開始前にアド マネージャーからすべての広告をリクエストします。 |
HLS ストリームの場合、マニフェスト マニピュレータはアド マネージャーを直接操作するのではなく、必要に応じてクライアントの動画プレーヤーがリクエストする広告セグメント URL を生成します。
|
マニフェスト マニピュレータは、クライアントの動画プレーヤーのストリーム マニフェストを生成する前に、アド マネージャーに直接広告をリクエストします。 |
連続配信広告が指定された広告ブレークより短い場合、アド マネージャーではスレートが挿入されることがあります。
|
スレートは不要またはサポートされていない。
|
広告をリクエストするには、ライブ ストリーム イベントとエンコード プロファイルをアド マネージャーに登録する必要があります。 |
広告をリクエストする前に、アド マネージャーで設定を行う必要はありませんが、マニフェスト マニピュレータは、広告リクエストごとに、ストリームに関連するエンコード プロファイルと広告タグを提供する必要があります。 |
Live または VOD の連続配信広告を処理する場合は、この違いに留意してください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-21 UTC。
[null,null,["最終更新日 2025-08-21 UTC。"],[[["\u003cp\u003eDAI pod serving enables server-side ad insertion with Google Ads without sending content to Google's servers, allowing flexibility with existing video partners or custom manifest manipulation.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize the IMA DAI SDK for seamless integration across various platforms or follow client video player guides for custom app development.\u003c/p\u003e\n"],["\u003cp\u003eThe DAI pod serving architecture involves three core components: Google Ad Manager, a manifest manipulator (handling ad insertion in stream manifests), and the client video player (for playback and ad tracking).\u003c/p\u003e\n"],["\u003cp\u003eLivestream and VOD pod serving differ in how ads are requested and inserted: livestream requests ads during playback (potentially using early ad break notifications), while VOD requests all ads upfront.\u003c/p\u003e\n"],["\u003cp\u003eLivestream pod serving may utilize slate for short ad pods and requires pre-registration of events and encoding profiles, while VOD pod serving has no slate and requires ad tag and encoding profile information with each request.\u003c/p\u003e\n"]]],[],null,["# Learn DAI Pod Serving API\n\n[Pod serving](//support.google.com/admanager/answer/10492367) lets you perform\nserver-side ad insertion with Google ads, without sending your content to\nGoogle's DAI servers. You can work with your existing Video Technical\nPartner to manipulate your manifest or implement your own manifest manipulation\nserver using the DAI Pod Serving API\n([Live](/ad-manager/dynamic-ad-insertion/api/pod-serving/live) or\n[VOD](/ad-manager/dynamic-ad-insertion/api/pod-serving/vod)).\n\nYou can use the Interactive Media Ads (IMA) DAI SDK to develop client apps for\nthe web and mobile platforms that seamlessly interact with the DAI Pod Serving\nAPI. To configure the IMA DAI SDK with DAI Pod Serving API, refer to the guide\nthat's specific to your client app's platforms (Android, Chromecast, HTML5, iOS,\nRoku, tvOS) for Live or VOD stream format.\n\nIf you have special requirements that are not supported by the IMA DAI SDK, you\ncan follow the client video player guide\n([Live](/ad-manager/dynamic-ad-insertion/api/pod-serving/live/client) or\n[VOD](/ad-manager/dynamic-ad-insertion/api/pod-serving/vod/client)) to develop\nyour own client apps.\n\nDAI pod serving components\n--------------------------\n\nAn implementation of the DAI Pod Serving API consists of three main components:\n\n### Google Ad Manager\n\nGoogle Ad Manager is a hosted service that creates and manages user stream\nsessions, selects ads to serve, encodes them as streaming segments, and delivers\nthem to the client video player when requested.\n\nIn live streams, ads are inserted in real time when specific segments are\nrequested by the client video player and are delivered to the player as URL\nredirects for those media segments.\n\nIn VOD streams, ads are selected before playback begins and are delivered to\nthe manifest manipulator as a set of stream manifests corresponding to each\nad pod.\n\n### Manifest manipulator\n\nA manifest manipulator is a server that receives a stream session ID from\nthe client video player, uses it to associate ads with that stream, and\nembed those ads into the stream manifest.\n\nFor HLS live streams, the manifest manipulator doesn't communicate directly\nwith Ad Manager. Instead, it places ad media segments in the stream manifest\nwith Ad Manager URLs so that the client video player can request the ad media\nsegment files.\n\nFor VOD streams, the manifest manipulator communicates directly with Ad Manager\nto request ads, and receives a set of streaming manifests to merge with the\ncontent stream. The combined manifest is then sent to the client video player\nfor playback.\n\n### Client video player\n\nThe client video player is the app or website that eventually plays back the\nvideo stream containing ads. Before doing so, it requests a stream ID from\nAd Manager and then passes that ID to the manifest manipulator to receive a\nstreaming manifest to play. It's also in charge of watching for in-stream\nmetadata and triggering ad tracking events.\n\nLivestream versus VOD pod serving\n---------------------------------\n\nAt a glance, livestream and VOD pod serving might appear very similar.\nHowever, there are several significant differences between the two workflows.\n\n| Livestream pod serving | VOD pod serving |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| The client video player requests ads from Ad Manager as needed throughout playback. These ads can be preselected using *early ad break notifications*. | The manifest manipulator requests all ads from Ad Manager before playback begins. |\n| With HLS streams, the manifest manipulator doesn't directly interact with Ad Manager, but instead generates ad segment URLs for the client video player to request as needed. | The manifest manipulator directly requests ads from Ad Manager before generating the stream manifest for the client video player. |\n| Ad Manager might insert slate if an ad pod is shorter than a specified ad break. | Slate is not needed or supported. |\n| You must register the livestream event and encoding profiles with Ad Manager before ads can be requested. | You don't need to perform any setup in Ad Manager before ads can be requested, but the manifest manipulator must provide the relevant encoding profiles and ad tag for your stream on each ad request. |\n\nIt's important to keep these differences in mind as you proceed with\n[Live](/ad-manager/dynamic-ad-insertion/api/pod-serving/live) or\n[VOD](/ad-manager/dynamic-ad-insertion/api/pod-serving/vod) pod serving."]]