हमारे प्रॉडक्ट के बारे में चर्चा करने और सुझाव/राय देने के लिए, Google विज्ञापन और मेज़रमेंट कम्यूनिटी सर्वर में Ad Manager के आधिकारिक Discord चैनल से जुड़ें.
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
SDK टूल के ऑपरेशन मोड
विज्ञापन से मिले विज्ञापन रिस्पॉन्स के आधार पर, SDK टूल एक या उससे ज़्यादा मोड में काम कर सकता है
सर्वर.
एक विज्ञापन
ऐसा विज्ञापन जिसे startIMAAdsManager पर मैसेज भेजा गया है. कोई खास शुरुआत नहीं की जा सकती
एक विज्ञापन चलाने के लिए ज़रूरी है.
विज्ञापनों का पॉड
ऐसे कई विज्ञापन जो start मैसेज भेजे जाने पर बार-बार चलते हैं
IMAAdsManager. इसके लिए किसी खास तरह की शुरुआत की ज़रूरत नहीं होती
विज्ञापनों का एक पॉड चलाया जा सकता है.
विज्ञापन के नियम
किसी वीडियो में दिखाए गए विज्ञापन के लिए ब्रेक की वह प्लेलिस्ट जिसे किसी खास समय पर शेड्यूल किया गया हो
कॉन्टेंट. विज्ञापन नियम मोड में start मैसेज को अनदेखा कर दिया जाता है. यहां ये काम किए जा सकते हैं
एक ही प्लेलिस्ट में कई विज्ञापन के लिए ब्रेक शेड्यूल किए गए हों (उदाहरण के लिए, वीडियो शुरू होने से पहले,
वीडियो के बीच में दिखने वाले विज्ञापन, वीडियो खत्म होने के बाद विज्ञापन. लागू करने से जुड़ी ज़्यादा जानकारी के लिए, यहां देखें:
विज्ञापन नियम सेक्शन देखें.
विज्ञापन के नियम
IMA
tvOS SDK टूल, पूरी तरह से ऑटोमेटेड विज्ञापन प्लेलिस्ट के साथ काम करता है. यह सुविधा
वीडियो में, बताए गए तरीके से विज्ञापन के लिए ब्रेक डालें
Google Ad Manager
ट्रैफ़िक बढ़ाने के सबसे सही तरीके हैं. यह वीडियो प्लेयर कोड को भी काफ़ी आसान बनाता है
विज्ञापन के लिए ब्रेक की सुविधा देना ज़रूरी है. इसमें वीडियो शुरू होने से पहले, वीडियो के बीच में, और वीडियो खत्म होने के बाद दिखने वाले विज्ञापन शामिल हैं.
Ad Manager में विज्ञापन दिखाते समय, विज्ञापन के लिए अलग-अलग नियम तय किए जा सकते हैं
जैसे कि "कॉन्टेंट की शुरुआत में हमेशा विज्ञापन के लिए ब्रेक चलाएं" या "एक मिनट का विज्ञापन ब्रेक चलाएं
कॉन्टेंट दिखने में मदद मिलती है".
विज्ञापनों का अनुरोध किए जाने पर, विज्ञापन सर्वर विज्ञापन प्लेलिस्ट दिखा सकता है. SDK टूल
प्लेलिस्ट प्रोसेस करने के बाद, वीडियो में दिखने वाले विज्ञापनों के लिए ब्रेक अपने-आप शेड्यूल हो जाते हैं
बताया गया है.
AdsManager शुरू करते समय, IMAContentPlayhead
ऑब्जेक्ट को initializeWithContentPlayhead:adsRenderingSettings: के ज़रिए पास किया जाता है
कॉल. अगर अपना कॉन्टेंट दिखाने के लिए किसी AVPlayer का इस्तेमाल किया जा रहा है, तो
IMAAVPlayerContentPlayhead का इंस्टेंस, SDK टूल में तब जोड़ा जा सकता है, जब
adDisplayContainer. इस ऑब्जेक्ट का उपयोग विज्ञापन के प्रदर्शन की प्रोग्रेस को ट्रैक करने के लिए किया जाता है
विज्ञापन मैनेजर में बताए गए समय पर ब्रेक अपने-आप डाले जाते हैं.
IMAAdsManager शुरू करने के कॉल को इसमें बदलें
initializeWithContentPlayhead:self का इस्तेमाल करें.
IMAAdsManagerDelegate
का इस्तेमाल, विज्ञापन के लिए ब्रेक के दौरान वीडियो को रोकने और फिर से शुरू करने के लिए किया जाता है.
ध्यान दें: कॉन्टेंट चलने के बाद या
उपयोगकर्ता ने प्लेबैक बंद कर दिया है, contentComplete को कॉल ज़रूर करें
IMAAdsLoader पर सेव किया हो, ताकि SDK टूल को यह बताया जा सके कि
ने चलाना खत्म कर दिया. अगर शेड्यूल किया गया है, तो SDK टूल, वीडियो खत्म होने के बाद दिखने वाले विज्ञापन को चलाता है.
ALL_ADS_COMPLETED इवेंट तब शुरू होता है, जब सभी विज्ञापन के लिए ब्रेक की तय स्थिति होती है
चलाया गया है. साथ ही, ध्यान रखें कि कॉन्टेंट ट्रैकिंग तब शुरू होती है, जब
IMAAdsManager का initializeWithContentPlayhead:adsRenderingSettings
तरीका को कॉल किया गया है और आपको हमेशा initializeWithContentPlayhead:adsRenderingSettings को कॉल करना चाहिए
उन्हें हल करने में मदद मिलती है.
[null,null,["आखिरी बार 2025-08-31 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe tvOS SDK utilizes a WebView for ad requests, parsing responses, tracking, and rendering the ad UI.\u003c/p\u003e\n"],["\u003cp\u003eIt supports various ad formats including single ads, ad pods, and ad rules (playlists of ad breaks).\u003c/p\u003e\n"],["\u003cp\u003eAd rules, managed through Google Ad Manager, allow for automated ad insertion at designated times within the content.\u003c/p\u003e\n"],["\u003cp\u003eThe SDK uses \u003ccode\u003eIMAContentPlayhead\u003c/code\u003e, which integrates with AVPlayer or a custom implementation, to synchronize ad breaks with content playback.\u003c/p\u003e\n"],["\u003cp\u003eUpon content completion, calling \u003ccode\u003econtentComplete\u003c/code\u003e on \u003ccode\u003eIMAAdsLoader\u003c/code\u003e triggers any scheduled post-roll ads and signals the completion of all ads.\u003c/p\u003e\n"]]],[],null,["# Automate ad playlists\n\n| **Note:** The tvOS SDK uses a WebView to load a JavaScript back end. This WebView is used to make ad requests, parse responses, ping tracking URLs, and render the ad UI.\n\nSDK operation modes\n-------------------\n\nThe SDK can operate in one or more modes, depending on the ad response it receives from the ad\nserver.\n\nSingle ad\n: An ad that can be played at any time when the `start`\n message is sent to the `IMAAdsManager`. No special initialization\n is necessary to play a single ad.\n:\n\nAd pod\n: Several ads that play back to back when the `start` message is sent to\n the `IMAAdsManager`. No special initialization is necessary to\n play a single ad pod.\n\nAd rules\n: A playlist of ad breaks scheduled at certain times against particular\n content. The `start` message is ignored in ad rules mode. There can\n be several ad breaks scheduled within a single playlist (e.g., pre-roll,\n mid-roll, post-roll). For further implementation details, see the\n [Ad Rules](#ad-rules) section below.\n\nAd rules\n--------\n\nIMA\ntvOS SDK supports fully automated ad playlists. This feature\ninserts ad breaks into the content as specified in\n[Google Ad Manager](//admanager.google.com/)\nwhen trafficking your ads. It also greatly simplifies the video player code\nnecessary to support ad breaks, including pre-rolls, mid-rolls, and post-rolls.\n\n- When trafficking ads in Ad Manager, it is possible to specify various ad rules like \"always play ad break at the beginning of the content\" or \"play a one-minute ad break every 30 minutes of content\".\n- When ads are requested, the ad server can return an ad playlist. The SDK processes the playlist and automatically schedules the ad breaks that have been specified.\n- When initializing the `AdsManager`, an `IMAContentPlayhead` object is passed in via the `initializeWithContentPlayhead:adsRenderingSettings:` call. If you are using an AVPlayer to display your content, you pass an instance of `IMAAVPlayerContentPlayhead` to the SDK when you create your `adDisplayContainer`. This object is used to track the progress of the content playback so ad breaks are automatically inserted at the times specified in Ad Manager. \n\n **With AVPlayer:** \n\n ```objective-c\n IMAContentPlayhead *contentPlayhead =\n [[IMAAVPlayerContentPlayhead alloc] initWithAVPlayer:self.contentAVPlayer];\n IMAAdsRequest *request = [[IMAAdsRequest alloc] initWithAdTagUrl:adTagUrl\n adDisplayContainer:adDisplayContainer\n contentPlayhead:contentPlayhead\n userContext:nil];\n ```\n\n **Without AVPlayer:**\n 1. Implement the `IMAContentPlayhead` interface.\n 2. Implement `currentTime` to return the current time of your video player.\n 3. Change the `IMAAdsManager` initialization call to use `initializeWithContentPlayhead:self`.\n- The [IMAAdsManagerDelegate](/interactive-media-ads/docs/sdks/tvos/client-side/reference/Protocols/IMAAdsManagerDelegate) is used to pause and resume the content as ad breaks are played.\n\n**Note:** When the content has finished playing or\nthe user has stopped playback, be sure to call `contentComplete`\non the `IMAAdsLoader` in order to signal to the SDK that the content\nhas finished playing. The SDK then plays the post-roll ad break, if one has been scheduled.\nThe `ALL_ADS_COMPLETED` event is raised when all ad breaks have\nbeen played. In addition, note that content tracking begins when\n`IMAAdsManager`'s `initializeWithContentPlayhead:adsRenderingSettings`\nmethod is called and you should always call `initializeWithContentPlayhead:adsRenderingSettings`\nbefore playing content."]]