סקירה כללית של שידורים חיים
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
ה-Pod הגשה API מאפשר גישה לרצפי מודעות וידאו עם קצב סיביות מותאם, כך שאפשר יהיה לחבר אותם ישירות לפלייליסט מדיה בפורמט HLS או MPEG
DASH שמוצג למשתמש.
ה-API הזה מיועד לבעלי תוכן דיגיטלי מתקדמים ולשותפים של טכנולוגיות וידאו.
כדי להשתמש ב-API הזה בקנה מידה נרחב, צריך תכנון והטמעה של תהליך מתוחכם להצגת מדיה, שלא נכלל במסמכי התיעוד האלה.
דרישות מוקדמות
לפני עיבוד של שידור חי באמצעות DAI Podserving API, תצטרכו ליצור אירוע בשידור חי באמצעות ממשק המשתמש של Google Ad Manager או באמצעות ה-API של האירוע החי.
רכיבים
כל הטמעה של ה-API להצגת Pod כוללת שלושה רכיבים: Google Ad Manager, נגן וידאו של הלקוח ושרת למניפולציות של מניפסט.

Ad Manager
Ad Manager אחראי להצגת המודעות למשתמשים, ואפשר לנהל אותו דרך Ad Manager SDK או דרך ממשק האינטרנט שלו. אלו האחריות של השירות:
- קבלת בקשות שידור מנגן הווידאו של הלקוח, קבלת החלטות ממודעות
והצגת גרסאות מתאימות לפרופילי קידוד התוכן שלך
- תגובה לבקשות שנשלחות מנגן הווידאו של הלקוח ואספקת החלק המתאים של רצף המודעות למשתמש הנתון
- קבלה ועיבוד של פינגים של מעקב מנגן הווידאו של הלקוח
נגן וידאו של לקוח
נגן הווידאו של הלקוח הוא האפליקציה או האתר שבהם הלקוחות משתמשים כדי להפעיל את זרם הווידאו שהתקבל. תחומי האחריות של השחקן הם:
- הפעלת משאב של שידור מ-Ad Manager וקבלת אובייקט שידור שמייצג סשן הפעלה יחיד של אירוע ספציפי בשידור חי.
- בקשת מניפסט של סטרימינג משרת שינוי מניפסט,
שמתחיל את ההפעלה
- לבצע דגימה תקופתית של מטא-נתונים של רצף מודעות מ-Ad Manager, שמתארת את אירועי המודעות שמוטמעים בפלחי המודעות של השידור.
- האזנה לאירועי מטא-נתונים מתוזמנים שהנגן מעלה ושמכילים מזהי מדיה של מודעות. השחקן מעביר אותם ל-Ad Manager כדי לוודא שאירועי המודעות התרחשו בהצלחה.
למידע נוסף על ההטמעה הנכונה של נגן הווידאו של הלקוח, תוכלו לעיין במדריך להצגת רצף מודעות בפלטפורמה שלכם:
למידע על הטמעות בהתאמה אישית, קראו את מדריך הלקוח להצגת רצף מודעות עבור DAI API.
שרת לטיפול במניפסטים
שרת מניפולציה של המניפסט הוא השרת שאחראי על אירוח
מניפסט הסטרימינג שמסופק לנגן הווידאו של הלקוח. אלה האחריות של השרת:
- טיפול בהעברת מניפסט לנגן הווידאו של הלקוח
- בקשה לתבנית תקופה מ-Ad Manager (רק לשידורים של MPEG DASH), כדי לאכלס פלחים של מודעות.
- הוספת כתובות URL של פלחי מודעות שמתארחים ב-Ad Manager למניפסט של שידור הווידאו (ב-HLS) או לתקופת המודעות (ל-MPEG DASH) במהלך הפסקות למודעות.
- הצגת המניפסט שהשתנה בנגן הווידאו של הלקוח.
מידע נוסף על הטמעת שרת של מניפולציה מותאם אישית של מניפסט זמין במדריך לשינויי מניפסט.
מילון מונחים
- אירוע בשידור חי: אירוע שבו נשמרים נתוני הגדרה חשובים לשידור החי, כמו פרופילים של קידוד. אירועים בשידור חי נוצרים באמצעות Ad Manager.
- אובייקט סטרימינג: אובייקט שמייצג סשן הפעלה יחיד של
נכס וידאו ספציפי. מאפיינים בולטים כוללים את מזהה מקור הנתונים
וכתובת ה-URL לאימות מדיה.
- רצף מודעות: קיבוץ של סרטוני מודעות שהוצגו בהפסקה למודעה
- פלחים של מודעות: קבצים של פלחים במדיה בשביל ההפסקות למודעות
- מטא-נתונים של רצף מודעות: מטא-נתונים של ההפסקות למודעות המשמשות להצגת ממשק המשתמש של המודעה בלקוח. לדוגמה, הסתרה של לחצני הדילוג במהלך המודעה
- מזהה מדיה של מודעה: מטא-נתונים שמקודדים כתגי ID3 בקבצים של פלחי מודעות. המטא-נתונים האלה משמשים כדי לזהות מתי התרחשו אירועים ספציפיים שקשורים למודעות במהלך ההפעלה, כמו התחלת המודעה או נקודת האמצע.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-01 (שעון UTC).
[null,null,["עדכון אחרון: 2025-08-01 (שעון UTC)."],[[["\u003cp\u003eThe Pod Serving API facilitates the integration of adaptive-bitrate video ad pods directly into HLS or MPEG DASH media playlists for advanced publishers and video technology partners.\u003c/p\u003e\n"],["\u003cp\u003eImplementing the Pod Serving API involves three core components: Google Ad Manager, which handles ad delivery and tracking; a client video player, which manages stream initialization and playback; and a manifest manipulation server, which modifies and serves the stream manifest.\u003c/p\u003e\n"],["\u003cp\u003eBefore using the API, a livestream event must be created via the Google Ad Manager UI or the live-event API, serving as a configuration resource for the livestream.\u003c/p\u003e\n"],["\u003cp\u003eThe client video player is responsible for initializing the stream, requesting the manifest, polling for ad pod metadata, and forwarding timed metadata events to Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003eThe manifest manipulation server handles manifest delivery, requests ad period templates, and inserts Ad Manager-hosted ad segment URLs or ad periods into the stream manifest during ad breaks.\u003c/p\u003e\n"]]],[],null,["# Overview for live streams\n\nThe Pod Serving API provides access to adaptive-bitrate video ad pods prepared\nin such a way that they can be stitched directly into a user-facing HLS or MPEG\nDASH media playlist.\n\nThis API is intended for advanced publishers and video technology partners.\nUsing this API at scale requires design and implementation of a sophisticated\nmedia serving workflow which is outside the scope of this documentation.\n\nPrerequisites\n-------------\n\nBefore processing a livestream through the DAI Podserving API, you\nwill need to create a\n[livestream event](/ad-manager/dynamic-ad-insertion/api/pod-serving/live/manipulator#livestreamevent)\nusing the Google Ad Manager UI, or the live-event API.\n\nComponents\n----------\n\nThere are three components that make up any implementation of the Pod Serving\nAPI: Google Ad Manager, a client video player, and a manifest manipulation\nserver.\n\n### Ad Manager\n\nAd Manager is responsible for delivering ads to the user and can be managed\nthrough either the Ad Manager SDK or its web interface. The service has these\nresponsibilities:\n\n- Receiving stream requests from the client video player, decisioning ads, and providing renditions to match your content encoding profiles\n- Responding to ad segment requests from the client video player and providing the appropriate portion of the ad pod for the given user\n- Receiving and processing tracking pings from the client video player\n\n### Client video player\n\nThe client video player is the app or website that clients use to play the\nresulting video stream. The player has these responsibilities:\n\n- Initializing a stream resource from Ad Manager and receiving a stream object that represents a single playback session of a specific livestream event.\n- Requesting a stream manifest from the manifest manipulation server, which starts playback\n- Periodically polling ad pod metadata from Ad Manager that describes the ad events embedded in the stream's ad segments\n- Listening for timed metadata events raised by the player that contain ad media IDs. Upon encountering these events, the player forwards them to Ad Manager to verify that ad events have successfully occurred.\n\nTo learn more about the proper implementation of the client video player, see\nthe pod serving guide for your platform:\n\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)\n- [tvOS](/ad-manager/dynamic-ad-insertion/sdk/tvos?service=pod)\n\nFor custom implementations, see our [pod serving client guide for the DAI\nAPI](/ad-manager/dynamic-ad-insertion/api/pod-serving/live/client).\n\n### Manifest manipulation server\n\nThe manifest manipulation server is the server in charge of hosting the\nstream manifest provided to the client video player. The server has these\nresponsibilities:\n\n- Handling manifest delivery to the client video player\n- Requesting a period template from Ad Manager (for MPEG DASH streams only), to populate with ad segments.\n- Inserting Ad Manager-hosted ad segment URLs into the video stream manifest (for HLS) or ad period (for MPEG DASH) during ad breaks.\n- Serving the modified manifest to the client video player.\n\nTo learn more about implementing a custom manifest manipulator server, see the\n[manifest manipulation\nguide](/ad-manager/dynamic-ad-insertion/api/pod-serving/live/manipulator).\n\nGlossary\n--------\n\n- **Livestream event**: An event that stores important configuration data for livestream, such as encoding profiles. Livestream events are created using Ad Manager.\n- **Stream object**: An object that represents a single playback session of a specific video asset. Notable properties include the stream ID and the media verification URL.\n- **Ad pod**: Grouping of ad videos shown in an ad break\n- **Ad segments**: Media segment files for the ad break\n- **Ad pod metadata**: Metadata for the ad break used to render ad UI on the client; for example, hide seek buttons during ad\n- **Ad media ID**: Metadata encoded as ID3 tags within ad segment files. This metadata is used to identify when specific ad-related events have occurred during playback, such as ad start or midpoint."]]