Hi Rob,
I added some more print functions and it’s firing the “( event.phase == “hidden” or event.phase == “playbackEnded” )” twice. The Clicked phase is never entered.
Hi Rob,
I added some more print functions and it’s firing the “( event.phase == “hidden” or event.phase == “playbackEnded” )” twice. The Clicked phase is never entered.
It looks to me like it’s doing exactly as I suggested yesterday. It’s not triggering the same phase twice, it’s triggering those 2 separate phases:
“playbackEnded” is self-explanatory, it gets called when you reach the end of the ad.
“hidden” is most likely called _either _when the user dismisses the ad or when the ad automatically closes itself once it ends.
So it’s very likely that when an ad plays it triggers the “playbackEnded” as soon as the ad reaches then end, and then “hidden” when the ad disappears and returns back to your app. If you print out the phase itself rather than just printing inside the if statement, you should be able to see both of these phases being called. I would suggest that you don’t check for both of these phases when deciding whether to give the user the free item, just use the “playbackEnded” phase.
I suspect the “clicked” phase is only supposed to be triggered if the user clicks the “download” button or whatever the ad uses to redirect to the relevant app store.
Hi Alan,
That I overlooked that! I guess I misunderstood your first response, but a thousand thanks. This was the final touch that I’d to make to my game 
Have a nice day,
Bram