Skip to main content

Waterfall Custom Adapter

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 {
// Add BidMachine maven repository
maven {
name "BidMachine Ads maven repository"
url "https://artifactory.bidmachine.io/bidmachine"
}
}

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

build.gradle
dependencies {
// Add BidMachine SDK dependency
implementation "io.bidmachine:ads:3.3.0"
// Add BidMachine SDK AdMob Adapter dependency
implementation "io.bidmachine:ads.adapters.admob:3.3.0.45"
// Add AdMob SDK dependency
implementation "com.google.android.gms:play-services-ads:24.3.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