Android
Android platform configuration instructions
Choose ad networks
Open ./BidappAds/Assets/BidappAds/Editor/Dependencies.xml
To add networks for the Android Platform In the
<androidPackages></androidPackages>
section, add Bidapp Mediation SDK, Bidapp Unity Wrapper and the desired Networks Adapters (all or any combination of them):<dependencies> <androidPackages> <androidPackage spec="io.bidapp:sdk:+"> <androidSdkPackageIds> <androidSdkPackageId>extra-google-m2repository</androidSdkPackageId> </androidSdkPackageIds> <repositories> <repository>https://maven.google.com</repository> </repositories> </androidPackage> <androidPackage spec="io.bidapp:bidappUnity:+" /> <androidPackage spec="io.bidapp.networks:applovin:+" /> <androidPackage spec="io.bidapp.networks:applovinmax:+" /> <androidPackage spec="io.bidapp.networks:chartboost:+"> <repositories> <repository>https://cboost.jfrog.io/artifactory/chartboost-ads/</repository> </repositories> </androidPackage> <androidPackage spec="io.bidapp.networks:liftoff:+" /> <androidPackage spec="io.bidapp.networks:unity:+" /> <androidPackage spec="io.bidapp.networks:admob:+" /> <androidPackage spec="io.bidapp.networks:digitalturbine:+" /> <androidPackage spec="io.bidapp.networks:facebook:+" /> <androidPackage spec="io.bidapp.networks:startIo:+" /> <androidPackage spec="io.bidapp.networks:yandex:+" /> <androidPackage spec="io.bidapp.networks:mytarget:+" /> <androidPackage spec="io.bidapp.networks:inmobi:+" /> <androidPackage spec="io.bidapp.networks:mintegral:+"> <repositories> <repository>https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea</repository> </repositories> </androidPackage> <androidPackage spec="io.bidapp.networks:bigoads:+" /> <androidPackage spec="io.bidapp.networks:ironsource:+"> <repositories> <repository>https://android-sdk.is.com/</repository> </repositories> </androidPackage> <androidPackage spec="io.bidapp.networks:smaato:+" /> <repositories> <repository>https://s3.amazonaws.com/smaato-sdk-releases/</repository> </repositories> </androidPackages> </dependencies>
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.
<manifest>
<application>
<!-- Sample AdMob app ID: ca-app-pub-3940256099942544~3347511713 -->
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy"/>
</application>
</manifest>
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
Was this helpful?