Hi All,
I’m having an issue with getting my AdMob reward video to show up. My other AdMob ads work perfectly and pop up on my device. The reward video will not show up. I have my ad ID’s in there and everything else hooked up, so I really don’t know what is going on (this is my first time using ads).
Here is my script:
{
public static AndriodAdControl InstanceAndriod{set;get;}
public string amRewardId;
public string amInterstitialId;
private void Start ()
{
InstanceAndriod = this;
DontDestroyOnLoad (gameObject);
Admob.Instance ().initAdmob (amRewardId, amInterstitialId);
Admob.Instance ().loadInterstitial ();
Admob.Instance ().loadRewardedVideo (amRewardId);
Admob.Instance ().setTesting (true);
}
public void AmShowRewardVideo ()
{
//#if UNITY_EDITOR
Debug.Log ("Unable to play rewardVid in editor");
//#elif UNITY_ANDROID
if (Admob.Instance ().isRewardedVideoReady())
{
Admob.Instance ().showRewardedVideo ();
DataManagement.datamanagement.totalCoins += 25;
DataManagement.datamanagement.SaveData ();
}
//#endif
}
}
Thank you! ![]()