Hi Guys! I’ve recently updated unityads and now there is no Advertisement.IsLoaded so I have been trying to get the alternative to work via callbacks. Unfortunately, I’m not getting any callbacks.
I’m using unity 2020.3.25 and the latest unityads 4.2.1
Here are the “important bits” of my script,
InterstitialIntegration : MonoBehaviour , IUnityAdsLoadListener, IUnityAdsShowListener, IUnityAdsInitializationListener
...
private static bool _unityAdReady = false;
void Start ()
{
Advertisement.Initialize ( UNITY_ADS_ID, false,this);
}
public static void ShowInterstial()
{
if (_unityAdReady)
{
_unityAdReady = false;
Advertisement.Show ( UNITY_ADS_ID );
}
}
public void OnUnityAdsAdLoaded(string adUnitId)
{
_unityAdReady = true;
Debug.Log("ADS OnUnityAdsAdLoaded");
// Optionally execute code if the Ad Unit successfully loads content.
}
what am I missing? thanks in advance!