Skip to main content

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 v8.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 mode#

The 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 v8.0, fast priority and ecpm priority can be configured in the tradplus background.

Usage in different scenarios#

product typeAdvertising scene characteristicsloading modeFill callback patternDeveloper Showcase
Online Earning and Hyper Casual GamesThere 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 autoloadingSelect fast priorityYou can listen to the loaded callback or isReady judgment.
normal gameThe time between two ad displays is sufficient (more than 1 minute) and there are not too many ad slots.Enable autoloadingChoose ecpm firstAfter arriving at the scene, use isReady to determine
ToolsThere 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 autoloadingSelect fast priorityYou can listen to the loaded callback or isReady judgment.
ToolsThere 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 advanceChoose ecpm firstYou can listen to the loaded callback or isReady judgment.