Hello!
I have a problem with unity ads there is always the same error:
UnityAdsEditor: Initialize(1236720, False);
UnityEditor.Advertisements.UnityAdsEditor:EditorOnLoad()
I made exactly the unity ads integration tutorial says, i linked my proyect to UnityAds page, i used the same script in the tutorial:
using UnityEngine;
using UnityEngine.Advertisements;
public class UnityAdsExample : MonoBehaviour
{
public void ShowRewardedAd()
{
if (Advertisement.IsReady("rewardedVideo"))
{
var options = new ShowOptions { resultCallback = HandleShowResult };
Advertisement.Show("rewardedVideo", options);
}
}
private void HandleShowResult(ShowResult result)
{
switch (result)
{
case ShowResult.Finished:
Debug.Log("The ad was successfully shown.");
// YOUR CODE TO REWARD THE GAMER
VariablesJuego.riqueza += 150; // Give coins etc.
break;
case ShowResult.Skipped:
Debug.Log("The ad was skipped before reaching the end.");
break;
case ShowResult.Failed:
Debug.LogError("The ad failed to be shown.");
break;
}
}
}
but always my ads donāt work, can you say me how to fix it? Thanks.