# TDAdType Constants Reference

Declared in | TDAdRequestURLBuilder.h

### TDAdType

The type of on-demand ad

#### Definition

`typedef NS_ENUM(NSInteger, TDAdType ) {
kTDAdTypePreroll,
kTDAdTypeMidroll,
};`

#### Constants

`kTDAdTypePreroll`

  Pre-roll ads. These are intended to be played before playback starts.

  Declared In `TDAdRequestURLBuilder.h`.

`kTDAdTypeMidroll`

  Mid-roll ads. These are intended to be played during the session, between content elements such as songs.

  Declared In `TDAdRequestURLBuilder.h`.

#### Declared In

`TDAdRequestURLBuilder.h`