AppNexus (Xandr)
If you would like to auto-close an AppNexus interstitial ad after a specific timeout period:
Create an instance of AATAdNetworksOptions including your AATAppNexusOptions.
Provide this instance to the AATConfiguration while initialising AATKit.
AATKit will automatically forward the specified options the AppNexus (Xandr) SDK while displaying the interstitial ad.
let conf = AATConfiguration()
...
let appNexusOptions = AATAppNexusOptions(autoCloseTime: <AUTO_CLOSE_TIME>, supportNativeBanner: <SUPPORT_NATIVE_BANNER>)
conf.adNetworksOptions = AATAdNetworksOptions(appNexusOptions: appNexusOptions)
...
AATSDK.initAATKit(with: conf)
Last updated