Banner
Waterfall:
Integration remains consistent with the approach outlined in Google Mobile Ads Banner Ads Guide, ensuring seamless compatibility with existing configurations. No further modifications are necessary, streamlining the implementation process and minimizing any additional overhead.
Prebid:
Before start loading AdMob you should load BidMachine ad and save it to store
import BidMachine
import BidMachineAdMobAdapter
func before() throws {
let configuration = try BidMachineSdk.shared.requestConfiguration(.banner320x50)
BidMachineSdk.shared.banner(configuration) { [weak self] banner, error in
AdMobAdapter.store(banner)
self?.requestAdMobBanner()
}
}
@import BidMachine;
@import BidMachineApiCore;
@import BidMachineAdMobAdapter;
- (void)before {
__weak typeof(self) weakSelf = self;
id<BidMachineRequestConfigurationProtocol> config = [BidMachineSdk.shared requestConfiguration:BidMachinePlacementFormatBanner320x50 error:nil];
[BidMachineSdk.shared banner:config :^(BidMachineBanner *ad, NSError *error) {
[BDMAdMobAdapter store:ad];
[weakSelf requestAdMobBanner];
}];
}
Updated 4 days ago