i implemented admob ads successfully however im having issue with when player closes the ad , my goal is to check if player completed the ad to get rewarded , basically what i have now is that i can display a gameover panel when ad is closed while the ad is running which is nice , but the gameover panel shows even when player have succesfuly watched the ad , so how can i acheive that ?
public void HandleRewardedAdLoaded(object sender, EventArgs args)
{
MonoBehaviour.print(“HandleRewardedAdLoaded event received”);
}
public void HandleRewardedAdFailedToLoad(object sender, AdErrorEventArgs args)
{
MonoBehaviour.print(
"HandleRewardedAdFailedToLoad event received with message: "
+ args.Message);
}
public void HandleRewardedAdOpening(object sender, EventArgs args)
{
MonoBehaviour.print("HandleRewardedAdOpening event received");
}
public void HandleRewardedAdFailedToShow(object sender, AdErrorEventArgs args)
{
MonoBehaviour.print(
"HandleRewardedAdFailedToShow event received with message: "
+ args.Message);
}
public void HandleRewardedAdClosed(object sender, EventArgs args)
{
GameOverPanel_OnAdClosed.SetActive(true);//this is the gameover panel , it shows when player close ad on middle or successfully finish watching it
MonoBehaviour.print("HandleRewardedAdClosed event received");
}
public void HandleUserEarnedReward(object sender, Reward args)
{
RewardNotif.SetActive(true);
string type = args.Type;
double amount = args.Amount;
MonoBehaviour.print(
"HandleRewardedAdRewarded event received for "
+ amount.ToString() + " " + type);
}