SDK Integration

This article provides detailed instructions for integrating the DT FairBid SDK on Android, iOS, and Unity platforms. Select the appropriate tab to access platform-specific requirements, setup procedures, and integration methods. 

Android iOS Unity

Android

Current SDK Version

  • 3.56.0

Note that since version 3.41.0, DT FairBid and DT Offer Wall are integrated through the same SDK - the DT FairBid SDK.

Prerequisites

  • Android 4.1 (API Level 16)+
  • Google Play Services 11.4.0+

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.gradle file 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.56.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 ⇧