Google Mobile Ads SDK
Google App ID
Google Mobile Ads SDK requires publishers to add their Google app ID to the Info.plist file of their Xcode projects. Please find your Google app ID within your Google account or contact our support.
Follow Google documentation to add your Google App ID to the Info.plist file.
Google Partner Bidding
Google bidding is enabled by default. If you are customizing your podfile, you can add Google Partner Bidding dependency by adding the following to your podfile:
pod 'AATKit/AATAdMobDSPAdapter'AdMob Maximum Inline Banners Height
You can set the maximum height for AdMob inline adaptive banners by:
Create an instance of AATAdNetworksOptions including your AATAdMobOptions.
Provide this instance to the AATConfiguration while initialising AATKit.
AATKit will automatically forward the specified options to the GMA during ad loading.
let conf = AATConfiguration()
...
let adMobOptions = AATAdMobOptions(inlineBannerMaxHeight: 50)
conf.adNetworksOptions = AATAdNetworksOptions(adMobOptions: adMobOptions)
...
AATSDK.initAATKit(with: conf)AATConfiguration *conf = [[AATConfiguration alloc] init];
...
AATAdMobOptions *adMobOptions = [[AATAdMobOptions alloc] initWithInlineBannerMaxHeight:50];
conf.adNetworksOptions = [[AATAdNetworksOptions alloc] initWithAppNexusOptions:nil
feedAdOptions:nil
adMobOptions:adMobOptions
dfpOptions:nil
datonomyOptions:nil
superAwesomeOptions:nil
graviteRTBOptions:nil
displayIOOptions:nil
metaBiddingOptions:nil];
...
[AATSDK initAATKitWith:conf];DFP Maximum Inline Banners Height
You can set the maximum height for DFP inline adaptive banners by:
Create an instance of AATAdNetworksOptions including your AATDFPOptions.
Provide this instance to the AATConfiguration while initialising AATKit.
AATKit will automatically forward the specified options to the GMA during ad loading.
let conf = AATConfiguration()
...
let dfpOptions = AATDFPOptions(inlineBannerMaxHeight: 50)
conf.adNetworksOptions = AATAdNetworksOptions(dfpOptions: dfpOptions)
...
AATSDK.initAATKit(with: conf)AATConfiguration *conf = [[AATConfiguration alloc] init];
...
AATDFPOptions *dfpOptions = [[AATDFPOptions alloc] initWithInlineBannerMaxHeight:50];
conf.adNetworksOptions = [[AATAdNetworksOptions alloc] initWithAppNexusOptions:nil
feedAdOptions:nil
adMobOptions:nil
dfpOptions:dfpOptions
datonomyOptions:nil];
...
[AATSDK initAATKitWith:conf];Last updated