Cold Start
1. Load a Splash Ad
- After the app or game launchs, call
ATSplashAd#loadAd()
to load the ad.- To avoid timeouts during splash ad loading, postpone preloading of other ad formats and network resource-consuming requests until after the splash ad has been displayed.
- It is recommended to use SDK Preset Strategy to improve the loading efficiency of splash ads after first-time installation.
2. Show a Splash Ad
When the
onAdLoaded()
callback is triggered, you need to meet the following conditions before callingATSplashAd#show(activity, container)
to display the ad:
- The application is in the foreground.
- The splash ad display container has been added to the layout and is visible.
3. When to Enter the App's Homepage
Enter the app's homepage in the following scenarios:
onNoAdError()
onAdDismiss()
Soft Launch
1. Load a Splash Ad
- Initiate preloading by calling
ATSplashAd#loadAd()
after entering the homepage- Call
ATSplashAd#loadAd()
for preloading within theonAdShow()
callback of the splash ad
2. Show a Splash Ad
When the app returns to the foreground from the background, call
ATSplashAd#isAdReady()
:
- If true: call
ATSplashAd#show()
to display the ad- If false: call
ATSplashAd#loadAd()
to load the ad
3. Note
- When the app switches from the foreground to the background, you can call
isReady()
. If the value is false, you can proceed with preloading- Please avoid ad cache expiration that could cause
isAdReady()
to be false during a warm start