AppNexus special settings

You can set AppNexus interstitial to automatically close after given time, and enable banners to render native or video ads by:

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