Confiant Plugin Documentation for Android
Confiant Plugin Integration Manual
Release Note (7.2.2)
Confiant Plugin for Android
If you wish to enable Confiant, please contact the Stroeer team for assistance.
Note: This feature is only available from Version 6.24.0 onwards.
1. Overview
This manual provides instructions for setting up Confiant within the YieldloveAdIntegration framework in your Android app.
2. Before you start
Please refer to this guide for detailed instructions. This manual specifically explains how to enable the Confiant feature.
3. Try out our example app
We invite you to take a look at example app.
4. Add SDK dependencies to your project
Using Gradle:
Please include the following block in their build.gradle file:
repositories {
maven { url ''https://slabs-yieldlove-ad-integration.s3.eu-central-1.amazonaws.com/android' }
maven{
url 'https://cdn.confiant-integrations.net/backend-integrations/in-app/releases/android/maven'
content {
includeGroup("com.confiant.android")
}
}
}
Use our libraries as dependencies:
dependencies {
implementation 'com.confiant.android:sdk:6.1.1-2'
implementation 'com.yieldlove.adIntegration:confiant:7.2.2'
implementation 'com.yieldlove.adIntegration:yieldlove:7.2.2'
}For other package management tools, see page on Bintray
5. Implementation
5.1. Setup
Initialize Confiant
To get started with Confiant, you need to initialize it properly.
// Obtain the singleton instance of ConfiantLoader and initialize it
ConfiantLoader.getInstance().initialize(
"confiantPropertyId", // Replace with your actual Confiant property ID
true, // This setting determines whether Confiant should reload advertisements when they are blocked.
new IAdMonitorCallback() { // Callback to handle the initialization result
@Override
public void onInitialized(boolean isInitialized) {
// This method is called once the initialization is complete
// 'isInitialized' indicates whether initialization was successful
if (isInitialized) {
// Initialization succeeded - add your logic here
} else {
// Initialization failed - handle the failure
}
}
}
);
Parameters:
confiantPropertyID: To obtain theconfiantPropertyID, please contact the Stroeer Support Team or the Confiant Team.enableReload: This setting determines whether Confiant should reload advertisements when they are blocked.If set to
true, Confiant will attempt to reload the advertisement up to two times.If set to
false, the invalid advertisement will simply be blocked without a reload attempt.
Enable Test Mode
To test the Confiant feature, use the following code:
ConfiantLoader.getInstance().enableTestMode();All advertisements will be blocked by Confiant. This setting is intended for testing purposes only.
Important Note
Test Mode must not be enabled in production environments. These modes are intended only for testing and development.