I implemented unit ads into my game and they worked fine but have suddenly stopped working. I believe it is due to a scripting error however no errors have occured.My game is targeted to Android. I have updated unity and attempted to use the unity ad plug in can some one help me?I am new to the program thanks.
script
using UnityEngine.Advertisements;
using UnityEngine.UI;
using UnityEngine;
public class ADS : MonoBehaviour
{
public Text Gems;
public GameObject cube;
public int money;
private void Start()
{
money = PlayerPrefs.GetInt(“money”);
}
public void ShowAd()
{
if (Advertisement.IsReady())
{
Advertisement.Show(“rewardedVideo”,new ShowOptions(){resultCallback = HandleAdResult});
}
}
Thank you for replying so swiftly .I am using unity version 5.6.0f3 64bit . i was being displayed test ads and my build had displayed real ads but whilst working on my game unity had crashed when i reloaded unity it asked me to refresh access so i did since then it has not bee working. I tried tweeking the settings on the services tab but nothing improved .In the editor the ads don’t work.