
- After the app or game starts, call the
ATSplashAd#loadAdmethod and pass in your Splash Ad timeout to load the Splash Ad- To avoid Splash Ad loading timeouts, execute the preload logic of other ad formats and other requests that consume network resources after the Splash Ad is displayed
- It is recommended to use the SDK preloading strategy to improve the Splash Ad loading efficiency after the first installation
- After the app or game starts, call the
TUSplashAd#loadAdmethod and pass in your Splash Ad timeout to load the Splash Ad- To avoid Splash Ad loading timeouts, execute the preload logic of other ad formats and other requests that consume network resources after the Splash Ad is displayed
- It is recommended to use the SDK preloading strategy to improve the Splash Ad loading efficiency after the first installation
When the
onAdLoaded()callback is triggered, the following conditions must be met before callingATSplashAd#show(activity,container)to display
- The app is in the foreground
- The Splash Ad display container has been added to the layout and is visible
When the
onAdLoaded()callback is triggered, the following conditions must be met before callingTUSplashAd#show(activity,container)to display
- The app is in the foreground
- The Splash Ad display container has been added to the layout and is visible
- When the ad load fails (in the
onNoAdError()callback), go directly to the main screen.- Navigate to the main screen after the ad is dismissed (in the
onAdDismiss()callback).- Note: The app internally must limit repeated navigation to the main screen.
- You can call loadAd after entering the home page to initiate warm start splash preloading.
- Call the loadAd method in the splash ad onAdShow display callback to preload the splash ad.
When the app returns to the foreground from the background, call the
ATSplashAd#isAdReady()method to check whether there is a cached ad
- If it returns true, call
ATSplashAd#show()to show the ad- If it returns false, call
ATSplashAd#loadAd()to load the ad
When the app returns to the foreground from the background, call the
TUSplashAd#isAdReady()method to check whether there is a cached ad
- If it returns true, call
TUSplashAd#show()to show the ad- If it returns false, call
TUSplashAd#loadAd()to load the ad
- When the app switches to the background, you can check
isReady, and preload when there is no cached ad- This avoids the case where the ad cache expires, causing
ATSplashAd#isAdReady()to return false on hot start, requiring a reload and having to wait for loading to complete before showing the ad
- When the app switches to the background, you can check
isReady, and preload when there is no cached ad- This avoids the case where the ad cache expires, causing
TUSplashAd#isAdReady()to return false on hot start, requiring a reload and having to wait for loading to complete before showing the ad