Deploy a new version of your app
Prepare for Production
Once the ads have been tested and are correctly integrated, it's time to prepare your app for production release:
Switch to Production Configuration
-
Replace Test IDs: If test placement IDs were used during development, replace them with your production application and placement IDs obtained in Get your configurations.
-
Disable Test Mode and Verbose Logging: Ensure the test flag is set to
false
in your SDK initialization:
- Kotlin
- Java
// Production configuration - disable test mode and verbose logging
val initSettings = InitSettings(
test = false, // Disable test mode for production
verbose = false, // Disable verbose logging for production
userProperties = UserProperties(
userId = "<your-user-id>",
customProperties = customProperties
)
)
// Initialize SDK for production
XMediatorAds.startWith(
activity = this,
appKey = "<your-app-key>",
initSettings = initSettings,
initCallback = {
Log.d("XMediator", "Production SDK initialized successfully!")
// Start loading your production placements
}
)
// Production configuration - disable test mode and verbose logging
InitSettings initSettings = new InitSettings.Builder()
.setTest(false) // Disable test mode for production
.setVerbose(false) // Disable verbose logging for production
.setUserProperties(new UserProperties.Builder()
.setUserId("<your-user-id>")
.setCustomProperties(customProperties)
.build())
.build();
// Initialize SDK for production
XMediatorAds.startWith(
this,
"<your-app-key>",
initSettings,
initResult -> {
Log.d("XMediator", "Production SDK initialized successfully!");
// Start loading your production placements
return Unit.INSTANCE;
}
);
Before deploying to Google Play Store:
- ✅ Set
test = false
to disable test ads - ✅ Set
verbose = false
to disable debug logging - ✅ Replace test placement IDs with production IDs
- ✅ Verify Google Ads App ID in AndroidManifest.xml
- ✅ Test on physical devices with production configuration
- ✅ Remove any debug build configurations
- Review Configuration: Double-check that all placement IDs match your production setup in the admin panel.
Build Your App
With the production configuration in place, build your app for release:
- Remove debug flags and verbose logging
- Test on physical devices to ensure everything works correctly
- Verify ad loading and display in production mode
Deploy to App Stores
Upload Your App
With the integration complete and configurations switched to production, you're ready to upload the new version of your app to:
- Google Play Store (Android)
- Apple App Store (iOS)
Post-Deployment Monitoring
After your app is live, monitor the performance of monetization, log in to the admin panel and access the dashboard section. There, you will find all the necessary information in real time.
Congratulations! 🎉
Thanks for trusting X3M! We're excited to help you succeed with your app's monetization.