# [ima](https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/roku/reference/ima).AdBreakInfo

class static

## Constructor

### AdBreakInfo

new
AdBreakInfo()

Contains info about an ad break. Passed to event callbacks by the SDK.

## Properties

### adPosition

static

Integer

The index of the ad in the ad break. The index is `1` for stand
alone ads.

### duration

static

Integer

The maximum duration of the break in seconds, or `-1` if unknown.

### podIndex

static

Integer

For live streams, returns the break ID as the pod index, or `0`
for a preroll. There are no postrolls in live streams. Defaults to
`-2`. For video on demand (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.

### timeOffset

static

Integer

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.

### totalAds

static

Integer

The total number of ads contained within this ad break.
The value is `1` for stand alone ads.

## Method

### createAdBreakInfo

static

createAdBreakInfo() returns [ima.AdBreakInfo](https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/roku/reference/ima.AdBreakInfo)

Returns

:   `https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/roku/reference/ima.AdBreakInfo`