Android
Including the X3M XMediator adapter for Android into your app
Setup
Include the X3M MobileFuse adapter in your build.gradle(.kts)
file.
dependencies {
implementation("com.x3mads.android.xmediator.mediation:mobile_fuse:1.9.0.0")
}
dependencies {
implementation 'com.x3mads.android.xmediator.mediation:mobile_fuse:1.9.0.0'
}
Initializing the MobileFuse extension
The MobileFuse adapter is initialized automatically as part of the X3M XMediator initialization process and does not require any additional configuration.
Testing the integration
Your MobileFuse integration with X3M XMediator can be tested by enabling test mode in the X3M XMediator SDK.
XMediatorAds.startWith(
activity = activity,
appKey = "APP_KEY_HERE",
initSettings = InitSettings(test = shouldRequestTestAds),
initCallback = {
// ...
}
)
XMediatorAds.startWith(
activity,
"APP_KEY_HERE",
new InitSettings.Builder()
.setTest(shouldRequestTestAds)
.build(),
initResult -> {
// ...
return Unit.INSTANCE;
}
);
X3M should always respond with a MobileFuse ad if the X3M test mode has been enabled and MobileFuse placements are requested. If you do not see a MobileFuse test ad, please contact your X3M account manager or MobileFuse account representative to verify that MobileFuse has been set up correctly.
Updated 2 days ago