AppNexus (Xandr)
You can set AppNexus interstitial to automatically close after given time, and enable banners to render native or video ads by:
Create an instance of AATKitAdNetworkOptions passing AppNexusOptions.
Provide this instance to the AATKitConfiguration while initialising AATKit.
AATKit will automatically forward the specified options the AppNexus (Xandr) SDK while displaying the interstitial ad.
AATKitConfiguration conf = new AATKitConfiguration(this);
AATKitAdNetworkOptions networkOptions = new AATKitAdNetworkOptions();
// [...]
AppNexusOptions appNexusOptions = new AppNexusOptions();
appNexusOptions.setAutoCloseTime(5);
appNexusOptions.setSupportNativeBanner(true);
appNexusOptions.setSupportVideoBanner(true);
networkOptions.setAppNexusOptions(appNexusOptions);
conf.setAdNetworkOptions(networkOptions);
// [...]
AATKit.init(conf);
Last updated