<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

    PropertyDescription
    **assetKey<span style="color: red;">\*</span>** string**(Required - Live Stream)** 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<span style="color: red;">\*</span>** string**(Required - Video on Demand)** 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<span style="color: red;">\*</span>** string**(Required - Video on Demand)** 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.
    <strong>adTagParameters</strong> <sup>8.18.3+</sup> objectLimited set of key-value pairs that enable the player to override default information with custom information during a stream request 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>
    **assetFormat** stringStream format to request **Possible Values**: <ul><li>`hls` (default)</li><li>`dash`</li></ul>

<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:

  1. For a specific `playlist` item, define a `daiSetting` object with your Google account information.

    • If you are displaying a video on demand (VOD), define `cmsID` and `videoID`

    • If you are displaying a live stream, define `assetKey`.

  2. If your content is protected, set the `apiKey` property within the `daiSetting` object.

  3. In the `advertising` object, set `"client": "dai"`.

    ο»Ώ

<br />

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

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