Unity Ad

I have button that show rewarded ads and load other scene after ad. Also rewarded ad script have IUnityAdsShowListener interface, so I can check whether ad completed. When push the button at the first time all is good, but in second time result double. In this example “REWARDED AD” will be printed twice, on third push result will be printed three times and so on.
What’s problem?

    public void OnUnityAdsShowComplete(string placementId, UnityAdsShowCompletionState showCompletionState)
    {
        if (placementId.Equals(_androidName) && showCompletionState == UnityAdsShowCompletionState.COMPLETED)
        {
            Debug.Log("REWARDED AD");
        }
        else
        {
         
        }
    }

@bratan20000 Had the same problem in Ads 4.0.0 and it seems to be a known bug for unity team which only occures in the editor but not in builds Callbacks are called more and more often

1 Like

Oh, thank!
In build version it is really works.

1 Like