SDK Integration

This article provides instructions for integrating the DT Offer Wall which is included in the DT FairBid SDK. You can integrate DT Offer Wall on Android, iOS, and Unity platforms. Android and iOS require platform-specific setup, whereas Unity uses plugins for integration to simplify the process and ensure cross-platform compatibility. Select the appropriate tab to access platform-specific requirements, setup procedures, and integration methods.

Tip

Offer Wall and FairBid are parts of the same integration package, so if you have already integrated FairBid in your app, skip to OfferWall configuration.

Android iOS Unity

Android

Current SDK Version: 3.60.0

Prerequisites

Android API Android 4.1 (API Level 16) or later.
Kotlin 2.1.0 or later.
Google Play Services 11.4.0 or later.

Tooling

FairBid SDK does not require specific tooling, e.g., Android Studio, Android Gradle Plugin (AGP), Java Development Kit (JDK), and Gradle. However, if you use the following versions of Gradle, use the following versions of AGP and JDK:

GRADLE AGP JDK
7.5 or later 7.4.2 11
8 or later 8 or later 17

Compile and Target SDK

FairBid SDK does not require specific compile or target SDK versions for your app. It maintains compatibility by performing runtime checks for APIs that are not available in the minimum supported version (API Level 16). The highest Android API that FairBid directly utilizes is API Level 30.

Integration

DT supports both Gradle dependencies and manual downloads to integrate the SDK.

Gradle

Add DT Maven repository and plugins to your gradle build script:

  1. Add the following to your project's root level build.gradlefile inside the repositories section.
  2. At the root level build.gradle file, there are usually two repository sections - one for buildscript and one for allprojects. Add the entry in allprojects:
allprojects {
    repositories {
        mavenCentral()
    }
    ...
}
  1. Add the following to the project app-level build.gradle file inside the plugins section (For additional information, see Types of Gradle Plugins):
plugins {
    ...
    id 'com.fyber.fairbid-sdk-plugin' version '3.60.0'
    ...
}
  1. If you support Android SDK below 26, add the following snippet to the Android section (for Java Version Compatibility):
android {
    ...
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    ...
}

Manual Download

  1. Download the DT FairBid SDK.
  2. Extract the file.
  3. Import the .aar packages into your project.

Back to Top ⇧