Interface ResolvedAdPodInfo

  • All Implemented Interfaces:
    android.os.Parcelable

    
    public interface ResolvedAdPodInfo
     implements Parcelable
                        

    An ad may be part of a pod of ads. This object exposes metadata related to that pod, such as the number of ads in the pod and the ad position within the pod.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Integer getAdPosition() the position of the ad within the pod.
      abstract Integer getTotalAds() the total number of ads contained within this pod, including bumpers.
      abstract Long getTimeOffsetMillis() the content time offset at which the current ad pod was scheduled.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getAdPosition

         abstract Integer getAdPosition()

        the position of the ad within the pod. The value returned is one-based, for example, 1 of 2, 2 of 2, etc. If the ad is not part of a pod, this will return 1.

      • getTotalAds

         abstract Integer getTotalAds()

        the total number of ads contained within this pod, including bumpers. If the ad is not part of a pod, this will return 1.

      • getTimeOffsetMillis

         abstract Long getTimeOffsetMillis()

        the content time offset at which the current ad pod was scheduled. For preroll pod, 0 is returned, For midrolls, the scheduled time is returned in milliseconds, For postroll, -1 is returned. Defaults to 0 if this ad is not part a pod, or the pod is not part of an ad playlist.