Using the Splash Ad Placement to configure Native Ads. (Note: Only Native self-rendering type is supported for now.)
| SDK Version | Ad Placement Type | Ad Source Type | Ad Platform | Rendering Mode |
|---|---|---|---|---|
| v5.9.30+ | Splash | Native Self-Rendering | Tencent Ads, Pangle (China), Baidu, Kuaishou, Mintegral, Sigmob | SDK Rendering |
| v6.1.78+ | Splash | Native Self-Rendering | Meta, Inmobi | SDK Rendering |
| v6.3.22+ | Splash | Native Self-Rendering | Bigo, Huawei, Yandex | SDK Rendering and Developer Self-Rendering |

① SDK Rendering: Rendered using the SDK's built-in layout style. No additional code configuration is needed.
② Developer Self-Rendering: Custom style rendering of ads without using the SDK's built-in layout style. **Before loading the ad, additionally call the ATSplashAd#setNativeAdCustomRender() method, as follows:
// For detailed example, refer to demo: https://github.com/toponteam/Taku-Android-Demo/China/demo/app/src/main/java/com/test/ad/demo/SplashAdActivity.java
ATSplashAd splashAd = new ATSplashAd(context, placementId);
splashAd.setNativeAdCustomRender(new ATNativeAdCustomRender() {
@Override
public View getMediationViewFromNativeAd(ATNativeAdInfo mixNativeAd, ATAdInfo atAdInfo) {
return MediationNativeAdUtil.getViewFromNativeAd(SplashAdActivity.this, mixNativeAd, atAdInfo, true);
}
});
splashAd.load();
Notes:
① When the developer self-rendering mode is set in the developer dashboard and the self-rendering ad View is not implemented in code, the SDK's built-in layout style will be used for rendering by default.
② When the developer self-rendering mode is set in the developer dashboard and the self-rendering ad View is set in code, the ad background defaults to fully transparent.