📱Unity Bridge SDK Implementation Guide

This guide provides a comprehensive step-by-step process for integrating the Unity Bridge AdSter SDK into your Unity Android application.

App Prerequisite

  • minSdkVersion of 21 or higher

  • compileSdkVersion of 34

Android API level is set in Project Settings > Player > Android > Other Settings > Other Settings.

Go to Project Settings > Player > Android > Publishing Settings > Build and select:

  • Custom Main Manifest Template

  • Custom Main Gradle Template

Configuration Steps

Adding Dependency

  • Open the mainTemplate.gradle file.

  • Find the dependencies block and add the following SDK dependency.

implementation 'com.adstertech:orchestrationsdk-unity-bridge:2.1.2'

Use the below link to download the file and add AdsterBridgeUtil.cs in Assets > Scriptsin your unity project.

https://storage.googleapis.com/adster-unity-bridge-docs/AdsterBridgeUtil.cs

AndroidManifest.xml

Add the below code inside the androidmanifest.xml file.

<activity android:name="com.adster.adsterunitybridge.unitybridge.CustomUnityPlayerActivity"
                  android:label="@string/app_name"
                  android:exported="true"
                  android:theme="@style/UnityThemeSelector">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
        </activity>

Last updated