Notification

Only available in Google Ad Manager 360.

הדף שביקשתם לא זמין בשלב זה בשפה שלכם. אפשר לבחור בשפה אחרת בחלק התחתון של הדף. לחלופין, באמצעות תכונת התרגום המובנית של Google Chrome תוכלו לתרגם מיד כל דף אינטרנט אל שפה לבחירתכם.

Delivering ads through external CDNs

This feature is in Beta
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

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:

  1. Player request: The player requests the ad from the publisher's CDN.
  2. CDN lookup: The CDN checks its cache for the ad.
  3. Origin request: If the ad is not cached, the CDN requests it from Google's Ad CDN.
  4. 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.

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
  • Granular control: Allows using different CDNs for different streams.
  • Simplified stream creation: Only the CDN ID is needed after initial CDN configuration in Google Ad Manager.
  • Potential for default CDN setup: A default ad delivery CDN can be set at the live stream event level.
  • More setup: Requires upfront configuration in Google Ad Manager.
  • Less flexible: Changing the CDN requires modifying the stream configuration.

Use an arbitrary URL prefix (dai-aup)

The 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
  • Flexibility: CDNs can be changed without modifying stream configurations (just change the URL prefix).
  • Simpler setup: There is no need to pre-configure CDNs in Google Ad Manager.
  • Less granular control: Less control over which CDN is used for each stream.
  • Potential URL management complexity: Careful management of URL prefixes is needed when using multiple CDNs dynamically.

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.

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Main menu
1088083101958012482
true
Search Help Center
true
true
true
true
true
148
false
false