Documentation

AdMob Bidding

👍

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', '~> 2.7.0'
end

Initialization

🚧

Warning

Before AdMob SDK initialization, you should start the BidMachine SDK. All parameters for BidMachine SDK must be set before starting.

BidMachineSdk.shared.populate { builder in
    builder
        .withTestMode(true)
        .withLoggingMode(true)
        .withBidLoggingMode(true)
        .withEventLoggingMode(true)
}

BidMachineSdk.shared.initializeSdk("source id")

GADMobileAds.sharedInstance().start(nil)
[BidMachineSdk.shared populate:^(id<BidMachineInfoBuilderProtocol> builder) {
    [builder withTestMode:YES];
    [builder withLoggingMode:YES];
    [builder withBidLoggingMode:YES];
    [builder withEventLoggingMode:YES];
}];

[BidMachineSdk.shared initializeSdk: @"1"];

[[GADMobileAds sharedInstance] startWithCompletionHandler:^(GADInitializationStatus * _Nonnull status) {
    NSDictionary *statuses = status.adapterStatusesByClassName;
    NSLog(@"%@", [statuses.allKeys componentsJoinedByString:@","]);
}];

How to add all parameters is described here

Ad Format

Next, choose the ad format that best fits your app’s user experience.