Para analizar nuestros productos y proporcionar comentarios sobre ellos, únete al canal oficial de Discord de Ad Manager en el servidor de la Comunidad de Publicidad y Medición de Google.
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
AdPodInfo
classpublic
Es una clase que representa un objeto de información de grupo de anuncios durante la inserción de anuncios dinámicos.
Métodos
getAdPosition
getAdPosition() devuelve un número.
Muestra
number
getMaxDuration
getMaxDuration() muestra un número.
Muestra
number
getPodIndex
getPodIndex() muestra un número.
Devuelve el índice del grupo de anuncios.
VOD de la DAI: Para un grupo de anuncios previos al video, muestra 0. Para los anuncios durante el video, muestra 1, 2,…,N.
Para un pod de postroll, muestra -1. El valor predeterminado es 0 si este anuncio no forma parte de un grupo o si este grupo no forma parte de una playlist.
Transmisión en vivo de DAI: Para un grupo de anuncios previos al video, muestra 0. En el caso de los anuncios durante el video, muestra el ID de la pausa. Muestra -2 si no se puede determinar el índice del pod (error interno).
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 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"]]