Rewarded Ad Options
Rewarded 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 rewarded ads.
Timeout Configuration
The timeout value for rewarded ad requests can be set globally using SdkPropertiesBuilder.rewardedAdRequestTimeout(). However, if you want to set a timeout for a single ad request, you can use the setTimeoutMillis() method of GfpRewardedAdManager as shown in the example below.
The following example demonstrates how to set a timeout value of 10 seconds for a single ad request loaded with a specific GfpRewardedAdManager. When the timeout value for a single ad request is set as shown below, the globally set timeout value will be ignored.
If no timeout value is set in SdkProperties or GfpRewardedAdManager, the default timeout value of 60 seconds will be applied.
- Kotlin
- Java
val rewardedAdManager: GfpRewardedAdManager = ...
rewardedAdManager.setTimeoutMillis(10_000L)
GfpRewardedAdManager rewardedAdManager = ...;
rewardedAdManager.setTimeoutMillis(10_000L);