1. Description
Mix native ad source with banner placement. For more details, please refer to the AD Format Mixed supported Networks and Configurations. Native ad source is allowed to be mixed with banner placement. Refer to here to obtain more information about AD Format Mixed.
⚠️Note: Only Native App Self-rendering type is supported at the moment
2. How to use
- Please refer to here for configuring native mixed splash.
- 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 for App Self-Rendering, please call the
ATBannerView#setNativeAdCustomRender()
before calling load(). The sample code is as follows:ATBannerView mBannerView = new ATBannerView(activity); mBannerView.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(activity, mixNativeAd, atAdInfo, false); } }); mBannerView.loadAd();
⚠️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.