Question by
The_Mean_Fiddler · Apr 19, 2021 at 10:01 AM ·
unity ads
OnUnityAdsDidFinish not firing
The Ad runs OK and the OnUnityAdsDidStart() runs OK
but I watch the whole advert and it never fires OnUnityAdsDidFinish() Callback
I'm using Unity 2020.3.2f1 Unity Ads 3.7.1
using System;
using UnityEngine;
using UnityEngine.Advertisements;
class Adverts : MonoBehaviour, IUnityAdsListener
{
void Start()
{
#if UNITY_ANDROID
Advertisement.Initialize("123456", false);
#endif
#if UNITY_IOS || UNITY_IPHONE
Advertisement.Initialize("123457", false);
#endif
Advertisement.AddListener(this);
}
public void PlayVideoRecover()
{
if (Advertisement.IsReady("rewardedVideo"))
{
Advertisement.Show("rewardedVideo");
}
}
public void OnUnityAdsReady(string surfacingId)
{
// If the ready Ad Unit or legacy Placement is rewarded, show the ad:
if (surfacingId == "rewardedVideo")
{
// Optional actions to take when theAd Unit or legacy Placement becomes ready (for example, enable the rewarded ads button)
}
}
public void OnUnityAdsDidError(string message)
{
Debug.Log("Ad Errored");
}
public void OnUnityAdsDidStart(string surfacingId)
{
Debug.Log("Ad Started");
}
public void OnUnityAdsDidFinish(string surfacingId, ShowResult result)
{
Debug.Log("Ad finished");
}
// When the object that subscribes to ad events is destroyed, remove the listener:
public void OnDestroy()
{
Advertisement.RemoveListener(this);
}
}
Anybody having similar problems or am I just being stupid?
Seen other people had this issue over a year ago and they were advised to roll back to a previous version of Unity Ads. Surely this is fixed by now?
Thanks for your help
Comment
Your answer
Follow this Question
Related Questions
unity add not show on mobile why? 0 Answers
i have a problem using unity ads 1 Answer
Unity ADS explanation 0 Answers
Unity ads only show 4-5 times 0 Answers
Unity Ads Operate dashboard - AD delivery disabled and can't enable anymore!... 0 Answers