W/Ads: Play store is not installed or the service for parental controls is not available.

212 views
Skip to first unread message

vipme...@gmail.com

unread,
Jul 7, 2017, 4:16:18 AM7/7/17
to Google Mobile Ads SDK Developers
Hello, i'm new. Trying to get Test Device ID from my catlog (wanna test interstitial ad in my app), but  all i get after running app on emulator is:

07-07 07:40:25.783 2724-3448/com.google.android.gms I/Ads: Parental control value is stale. Refreshing.
07-07 07:40:25.783 2724-3448/com.google.android.gms W/Ads: Play store is not installed or the service for parental controls is not available.
07-07 07:40:25.783 2724-3448/com.google.android.gms I/Ads: Initialized AdMob in container 10.9.30 (470-155807809)
07-07 07:44:07.682 4218-4218/ru.vipmedukvie.vipme I/Ads: Starting ad request.
07-07 07:44:07.684 4218-4218/ru.vipmedukvie.vipme I/Ads: This request is sent from a test device.
07-07 07:44:18.515 4218-4468/ru.vipmedukvie.vipme W/Ads: There was a problem getting an ad response. ErrorCode: 0
07-07 07:44:18.523 4218-4218/ru.vipmedukvie.vipme W/Ads: Failed to load ad: 0


Code for AndroidLauncher which starting ad request:
interstitial = new InterstitialAd(this);
interstitial.setAdUnitId("ca-app-pub-9506272630021404/5753886777");
AdRequest adRequesti = new AdRequest.Builder()
.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
.addTestDevice("0123456789ABCDEF")
.build();
interstitial.loadAd(adRequesti);

Guess the thing is in this "W/Ads: Play store is not installed or the service for parental controls is not available." Why do i get this, and finally how can i get test device id :)? Google play servises are installed in SDK Tools.

Thanks.

Joshua Lagonera (Mobile Ads SDK Team)

unread,
Jul 7, 2017, 5:53:00 AM7/7/17
to Google Mobile Ads SDK Developers
Hi there,

Thanks for providing the necessary information for initial investigation. I'm assuming that the Ad Unit ID in your code snippet is your own Ad Unit ID. I tried it on our sample apps and was able to receive both Test and Live Ads. Your code snippet doesn't seem to be out of the ordinary either. 

This may be caused by your emulator's settings. Can you try using an Android Device and verify if you can replicate the issue?

Regards,
Joshua Lagonera
Mobile Ads SDK Team

vipme...@gmail.com

unread,
Jul 7, 2017, 7:07:29 AM7/7/17
to Google Mobile Ads SDK Developers
I used another emulator and got this in my logcat:

07-07 10:34:50.808 2466-2940/? I/Ads: Parental control value is stale. Refreshing.
07-07 10:34:50.823 2466-2940/? I/Ads: Initialized AdMob in container 10.9.30 (470-155807809)
07-07 10:36:59.057 2466-2466/? I/Ads: Successfully received play store parental controls the result.
07-07 10:41:21.049 2466-5066/? I/Ads: Initialized AdMob in container 10.9.30 (470-155807809)
07-07 10:49:21.632 6257-6257/ru.vipmedukvie.vipme I/Ads: Starting ad request.
07-07 10:49:21.634 6257-6257/ru.vipmedukvie.vipme I/Ads: This request is sent from a test device.
07-07 10:49:40.756 6257-6428/ru.vipmedukvie.vipme W/Ads: There was a problem getting an ad response. ErrorCode: 0
07-07 10:49:51.731 6257-6257/ru.vipmedukvie.vipme W/Ads: Failed to load ad: 0
07-07 10:50:57.694 6257-6257/ru.vipmedukvie.vipme E/Ads: JS engine could not be obtained. Cancelling ad request

Parental controls is now available, so must be another reason i get ErrorCode: 0. Any other ideas? Thanks.



пятница, 7 июля 2017 г., 13:53:00 UTC+4 пользователь Joshua Lagonera (Mobile Ads SDK Team) написал:

Joshua Lagonera (Mobile Ads SDK Team)

unread,
Jul 7, 2017, 9:45:41 AM7/7/17
to Google Mobile Ads SDK Developers
Hi there,

The Error Code 0 you received indicates that it is an internal error, either an invalid Ad Response was returned or an internal SDK error occured, which seems to be the reason based on one of your errors.

JS engine could not be obtained. Cancelling ad request
 
That said, this seems to be an issue with how your emulator is setup. Can you try testing using an actual Android Device and verify if you can replicate the issue? Additionally, can you check if you can replicate the issue using our sample apps?

I would like to note that when using the Android Emulator, Test Ads are always returned.

Regards,
Joshua Lagonera
Mobile Ads SDK Team

vipme...@gmail.com

unread,
Jul 10, 2017, 3:17:10 AM7/10/17
to Google Mobile Ads SDK Developers
Thank you, with real device it's ok. Problem is solved

пятница, 7 июля 2017 г., 17:45:41 UTC+4 пользователь Joshua Lagonera (Mobile Ads SDK Team) написал:
Reply all
Reply to author
Forward
0 new messages