AdMob migrate to Google Play Service not work on some device

511 views
Skip to first unread message

Yasin Almahdaoui

unread,
Apr 29, 2014, 9:52:19 PM4/29/14
to google-adm...@googlegroups.com
Hi,

I have an app with Admob SDK 6.4.1 and it work correctly.
i want to migrate to Google Play Service for admob but it doesnt work on some device.
I had an error "failed to load ad 2 (Network error)" but my network connection is good.

I test on 3 devices with wifi connection :
- Samsung galaxy tab 2 with android 4.1.2 & GPS 4.6.17 = OK
- Wiko Cink Slim with android 4.1.1 & GPS 4.6.17 = not work
- Acer Z130 with android 4.2 & GPS 4.6.17 = not work

For migration, I: 
- imported GPS library rev 16
- Added meta data & permission on the manifest 
- Added com.google.android.gms.ads.AdActivity on the manifest 
- Added code inspired from example InterstitialSample

The same error occurs with the example project InterstitialSample.

Why it does not work on some devices?

Kunal Verma

unread,
Apr 30, 2014, 5:25:42 AM4/30/14
to Google AdMob Ads Developers

Hi Yasin

Do you see Test Ads on the last devices you have mentioned here?

Best,
Kunal

--

---
You received this message because you are subscribed to the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yasin Almahdaoui

unread,
Apr 30, 2014, 8:57:19 AM4/30/14
to google-adm...@googlegroups.com
Hi Kunal,

I tested with addTestDevice ("MYDEVICEID") and without. 
Nothing is displayed. 

GooglePlayServicesUtil.isGooglePlayServicesAvailable (context) returns ConnectionResult.SUCCESS on all my devices

Thanks

here is my log (Wiko Cink Slim with android 4.1.1 & GPS 4.6.17 = not work) :
04-30 14:45:20.630: E/Trace(3039): error opening trace file: No such file or directory (2)
04-30 14:45:22.017: W/SoundBoardGeek(3039): updateUiCallback called
04-30 14:45:22.087: W/AdmobManager(3039): ConnectionResult.SUCCESS
04-30 14:45:22.592: I/Ads(3039): Use AdRequest.Builder.addTestDevice("XXXXXXXXXXXXXXXXXXX") to get test ads on this device.
04-30 14:45:22.597: I/dalvikvm(3039): Could not find method android.webkit.WebSettings.getDefaultUserAgent, referenced from method acd.a
04-30 14:45:22.597: W/dalvikvm(3039): VFY: unable to resolve static method 3899: Landroid/webkit/WebSettings;.getDefaultUserAgent (Landroid/content/Context;)Ljava/lang/String;
04-30 14:45:22.622: I/Ads(3039): Starting ad request.
04-30 14:45:22.826: I/dalvikvm(3039): Could not find method android.webkit.WebSettings.setMediaPlaybackRequiresUserGesture, referenced from method acl.<init>
04-30 14:45:22.826: W/dalvikvm(3039): VFY: unable to resolve virtual method 3914: Landroid/webkit/WebSettings;.setMediaPlaybackRequiresUserGesture (Z)V
04-30 14:45:22.893: I/webkit/webview_proxy(3039): WebView() constructor=acl@417d9740
04-30 14:45:22.964: I/webkit/webview_proxy(3039): WebView() constructor=android.webkit.WebView@417e2650
04-30 14:45:22.976: I/SoundBoardGeek(3039): prepareAdInterstitial OK
04-30 14:45:22.995: W/ResourceType(3039): getEntry failing because entryIndex 14 is beyond type entryCount 2
04-30 14:45:22.995: W/ResourceType(3039): Failure getting entry for 0x7f0b000e (t=10 e=14) in package 0 (error -2147483647)
04-30 14:45:22.995: E/GooglePlayServicesUtil(3039): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
04-30 14:45:23.343: I/Choreographer(3039): Skipped 58 frames!  The application may be doing too much work on its main thread.
04-30 14:45:24.397: W/ResourceType(3039): getEntry failing because entryIndex 14 is beyond type entryCount 2
04-30 14:45:24.397: W/ResourceType(3039): Failure getting entry for 0x7f0b000e (t=10 e=14) in package 0 (error -2147483647)
04-30 14:45:24.397: E/GooglePlayServicesUtil(3039): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
04-30 14:45:24.407: I/SurfaceTextureClient(3039): [0x4cdb77e8] frames:6, duration:1.029000, fps:5.826454
04-30 14:45:24.418: W/ResourceType(3039): getEntry failing because entryIndex 14 is beyond type entryCount 2
04-30 14:45:24.418: W/ResourceType(3039): Failure getting entry for 0x7f0b000e (t=10 e=14) in package 0 (error -2147483647)
04-30 14:45:24.418: E/GooglePlayServicesUtil(3039): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
04-30 14:46:24.392: W/Ads(3039): Timed out waiting for ad response.
04-30 14:46:24.404: I/webkit/webview_proxy(3039): WebView.stopLoading()
04-30 14:46:24.415: W/Ads(3039): Failed to load ad: 2
04-30 14:46:24.429: W/AdmobManager(3039): onAdFailedToLoad (Network Error)

Yasin Almahdaoui

unread,
Apr 30, 2014, 9:07:55 AM4/30/14
to google-adm...@googlegroups.com
And here is my log (Samsung galaxy tab 2 with android 4.1.2 & GPS 4.6.17 = OK) :
04-30 15:04:45.453: W/SoundBoardGeek(3715): updateUiCallback called
04-30 15:04:45.453: W/AdmobManager(3715): ConnectionResult.SUCCESS
04-30 15:04:45.492: I/Ads(3715): Use AdRequest.Builder.addTestDevice("XXXXXXXXXXXXXXX") to get test ads on this device.
04-30 15:04:45.500: I/Ads(3715): Starting ad request.
04-30 15:04:45.562: I/webclipboard(3715): clipservice: android.sec.clipboard.ClipboardExManager@41aad8b0
04-30 15:04:45.586: I/SoundBoardGeek(3715): prepareAdInterstitial OK
04-30 15:04:45.586: I/Choreographer(3715): Skipped 32 frames!  The application may be doing too much work on its main thread.
04-30 15:04:45.609: W/ResourceType(3715): getEntry failing because entryIndex 14 is beyond type entryCount 2
04-30 15:04:45.609: W/ResourceType(3715): Failure getting entry for 0x7f0b000e (t=10 e=14) in package 0 (error -2147483647)
04-30 15:04:45.609: E/GooglePlayServicesUtil(3715): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
04-30 15:04:45.828: W/ResourceType(3715): getEntry failing because entryIndex 14 is beyond type entryCount 2
04-30 15:04:45.828: W/ResourceType(3715): Failure getting entry for 0x7f0b000e (t=10 e=14) in package 0 (error -2147483647)
04-30 15:04:45.828: E/GooglePlayServicesUtil(3715): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
04-30 15:04:45.851: W/ResourceType(3715): getEntry failing because entryIndex 14 is beyond type entryCount 2
04-30 15:04:45.851: W/ResourceType(3715): Failure getting entry for 0x7f0b000e (t=10 e=14) in package 0 (error -2147483647)
04-30 15:04:45.851: E/GooglePlayServicesUtil(3715): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
04-30 15:04:49.297: W/Ads(3715): JS: The page displayed insecure content!
04-30 15:04:49.297: W/Ads(3715):  (null:1)
04-30 15:04:49.297: W/Web Console(3715): The page displayed insecure content!
04-30 15:04:49.297: W/Web Console(3715): :1
04-30 15:04:50.726: I/GATE(3715): <GATE-M>DEV_ACTION_COMPLETED</GATE-M>
04-30 15:04:50.726: I/Ads(3715): Ad finished loading.
04-30 15:04:50.750: E/SQLiteLog(3715): (14) cannot open file at line 30241 of [00bb9c9ce4]
04-30 15:04:50.750: E/SQLiteLog(3715): (14) os_unix.c:30241: (2) open(/FileSyetmQuota.db) - 
04-30 15:04:50.750: E/SQLiteLog(3715): (14) cannot open file at line 30241 of [00bb9c9ce4]
04-30 15:04:50.750: E/SQLiteLog(3715): (14) os_unix.c:30241: (2) open(/NotificationPermissions.db) - 
04-30 15:04:50.812: I/AdmobManager(3715): onAdLoaded
04-30 15:04:50.890: I/Ads(3715): Ad opening.
04-30 15:04:51.242: E/SpannableStringBuilder(3715): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length

Eric Leichtenschlag

unread,
Apr 30, 2014, 6:45:37 PM4/30/14
to google-adm...@googlegroups.com
On the second example here, the ad actually loaded according to the logs. For the other device where the ad has a network error, can you load up a webpage from within your mobile browser?

Thanks,
Eric

Yasin Almahdaoui

unread,
Apr 30, 2014, 8:59:25 PM4/30/14
to google-adm...@googlegroups.com
Hi Eric,

For the other device where the ad has a network error, i can load  webpage from within my mobile browser. And I can browse the play store.
My other apps with the old SDK 6.4.1 displays correctly pubs on these 2 devices.

I get the same error with BannerSample & InterstitialSample projects from https://google-mobile-dev.googlecode.com/files/BannerExample_Play_1.0.zip
to which I added the GPS library rev16

Thanks,
Yasin

Eric Leichtenschlag

unread,
May 2, 2014, 4:14:38 PM5/2/14
to google-adm...@googlegroups.com
I'm still inclined to chalk it up to some kind of network error. Are you using Wifi or 3g? If 3g, maybe the connection is spotty.

Yasin Almahdaoui

unread,
May 3, 2014, 10:13:31 AM5/3/14
to google-adm...@googlegroups.com
I test on 3 devices with same wifi connection.
In my tests, I disables my sim card because my mobile operator filter pubs (Free operator in France).

if anyone knows an app (free of course) that uses Admob ads with a good implementation of Google Play Service rev 16, I could test it on these devices. thanks

Yasin Almahdaoui

unread,
Jun 9, 2014, 9:13:38 AM6/9/14
to google-adm...@googlegroups.com
Hi, 

since the last update google play service, it works on all my devices.

I test on 3 devices with wifi connection :
- Samsung galaxy tab 2 with android 4.1.2 & GPS 4.8.20 = OK
- Wiko Cink Slim with android 4.1.1 & GPS 4.8.20 = OK
- Acer Z130 with android 4.2 & GPS 4.8.20 = OK
Reply all
Reply to author
Forward
0 new messages