Represents ad pod information for DAI streams.

| Methods ||
|---|---|
| `https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/html5/reference/interface/google.ima.dai.api.AdPodInfo#google.ima.dai.api.AdPodInfo.getAdPosition` |   |
| `https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/html5/reference/interface/google.ima.dai.api.AdPodInfo#google.ima.dai.api.AdPodInfo.getMaxDuration` |   |
| `https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/html5/reference/interface/google.ima.dai.api.AdPodInfo#google.ima.dai.api.AdPodInfo.getPodIndex` | Returns the index of the ad pod. |
| `https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/html5/reference/interface/google.ima.dai.api.AdPodInfo#google.ima.dai.api.AdPodInfo.getTimeOffset` |   |
| `https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/html5/reference/interface/google.ima.dai.api.AdPodInfo#google.ima.dai.api.AdPodInfo.getTotalAds` |   |

## Methods

*** ** * ** ***

### getAdPosition

`getAdPosition(): number`

| Returns ||
|---|---|
| `number` | the position of the ad in the pod. |

*** ** * ** ***

### getMaxDuration

`getMaxDuration(): number`

| Returns ||
|---|---|
| `number` | the maximum duration of the pod in seconds. |

*** ** * ** ***

### getPodIndex

`getPodIndex(): number` Returns the index of the ad pod.  

DAI VOD: For a preroll ad pod, returns `0`. For midroll ad pods, returns a sequential positive integer for the index the ad pod. For a postroll ad pod, returns `-1`. Defaults to a `0` value if this ad isn't part of a pod, or this pod isn't part of a playlist.  

DAI live stream: For a preroll pod, returns a `0` value. For midroll ad pods, returns the break ID. Returns a `-2` value if IMA SDK can't determine the pod index due to an internal error.

| Returns ||
|---|---|
| `number` |   |

*** ** * ** ***

### getTimeOffset

`getTimeOffset(): number`

| Returns ||
|---|---|
| `number` | the time offset in seconds. |

*** ** * ** ***

### getTotalAds

`getTotalAds(): number`

| Returns ||
|---|---|
| `number` | the total number of ads in the pod. |