Wenn Sie sich mit anderen Nutzern über unsere Produkte austauschen und Feedback geben möchten, treten Sie dem offiziellen Ad Manager-Discord-Kanal auf dem Server der Google Advertising and Measurement Community bei.
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
AdPodInfo
classpublic
Eine Klasse, die ein Anzeigen-Pod-Infoobjekt bei der dynamischen Anzeigenbereitstellung darstellt.
Methoden
getAdPosition
getAdPosition() gibt eine Zahl zurück
Ausgabe
number
getMaxDuration
getMaxDuration() gibt eine Zahl zurück
Ausgabe
number
getPodIndex
getPodIndex() gibt eine Zahl zurück
Gibt den Index des Anzeigen-Pods zurück.
DAI VOD: Für einen Preroll-Pod wird „0“ zurückgegeben. Für Mid-Roll-Anzeigen wird „1“, „2“,…, „N“ zurückgegeben.
Für einen Postroll-Pod wird „-1“ zurückgegeben. Wenn diese Anzeige nicht Teil eines Pods ist oder dieser Pod nicht Teil einer Playlist ist, wird standardmäßig „0“ verwendet.
Livestream mit dynamischer Anzeigenbereitstellung: Für einen Pre-Roll-Pod wird „0“ zurückgegeben. Für Mid-Roll-Anzeigen wird die Werbeunterbrechungs-ID zurückgegeben. Gibt -2 zurück, wenn der Pod-Index nicht ermittelt werden kann (interner Fehler).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-07-26 (UTC)."],[[["`AdPodInfo` provides details about ad pods during dynamic ad insertion, including position, maximum duration, and total ads."],["The `getPodIndex()` method returns the index of the ad pod, varying for pre-roll, mid-roll, and post-roll placements in VOD and live streams."],["Other methods within the `AdPodInfo` class allow access to the ad position within the pod, the maximum allowed duration for ads, and the time offset for ad insertion."]]],["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"]]