How can I track that the user closed the rewarded video without watching it to the end? (IronSource)

848 views Asked by At

I am using IronSource and cannot see how I can track that the user closed the rewarded video without watching it to the end. I need this for analytics, I have to send an event in the case when the user has not watched the rewarded video to the end, but closed it and did not receive a reward for it.

1

There are 1 answers

6
luvjungle On BEST ANSWER

You need to implement rewarded video events, as described here: https://developers.ironsrc.com/ironsource-mobile/unity/rewarded-video-integration-unity/

You need those events:

void Init()
{
    // IronSource initialization code

    // add callbacks to events;
    IronSourceEvents.onRewardedVideoAdClosedEvent += RewardedVideoAdClosedEvent; 
    IronSourceEvents.onRewardedVideoAdRewardedEvent += RewardedVideoAdRewardedEvent;
} 

void RewardedVideoAdClosedEvent()
{
}

void RewardedVideoAdRewardedEvent(IronSourcePlacement ssp)
{
}

If I understand correctly, ad closed can be fired even if ad was closed with reward, so you need to implement logic to filter analytic events in this case.