Android Mediation Adapters
BlueStack's mediation feature enables you to deliver advertisements to your app from various sources, including BlueStack itself and third-party ad networks. This section provides guidance on integrating mediation partner SDKs through BlueStack's third-party SDK adapters.
Google (GAM / AdMob)
To include the BlueStack GAM / AdMob mediation adapter dependency,
- Add your Google App ID to your app's AndroidManifest.xml file
<manifest>
<application>
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy"/>
</application>
</manifest>
- And add the Gradle dependency below to your app-level build.gradle file
- For bluestack-sdk-react-native >= 1.2.0
- For bluestack-sdk-react-native < 1.2.0
dependencies {
...
implementation 'com.azerion:bluestack-mediation-google:+'
...
}
dependencies {
...
implementation 'com.azerion:bluestack-mediation-gma:+'
...
}
In-App Bidding
To include the BlueStack In-App Bidding mediation adapter, add the Maven repository address and Gradle dependency below to your app-level build.gradle file
repositories {
google()
mavenCentral()
maven { url 'https://packagecloud.io/smartadserver/android/maven2' }
}
dependencies {
...
implementation 'com.azerion:bluestack-mediation-bidding:+'
...
}
In-App Bidding has a default dependency with Amazon
and Smart Display
SDK.
So adding In-App Bidding
will automatically include these two SDKs.
Equativ (previously Smart Ad Server)
To include the BlueStack Equativ / Smart Ad Server mediation adapter, add the Maven repository address and Gradle dependency below to your app-level build.gradle file
repositories {
google()
mavenCentral()
maven { url 'https://packagecloud.io/smartadserver/android/maven2' }
}
- For bluestack-sdk-react-native >= 1.2.0
- For bluestack-sdk-react-native < 1.2.0
dependencies {
...
implementation 'com.azerion:bluestack-mediation-equativ:+'
...
}
dependencies {
...
implementation 'com.azerion:bluestack-mediation-smartadserver:+'
...
}
Mediation Adapter Compatibility Matrix
- For bluestack-sdk-react-native >= 1.2.0
- For bluestack-sdk-react-native < 1.2.0
Ad Network | InApp Bidding | SDK Version | Adapter Version | Supported Ad Formats |
---|---|---|---|---|
No | 23.6.0 | 5.1.4.0 | Banner / MREC, Interstitial, Rewarded Ads, Native Ads | |
Amazon | Yes | 6.18.0 | (included in BlueStack Bidding) | Banner / MREC, Interstitial, Rewarded Ads |
Equativ | Yes | 8.4 | 5.1.4.0 | Banner / MREC, Interstitial |
BlueStack Bidding | Yes | N/A | 5.1.4.0 | Banner / MREC, Interstitial, Rewarded Ads, Native Ads |
Ad Network | InApp Bidding | SDK Version | Adapter Version | Supported Ad Formats |
---|---|---|---|---|
No | 23.4.0 | 4.4.0.0 | Banner / MREC, Interstitial, Rewarded Ads, Native Ads | |
Amazon | Yes | 6.18.0 | (included in BlueStack Bidding) | Banner / MREC, Interstitial, Rewarded Ads |
Equativ | Yes | 7.24.0 | 4.4.1.0 | Banner / MREC, Interstitial, Rewarded Ads, Native Ads |
BlueStack Bidding | Yes | N/A | 4.4.1.0 | Banner / MREC, Interstitial, Rewarded Ads, Native Ads |
- Ensure all dependencies are included as outlined in each network’s integration guide.
- Ad formats may require additional configurations or testing to confirm functionality.
-keep public class com.azerion.bluestack.mediation.** { *; }
Please add the above rule to your proguard file when you encounter errors similar to what you see here:
java.lang.NoSuchMethodException: com.azerion.bluestack.mediation.*
Exception com.azerion.bluestack.error.AdapterNotFoundError: com.azerion.bluestack.mediation.*