MobileAds.initialize( ...)

371 views
Skip to first unread message

Michal Bukáček

unread,
Apr 17, 2018, 8:10:21 AM4/17/18
to Google Mobile Ads SDK Developers
Hi,
I have two questions, I use admob advertising.
1) The MobileAds.initialize (,) which I use as first according to instruction is extremely slow for about 3 seconds  stop the main activity on metod onCreade. Can I use MobileAds.initialize () initialization and then define adView and adRequest in AsyncTask?

2) I have integrand ScrictMode for debug version and it write this bugs.

at com.google.android.gms.dynamite.zzh.<init>(Unknown Source)
at com.google.android.gms.dynamite.DynamiteModule.zzc(Unknown Source)
at com.google.android.gms.dynamite.DynamiteModule.zzac(Unknown Source)
at com.google.android.gms.internal.zzajr.zzav(Unknown Source)
at com.google.android.gms.internal.zzjr.zza(Unknown Source)
at com.google.android.gms.internal.zzly.zza(Unknown Source)
at com.google.android.gms.ads.MobileAds.initialize(Unknown Source)
at com.google.android.gms.ads.MobileAds.initialize(Unknown Source)

why ? Unknown Source
I have integrated com.google.firebase:firebase-ads:11.8.0

Best regards Michal Bukáček

mobileadssdk-a...@google.com

unread,
Apr 17, 2018, 3:01:28 PM4/17/18
to Michal Bukáček, Google Mobile Ads SDK Developers
Hi there,

The MobileAds.initialize (,) which I use as first according to instruction is extremely slow for about 3 seconds  stop the main activity on metod onCreade. Can I use MobileAds.initialize () initialization and then define adView and adRequest in AsyncTask? 

Yes you can do that. MobileAds.initialize () is only used to warm up the SDK and is optional. If you do not call it, then the SDK will call this automatically for the very first AdRequest call behind the scenes. This will save a few milliseconds when making the first AdRequest if initialize() is called onLaunch for you app.

 I have integrand ScrictMode for debug version and it write this bugs. 
Can you please send us the steps to reproduce this issue? Are you able to reproduce this locally with our Sample apps.
Regards,
Deepika Uragayala
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/bd4a6562-a5b5-4619-af14-e4d9d6ce6069%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mobileadssdk-a...@google.com

unread,
Apr 18, 2018, 2:49:54 PM4/18/18
to Michal Bukáček, Google Mobile Ads SDK Developers
Hi there,

Thanks for sharing the details. I've shared this with the team and I'll update this thread if I have any new information from the team.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

Lin Wang

unread,
Jun 30, 2018, 3:45:23 AM6/30/18
to Google Mobile Ads SDK Developers
Hey,

Is there any follow up on this issue? I can certainly reproduce this slowness in my application as well. Although doing the initialization in a background thread, I can clearly feel a freeze in my main UI since my main UI is a scroll view. Looks like there is some heavy lifting process taking too much CPU cycles.

I am using com.google.android.gms:play-services-ads-lite using 11.8.0, by the way.

Thanks,
Lin

mobileadssdk-a...@google.com

unread,
Jul 2, 2018, 2:39:50 PM7/2/18
to Lin Wang, Google Mobile Ads SDK Developers
Hi there,

Thanks for following up on the issue. Currently, we don't have any new updates from the team. We will update this thread if we have any new information. Can you please confirm us whether you are seeing the issue with the latest version of SDK as well?

Regards,
Deepika Uragayala
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.
Reply all
Reply to author
Forward
0 new messages