Unity Ads Callback Problem,Unity ads callback problem
It seems like after following this quide https://unityads.unity3d.com/help/unity/integration-guide-unity#basic-implementation I'm not able to catch OnUnityAdsShowComplete callback for my Interstitial and Reward video. As far as I can see everything else is set fine, as the video is shown and the first callback OnUnityAdsShowStart is called as well. After closing the ad the nessesary callback isn't called. Can anyone help with this issue? The adverisment package version is 3.7.3. The Unity version is 2021.1.12f1.
,It seems like after following this quide https://unityads.unity3d.com/help/unity/integration-guide-unity#basic-implementation I'm not able to catch OnUnityAdsShowComplete callback for my Interstitial and Reward video. As far as I can see everything else is set fine, as the video is shown and the first callback OnUnityAdsShowStart is called as well. After closing the ad the nessesary callback isn't called. Can anyone help with this issue? The advertisment package version is 3.7.3. The unity version is 2021.1.12f1.
Did anyone find the answer? I am getting this same error.
Answer by BlasterDm · Jul 27, 2021 at 03:32 PM
Hey, @Cartuco, actually I wrote a post about this issue on forum too. Didn't get the answer yet. But the solution we came up to is to replace IUnityAdsShowListener interface with IUnityAdsListener one. But don't forget to manually registrate your script as listener in the Awake function for example. I would remove it as a listener in OnDestroy function as well. The callbacks names will differ as well. There is info here: https://unityads.unity3d.com/help/unity/api-unity#iunityadslistener alt text
I reconfigured everything and it really worked with IUnityAdsListener, hope it works in game publishing. Thanks
Answer by Cartuco · Jul 27, 2021 at 02:14 PM
Did you get any solution to this problem? because the same thing is happening to me.
Answer by LFumery · Sep 10, 2021 at 08:26 AM
Hi, I've got the same issue with Unity 2020.3.17f1 and Advertisement 3.7.5. Were you able to find a better answer? Thanks!
Answer by kubpica · Oct 27, 2021 at 11:14 AM
OnUnityAdsShowComplete is not called in the editor, but should be called in build. Imo it's bug but they seem to not care: https://support.unity.com/hc/en-us/requests/1118084?page=1
Answer by VVayToyek · Dec 29, 2021 at 08:43 AM
I updated Advertisement to 4.0.0, the Initialization callback and showad callback looks working, although the loadad callback still not working to me. And it seems like the OnUnityAdsShowComplete callback is calling mutli times I dont know why, so I make a bool check to make sure it will callback and reward once. but I am not test it in built game play yet.