Google Ad Manager Bidding
Full Technical Documentation
To get full documentation and samples please refer to the GitHub page.
Getting Started
Add following lines into your project Podfile
$BDMVersion = '~> 3.0.1'
$GAMVersion = '~> 11.9.0'
def bidmachine
pod 'BidMachine', $BDMVersion
end
def google
pod 'Google-Mobile-Ads-SDK', $GAMVersion
end
target 'Sample' do
bidmachine
google
end
Add Your App's Ad Manager ID to the Info.plist File
<key>GADApplicationIdentifier</key>
<string>ca-app-pub-xxxxxxxxxxxxxxxx~xxxxxxxxxx</string>
Replace the 'x' characters with the digits of your Ad Manager Application ID. You can find this ID by navigating to Inventory > Apps > YourApp in your Ad Manager account.
Initialize sdk
storeURL and storeId - are required parameters
BidMachineSdk.shared.populate { builder in
builder.withTestMode(true)
}
BidMachineSdk.shared.targetingInfo.populate { builder in
builder.withStoreId("store id")
}
BidMachineSdk.shared.initializeSdk("source id")
[BidMachineSdk.shared populate:^(id<BidMachineInfoBuilderProtocol> builder) {
[builder withTestMode:YES];
}];
[BidMachineSdk.shared.targetingInfo populate:^(id<BidMachineTargetingInfoBuilderProtocol> builder) {
[builder withStoreId:@"12345"];
}];
[BidMachineSdk.shared initializeSdk:@"5"];
Updated 20 days ago