Login
Welcome
Login

Import the Teads inApp SDK in your project

  1. Prerequisites
  2. Manifest
  3. Import the Teads inApp SDK

Prerequisites

  • Target Android SDK Version level 28+
  • Minimum Android supported version 19+(98.1%+)
  • Android gradle plugin to v3.2.1 or later
  • AndroidX support libraries

Manifest

If your apps target Android 13 or above, to improve your ad fill rate, we strongly recommend that you declare a Google Play services normal permission in the manifest file as follows.

This permission will allow the TeadsSDK to obtain the Advertising ID for the purpose of serving campaigns with targeting features:

<uses-permission android:name="com.google.android.gms.permission.AD_ID"/>

Teads video player requires GPU usage for rendering graphics, in order to grant it, add the following configuration at the application level:

<application android:hardwareAccelerated="true"/>

Import the Teads inApp SDK

Import the Teads inApp SDK with a Gradle dependency that points to Teads' Maven repository. In order to use that repository,
you need to reference it in the project build.gradle file.

project/build.gradle

repositories {
  maven { url  "https://teads.jfrog.io/artifactory/SDKAndroid-maven-prod" }
  maven {
    // Mandatory for Huawei device compatibility
    url  "https://developer.huawei.com/repo/"
  }
}

app/build.gradle

dependencies {
  ...
  // Required dependency
  implementation 'com.google.android.gms:play-services-ads:22.6.0' // or higher

  // Teads inApp SDK
  implementation("tv.teads.sdk.android:sdk:5.x.x@aar") {
    transitive = true
  }

  // Mandatory for Huawei device compatibility
  implementation 'com.huawei.hms:ads-identifier:3.4.28.313' // or higher
}

Run Gradle sync to download the SDK.

You can find the latest release version number here https://github.com/teads/TeadsSDK-android/releases

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.