AdMob Waterfall
Full Technical Documentation
To get full documentation and samples please refer to the GitHub page.
Integration
Add the following lines to your project's Podfile
target 'Target' do
project 'Project.xcodeproj'
pod 'BidMachineAdMobAdapter', '~> 3.2.0.0'
end
Initialization
The BidMachineAdMobAdapter
strarting 3.1.1.2 version offers robust support for waterfall integration. This integration type require to configure mediation groups in AdMob account by adding BidMachine Custom Events and Mappings.
Waterfall integration does not require BidMachineSdk
initialization code, as it is triggered automatically as part of the GADMobileAds
initialization.
However, if you need to configure additional BidMachineSdk
settings, refer to the documentation:
Warning
All parameters for BidMachine SDK must be set before starting AdMob SDK.
Code example:
BidMachineSdk.shared.populate { builder in
builder
.withTestMode(true)
.withLoggingMode(true)
.withBidLoggingMode(true)
.withEventLoggingMode(true)
}
GADMobileAds.sharedInstance().start(nil)
[BidMachineSdk.shared populate:^(id<BidMachineInfoBuilderProtocol> builder) {
[builder withTestMode:YES];
[builder withLoggingMode:YES];
[builder withBidLoggingMode:YES];
[builder withEventLoggingMode:YES];
}];
How to add all parameters is described here
Ad Format
Next, choose the ad format that best fits your app’s user experience.
Updated 2 days ago