Enable Google DAI playback (Android)
Enable ad playback with the Google Dynamic Ad Insertion ad client in an Android app or Fire TV project.
After adding the Google IMA Dynamic Ad Insertion (DAI) SDK to your app and acquiring the required items listed in the Requirements section, you can enable Google DAI ad playback in your Android or Fire TV app.
Requirements
- All the JWP Android / JWP Fire TV Advertising requirements
- Google DAI dependency
- All Google account information listed in the following table
Property | Description |
---|---|
adTagParameters Map<String, String> | Limited set of key-value pairs that enable the player to override default information with custom information during a stream request
These key-value pairs should be properly formatted without encoding. |
apiKey String | Stream request API key |
assetKey String | Stream asset key, used for live streams
You can find this ID in your Google Ad Manager portal. Ask your Google representative for assistance locating this ID. |
cmsID String | Content management system ID of the video, used for video on demand
You can find this ID in your Google Ad Manager portal. Ask your Google representative for assistance locating this ID. |
videoID String | Identifier of the DAI video to be displayed, used for video on demand
You can find this ID in your Google Ad Manager portal. Ask your Google representative for assistance locating this ID. |
Specify ad content for a single playlist item
Use the following recipes to set up dynamic ad insertion for a VOD or live stream playlist item.
π±
ANDROID | FIRETV: Set Up DAI for a VOD Playlist Item (DAI)
Open Recipe
π±
ANDROID | FIRETV: Set Up DAI for a Live Stream Playlist Item (DAI)
Open Recipe
FAQs
Which features are not supported with Google DAI?
The following features are not supported with Google DAI:
- Side-loaded captions
- Chromecast
- Use of seek API during ad playback
- Use of playbackRate API
- Stream request Auth token
Updated over 1 year ago