Skip to main content

Interstitial Ad Options

Interstitial ads offer various advanced features that allow for additional customization and provide the best advertising experience. This guide explains how to use the advanced features of interstitial ads.

Timeout Configuration

The timeout value for interstitial ad requests can be set globally using SdkPropertiesBuilder.interstitialAdRequestTimeout(). However, if you want to set a timeout for a single ad request, you can use the setTimeoutMillis() method of GfpInterstitialAdManager, as shown in the example below.

The following example demonstrates setting a timeout value of 10 seconds for a single ad request loaded with a specific GfpInterstitialAdManager. When the timeout value for a single ad request is set as shown below, the globally set timeout value will be ignored.

info

If no timeout value is set in SdkProperties or GfpInterstitialAdManager, the default timeout value of 60 seconds will be applied.

val interstitialAdManager: GfpInterstitialAdManager = ...
interstitialAdManager.setTimeoutMillis(10_000L)