AppBrain | AppLift SDK

Integration with Unity

This section describes how to integrate the AppBrain AppLift SDK into your Unity app and start monetizing it.

Unity integration steps

  • Download the AppLift SDK from the AppLift GitHub page
  • Open Unity with your project, e.g. “MyProject”
  • The Unity related files are in the AppLift SDK in the unity/ directory. Copy these files (Ads.cs, AppBrain.cs, AndroidManifest.xml and appbrain-applift-sdk-VERSION.jar) to "MyProject"/Assets/Plugins/Android
  • Call AppLift functions where appropriate (see below)

If you use your own AndroidManifest.xml, please add the AppLift specific lines from our example file. Also add the following line to the Unity Player activity definition:

<meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />

The following example shows the use of AppLift functions in C# (see also main.cs).

using UnityEngine;
using System.Collections;
using AppLift;

public class main : MonoBehaviour {
    void Start () {

    void Update () {
        if (Input.GetKeyUp(KeyCode.Escape)) {

Please refer to the rest of the documentation for further instructions on how to use the SDK.