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)AATConfiguration *conf = [[AATConfiguration alloc] init];
...
BannerOptions *bannerOptions = [[BannerOptions alloc] initWithParentalGateEnabled:ParentalGateEnabled bumperPageEnabled:bumperPageEnabled bumperPageCustomAppName:bumperPageCustomAppName bumperPageLogo:bumperPageLogo isBackgroundTransparent:isBackgroundTransparent];
InterstitialAdOptions *interstitialOptions = [[InterstitialAdOptions alloc] initWithOrientation:Orientation closeButtonState:closeButtonState parentalGateEnabled:parentalGateEnabled bumperPageEnabled:bumperPageEnabled bumperPageCustomAppName:bumperPageCustomAppName bumperPageLogo:bumperPageLogo];
RewardedVideoOptions *rvOptions = [[RewardedVideoOptions alloc] initWithCloseButtonAtEnd:CloseButtonAtEnd smallClickEnabled:smallClickEnabled closeButtonWarningEnabled:closeButtonWarningEnabled orientation:orientation closeButtonState:closeButtonState parentalGateEnabled:parentalGateEnabled bumperPageEnabled:bumperPageEnabled bumperPageCustomAppName:bumperPageCustomAppName bumperPageLogo:bumperPageLogo];
AATSuperAwesomeOptions *superAwesomeOptions = [[AATSuperAwesomeOptions alloc] initWithBannerOptions:bannerOptions interstitialAdOptions:interstitialOptions rewardedVideoOptionsOptions:rvOptions];
conf.adNetworksOptions = [[AATAdNetworksOptions alloc] initWithAppNexusOptions:nil
feedAdOptions:nil
adMobOptions:nil
dfpOptions:nil
datonomyOptions:nil
superAwesomeOptions:superAwesomeOptions
graviteRTBOptions:nil
displayIOOptions:nil
metaBiddingOptions:nil];
...
[AATSDK initAATKitWith:conf];Last updated