Features in Beta phase might not be available in your network. Watch the release notes for when this feature becomes generally available.
This article explains how to use external Content Delivery Networks (CDNs) to deliver ad media for live streams using Google Ad Manager Dynamic Ad Insertion (DAI).
On this page
- Overview of this feature
- How it works
- External CDN requirements and configuration
- Google Ad Manager configuration
Overview of this feature
Publishers using Google Ad Manager DAI typically rely on Google's Ad CDN for ad delivery. This feature allows publishers to use a CDN of their choice instead. This offers several benefits:
- Multi-CDN support: Use different CDNs for different regions or based on performance, improving global reach and redundancy. This is important for large-scale live events.
- Improved performance: Using CDNs optimized for specific locations can lead to faster ad load times and better viewer experience.
- Unified content and ad delivery: Using the same CDN for content and ads simplifies operations and may improve performance with a single SSL connection. It also lets CDNs better monitor traffic and adjust routing.
How it works
Setup involves configuring the external CDN to use Google's Ad CDN as an origin server for ad media, and potentially configuring Google Ad Manager. Ad delivery is then achieved by:
- Player request: The player requests the ad from the publisher's CDN.
- CDN lookup: The CDN checks its cache for the ad.
- Origin request: If the ad is not cached, the CDN requests it from Google's Ad CDN.
- Ad delivery: Google's Ad CDN delivers the ad, which is cached by the publisher's CDN and served to the player.
External CDN requirements and configuration
The external CDN must:
- Support HTTPS redirects (302s)
- Respect cache control headers
- Allow configurable cache keys based on URL components
The external CDN must be set up to request ad media from redirector.googlevideo.com
(Google's Ad CDN) as the origin server. You should consult your CDN's documentation for specific instructions. The cache key should be configured as the entire URL path, excluding any path prefix specified by DAI (for example, the value of the dai-aup
parameter). Query parameters must be ignored for caching.
Google Ad Manager configuration
Important: Validate your setup before you go live
When using this feature, you should ensure the utmost caution while setting up external CDN configurations and passing the correct values for the dai-aup
query parameter. The DAI product isn't able to identify any mistakes in your configuration or query parameter. Incorrect setup or values lead to broken playback and potential revenue impact.
We urge you to do a through review of your CDN configurations and conduct comprehensive playback testing before rolling out this feature on your live stream events. We recommend rolling out this features in an incremental manner making sure no playback is broken and tracking pings are correctly making it to ad servers.
There are two approaches for CDN integration in Google Ad Manager DAI, using different query parameters during stream creation: dai-ad-dlid
or dai-aup
. You can learn more about these parameters here, or decide which parameter to use.
Use a dedicated CDN ID per stream (dai-ad-dlid
)
With this approach, a specific, pre-configured CDN is associated with a live stream in Google Ad Manager. The CDN is identified by a unique ID defined during CDN configuration in Google Ad Manager. This ID is passed as the dai-ad-dlid
parameter during stream creation.
The use of the dai-ad-dlid
parameter requires that you create CDN configurations with details like the hostname for each external CDN.
Benefits to using dai-ad-dlid |
Limitations |
---|---|
|
|
Use an arbitrary URL prefix (dai-aup
)
dai-aup
is currently the only option for external CDN ad delivery when using pod serving. If you use full service DAI, this parameter takes precedence over the dai-ad-dlid
parameter if both are present.With this approach, an arbitrary URL prefix, pointing to the external CDN, is used to construct ad segment URLs. This prefix is passed as the dai-aup
parameter during stream creation. Google's DAI replaces the usual CDN URL with a URL using this prefix, which must:
- Be in the format of "
https://domain.com/path/
" where "/path/
" is optional - Be an absolute URL prefix (relative URLs are not supported)
Example
dai-aup=https://domain.com/path-c1/path-c2
Google CDN URL:
https://redirector.googlevideo.com/videoplayback/foo?bar=baz
Resulting ad segment URL:
https://domain.com/path-c1/path-c2/videoplayback/foo?bar=baz
No specific Google Ad Manager configuration is needed.
Benefits to using dai-aup |
Limitations |
---|---|
|
|
Decide which parameter to use
The best approach depends on your needs and CDN management strategy. Consider the trade-offs between granular control and flexibility. In general, it's recommended that you:
Choose dai-ad-dlid
if:
- Granular control over CDN selection per stream is needed.
- Simpler stream creation after initial setup is preferred.
- The ability to configure default CDNs in Google Ad Manager is desired.
Choose dai-aup
if:
- Maximum flexibility to change CDNs dynamically is needed.
- Extra configuration steps in Google Ad Manager should be avoided.