OnUnityAdsShowComplete not working

I took the code from integration guide for unity and ads are shown,I get the screen.For now I am just implementing rewarded ads and I executed it like this:

 public void ShowAd()
    {
        // Disable the button: 
        // Then show the ad:
        Advertisement.Show(_adUnitId, this);//string _adUnitId = "Rewarded_Android";
    }//no problems in showing

The problem is here:

public void OnUnityAdsShowComplete(string placementId, UnityAdsShowCompletionState showCompletionState)
    {
        Debug.Log("Complete interface method executed");
            if (showCompletionState.Equals(UnityAdsShowCompletionState.COMPLETED))
            {
                Debug.Log("Finished ad/reward");
                videoFinishedDelegate?.Invoke();
            }
            else if (showCompletionState.Equals(UnityAdsShowCompletionState.SKIPPED))
            {
                Debug.Log(" not Finished ad/ no reward");
                videoAdSkippedAction?.Invoke();
            }      
    }

none of the debugs or delegates work whenever I press close in test screen. How do I fix it?

I fixed it
you should use Advertisement.AddListener(this); before you Initialize the Advertisement

Unit answers has been helpful as always :slight_smile:

So I switched to IUnityAdsListener interface(deleted others) and everything worked. Hope it helps someone.