Loading Ad In Different Scenarios
#
一、Load and display ads#
1. Start loading ads at the appropriate position before reaching the advertising scene- Create an object and select automatic loading mode (enabled by default after v8.0)
- Configure "fill callback mode" in the TradPlus backend (see below for how to choose) (supported after v7.7.0)
- Set up callback listening
- loadadvertising
#
2. After arriving at the advertising scene- Call to enter the advertising scene
- Call isReady to determine whether to display the advertising trigger button (rewarded video only)
#
3. The user triggered the ad display- Call isReady to determine
- Call show to display ads
- If there are no ads, call load and display the loading animation
#
二、Introduction to fill callback modeThe loaded callback of the advertisement is usually called back to the developer after getting the first advertisement. When there is a local cache, should it be directly called back to the developer for quick display (fast priority), or should the waterfall with a higher price than the cached price be tried again? Getting ads with high ecpm (ecpm priority) depends on the developer’s app display logic.
- Note: Starting from v7.7.0, fast priority and ecpm priority can be configured in the tradplus background.
#
三、Usage in different scenariosproduct type | Advertising scene characteristics | loading mode | Fill callback pattern | Developer Showcase |
---|---|---|---|---|
Online Earning and Hyper Casual Games | There are many triggers per person (more than 5 times), the ad display interval is short, and users can wait for the ad to load. | Enable autoloading | Select fast priority | You can listen to the loaded callback or isReady judgment. |
normal game | The time between two ad displays is sufficient (more than 1 minute) and there are not too many ad slots. | Enable autoloading | Choose ecpm first | After arriving at the scene, use isReady to determine |
Tools | There are not many advertising spaces, the advertising spaces are shallow (easy to trigger), and the number of triggers per person is high (more than 5 times) | Enable autoloading | Select fast priority | You can listen to the loaded callback or isReady judgment. |
Tools | There are many advertising spaces, some of them are deep, and the number of triggers per person is low (1-2 times). | Turn off automatic loading and do preloading in advance | Choose ecpm first | You can listen to the loaded callback or isReady judgment. |