1. Sign up at https://adcel.co

  2. Add your applications and get SDK key (%SDK_KEY%) for each of them

  3. By double-clicking on AdCelVerify.unitypackage import the plugin into the new existing project.

  4. When you launch your app, initialize the SDK. You can do it in the method start of the script, connected to the MainCamera or the workspace object.

using UnityEngine;
using System;
using AdCel;

public class DemoVerifyGUI : MonoBehaviour
{
    // Use this for initialization
    void Start()
    {
AdCelVerify.Instance.SetLogging(true);

        string appId = "";

#if UNITY_ANDROID
appId = "%SDK_KEY%";
#endif
#if UNITY_IOS || UNITY_IPHONE
appId = "%SDK_KEY%";
#endif
        AdCelVerify.Instance.Start(appId);
    }

    // Update is called once per frame
    void Update()
    {
    }

    void OnGUI()
    {
    }

    void OnApplicationPause(bool pauseStatus)
    {
        Debug.Log("OnApplicationPause: " + pauseStatus);
        if (pauseStatus) {
            AdCelVerify.Instance.Pause();
        } else {
            AdCelVerify.Instance.Resume();
        }
    }
}

AdCelVerify.Instance.SetLogging(true) method changes the volume of debug logs. Don't use it if your don't need debug logs.

Did this answer your question?