--
---
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/9e46d05a-8fc4-4a44-9984-3b8791c469f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I am having the same issue with my app, this MobileAds.initialize() method, when used as prescribed, is responsible for a huge part of my app startup time. A median of 405ms and a p95 of 1.5 seconds.
Is it safe to run the MobileAds.initialize() method on a background thread instead of running it on the main UI thread?
I am having the same issue with my app, this MobileAds.initialize() method, when used as prescribed, is responsible for a huge part of my app startup time. A median of 405ms and a p95 of 1.5 seconds.
Is it safe to run the MobileAds.initialize() method on a background thread instead of running it on the main UI thread?
--
---
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/e7d58660-cb31-4876-baef-75b2e6c239c2%40googlegroups.com.
Hi Steven,
Thanks for details!In our case ad load time increased by several seconds and not milliseconds on mobile connections or low end devices, which is the usual use case scenario for our app. When we call MobileAds.initialize() our app shows blank screen for several seconds and when we call it after UI is drawn, UI is freezed for several seconds, because of the expensive call on the main UI thread.
I really don't understand how it can beneficial for anybody to increase app launch time by few seconds, just to decrease first ad request time. You better ditch the method to avoid confusion and instead focus on optimizing the first ad request time.
On Wednesday, July 25, 2018 at 10:02:18 AM UTC+4, mobileadssdk-a...@google.com wrote:
Hi everyone,Below are my responses to your concerns:I am having the same issue with my app, this MobileAds.initialize() method, when used as prescribed, is responsible for a huge part of my app startup time. A median of 405ms and a p95 of 1.5 seconds.It is important to note that initializing the SDK using the MobileAds.initialize() method is optional. Also, if you decided not to call this method, the SDK will be initialized automatically on your very first Ad request which might increase the Ads load time to a few milliseconds more, similar to what Minas have observed. That said, you should be able to load Ads with or without implementing the MobileAds.initialize() as it is mainly for the purpose of initializing the SDK ahead to decrease load time on the first Ad request.Is it safe to run the MobileAds.initialize() method on a background thread instead of running it on the main UI thread?Please note that according to this guide, all calls to the Mobile Ads SDK such as the MobileAds.initialize() should be executed on the main thread and not in the background thread.Regards,Steven BalanMobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
http://googleadsdeveloper.blogspot.com
https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
On 07/25/18 02:08:29 russell.h...@gmail.com wrote:
I am having the same issue with my app, this MobileAds.initialize() method, when used as prescribed, is responsible for a huge part of my app startup time. A median of 405ms and a p95 of 1.5 seconds.--
Is it safe to run the MobileAds.initialize() method on a background thread instead of running it on the main UI thread?
---
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+unsubscrib...@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/e7d58660-cb31-4876-baef-75b2e6c239c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
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/bf225500-534d-41d3-8614-2473f6c63ff9%40googlegroups.com.
What is the status of this issue? Ads take 3s-5s startup time on a good number of my customer's phones (not devices, but obviously still in use!) because of this bug.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/bf225500-534d-41d3-8614-2473f6c63ff9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
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/50331cce-b6ee-4916-ab3d-fbca894269ff%40googlegroups.com.
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/bf225500-534d-41d3-8614-2473f6c63ff9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
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...@googlegroups.com.
To post to this group, send email to google-adm...@googlegroups.com.
2019-02-20 02:31:52.511 10530-10545/? D/FantasiaPainter: Ads init START!!!!!!!!!!!!!!2019-02-20 02:31:52.554 10530-10545/? W/fantasiapainte: Unsupported class loader2019-02-20 02:31:52.614 10530-10545/? I/fantasiapainte: The ClassLoaderContext is a special shared library.2019-02-20 02:31:52.619 10530-10545/? I/chatty: uid=10182(com.datcompany.fantasiapainter) UnityMain identical 1 line2019-02-20 02:31:52.623 10530-10545/? I/fantasiapainte: The ClassLoaderContext is a special shared library.2019-02-20 02:31:54.120 810-1114/? E/WifiVendorHal: getWifiLinkLayerStats(l.937) failed {.code = ERROR_NOT_AVAILABLE, .description = }2019-02-20 02:31:55.152 10530-10545/? I/DynamiteModule: Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:111402019-02-20 02:31:55.152 10530-10545/? I/DynamiteModule: Selected remote version of com.google.android.gms.ads.dynamite, version >= 111402019-02-20 02:31:55.222 10530-10545/? W/fantasiapainte: Unsupported class loader2019-02-20 02:31:55.325 10530-10540/? I/fantasiapainte: Background concurrent copying GC freed 113398(4MB) AllocSpace objects, 42(2MB) LOS objects, 69% free, 2MB/8MB, paused 1.737ms total 140.740ms2019-02-20 02:31:55.350 10530-10545/? D/DynamitePackage: Instantiated singleton DynamitePackage.2019-02-20 02:31:55.350 10530-10545/? D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraMobileAdsSettingManagerCreatorImpl2019-02-20 02:31:55.536 10530-10545/? I/Ads: Updating ad debug logging enablement.2019-02-20 02:31:55.563 10530-10586/? W/Ads: Update ad debug logging enablement as false2019-02-20 02:31:55.610 10530-10545/? D/FantasiaPainter: Ads init END!!!!!!!!!!!!!!: 3098 2019-02-20 02:31:55.689 10530-10530/? I/WebViewFactory: Loading com.android.chrome version 72.0.3626.105 (code 362610502)2019-02-20 02:31:56.869 10530-10530/? I/cr_LibraryLoader: Time to load native libraries: 8 ms (timestamps 8685-8693)2019-02-20 02:31:56.950 10530-10530/? I/chromium: [INFO:library_loader_hooks.cc(42)] Chromium logging enabled: level = 0, default verbosity = 02019-02-20 02:31:56.951 10530-10530/? I/cr_LibraryLoader: Expected native library version number "72.0.3626.105", actual native library version number "72.0.3626.105"2019-02-20 02:31:57.025 10530-10592/? W/cr_ChildProcLH: Create a new ChildConnectionAllocator with package name = com.android.chrome, sandboxed = true2019-02-20 02:31:57.047 1311-1311/? W/webview_zygote: type=1400 audit(0.0:13947): avc: denied { search } for name="theme" dev="mmcblk0p26" ino=1403762 scontext=u:r:webview_zygote:s0 tcontext=u:object_r:theme_data_file:s0 tclass=dir permissive=02019-02-20 02:31:57.058 10530-10530/? I/cr_BrowserStartup: Initializing chromium process, singleProcess=false2019-02-20 02:31:57.137 810-1114/? E/WifiVendorHal: getWifiLinkLayerStats(l.937) failed {.code = ERROR_NOT_AVAILABLE, .description = }2019-02-20 02:31:57.263 810-832/? D/ConnectivityService: requestNetwork for uid/pid:10182/10530 NetworkRequest [ TRACK_DEFAULT id=84, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Unwanted: Uid: 10182] ]2019-02-20 02:31:57.265 810-1114/? D/WIFI: got request NetworkRequest [ TRACK_DEFAULT id=84, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Unwanted: Uid: 10182] ] with score 602019-02-20 02:31:57.265 810-1114/? D/WIFI_UT: got request NetworkRequest [ TRACK_DEFAULT id=84, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Unwanted: Uid: 10182] ] with score 602019-02-20 02:31:57.266 810-1137/? D/Ethernet: got request NetworkRequest [ TRACK_DEFAULT id=84, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Unwanted: Uid: 10182] ] with score 602019-02-20 02:31:57.267 1373-1373/? D/PhoneSwitcherNetworkRequstListener: got request NetworkRequest [ TRACK_DEFAULT id=84, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Unwanted: Uid: 10182] ] with score 602019-02-20 02:31:57.402 810-892/? W/ActivityManager: Slow operation: 354ms so far, now at startProcess: returned from zygote!2019-02-20 02:31:57.402 810-892/? W/ActivityManager: Slow operation: 355ms so far, now at startProcess: done updating battery stats2019-02-20 02:31:57.402 810-892/? W/ActivityManager: Slow operation: 355ms so far, now at startProcess: building log message2019-02-20 02:31:57.402 810-892/? I/ActivityManager: Start proc 10609:com.android.chrome:sandboxed_process0/u0i13 for webview_service com.datcompany.fantasiapainter/org.chromium.content.app.SandboxedProcessService02019-02-20 02:31:57.402 810-892/? W/ActivityManager: Slow operation: 355ms so far, now at startProcess: starting to update pids map2019-02-20 02:31:57.403 810-892/? W/ActivityManager: Slow operation: 355ms so far, now at startProcess: done updating pids map2019-02-20 02:31:57.447 10609-10609/? I/dboxed_process: Late-enabling -Xcheck:jni2019-02-20 02:31:57.467 10609-10609/? E/dboxed_process: Not starting debugger since process cannot load the jdwp agent.2019-02-20 02:31:57.511 10530-10621/? W/Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE2019-02-20 02:31:57.521 10530-10600/? W/cr_media: Requires BLUETOOTH permission2019-02-20 02:31:57.540 810-1819/? D/ConnectivityService: requestNetwork for uid/pid:10182/10530 NetworkRequest [ TRACK_DEFAULT id=86, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Unwanted: Uid: 10182] ]2019-02-20 02:31:57.542 810-1137/? D/Ethernet: got request NetworkRequest [ TRACK_DEFAULT id=86, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Unwanted: Uid: 10182] ] with score 602019-02-20 02:31:57.542 810-1114/? D/WIFI: got request NetworkRequest [ TRACK_DEFAULT id=86, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Unwanted: Uid: 10182] ] with score 602019-02-20 02:31:57.546 1373-1373/? D/PhoneSwitcherNetworkRequstListener: got request NetworkRequest [ TRACK_DEFAULT id=86, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Unwanted: Uid: 10182] ] with score 602019-02-20 02:31:57.547 810-1114/? D/WIFI_UT: got request NetworkRequest [ TRACK_DEFAULT id=86, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Unwanted: Uid: 10182] ] with score 602019-02-20 02:31:57.592 10530-10530/? I/Choreographer: Skipped 119 frames! The application may be doing too much work on its main thread.2019-02-20 02:31:57.599 810-996/? I/InputDispatcher: Window 'Window{f50a390 u0 com.datcompany.fantasiapainter/com.datcompany.fantasiapainter.MainActivity}' spent 2012.0ms processing the last input event: MotionEvent(deviceId=17, source=0x00001002, action=MOVE, actionButton=0x00000000, flags=0x00000000, metaState=0x00000000, buttonState=0x00000000, edgeFlags=0x00000000, xPrecision=1.0, yPrecision=1.0, displayId=0, pointers=[1: (398.0, 605.0)]), policyFlags=0x620000002019-02-20 02:31:57.599 810-996/? I/InputDispatcher: Window 'Window{f50a390 u0 com.datcompany.fantasiapainter/com.datcompany.fantasiapainter.MainActivity}' spent 2001.4ms processing the last input event: MotionEvent(deviceId=17, source=0x00001002, action=MOVE, actionButton=0x00000000, flags=0x00000000, metaState=0x00000000, buttonState=0x00000000, edgeFlags=0x00000000, xPrecision=1.0, yPrecision=1.0, displayId=0, pointers=[1: (417.0, 558.0)]), policyFlags=0x62000000
2019-02-20 03:09:13.742 14990-14990/? D/FantasiaPainter: Ads init START!!!!!!!!!!!!!!2019-02-20 03:09:13.783 14990-14990/? W/fantasiapainte: Unsupported class loader2019-02-20 03:09:13.843 14990-14990/? I/fantasiapainte: The ClassLoaderContext is a special shared library.2019-02-20 03:09:13.847 14990-14990/? I/chatty: uid=10182(com.datcompany.fantasiapainter) identical 1 line2019-02-20 03:09:13.850 14990-14990/? I/fantasiapainte: The ClassLoaderContext is a special shared library.2019-02-20 03:09:16.583 810-1114/? E/WifiVendorHal: getWifiLinkLayerStats(l.937) failed {.code = ERROR_NOT_AVAILABLE, .description = }2019-02-20 03:09:22.911 810-890/? W/ActivityManager: Launch timeout has expired, giving up wake lock!2019-02-20 03:09:19.619 810-1114/? I/chatty: uid=1000(system) WifiStateMachin identical 1 line2019-02-20 03:09:22.651 810-1114/? E/WifiVendorHal: getWifiLinkLayerStats(l.937) failed {.code = ERROR_NOT_AVAILABLE, .description = }2019-02-20 03:09:24.153 14990-14990/? I/DynamiteModule: Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:111402019-02-20 03:09:24.153 14990-14990/? I/DynamiteModule: Selected remote version of com.google.android.gms.ads.dynamite, version >= 111402019-02-20 03:09:24.294 14990-14990/? W/fantasiapainte: Unsupported class loader2019-02-20 03:09:24.560 14990-14990/? D/DynamitePackage: Instantiated singleton DynamitePackage.2019-02-20 03:09:24.560 14990-14990/? D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraMobileAdsSettingManagerCreatorImpl2019-02-20 03:09:24.893 14990-15007/? D/NetworkSecurityConfig: No Network Security Config specified, using platform default2019-02-20 03:09:24.922 14990-14990/? I/Ads: Updating ad debug logging enablement.2019-02-20 03:09:25.043 14990-14990/? I/WebViewFactory: Loading com.android.chrome version 72.0.3626.105 (code 362610502)2019-02-20 03:09:27.079 810-1114/? E/WifiVendorHal: getWifiLinkLayerStats(l.937) failed {.code = ERROR_NOT_AVAILABLE, .description = }2019-02-20 03:09:28.992 14990-14990/? I/cr_LibraryLoader: Time to load native libraries: 13 ms (timestamps 259-272)2019-02-20 03:09:29.076 14990-14990/? I/chromium: [INFO:library_loader_hooks.cc(42)] Chromium logging enabled: level = 0, default verbosity = 02019-02-20 03:09:29.076 14990-14990/? I/cr_LibraryLoader: Expected native library version number "72.0.3626.105", actual native library version number "72.0.3626.105"2019-02-20 03:09:29.160 14990-15015/? W/cr_ChildProcLH: Create a new ChildConnectionAllocator with package name = com.android.chrome, sandboxed = true2019-02-20 03:09:29.173 14990-14990/? I/cr_BrowserStartup: Initializing chromium process, singleProcess=false2019-02-20 03:09:29.202 1311-1311/? W/webview_zygote: type=1400 audit(0.0:16616): avc: denied { search } for name="theme" dev="mmcblk0p26" ino=1403762 scontext=u:r:webview_zygote:s0 tcontext=u:object_r:theme_data_file:s0 tclass=dir permissive=02019-02-20 03:09:29.367 810-1655/? D/ConnectivityService: requestNetwork for uid/pid:10182/14990 NetworkRequest [ TRACK_DEFAULT id=112, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Unwanted: Uid: 10182] ]2019-02-20 03:09:29.369 1373-1373/? D/PhoneSwitcherNetworkRequstListener: got request NetworkRequest [ TRACK_DEFAULT id=112, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Unwanted: Uid: 10182] ] with score 602019-02-20 03:09:29.371 810-1137/? D/Ethernet: got request NetworkRequest [ TRACK_DEFAULT id=112, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Unwanted: Uid: 10182] ] with score 602019-02-20 03:09:29.371 810-1114/? D/WIFI: got request NetworkRequest [ TRACK_DEFAULT id=112, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Unwanted: Uid: 10182] ] with score 602019-02-20 03:09:29.371 810-1114/? D/WIFI_UT: got request NetworkRequest [ TRACK_DEFAULT id=112, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Unwanted: Uid: 10182] ] with score 602019-02-20 03:09:29.462 810-892/? W/ActivityManager: Slow operation: 257ms so far, now at startProcess: returned from zygote!2019-02-20 03:09:29.462 810-892/? W/ActivityManager: Slow operation: 257ms so far, now at startProcess: done updating battery stats2019-02-20 03:09:29.462 810-892/? W/ActivityManager: Slow operation: 258ms so far, now at startProcess: building log message2019-02-20 03:09:29.463 810-892/? I/ActivityManager: Start proc 15032:com.android.chrome:sandboxed_process0/u0i20 for webview_service com.datcompany.fantasiapainter/org.chromium.content.app.SandboxedProcessService02019-02-20 03:09:29.463 810-892/? W/ActivityManager: Slow operation: 258ms so far, now at startProcess: starting to update pids map2019-02-20 03:09:29.463 810-892/? W/ActivityManager: Slow operation: 258ms so far, now at startProcess: done updating pids map2019-02-20 03:09:29.499 15032-15032/? I/dboxed_process: Late-enabling -Xcheck:jni2019-02-20 03:09:29.504 15032-15032/? E/dboxed_process: Not starting debugger since process cannot load the jdwp agent.2019-02-20 03:09:29.563 14990-15023/? W/cr_media: Requires BLUETOOTH permission2019-02-20 03:09:29.575 14990-15046/? I/Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: EGL 1.4 QUALCOMM build: Nondeterministic_AU_msm8974_LA.BF.1.1.3_RB1__release_AU (I741a3d36ca) OpenGL ES Shader Compiler Version: E031.29.00.00 Build Date: 04/04/16 Mon Local Branch: mybranch19053788 Remote Branch: quic/LA.BF.1.1.3_rb1.12 Local Patches: NONE Reconstruct Branch: NOTHING2019-02-20 03:09:29.576 14990-14990/? D/FantasiaPainter: Ads init END!!!!!!!!!!!!!!: 15834
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/50331cce-b6ee-4916-ab3d-fbca894269ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
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/0473ff57-9e11-4866-ac21-20a732df10e6%40googlegroups.com.
--
---
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/50f50b1b-aabf-495d-81bc-3557dda4a3e3%40googlegroups.com.
--
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
To post to this group, send email to google-adm...@googlegroups.com.
Hi,We are trying to optimize launch time for our app.After detailed profiling we found out that MobileAds.initialize is the worst offender during app launch. On powerful devices it takes up to 500 ms and on lowend devices it takes up to whopping 5 seconds.We tried to comment out the call and app launched significantly faster and ads were shown properly.So we are trying to understand if MobileAds.initialize is still mandatory to call?If yes please forward to the team to fix this issue, as we think it shouldn't take so long.Regards,Minas
Hi Wing,
Thank you for reaching out to us.
The AdMob SDK has changed its MobileAds.initialize function since the last time this thread was updated. Kindly create a new thread with details on your concern if you are still encountering this issue in the latest version of the AdMob SDK (19.2.0), so that we can assist you better on it.
Regards,
Ziv Yves Sanchez