can i use MobileAds.initialize() in Activity.onResume()?

72 views
Skip to first unread message

Гоша Чебанов

unread,
May 8, 2020, 1:40:14 AM5/8/20
to Google Mobile Ads SDK Developers
can i use MobileAds.initialize() in Activity.onResume()?

Mobile Ads SDK Forum Advisor Prod

unread,
May 8, 2020, 3:12:34 AM5/8/20
to 3dpor...@gmail.com, google-adm...@googlegroups.com

Hi there,

 

Thank you for raising this to us.

 

As per our documentation, the Mobile Ads SDK should be initialized only once, ideally at app launch. In relation to Android Lifecycle, the nearest possible callback for this would be the onCreate() since the onResume() callback is called multiple times as this is where the app already interacts with the user.

 

Regards,

Mark Albios

Mobile Ads SDK Team



ref:_00D1U1174p._5004Q1zKq6P:ref
Reply all
Reply to author
Forward
0 new messages