implementing Google Admob SDK severely impacts app startup time

259 views
Skip to first unread message

Rik Van velzen

unread,
Oct 19, 2019, 12:47:02 PM10/19/19
to google-adm...@googlegroups.com
Does anyone have any idea why the implementation of the admob sdk severly impacts my app startup time.
Anyone had any troubles with this as well?

Whether I use the stand alone or the firebase related sdk my app startup time now changes from a normal and good start up time to an average of 10 or more seconds.

I would like to implement it, but it just seems unworkable for now.

Any hints/tips greatly appreciated.

btw. I have implemented version 18.2.0


I.D.E.

unread,
Oct 19, 2019, 5:25:43 PM10/19/19
to Google Mobile Ads SDK Developers
It's a known issue. There are some workarounds:

Also consider trying an older version of the AdMob SDK, which may perform slightly quicker. You can find older version numbers here: https://maven.google.com --> search for "play-services-ads" or "firebase-ads" and click to expand the sub-lists.

Mobile Ads SDK Forum Advisor Prod

unread,
Oct 21, 2019, 5:05:29 AM10/21/19
to google-adm...@googlegroups.com

Hi there,

Thank you for reaching out to us. 

With regard to your concern, this is a normal behavior of the SDK as it utilize the WebView which, impacts startup time of some devices. 

One of the solutions provided by our Engineering team is to include this code into your app (also provided by inibehe@ on this same thread), and to call it on app startup before invoking the SDK. Could you compare how long the SDK takes to init?

private void initWebView() {
    long beforeWebViewInit = System.currentTimeMillis();
    WebView webView = new WebView(this);
    webView.loadUrl("https://www.google.com");
    long afterWebViewInit = System.currentTimeMillis();
    Log.d("MyApp", "WebView init diff: " + (afterWebViewInit - beforeWebViewInit));
  }


Regards,
Teejay Pimentel
Mobile Ads SDK Team 



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