ภาพรวมสำหรับสตรีม VOD
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
DAI Pod Serve API จะแสดงไฟล์ Manifest ของพ็อดโฆษณาวิดีโอแบบอัตราบิตที่ปรับเปลี่ยนได้ ซึ่งจัดเตรียมให้สามารถนำไปต่อเข้ากับเพลย์ลิสต์สื่อ HLS หรือ MPEG-DASH ที่แสดงต่อผู้ใช้ได้โดยตรง
การผสานรวมโดยทั่วไปกับ DAI Pod Serve API มี 3 องค์ประกอบหลัก ได้แก่
Google Ad Manager ซึ่งเป็นแอปโปรแกรมเล่นวิดีโอไคลเอ็นต์ ซึ่งมักสร้างขึ้นโดยใช้
SDK โฆษณาสื่ออินเทอร์แอกทีฟ (IMA) และอุปกรณ์จัดการไฟล์ Manifest

Ad Manager
Ad Manager มีหน้าที่ส่งพ็อดโฆษณาไปยังเครื่องมือการจัดการไฟล์ Manifest
เครื่องมือการจัดการไฟล์ Manifest จะโต้ตอบกับ Pod Serve
API ของ Ad Manager เพื่อขอพ็อดโฆษณา บริการมีหน้าที่รับผิดชอบดังต่อไปนี้
- การสร้างเซสชันสตรีมสำหรับคำขอแต่ละรายการจากแอปโปรแกรมเล่นวิดีโอของไคลเอ็นต์ การเลือกโฆษณา การสร้างพ็อดโฆษณา และการแสดงรูปแบบเพื่อให้ตรงกับโปรไฟล์การเข้ารหัสเนื้อหา หรือที่เรียกว่า "การปรับสภาพครีเอทีฟโฆษณาวิดีโอ"
(ขั้นตอนที่ 1 และ 2 ในแผนภาพด้านบน)
- การตอบสนองต่อคำขอพ็อดโฆษณาจากเครื่องมือการจัดการไฟล์ Manifest และมอบไฟล์ Manifest ของพ็อดโฆษณาที่เข้ารหัสอย่างถูกต้องเพื่อนำไปต่อกับสตรีม
(ขั้นตอนที่ 4 และ 5)
- การตอบสนองต่อคำขอข้อมูลเมตาของพ็อดโฆษณาจากแอปโปรแกรมเล่นวิดีโอไคลเอ็นต์และจัดเตรียมตารางตรวจสอบสำหรับเหตุการณ์โฆษณา (ขั้นตอนที่ 7 และ 8)
- การรับและประมวลผลคำสั่ง ping การติดตามที่แอปโปรแกรมเล่นวิดีโอของไคลเอ็นต์ได้รับ (ขั้นตอนที่ 10)
แอปโปรแกรมเล่นวิดีโอของไคลเอ็นต์
แอปโปรแกรมเล่นวิดีโอของไคลเอ็นต์อาจเป็นแอปทีวี แอปบนอุปกรณ์เคลื่อนที่ หรือเว็บแอปที่ผู้ใช้ดูสตรีมวิดีโอก็ได้ โปรแกรมเล่นจะมีหน้าที่รับผิดชอบดังต่อไปนี้
- การขอทรัพยากรสตรีมจาก Ad Manager และรับออบเจ็กต์สตรีมที่แสดงเซสชันการเล่นครั้งเดียวของเนื้อหาวิดีโอที่เฉพาะเจาะจง (ขั้นตอนที่ 1 และ 2)
- การขอไฟล์ Manifest ของสตรีมจากโปรแกรมจัดการไฟล์ Manifest และเริ่มเล่น (ขั้นตอนที่ 3 และ 6)
- การขอข้อมูลเมตาของพ็อดโฆษณาจาก Ad Manager ซึ่งอธิบายเหตุการณ์โฆษณาที่ฝังอยู่ในเหตุการณ์ข้อมูลเมตาที่กำหนดเวลาของสตรีม (ขั้นตอนที่ 7 และ 8)
- การฟังโค้ดเรียกกลับที่มีเหตุการณ์ข้อมูลเมตาตามลำดับเวลาที่ฝังอยู่ในสตรีมเสียงหรือวิดีโอที่มีรหัสสื่อโฆษณา (ขั้นตอนที่ 9)
- การค้นหา URL การยืนยันโดยการจับคู่รหัสที่ฝังเหล่านี้กับเหตุการณ์โฆษณา
และแจ้งให้ Ad Manager ทราบว่ามีเหตุการณ์โฆษณาเหล่านี้เกิดขึ้นเรียบร้อยแล้ว
(ขั้นตอนที่ 10)
หากต้องการเรียนรู้เพิ่มเติมเกี่ยวกับการใช้แอปโปรแกรมเล่นวิดีโอของไคลเอ็นต์ โปรดดูคู่มือ IMA SDK สำหรับแพลตฟอร์มของคุณ ซึ่งได้แก่
Android,
HTML5,
iOS หรือ
tvOS
หากต้องการใช้งานที่กำหนดเอง โปรดดูคำแนะนำเกี่ยวกับแอปโปรแกรมเล่นวิดีโอไคลเอ็นต์สำหรับ DAI
VOD Pod Serve API
เครื่องมือจัดการไฟล์ Manifest
เครื่องมือการจัดการไฟล์ Manifest คือเซิร์ฟเวอร์ที่ทำหน้าที่โฮสต์ไฟล์ Manifest ของสตรีมที่ให้ไว้กับแอปโปรแกรมเล่นวิดีโอของไคลเอ็นต์ โดยเซิร์ฟเวอร์นี้มีหน้าที่ดังนี้
- การขอไฟล์ Manifest ของพ็อดโฆษณาจาก Ad Manager (ขั้นตอนที่ 4 และ 5)
- ต่อไฟล์ Manifest ของโฆษณาเหล่านี้ลงในสตรีมเนื้อหา VOD ที่มีอยู่และส่งไฟล์ Manifest สุดท้ายไปยังแอปโปรแกรมเล่นวิดีโอของไคลเอ็นต์ (ขั้นตอนที่ 3 และ 6)
หากต้องการดูข้อมูลเพิ่มเติมเกี่ยวกับการใช้เครื่องมือจัดการไฟล์ Manifest ที่กำหนดเอง โปรดดูคู่มือสำหรับโปรแกรมจัดการไฟล์ Manifest สำหรับ API การให้บริการ DAI VOD Pod
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-21 UTC
[null,null,["อัปเดตล่าสุด 2025-08-21 UTC"],[[["\u003cp\u003eThe DAI Pod Serving API delivers adaptive bitrate video ad pods for seamless integration into HLS or MPEG-DASH playlists.\u003c/p\u003e\n"],["\u003cp\u003eA typical integration involves Google Ad Manager, a client video player app (often using the IMA SDK), and a manifest manipulator.\u003c/p\u003e\n"],["\u003cp\u003eAd Manager handles ad pod delivery, stream session creation, ad selection, encoding, and tracking.\u003c/p\u003e\n"],["\u003cp\u003eThe client video player app requests streams, manifests, and ad metadata, and handles ad event verification.\u003c/p\u003e\n"],["\u003cp\u003eThe manifest manipulator stitches ad manifests into the content stream, creating the final manifest for the client video player.\u003c/p\u003e\n"]]],["The DAI Pod Serving API involves three components: Ad Manager, a client video player app, and a manifest manipulator. Ad Manager delivers ad pods, manages stream sessions, provides ad pod manifests and metadata, and processes tracking pings. The client app requests streams, requests and plays manifests, retrieves ad metadata, and sends ad event notifications. The manifest manipulator requests ad pod manifests from Ad Manager and then stitches them into the content stream, providing the final manifest to the client app.\n"],null,["# Overview for VOD streams\n\nThe DAI Pod Serving API provides adaptive-bitrate video ad pod manifests,\nprepared in such a way that they can be stitched directly into a user-facing HLS\nor MPEG-DASH media playlist.\n\nA typical integration with the DAI Pod Serving API has three main components:\nGoogle Ad Manager, a client video player app---commonly built using\nthe [Interactive Media Ads (IMA) SDK](/interactive-media-ads)---and a\nmanifest manipulator.\n\nAd Manager\n----------\n\nAd Manager is responsible for delivering ad pods to the manifest manipulator.\nThe manifest manipulator interacts with Ad Manager's [Pod Serving\nAPI](//support.google.com/admanager/answer/10492367#dai-pod-serving)\nto request the ad pods. The service has these responsibilities:\n\n- Creating a stream session for each request from the client video player app, selecting ads, building ad pods and providing renditions to match your content encoding profiles, also called \"video creative conditioning\". (Steps 1 and 2 in the diagram above)\n- Responding to ad pod requests from the manifest manipulator and providing properly encoded ad pod manifests for stitching into streams. (Steps 4 and 5)\n- Responding to ad pod metadata requests from the client video player app and providing a lookup table for ad events. (Steps 7 and 8)\n- Receiving and processing tracking pings received by the client video player app. (Step 10)\n\nClient video player app\n-----------------------\n\nThe client video player app can be a TV app, mobile app, or web app where\nusers watch the video stream. The player has these responsibilities:\n\n- Requesting a stream resource from Ad Manager and receiving a stream object that represents a single playback session of a specific video asset. (Steps 1 and 2)\n- Requesting a stream manifest from the manifest manipulator and beginning playback. (Steps 3 and 6)\n- Requesting ad pod metadata from Ad Manager, which describes the ad events embedded in the stream's timed metadata events. (Steps 7 and 8)\n- Listening to the video player for callbacks with timed metadata events embedded in the audio or video stream that contain ad media IDs. (Step 9)\n- Looking up the verification URLs by matching these embedded IDs to ad events and notifying Ad Manager that these ad events have successfully occurred. (Step 10)\n\nTo learn more about implementing the client video player app, see the\nIMA SDK guide for your platform:\n[Android](/ad-manager/dynamic-ad-insertion/sdk/android?service=pod),\n[HTML5](/ad-manager/dynamic-ad-insertion/sdk/html5?service=pod),\n[iOS](/ad-manager/dynamic-ad-insertion/sdk/ios?service=pod), or\n[tvOS](/ad-manager/dynamic-ad-insertion/sdk/tvos?service=pod).\nFor custom implementations, see our [client video player app\nguide](/ad-manager/dynamic-ad-insertion/api/pod-serving/vod/client) for the DAI\nVOD Pod Serving API.\n\nManifest manipulator\n--------------------\n\nThe manifest manipulator is the server in charge of hosting the stream manifest\nprovided to the client video player app. The server has these responsibilities:\n\n- Requesting ad pod manifests from Ad Manager. (Steps 4 and 5)\n- Stitching these ad manifests into the existing VOD content stream and providing the final manifest to the client video player app. (Steps 3 and 6)\n\nTo learn more about implementing a custom manifest manipulator, see the\n[manifest manipulator\nguide](/ad-manager/dynamic-ad-insertion/api/pod-serving/vod/manipulator) for the\nDAI VOD Pod Serving API."]]