Other Function Introduction
#
1.Turn off and trigger expiration detection- Called after the ad slot object is created, these two methods are valid for global settings.
- To prevent supplementary expired advertisements from occupying bandwidth during the game,you can call
isExpiredAdChecking
,and turnNO
off automatic expiration detection every 5 minutes. By defaultYES
,ad expiration detection will be performed automatically. - If expiration detection is turned off, it can be called
expiredAdCheck
to trigger an ad expiration detection.
#
2.Only use TradPlus domestic domain name servers- V6.8 has a new API ,which can be called before initializing the SDK
#
3.Use local configuration informationDevelopers can pass in local configuration through this interface, and the corresponding advertising slot will give priority to using this local configuration to request ads when loading for the first time.
#
4.Set up custom display AdInfoDevelopers can load classcustomAdInfo
setting data for each ad before displaying the ad. The SDK will return in the relevant callback after the presentation.
#
5.Set the global display callback of the application dimensionv8.5.0+ In order to facilitate developers to perform display data statistics, the SDK provides a global display callback API
For related fields in adInfo(NSDictionary), please refer to: Callback information Description
#
6.Set UID2 (v9.8.0+)- It is recommended to set it before initializing TPSDK
- If you have obtained the UID2Token by yourself, you can also set it according to the following code
#
7.Turn off the "last round of loading failed, no further loading within 10s" advertising mechanism (v10.0.0+)- Starting from v10.0.0, it can be set through the local parameter interface before loading the advertisement.
#
8.Turn off flip display ad source information- Function introduction: When the advertisement is displayed, quickly flip the phone twice, and the TradPlus logo will appear on the edge of the screen. Click on the logo to see relevant information about the display advertising source, which is convenient for quickly locating the problem.