1. Description
Mix native ad source with interstitial placement. For more details, please refer to the AD Format Mixed supported Networks and Configurations.
⚠️Note: Only Native App Self-rendering type is supported at the moment
2. How to use
- Please refer to here for configuring native mixed interstitial.
- If you have selected TopOn SDK Rendering when configuring in the TopOn dashboard, then there is no need to add extra code.
However, if you have opted in App Self-Rendering, please call theATInterstitial#setNativeAdCustomRender()
before callingload()
. The sample code is as below:ATInterstitial interstitialAd = new ATInterstitial(activity, "your placement id"); interstitialAd.setNativeAdCustomRender(new ATNativeAdCustomRender() { @Override public View getMediationViewFromNativeAd(ATNativeAdInfo mixNativeAd, ATAdInfo atAdInfo) { // You can render the ad materials returned by the SDK into a View based on your own needs and return it here // You can refer to: https://github.com/toponteam/TPN-Android-Demo return MediationNativeAdUtil.getViewFromNativeAd(InterstitialAdActivity.this, mixNativeAd, atAdInfo, true); } }); interstitialAd.load();
⚠️Note:
- If you have selected APP Self-Rendering in the TopOn dashboard but have not implemented the self-rendered ad View in the code, then the TopOn SDK Rendering type will be used by default. If you have implemented the self-rendered ad View in the code, the ad background will be fully transparent by default. You will need to implement the effects for half-screen and full-screen ads yourself.