Initialization

Initialize AATKit

Call AATKitBinding.Init method passing the configuration object to initialize AATKit.

using UnityEngine;

public class AATKitDemo : MonoBehaviour
{
    void Start()
    {
        AATKitConfiguration aatkitConfiguration = new AATKitConfiguration(
        {
            //Set desired configuration
            TestModeAccountId = 136,
            Consent = new AATKitConsent()
            {
                Type = AATKitConsent.ConsentTypes.ManagedCMPGoogle
            }
        };)

        AATKitBinding.Init(aatkitConfiguration);
    }
}

Make sure to remove the TestModeAccountId from your AATKitConfiguration before you publish your app to the store. Otherwise, your app will not earn any ad revenue.

Last updated