Set up a live stream for DAI
Ad Manager DAI can stitch ads into either 24/7 linear streams or live streams.
Three requirements must be completed before you create a live linear stream:
Set up a live stream
Sign in to Google Ad Manager.
Click Video Live streams New live stream.
Enter a Name. This name is only displayed in Ad Manager, not externally. It can be a name for your 24/7 linear stream or for a live stream that you're streaming.
Define your live stream options.
Save your live stream:
- SAVE AND ACTIVATE: Saves your live stream to go live on the start date you've specified. You cannot edit a live stream saved in this state until it's paused, which stops the stream for viewers.
- SAVE AND ACTIVATE LATER: Saves your live stream in a pending state and allows you to activate later. Your live stream does not go live until you activate.
The live stream should now appear on the "Live streams" page.
Enter the URL of the content stream source. This URL points to the master m3u8 of your live HLS stream. This can be the URL of an ongoing content stream (for example, a television channel) or a single stream (for example, a sports match).
See details about the HLS specification for DAI.
(Optional) If you have backup encoders, click ADD BACKUP STREAM and enter URL(s).
Choose "Automatic" to have Ad Manager automatically refresh the master playlist every few minutes. Select "Manual" to display a refresh button that lets you to control when and how often the playlist is refreshed.
Slates are served when there are gaps in a live stream commercial break that cannot be filled with a dynamically-served ad. If you don't want to show the network default slate, select override and choose a slate to run for this particular stream. You are not billed for serving slates.
The time at which Ad Manager starts to ingest the stream. Click Immediately if your stream is available now.
If your stream is intended for a live event, it is best to start several days before the actual event for testing. At minimum, you should choose a time 15 minutes before the stream becomes available.
If your stream will run 24/7, click Unlimited. Otherwise, if you are streaming an event, choose an end time when there should be zero viewers of the stream. You may want to add a buffer of at least 15 minutes relative to the scheduled event’s end time.
DAI authentication keys are used to authenticate stream requests to the DAI SDK API.
If your external CDN requires authentication, select an existing CDN configuration, or click to create a new configuration. Learn more about CDN configuration settings.
The type of video content displayed in an ad break when the VAST response is empty. Partially filled ad breaks always fill the remaining time with slate. However, when an empty VAST response is received, you can choose whether you want to display slate or underlying content.
Slate: displays video content that you've created as slate to fill the break.
Underlying content: displays live stream content to fill the break.
Enable if the live stream contains cue-out markers without duration, when the ad break duration is unknown in advance.
Use whitelisted IPs
Enable to allow specific whitelisted IP addresses to access this content source, regardless of blocked geographic regions.
The default ad break duration (in seconds) that should be requested when an ad break cue-out does not specify a duration. This is only available when "Durationless ad breaks" is enabled.
If the default duration is shorter than the actual break, Ad Manager fills the remaining time with a slate. If the duration is longer, the ad is cut off.
The duration in seconds from the time the user enters the video stream, for which mid-roll decisions are skipped. This field is only applicable when an ad holiday (
dai-ah) is in the stream request.
The ad holiday feature is especially helpful when client-side pre-rolls are used before a live stream. It is enabled to avoid showing viewers an ad immediately after they've just watched a pre-roll ad.
The type of the playlist associated with this live stream.
Choose Event when media segments can only be added to the end of the playlist. This allows viewers to scrub back to the beginning of the playlist. This type should be used for streams with the "#EXT-X-PLAYLIST-TYPE:EVENT" tag.
Event playlists are not supported with SSB.
Choose Live when there are no restrictions on whether media segments can be removed from the beginning of the playlist. This should be used for streams without the "#EXT-X-PLAYLIST-TYPE" tag. It's the default value for all live streams.
The duration (in seconds) of content a viewer is able to scrub back to when watching a live stream. This is only available with the "Live" playlist type.
The DVR window only applies to streams created with client-side beaconing. By default, client-side beaconing streams have the same playlist length as the input stream.
The description is for your reference only and is not displayed as part of the stream.
If you need to edit a live stream once the stream has begun, change the live stream status to Paused on the "Live streams" page. When you’re done making edits, change the status back to Active. It can take up 15 minutes for ads to begin again.
After you save the live stream in Ad Manager, the "desktop stream URL" and "app stream URL" are displayed on the live stream details page. You can copy the "AssetKey" and use it to generate an SSB URL or to request a stream for an application that uses the SDK.
To find the asset key in Ad Manager:
- Sign in to Google Ad Manager.
- Click Video Live streams.
- Click the name of the live stream.
- Locate either the "Desktop stream URL" or "App stream URL" in the Settings tab.
- The asset ID exists after
/event/in either of these URLs.