Splash
#
1. Load an ad- Splash ads are generally used with the app's launch page. Show the launch page to the user while loading, and then show the ad after the ad is successfully loaded. After the ad is over, enter the app.
- AdUnitID is the ad unit ID created in the TradPlus background. The SDK will pull the configuration and request the ad according to the ad unit ID.
#
2. Show Splash Ad- During cold start, try not to request other network resources at the same time. When you receive the loaded callback, show the ad immediately.
- During hot start, you can preload the ad. When listening to the device switch foreground event, call the
isAdReady
method to check if there is an available ad. When there is an available ad, call theshow
method to show the ad.
#
3. Register TradPlusADSplashDelegate Callback- Ad event callbacks need to be registered before displaying an ad. Get callbacks for ad loading, ad show, ad click, ad close, etc.
#
4. Integration ReferenceReference: TradPlusAdSplashViewController