Ürünlerimiz hakkında görüşlerinizi paylaşmak ve geri bildirimde bulunmak için Google Advertising and Measurement Community sunucusundaki resmi Ad Manager Discord kanalına katılın.
Koleksiyonlar ile düzeninizi koruyun İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
AdPodInfo
classpublic
Dinamik reklam ekleme sırasında reklam kapsülü bilgi nesnesini temsil eden bir sınıf.
Yöntemler
getAdPosition
getAdPosition() bir sayı döndürür
İadeler
number
getMaxDuration
getMaxDuration() bir sayı döndürür
İadeler
number
getPodIndex
getPodIndex() bir sayı döndürür
Reklam kapsülünün diznini döndürür.
DAI VOD: Reklam öncesi kapsülü için 0 değerini döndürür. Ara reklamlar için 1, 2,..., N değerini döndürür. Sonraki reklam kapsülü için -1 döndürür. Bu reklam bir kapsülün parçası değilse veya bu kapsül bir oynatma listesinin parçası değilse varsayılan olarak 0 değerine ayarlanır.
DAI canlı yayını: Ön reklam kapsülü için 0 döndürür. Ara reklamlar için ara verme kimliğini döndürür. Kapsül dizini belirlenemezse -2 döndürülür (dahili hata).
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-08-21 UTC."],[[["\u003cp\u003e\u003ccode\u003eAdPodInfo\u003c/code\u003e provides details about ad pods during dynamic ad insertion, including position, maximum duration, and total ads.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetPodIndex()\u003c/code\u003e method returns the index of the ad pod, varying for pre-roll, mid-roll, and post-roll placements in VOD and live streams.\u003c/p\u003e\n"],["\u003cp\u003eOther methods within the \u003ccode\u003eAdPodInfo\u003c/code\u003e class allow access to the ad position within the pod, the maximum allowed duration for ads, and the time offset for ad insertion.\u003c/p\u003e\n"]]],["The `AdPodInfo` class provides information about ad pods in dynamic ad insertion. Key actions include retrieving: the ad's position within the pod (`getAdPosition`), the maximum duration of the pod (`getMaxDuration`), and the ad pod's index (`getPodIndex`). `getPodIndex` returns different values for VOD and live streams, indicating preroll, midroll, and postroll status. Additionally, the class allows access to the time offset (`getTimeOffset`) and the total number of ads in the pod (`getTotalAds`).\n"],null,["AdPodInfo \nclass public\n\nA class representing an ad pod info object during dynamic ad insertion.\n\nMethods\n\ngetAdPosition\n\ngetAdPosition() returns number\n\nReturns\n\n: `number`\n\ngetMaxDuration\n\ngetMaxDuration() returns number\n\nReturns\n\n: `number`\n\ngetPodIndex\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\ngetTimeOffset\n\ngetTimeOffset() returns number\n\nReturns\n\n: `number`\n\ngetTotalAds\n\ngetTotalAds() returns number\n\nReturns\n\n: `number`"]]