Client side: Returns the index of the ad pod. For a preroll pod, returns 0.
For midrolls, returns 1, 2,…, N. For a postroll pod, returns -1. Defaults
to 0 if this ad is not part of a pod, or this pod is not part of a playlist.
DAI live stream: Returns the index of the ad pod. For a preroll pod, returns
For midrolls, returns the break ID. Returns -2 if pod index cannot be
determined (internal error).
DAI VOD: Returns the index of the ad pod. For a preroll pod, returns 0. For
midrolls, returns 1, 2,…,N. For a postroll pod, returns N+1…N+X.
Defaults to 0 if this ad is not part of a pod, or this pod is not part of a
playlist.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-21 UTC."],[[["\u003cp\u003e\u003ccode\u003eIMAAdPodInfo\u003c/code\u003e is a simple data object providing metadata about ad pods, such as total ads, ad position within the pod, and whether an ad is a bumper.\u003c/p\u003e\n"],["\u003cp\u003eIt includes information about the pod's position in the content stream, including pod index and time offset in seconds.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eIMAAdPodInfo\u003c/code\u003e can indicate if an ad is a pre-roll, mid-roll, or post-roll based on \u003ccode\u003epodIndex\u003c/code\u003e and \u003ccode\u003etimeOffset\u003c/code\u003e values.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can access properties like \u003ccode\u003etotalAds\u003c/code\u003e, \u003ccode\u003eadPosition\u003c/code\u003e, \u003ccode\u003eisBumper\u003c/code\u003e, \u003ccode\u003epodIndex\u003c/code\u003e, \u003ccode\u003etimeOffset\u003c/code\u003e, and \u003ccode\u003emaxDuration\u003c/code\u003e to understand the ad pod structure.\u003c/p\u003e\n"],["\u003cp\u003eIt provides the maximum duration of the ad pod; a value of -1 signifies an unknown duration.\u003c/p\u003e\n"]]],[],null,["# GoogleInteractiveMediaAds Framework Reference\n\nIMAAdPodInfo\n============\n\n @interface IMAAdPodInfo : NSObject\n\nSimple data object containing podding metadata.\n- `\n ``\n ``\n `\n\n ### [totalAds](#/c:objc(cs)IMAAdPodInfo(py)totalAds)\n\n `\n ` \n Total number of ads in the pod this ad belongs to. Will be 1 for standalone ads. \n\n #### Declaration\n\n Swift \n\n var totalAds: Int { get }\n\n Objective-C \n\n @property (nonatomic, readonly) NSInteger totalAds;\n\n- `\n ``\n ``\n `\n\n ### [adPosition](#/c:objc(cs)IMAAdPodInfo(py)adPosition)\n\n `\n ` \n The position of this ad within an ad pod. Will be 1 for standalone ads. \n\n #### Declaration\n\n Swift \n\n var adPosition: Int { get }\n\n Objective-C \n\n @property (nonatomic, readonly) NSInteger adPosition;\n\n- `\n ``\n ``\n `\n\n ### [isBumper](#/c:objc(cs)IMAAdPodInfo(py)isBumper)\n\n `\n ` \n Specifies whether the ad is a bumper. Bumpers are short videos used to open\n and close ad breaks. \n\n #### Declaration\n\n Swift \n\n var isBumper: Bool { get }\n\n Objective-C \n\n @property (nonatomic, readonly) BOOL isBumper;\n\n- `\n ``\n ``\n `\n\n ### [podIndex](#/c:objc(cs)IMAAdPodInfo(py)podIndex)\n\n `\n ` \n Client side: Returns the index of the ad pod. For a preroll pod, returns 0.\n For midrolls, returns 1, 2,..., N. For a postroll pod, returns -1. Defaults\n to 0 if this ad is not part of a pod, or this pod is not part of a playlist.\n DAI live stream: Returns the index of the ad pod. For a preroll pod, returns\n 1. For midrolls, returns the break ID. Returns -2 if pod index cannot be determined (internal error). DAI VOD: Returns the index of the ad pod. For a preroll pod, returns 0. For midrolls, returns 1, 2,...,N. For a postroll pod, returns N+1...N+X. Defaults to 0 if this ad is not part of a pod, or this pod is not part of a playlist. \n\n #### Declaration\n\n Swift \n\n var podIndex: Int { get }\n\n Objective-C \n\n @property (nonatomic, readonly) NSInteger podIndex;\n\n- `\n ``\n ``\n `\n\n ### [timeOffset](#/c:objc(cs)IMAAdPodInfo(py)timeOffset)\n\n `\n ` \n The position of the pod in the content in seconds. Pre-roll returns 0,\n post-roll returns -1 and mid-rolls return the scheduled time of the pod. \n\n #### Declaration\n\n Swift \n\n var timeOffset: TimeInterval { get }\n\n Objective-C \n\n @property (nonatomic, readonly) NSTimeInterval timeOffset;\n\n- `\n ``\n ``\n `\n\n ### [maxDuration](#/c:objc(cs)IMAAdPodInfo(py)maxDuration)\n\n `\n ` \n The maximum duration of the pod in seconds. For unknown duration, -1 is returned. \n\n #### Declaration\n\n Swift \n\n var maxDuration: TimeInterval { get }\n\n Objective-C \n\n @property (nonatomic, readonly) NSTimeInterval maxDuration;"]]