I tried to load ads in "OnAdClosed" callback.
But I think if the loading ads is failed, I should load it again.
Should I load ads in "OnAdFailedToLoad" too?
When I tried it before, a lot of loding are requested.
So, now I programmed like this.(I use AdMob for Unity.)
void Awake()
{
rewardBasedVideo = RewardBasedVideoAd.Instance;
rewardBasedVideo.OnAdFailedToLoad += HandleRewardBasedVideoRewardedFailed;
...
}
public void HandleRewardBasedVideoRewardedFailed(object sender, AdFailedToLoadEventArgs args)
{
Debug.Log( "Failed to load video reward : " + args.Message );
if( Application.internetReachability == NetworkReachability.NotReachable ) return;
Invoke( "RequestRewardBasedVideo", 10.0f );
}
Is it right way?
Thank you.