Notification

Only available in Google Ad Manager 360.

HTTP Live Streaming (HLS)

Live linear stream ad break encoding (HLS)

For a linear broadcast or live feed, your playlist must include "CUE-OUT" and "CUE-IN" points that represent the ad insertion splice points. For example:

#EXT-X-CUE-OUT:DURATION=<time>
#EXT-X-CUE-IN

The EXT-X-CUE-OUT tag represents the splice start point and EXT-X-CUE-IN represents the splice end point. EXT-X-CUE-OUT should be terminated by EXT-X-CUE-IN, indicating the end of the ad break. The ad server replaces the entire section between EXT-X-CUE-OUT and EXT-X-CUE-IN with video ad content.

The DURATION=<time> is required, and is the approximate duration in seconds or floating point of the ad break (in other words, the difference in the time between the EXT-X-CUE-IN and EXT-X-CUE-OUT). Alternately, EXT-X-CUE-OUT:<time> can be substituted for #EXT-X-CUE-OUT:DURATION=<time>.

The duration can be an integer or a floating-point value and should have a value expressed in seconds.

Shorten an ad break

To end an ad break early, the encoder should send in a "CUE-IN" in the stream to indicate that the DAI streams should immediately end the ad break and begin showing the raw content again.

Note that, if an ad break ends early, the Stream Activity Monitor still reflects the original "Ad break duration", "Filled duration", and "Served duration" values.

Create an additional ad break

While there is no way to make an ad break longer while the ad break is playing to users, an encoder may send an additional a "CUE-OUT" in the stream immediately after the previous ad break's "CUE-IN" to create an additional ad break with freshly decisioned ads.

Fill remaining ad break space

If there are no ads to show or additional space to fill, the user sees either slate content or the underlying content, depending on the ad break settings chosen when the live stream was configured in Ad Manager.

Supported ad markers for live streams

The following markers are supported for ad insertion on live stream content:

Macros for SCTE-35 markup

If your feed includes EXT-OATCLS-SCTE35, or EXT-X-DATERANGE markup, the metadata is automatically extracted and made available through custom key-values. You need to set up the custom key-values, and insert them as macros when you generate ad tags.

When you set up the new custom key-values for the SCTE-35 fields, use a custom key (for example, "scte35") and set the value to the macro(s) that correspond to which type of field is available in your feed:

Macro Description
%%SPLICE_INSERT_EVENT_ID%% Unsigned integers in the SCTE35 message, are converted to strings as decimal numbers.
%%SPLICE_INSERT_UPID%%
%%TIME_SIGNAL_EVENT_ID%%
%%TIME_SIGNAL_UPID%% Rendered as lowercase hexadecimal, with no 0x prefix.
%%TIME_SIGNAL_UPID_RAW%% Inserts raw bytes from the SCTE message without hexadecimal conversion (the initial string must be a valid UTF-8 encoded string).
%%AFMM_CBC%% Extracts the commercial break code from the splice info (this is a requirement for the French AF2M specification).
 
For any issues related to DAI troubleshooting or outages, contact publisher support.

Was this helpful?

How can we improve it?
true
Get started with Dynamic Ad Insertion

Our guide to delivering a seamless ad experience across live, linear, and on-demand video content.
See the guide

13174821409695847001
true
Search Help Center
true
true
true
true
true
148
Search
Clear search
Close search
Main menu
false
false
false