Skip to main content

Waterfall Custom Adapter

DEPRECATED - Use Official AdMob Adapter

This custom adapter is deprecated. BidMachine is now an official Google AdMob partner.

Please use the official AdMob adapter instead for better performance, official support, and seamless integration with AdMob.

The adapter supports custom waterfall integration for the next ad formats:

  • Banner
  • Interstitial
  • Rewarded
  • Native
Full Technical Documentation

To get full documentation and samples please refer to the GitHub Android.

Integration

info

Min Android SDK version - 23 (6.0, Marshmallow)

build.gradle
repositories {
maven {
url "https://artifactory.bidmachine.io/bidmachine"
}
}

In your build.gradle file add the following dependency which includes the BidMachine adapter for use within AdMob platform:

build.gradle
dependencies {
// Add BidMachine SDK dependency
implementation "io.bidmachine:ads:3.6.1"
// Add BidMachine SDK AdMob Adapter dependency
implementation "io.bidmachine:ads.adapters.admob:3.6.1.50"
// Add AdMob SDK dependency
implementation "com.google.android.gms:play-services-ads:25.2.0"
}

Initialization

Waterfall integration does not require BidMachineSdk initialization code, as it is triggered automatically as part of the MobileAds initialization.

MobileAds.initialize(context) {
// Optionally, enable test mode and logging
BidMachine.setTestMode(true)
BidMachine.setLoggingEnabled(true)
}

Logging and Test Mode

warning

All parameters for BidMachine SDK must be set before starting AdMob SDK.

BidMachine.setTestMode(true)
BidMachine.setLoggingEnabled(true)
warning

Don't forget to remove setTestMode() before releasing to production!

Additional Configuration