How should I preload the reward ad?

1,201 views
Skip to first unread message

渡部健

unread,
Apr 2, 2018, 4:32:06 AM4/2/18
to google-adm...@googlegroups.com
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.

mobileadssdk-a...@google.com

unread,
Apr 2, 2018, 12:50:54 PM4/2/18
to 渡部健, Google Mobile Ads SDK Developers
Hello, 

Thank you for contacting us. It is recommended that you reload the new rewarded video ad in the OnAdClosed event. If the ad is failing to load, you might want to consider looking as to why the ad is failing to load. Additionally, you will need to call LoadAd() as early as possible to allow videos to be preloaded as mentioned here

If you're having trouble loading the ads, please share us your Ad Unit ID along with the complete device logs, so I can take a look? Please use Reply privately to author option to share the details.

Regards,
Bharani Cherukuri
Mobile Ads SDK Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

渡部健

unread,
Apr 2, 2018, 9:38:03 PM4/2/18
to Google Mobile Ads SDK Developers
Hello,

Thank you for your reply.
So, you mean that I need reload only in the OnAdColosed event?
Is OnAdClosed called when the ad is failing to load?
Or I need reload it also in the OnAdFailedToLoad event?

Thank you.

Ken

2018年4月3日火曜日 1時50分54秒 UTC+9 mobileadssdk-a...@google.com:

mobileadssdk-a...@google.com

unread,
Apr 3, 2018, 2:14:32 PM4/3/18
to 渡部健, Google Mobile Ads SDK Developers
Hello Ken, 

You will be able to load ads both on the OnAdClosed and OnAdFailedToLoad events. However, we recommend that you reload the rewarded video ad in the OnAdClosed event. If you're not able to load the ad, we would recommend that you take a look as to why it is failing to load. Requesting the ad too many times with in short period of time may flood the server with too many ad requests.

Regards,
Bharani Cherukuri
Mobile Ads SDK Team 

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/8c0452e5-bede-4a83-8a4c-f3eea7ba21cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages