# Unity Bridge SDK Implementation Guide

{% hint style="info" %}
**App Prerequisite**

* minSdkVersion of 21 or higher
* compileSdkVersion of 34
  {% endhint %}

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

{% tabs %}
{% tab title="Android" %}
Go to **Project Settings > Player > Android > Publishing Settings > Build** and select:

* Custom Main Manifest Template
* Custom Main Gradle Template

<figure><img src="https://478532854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCB2PCHXmuIFVHa6AzhTp%2Fuploads%2FLO03uEQ9giOnJWVCLKte%2FScreenshot%202024-12-16%20at%204.43.06%E2%80%AFPM.png?alt=media&#x26;token=c4382288-dff7-4f1b-9970-8d6e457e597a" alt="" width="563"><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

## Configuration Steps

**Adding Dependency**

* Open the `mainTemplate.gradle` file.
* Find the dependencies block and add the following SDK dependency.

```groovy
implementation 'com.adstertech:orchestrationsdk-unity-bridge:2.2.7'
```

***

Use the below link to download the file and add AdsterBridgeUtil.cs in `Assets > Scripts`in your unity project.&#x20;

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

#### AndroidManifest.xml

Add the below code inside the androidmanifest.xml file.

```xml
<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>

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ub-docs.adster.tech/unity-bridge-sdk-implementation-guide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
