Basic Description
#
1、IntroductionSupports native ads, rewarded videos, banner ads, interstitial ads and splash ads
Developers can inherit the class of the corresponding advertising format (see the table below) and rewrite all abstract methods according to their own needs, call the API of the advertising platform in the corresponding method, and call back the loading result through the class member variable mLoadListener, and call back the event results such as advertising display, click, and close through the class member variable mShowListener.
AdTpye | ClassName | Corresponding inherited class |
---|---|---|
RewardedVideo | com.tpcustomadapter.CustomIRnterstitialVideoAdapter | TPRewardAdapter |
Interstitial | com.tpcustomadapter.CustomInterstitialAdapter | TPInterstitialAdapter |
Native | com.tpcustomadapter.CustomNativeAdapter | TPNativeAdapter |
Banner | com.tpcustomadapter.CustomBannerAdapter | TPBannerAdapter |
Splash | com.tpcustomadapter.CustomSplashAdapter | TPSplashAdapter |
#
2、Create a Custom AD Network in TradPlus backend- (1) You need to click the Add AD Network button in Advanced-->Custom AD Network
- (2) Fill in the Adapter class name of the AD type you need into the corresponding advertisement type. Fill in the Adapter class name of the supported Ad type as shown in the following figure:
#
3、Add the created AD Network in TradPlus backend- Select the ad type and click Add ad source;
- Find the "Custom Ad Network" you just created and add the request parameters:
- The parameters of the advertising source will be passed to the custom Adapter;
- It is recommended that the parameters include all the parameters that the custom Network SDK needs to call, such as App ID, Placement ID, etc., and use the key you define to retrieve data.;
- The parameter must conform to the JSON format and cannot contain a JSON object.
As shown below, add the appId
and placementId
required to create a "custom ad network"