What are the best practices regarding a failure of MobileAds.Initialize()?

205 views
Skip to first unread message

Dominic Hamelin-Blais

unread,
Jun 3, 2022, 1:58:33 PM6/3/22
to Google Mobile Ads SDK Developers
MobileAds.Initialize can complete with all the adapters having a status of "NotReady" (ex: if the player opened the game while offline).

What's the best practice about that? Can the game still pre-loads ads or the game should retry to call Initialize() until at least one adapter is Ready?

Regards


Mobile Ads SDK Forum Advisor

unread,
Jun 6, 2022, 4:06:08 AM6/6/22
to dham...@gmail.com, google-adm...@googlegroups.com

Hi Dominic,

Thank you for reaching out to us.

As per checking into our documentation, it mentioned that during that initialization call, mediation and bidding adapters also get initialized. It is important to wait for initialization to complete before you load ads in order to ensure full participation from every ad network on the first ad request. In addition to that, you can follow this checklist to make sure your setup is correct:

  • In the AdMob UI, your AdMob ad unit belongs to the same AdMob app ID that you passed to the Google Mobile Ads SDK.
  • In the AdMob UI, your AdMob ad unit targets a mediation group that has a bidding entry configured for that third-party ad network.
  • In your app code, you initialized the mobile ads SDK and verified the adapter status is 
  • READY
  •  prior to loading an ad.
  • In your app code, you've included the latest version of the adapter and SDK binaries for the ad source you're trying to integrate with.

Regards,

Google Logo
Princess Pamela
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2bbqQD:ref

Dominic Hamelin-Blais

unread,
Jun 6, 2022, 9:56:30 AM6/6/22
to Google Mobile Ads SDK Developers
Thanks for the answer.

I have already understand this part of the documentation. And now I'm wondering what are the best practices in cases things went wrong. If AdMob (or third-party) adapters all returns NotReady during the initilialization it's not recommended to load ads. I have already read that the initialization process should be called only once. What the game should do now, how to recover from the NotReady adapters? We disable all the ad features and tell the users to restart the game? Doesn't seem like good flow.

Regards

Mobile Ads SDK Forum Advisor

unread,
Jun 7, 2022, 4:02:56 AM6/7/22
to dham...@gmail.com, google-adm...@googlegroups.com

Hi Dominic,

Thank you for your response.

With regard to this, we still don't experience this kind of behavior that all the adapters are returning NotReady. As long as you've followed the recommendations mentioned on this thread, then we would recommend no further action.

Dominic Hamelin-Blais

unread,
Jun 7, 2022, 9:17:13 AM6/7/22
to Google Mobile Ads SDK Developers
Ok thanks. Good to know.

And it seems that I can't reproduce the NotReady adapters anymore (which happened while booting the game offline) with the latest SDK (v21) + the new Android optimization feature.

Mobile Ads SDK Forum Advisor

unread,
Jun 7, 2022, 10:31:16 AM6/7/22
to dham...@gmail.com, google-adm...@googlegroups.com

Hi Dominic,

If you have any other concerns related to the implementation of Google Mobile Ads SDK, kindly provide us the details. We'll be happy to assist you.

Reply all
Reply to author
Forward
0 new messages