<img src="https://img.shields.io/badge/%20-ENTERPRISE-%23B10031" style="float:left"/><br />

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 app.

<br /> <hr />

## Requirements

  • ο»Ώ[All JWP Android Advertising requirements](πŸ”—ο»Ώ)ο»Ώ

  • ο»Ώ[Google DAI dependency](πŸ”—ο»Ώ)ο»Ώ

  • All Google account information listed in the following table <br />

    <table> <thead> <tr> <th> Property </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td width="37%"><strong>adTagParameters</strong> Map&lt;String, String&gt;</td> <td width="63%">Limited set of key-value pairs that enable the player to override default information with custom information during a stream request <br /><br /> These key-value pairs should be <a href="https://support.google.com/admanager/answer/7320899" target="_blank">properly formatted without encoding</a>. </td> </tr> <tr> <td><strong>apiKey</strong> String</td> <td><a href="https://support.google.com/admanager/answer/6381445?hl=en&ref_topic=7258182" target="_blank">Stream request API key</a></td> </tr> <tr> <td><strong>assetKey</strong> String</td> <td>Stream asset key, used for live streams <br /><br /> You can find this ID in your Google Ad Manager portal. Ask your Google representative for assistance locating this ID. </td> </tr> <tr> <td><strong>cmsID</strong> String</td> <td>Content management system ID of the video, used for video on demand <br /><br /> You can find this ID in your Google Ad Manager portal. Ask your Google representative for assistance locating this ID. </td> </tr> <tr> <td><strong>videoID</strong> String</td> <td>Identifier of the DAI video to be displayed, used for video on demand <br /><br /> You can find this ID in your Google Ad Manager portal. Ask your Google representative for assistance locating this ID. </td> </tr> </tbody> </table>

<br /> <hr />

## 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
ο»Ώ

<br /> <hr />

## FAQs

<details><summary><strong>Which features are not supported with Google DAI?</strong></summary>

<br />

The following features are not supported with Google DAI:

  • Side-loaded captions

  • Chromecast

  • Use of seek API during ad playback

  • Use of playbackRate API

  • <a href="https://developers.google.com/interactive-media-ads/docs/sdks/android/dai/v3/api/reference/com/google/ads/interactivemedia/v3/api/StreamRequest.html#getAuthToken()" target="_blank">Stream request Auth token</a>

</details>

<br />

<!-- Removes the automatic page-to-page navigation at the bottom of the page -->

<style> .rm-Pagination { display: none; } </style>