<img src="https://img.shields.io/badge/%20-ENTERPRISE-%23B10031" style="float:left"/><br />
JWP's Google IMA Dynamic Ad Insertion (DAI) integration allows you to deliver ads and content within a single manifest. By eliminating the buffering between ads and content, this single manifest improves the user experience. After acquiring the required items listed in the [Requirement](🔗) section, you can enable <a href="https://support.google.com/admanager/topic/7062524?hl=en&ref_topic=1184139" target="_blank">Google DAI</a> ad playback in your web player content.
<br /> <hr />
## Requirements
[JWP advertising requirements](🔗)
<a href="https://support.google.com/admanager/answer/3485387" target="_blank">Google's Ad Manager 360 Advanced</a>
Google account information listed in the following table
Property | Description |
<strong>adTagParameters</strong>Â <sup>8.18.3+</sup>Â `object ` | Limited set of key-value pairs that enable the player to override default information with custom information during a stream request<br /><br />See: <a href="https://support.google.com/admanager/answer/7320899" target="_blank">Supply Targeting Parameters to Your Stream</a>. |
<strong>apiKey</strong> `string ` | <a href="https://support.google.com/admanager/answer/6381445?hl=en&ref_topic=7258182" target="_blank">Stream request API key</a> |
<strong>assetKey</strong> `string ` | 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. |
<strong>cmsID</strong> `string ` | 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. |
<strong>videoID</strong> `string ` Â Â Â Â Â | 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. |
<br /> <hr />
## Configure the player setup

For the following reasons, be sure that the URL used for the `
playlist[].file
` is consistent with the media content registered with Google DAI for your `videoID
` or `assetKey
`:• If the DAI request fails, the video URL will play as a fallback. • Analytics will be attributed to correct media item.
<br />
Use the following steps to set up dynamic ad insertion for a single playlist item:
For a specific `
playlist
` item, define a `daiSetting
` object with your Google account information.<br /><br />• If you are displaying a video on demand (VOD), define `cmsID
` and `videoID
`<br />• If you are displaying a live stream, define `assetKey
`.If your content is protected, set the `
apiKey
` property within the `daiSetting
` object.In the `
advertising
` object, set `"client": "dai"
`.
<br />