Menu

Customized Interstitial Ad

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

  1. Please refer to here for configuring native mixed interstitial.
  2. 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 the ATInterstitial#setNativeAdCustomRender() before calling load(). 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.
Previous
Interstitial Ads
Next
Splash Ads
Last modified: 2025-05-30Powered by