SDK टूल के आर्किटेक्चर के बारे में जानें
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इस गाइड में, SDK टूल के लाइफ़साइकल और आपके वीडियो स्ट्रीम प्लेयर, IMA डीएआई SDK, और विज्ञापन सर्वर के बीच इंटरैक्शन की खास जानकारी दी गई है.
बुनियादी इंटरैक्शन
यहां दिए गए डायग्राम में, आपके वीडियो प्लेयर, IMA DAI SDK, और Ad Manager 360 के बीच के इंटरैक्शन को दिखाया गया है. साथ ही, उन पर एनोटेशन भी दिए गए हैं.

वेब पेज या ऐप्लिकेशन, इनमें से किसी का इस्तेमाल करके IMA डीएआई SDK टूल को लोड करता है:
- HTML5 के लिए एम्बेड किया गया स्क्रिप्ट टैग
- Android, Google Cast, iOS, tvOS या Roku के लिए नेटिव ऐप्लिकेशन
IMA डीएआई SDK, Google Ad
Manager 360 से वीओडी स्ट्रीम या लाइव स्ट्रीम का अनुरोध करता है.
Ad Manager 360, उस वीडियो स्ट्रीम के साथ जवाब देता है जिसमें डाला गया विज्ञापन होता है
ब्रेक.
IMA डीएआई SDK टूल, जवाब को पार्स करता है और सूचना के आधार पर सही मीडिया टाइप तय करता है
आस-पास के वातावरण में मौजूद होती है. साथ ही, वीडियो स्ट्रीम (और
सहयोगी विज्ञापनों को भी शामिल कर सकते हैं.
वीडियो प्लेयर, IMA DAI SDK टूल के साथ वीडियो चलाने की जानकारी पर बातचीत करता है और विज्ञापन दिखाता है.
IMA SDK ज़रूरत के हिसाब से, इंप्रेशन पिंग और ट्रैकिंग इवेंट ट्रिगर करता है.
जीवनचक्र
इस डायग्राम में, IMA डीएआई SDK टूल की पूरी लाइफ़साइकल दिखाया गया है. कंस्ट्रक्टर और तरीका
कॉल को नीले रंग से हाइलाइट किया गया है, इवेंट को लाल रंग से हाइलाइट किया गया है और गड़बड़ियों को
शर्तों को लाल कनेक्टर और लाल टेक्स्ट से दिखाया गया है.

जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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, including companion ads.\u003c/p\u003e\n"],["\u003cp\u003eThroughout the process, the IMA SDK manages playback details, tracks ad impressions, and sends necessary event updates for monitoring and analysis.\u003c/p\u003e\n"],["\u003cp\u003eThe lifecycle of the SDK involves initialization, stream requests, ad playback, and event handling, with potential error scenarios addressed.\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."]]