SDK Initialization
Tip
Do this once, before attempting to load any ads.
Call InitializeSdk and pass your partner key.
You might find it useful to wrap this call in a dedicated MonoBehaviour to be invoked from Start -- (see Order of execution for event functions) -- once attached to some object on the scene.
"Banner" sample provides such a demo:
using System;
using AppstockSDK.Api;
using UnityEngine;
namespace AppstockSDK.Demo.Banner
{
public class SdkInitializer : MonoBehaviour
{
// Start is called before the first frame update
private void Start()
{
Debug.Log($"[{DateTime.Now:O}] Attempting to init SDK...");
Appstock.InitializeSdk("appstock-demo");
}
}
}