I took the code from [integration guide][1] 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?
[1]: https://unityads.unity3d.com/help/unity/integration-guide-unity#basic-implementation
↧