हमारे प्रॉडक्ट के बारे में चर्चा करने और सुझाव/राय देने के लिए, Google विज्ञापन और मेज़रमेंट कम्यूनिटी सर्वर में Ad Manager के आधिकारिक Discord चैनल से जुड़ें.
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
AdPodInfo
classpublic
डाइनैमिक विज्ञापन इंसर्शन के दौरान, विज्ञापन पॉड की जानकारी वाले ऑब्जेक्ट को दिखाने वाली क्लास.
तरीके
getAdPosition
getAdPosition() एक नंबर दिखाता है
रिटर्न
number
getMaxDuration
getMaxDuration() एक संख्या दिखाता है
रिटर्न
number
getPodIndex
getPodIndex() को नंबर देता है
विज्ञापन पॉड का इंडेक्स दिखाता है.
डीएआई वीओडी: प्रीरोल पॉड के लिए, 0 दिखाता है. बीच में दिखने वाले विज्ञापनों के लिए, 1, 2,...,N दिखाता है.
पोस्टरोल पॉड के लिए, -1 दिखाता है. अगर यह विज्ञापन किसी प्लेलिस्ट के तौर पर सेट नहीं है या यह पॉड किसी प्लेलिस्ट का हिस्सा नहीं है, तो यह वैल्यू डिफ़ॉल्ट रूप से 0 पर सेट हो जाती है.
डीआई (डायरेक्ट इन्वेंट्री) लाइव स्ट्रीम: प्री-रोल पॉड के लिए, 0 दिखाता है. बीच में दिखने वाले विज्ञापनों के लिए, ब्रेक का आईडी दिखाता है. अगर पॉड इंडेक्स का पता नहीं चलता है, तो -2 दिखाता है (अंदरूनी गड़बड़ी).
[null,null,["आखिरी बार 2025-08-21 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe \u003ccode\u003eAdPodInfo\u003c/code\u003e class provides information about ad pods during dynamic ad insertion.\u003c/p\u003e\n"],["\u003cp\u003eIt includes methods to access the ad position, maximum duration, pod index, time offset, and total number of ads within the pod.\u003c/p\u003e\n"]]],["The `AdPodInfo` class provides information about an ad pod during dynamic ad insertion. Key methods include: `getAdPosition`, which returns the ad's position within the pod; `getMaxDuration`, which returns the maximum duration of the pod; `getPodIndex`, which returns the index of the pod; `getTimeOffset`, returning the pod's time offset; and `getTotalAds`, which provides the total number of ads in the pod. Each method returns a numerical value.\n"],null,["# Class: AdPodInfo\n\nAdPodInfo\n=========\n\nclass public\n\nA class representing an ad pod info object during dynamic ad insertion.\n\nMethods\n-------\n\n### getAdPosition\n\ngetAdPosition() returns number\n\nReturns\n\n: `number`\n\n### getMaxDuration\n\ngetMaxDuration() returns number\n\nReturns\n\n: `number`\n\n### getPodIndex\n\ngetPodIndex() returns number\n\nReturns the index of the ad pod.\n\nDAI VOD: For a preroll pod, returns 0. For midrolls, returns 1, 2,...,N.\nFor a postroll pod, returns -1. Defaults to 0 if this ad is not part of a\npod, or this pod is not part of a playlist.\n\nDAI live stream: For a preroll pod, returns 0. For midrolls, returns the\nbreak ID. Returns -2 if pod index cannot be determined (internal error).\n\nReturns\n\n: `number`\n\n### getTimeOffset\n\ngetTimeOffset() returns number\n\nReturns\n\n: `number`\n\n### getTotalAds\n\ngetTotalAds() returns number\n\nReturns\n\n: `number`"]]