IMAAdPodInfo

@interface IMAAdPodInfo : NSObject

Simple data object containing podding metadata.

  • Total number of ads in the pod this ad belongs to. Will be 1 for standalone ads.

    Declaration

    Swift

    var totalAds: Int32 { get }

    Objective-C

    @property (readonly, nonatomic) int totalAds;
  • The position of this ad within an ad pod. Will be 1 for standalone ads.

    Declaration

    Swift

    var adPosition: Int32 { get }

    Objective-C

    @property (readonly, nonatomic) int adPosition;
  • Specifies whether the ad is a bumper. Bumpers are short videos used to open and close ad breaks.

    Declaration

    Swift

    var isBumper: Bool { get }

    Objective-C

    @property (readonly, nonatomic) BOOL isBumper;
  • Returns the index of the ad pod. For live streams, always returns -1. For video on demand (VOD), for a preroll pod, returns 0. For midrolls 1, 2, ..., n is returned. For a postroll pod, n+1...n+x is returned. Defaults to 0 if this ad is not part of a pod, or this pod is not part of a playlist.

    Declaration

    Swift

    var podIndex: Int32 { get }

    Objective-C

    @property (readonly, nonatomic) int podIndex;
  • The position of the pod in the content in seconds. Pre-roll returns 0, post-roll returns -1 and mid-rolls return the scheduled time of the pod.

    Declaration

    Swift

    var timeOffset: TimeInterval { get }

    Objective-C

    @property (readonly, nonatomic) NSTimeInterval timeOffset;
  • The maximum duration of the pod in seconds. For unknown duration, -1 is returned.

    Declaration

    Swift

    var maxDuration: TimeInterval { get }

    Objective-C

    @property (readonly, nonatomic) NSTimeInterval maxDuration;