Android Platform Setup

Integration instruction for Android platform

  1. Open the build.gradle file of your shared module.

  2. To add networks for the Android Platform In the androidMain.dependencies section, add the following line or any combination of them:

androidMain.dependencies {
    ...
    implementation ("io.bidapp.networks:applovin:+")
    implementation ("io.bidapp.networks:applovinmax:+")
    implementation ("io.bidapp.networks:unity:+")
    implementation ("io.bidapp.networks:liftoff:+")
    implementation ("io.bidapp.networks:admob:+")
    implementation ("io.bidapp.networks:chartboost:+")
    implementation ("io.bidapp.networks:startIo:+")
    implementation ("io.bidapp.networks:facebook:+")
    implementation ("io.bidapp.networks:digitalturbine:+")
    implementation ("io.bidapp.networks:yandex:+")
    implementation ("io.bidapp.networks:mytarget:+")
    ...
}

Before adding the Admob adapter, it's crucial to add the Admob APPLICATION_ID as a meta-data in your AndroidManifest.xml file of the androidApp module. This is mandatory for adapter to function correctly.

Before adding Applovin\Applovin MAX adapters, it's crucial to add the Applovin SDK KEY as a meta-data in your AndroidManifest.xml file of the androidApp module. This is mandatory for adapters to function correctly.

Before adding StartApp adapter, it's crucial to add the <provider/> tag in the <application> tag of your AndroidManifest.xml file of the androidApp module. This is mandatory for adapters to function correctly.

<application>

...

<provider

android:name="com.startapp.sdk.adsbase.StartAppInitProvider"

android:authorities="${applicationId}.startappinitprovider" tools:node="remove" />

...

</application>

Permissions

Make sure to add the next permissions to your androidApp - AndroidManifest.xml to ensure the SDK functions as intended:

  • For accessing the Google Advertising ID.

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

This is required by the Android Advertising ID (AAID) module - com.google.android.gms:play-services-ads-identifier

  • For analytics.

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

  • For the SDK to operate correctly.

<uses-permission android:name="android.permission.INTERNET" />

Last updated