SuperAwesome
To pass specific SuperAwesome options:
Create an instance of AATAdNetworksOptions including your AATSuperAwesomeOptions.
Provide this instance to the AATConfiguration while initialising AATKit.
AATKit will automatically forward the specified options to the SuperAwesome SDK during ad loading.
let conf = AATConfiguration()
...
let superAwesomeOptions = AATSuperAwesomeOptions()
superAwesomeOptions.rewardedVideoOptionsOptions = .init(closeButtonAtEnd: closeButtonAtEnd,
orientation: orientation,
closeButtonState: closeButtonState,
parentalGateEnabled: parentalGateEnabled,
bumperPageEnabled: bumperPageEnabled,
bumperPageCustomAppName: bumperPageCustomAppName,
bumperPageLogo: bumperPageLogo)
superAwesomeOptions.bannerOptions = .init(parentalGateEnabled: parentalGateEnabled,
bumperPageEnabled: bumperPageEnabled,
bumperPageCustomAppName: bumperPageCustomAppName,
bumperPageLogo: bumperPageLogo,
isBackgroundTransparent: isBackgroundTransparent)
superAwesomeOptions.interstitialAdOptions = .init(orientation: orientation,
closeButtonState: closeButtonState,
parentalGateEnabled: parentalGateEnabled,
bumperPageEnabled: bumperPageEnabled,
bumperPageCustomAppName: bumperPageCustomAppName,
bumperPageLogo: bumperPageLogo)
conf.adNetworksOptions = AATAdNetworksOptions(superAwesomeOptions: superAwesomeOptions)
...
AATSDK.initAATKit(with: conf)
Last updated