Simply can't get Admob to work. Google Play services resources were not found.

10,877 views
Skip to first unread message

Michael Thielen

unread,
Dec 14, 2013, 5:59:12 PM12/14/13
to google-adm...@googlegroups.com
I've followed the directions here: https://developers.google.com/mobile-ads-sdk/docs/ multiple times to a T, among other resources online.

I've also tried to get the simple example here working: http://code.google.com/p/google-mobile-dev/downloads/detail?name=BannerXMLExample_Play_1.0.zip&can=2&q=

But I keep having the same issue. I've tried to debug this for 3 days going over and over the steps and everything is right. Same errors occur on my mytouch 4g as my nexus 7. Here is the trace:

12-14 15:44:43.982: D/dalvikvm(6513): DexOpt: --- BEGIN 'ads-352228140.jar' (bootstrap=0) ---
12-14 15:44:44.182: D/dalvikvm(6513): DexOpt: --- END 'ads-352228140.jar' (success) ---
12-14 15:44:44.182: D/dalvikvm(6513): DEX prep '/data/data/com.google.example.gms.ads.xml/cache/ads-352228140.jar': unzip in 0ms, rewrite 198ms
12-14 15:44:44.232: D/dalvikvm(6513): GC_FOR_ALLOC freed 313K, 5% free 7799K/8148K, paused 33ms, total 33ms
12-14 15:44:44.232: I/Ads(6513): Use AdRequest.Builder.addTestDevice("9F0AE2C985484308569128101FEE51EC") to get test ads on this device.
12-14 15:44:44.242: I/Ads(6513): Starting ad request.
12-14 15:44:44.252: V/WebViewChromium(6513): Binding Chromium to the background looper Looper (main, tid 1) {41eb7ba0}
12-14 15:44:44.252: I/chromium(6513): [INFO:library_loader_hooks.cc(112)] Chromium logging enabled: level = 0, default verbosity = 0
12-14 15:44:44.252: I/BrowserProcessMain(6513): Initializing chromium process, renderers=0
12-14 15:44:44.262: W/chromium(6513): [WARNING:proxy_service.cc(888)] PAC support disabled because there is no system implementation
12-14 15:44:44.272: D/libEGL(6513): loaded /system/lib/egl/libEGL_tegra.so
12-14 15:44:44.292: D/libEGL(6513): loaded /system/lib/egl/libGLESv1_CM_tegra.so
12-14 15:44:44.302: D/libEGL(6513): loaded /system/lib/egl/libGLESv2_tegra.so
12-14 15:44:44.352: E/GooglePlayServicesUtil(6513): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
12-14 15:44:44.402: D/OpenGLRenderer(6513): Enabling debug mode 0
12-14 15:44:44.422: E/GooglePlayServicesUtil(6513): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
12-14 15:44:44.442: E/GooglePlayServicesUtil(6513): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
12-14 15:44:44.832: W/Ads(6513): There was a problem getting an ad response. ErrorCode: 1
12-14 15:44:44.832: W/Ads(6513): Failed to load ad: 1


Note that it tells me to addTestDevice("9F...") which I did and it doesn't seem to matter. I have no idea what to do anymore. I imagine I could use the stand-alone version of admob but I don't see why I should need to do that.

William Ferguson

unread,
Dec 17, 2013, 5:44:07 AM12/17/13
to google-adm...@googlegroups.com
The top SO answer for "The Google Play services resources were not found. Check your project configuration to ensure that the resources are included" is  http://stackoverflow.com/questions/18068627/logcat-message-the-google-play-services-resources-were-not-found-check-your-pr

I don't know if that is your issue. But I would start with that.

William

Michael Thielen

unread,
Dec 20, 2013, 12:40:06 AM12/20/13
to google-adm...@googlegroups.com
I believe this is a benign error. I was able to get the ads to appear (although inconsistently so far on a test device) after fixing the AD unit ID. I was passing the publisher ID instead. According to another stackoverflow thread, others have noted the error but their apps appear to work fine.

Amy Quispe (AdMob SDK Team)

unread,
Dec 26, 2013, 10:51:49 AM12/26/13
to google-adm...@googlegroups.com
Hi Michael,

Are you still having trouble with this?

Amy Quispe

Bengin Cetindere

unread,
Jan 15, 2014, 2:30:31 PM1/15/14
to google-adm...@googlegroups.com
I have the same problem, please help me i cant get it work. I can see the admob banner in the xml graphical view but when i debug, it is away and you cant click it. Same Error(The GOogle Play services resources were not found....) I am working on this for 4hours please help me.

Amy Quispe (AdMob SDK Team)

unread,
Jan 15, 2014, 8:02:15 PM1/15/14
to google-adm...@googlegroups.com
Hi Bengin,

Are you sure you're including GPS correctly? You need to include it as a library project

Amy Quispe

Bengin Cetindere

unread,
Jan 16, 2014, 12:37:25 AM1/16/14
to google-adm...@googlegroups.com
First, thanks four replay. I didnt include gps because i dont use it. Or do i maybe have to include it for admob? I just included the google play services.

Kunal Verma

unread,
Jan 16, 2014, 3:05:21 AM1/16/14
to Google AdMob Ads Developers

Yes GPS is Google Play Services.

On Jan 16, 2014 11:07 AM, "Bengin Cetindere" <progra...@hotmail.de> wrote:
First, thanks four replay. I didnt include gps because i dont use it. Or do i maybe have to include it for admob? I just included the google play services.

--
 
---
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/groups/opt_out.

Bengin Cetindere

unread,
Jan 16, 2014, 11:20:28 AM1/16/14
to google-adm...@googlegroups.com
I think yes, i added the library feeled 100 times. First I download the gps. Then I import them in eclipse. Rightclick, properties -> Android add gps apply ok. But its not working. When i delete the admob code, it works fine without errors.

Amy Quispe (AdMob SDK Team)

unread,
Jan 16, 2014, 4:58:57 PM1/16/14
to google-adm...@googlegroups.com
Hi Bengin,

The "is Library" box is not checked, correct? Could I see a stack trace?

Thanks

Amy Quispe

Bengin Cetindere

unread,
Jan 17, 2014, 1:27:33 PM1/17/14
to google-adm...@googlegroups.com
Yes, is Library is unchecked. LogCat:
01-17 19:25:00.570: I/Ads(12141): Use AdRequest.Builder.addTestDevice("7DC393B415BE44EB0BBB77E514CE33C3") to get test ads on this device.
01-17 19:25:00.575: I/Ads(12141): Starting ad request.
01-17 19:25:01.135: I/KENLOG(12141): setSpellCheckEnabled <enabled: false> delay: 1000
01-17 19:25:01.160: W/(12141): init htc webcore
01-17 19:25:01.180: E/GooglePlayServicesUtil(12141): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
01-17 19:25:01.215: I/KENLOG(12141): setSpellCheckEnabled <enabled: true> delay: 1000
01-17 19:25:01.300: E/(12141): file /data/data/com.nvidia.NvCPLSvc/files/driverlist.txt: not found!
01-17 19:25:01.300: I/(12141): Attempting to load EGL implementation /system/lib//egl/libEGL_tegra_impl
01-17 19:25:01.395: I/(12141): Loaded EGL implementation /system/lib//egl/libEGL_tegra_impl
01-17 19:25:01.470: I/(12141): Loading GLESv2 implementation /system/lib//egl/libGLESv2_tegra_impl
01-17 19:25:01.755: W/dalvikvm(12141): [GC Control] disableGcForExternalAlloc: false
01-17 19:25:01.760: I/InputMethodManager(12141): windowGainedFocus, mServedView=android.widget.EditText{42407140 VFED..CL .F....ID 32,86-688,170 #7f050008 app:id/encrypt_text}, inputType=0x20001, softInputMode=0x120
01-17 19:25:01.810: E/GooglePlayServicesUtil(12141): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
01-17 19:25:01.815: E/GooglePlayServicesUtil(12141): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

Hope its readable. Thanks 

Bengin Cetindere

unread,
Jan 19, 2014, 5:58:49 AM1/19/14
to google-adm...@googlegroups.com
No one knows the solution? Maybe I have just to less patience...^^
Message has been deleted

Bengin Cetindere

unread,
Jan 20, 2014, 3:10:33 PM1/20/14
to google-adm...@googlegroups.com
Please gelp me. I cant get it going.

Bengin Cetindere

unread,
Jan 21, 2014, 11:04:45 AM1/21/14
to google-adm...@googlegroups.com
Can you help me? I posted the stack trace from logcat.

Amy Quispe (AdMob SDK Team)

unread,
Jan 22, 2014, 4:28:41 PM1/22/14
to google-adm...@googlegroups.com
Bengin,

Are you able to get the XML sample project to work? Are the resources correctly included? 


For example, do you have the meta-data tags in your Manifest file? Are you using the "http://schemas.android.com/apk/res-auto" namespace in your AdView?

Amy

Bengin Cetindere

unread,
Jan 23, 2014, 10:55:08 AM1/23/14
to google-adm...@googlegroups.com
First thank you for answering.
I followed the instruction in your first link, just without the adlistener(I think I dont need it and I couldnt make it). No effects. The results stay the same. Here are my codes:

Code:
AdView adView;
adView = (AdView)findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().addTestDevice("7DC393B415BE44EB0BBB77E514CE33C3").build();
   adView.loadAd(adRequest);

Design XML:
xmlns:ads="http://schemas.android.com/apk/res-auto" // this is at the very beginning under relative layout.
<com.google.android.gms.ads.AdView
         xmlns:ads="http://schemas.android.com/apk/res-auto"
         android:id="@+id/adView"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_alignLeft="@+id/crypt"
         android:layout_alignParentBottom="true"
         ads:adSize="BANNER"
         ads:adUnitId="ca-app-pub-4252022205312528/1824157895" >
     </com.google.android.gms.ads.AdView>

Manifest.xml:
<?xml version="1.0" encoding="utf-8"?>
    package="net.programmer213.magicrypt"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="14"
        android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.INTERNET"/>
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <application
        
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <meta-data android:name="com.google.android.gms.version"
               android:value="@integer/google_play_services_version"/>
        <activity
            android:name="net.programmer213.magicrypt.MainActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name="com.google.android.gms.ads.AdActivity"
             android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
    </application>
    <uses-permission android:name="android.permission.INTERNET"/>
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
</manifest>


I dont get it. I´ve done all the things right(in my opinion) and the ad just dont show.

Amy Quispe (AdMob SDK Team)

unread,
Jan 24, 2014, 8:00:28 PM1/24/14
to google-adm...@googlegroups.com
Hi Bengin,

Why are you declaring the ads namespace twice in your layout xml file? You should also be including the Android namespace there. Does that make any different?

Amy Quispe

Bengin Cetindere

unread,
Jan 25, 2014, 5:23:09 AM1/25/14
to google-adm...@googlegroups.com
Thanks for the tipp that i double included namespace. I included the android namespace under relativelayout. Do i have to include it again?

Amy Quispe (AdMob SDK Team)

unread,
Jan 27, 2014, 7:27:07 PM1/27/14
to google-adm...@googlegroups.com
You'll probably want it in both places.

Amy Quispe

Andrei Negrau

unread,
Jan 29, 2014, 6:45:05 AM1/29/14
to google-adm...@googlegroups.com
I have the same problem. i've been trying to integrate AdMob into my app but it's just not working. I watched videos, i followed tutorials etc. i don't know what to do anymore

Bengin Cetindere

unread,
Jan 29, 2014, 11:18:46 AM1/29/14
to google-adm...@googlegroups.com
I added it in both places (thats my code:)
<com.google.android.gms.ads.AdView
         xmlns:android="http://schemas.android.com/apk/res/android"
         android:id="@+id/adView"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_alignLeft="@+id/crypt"
         android:layout_alignParentBottom="true"
         ads:adSize="BANNER"
         ads:adUnitId="ca-app-pub-4252022205312528/1824157895" >
     </com.google.android.gms.ads.AdView>
But it still doesnt work. It gives me the Same error as ever:
01-29 17:15:31.377: E/GooglePlayServicesUtil(8361): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
3 times in one log.
The admobs log:
01-29 17:15:31.242: I/Ads(8361): Use AdRequest.Builder.addTestDevice("FD21B4A17C57317720D93BB440F4C13E") to get test ads on this device.
01-29 17:15:31.247: I/Ads(8361): Starting ad request.
01-29 17:15:31.342: W/(8361): init htc webcore
01-29 17:15:32.352: I/Ads(8361): No fill from ad server.
Maybe the No fill from ad server is something, with that you can help me?

Andrei Negrau

unread,
Jan 29, 2014, 12:30:33 PM1/29/14
to google-adm...@googlegroups.com
Finally i did something to make it work. I just created the AdView from Java code


--
 
---
You received this message because you are subscribed to a topic in the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/wU_ga7hzUfs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
Andrei Negrău
Software Developer, Mobiversal
and...@mobiversal.com +40 755 977 659

Mobiversal - mobile app architects | www.mobiversal.com

Bengin Cetindere

unread,
Jan 29, 2014, 12:56:48 PM1/29/14
to google-adm...@googlegroups.com
Thanks but i tried it before, didnt work :(
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
Message has been deleted

BeniDzii0702

unread,
Feb 4, 2014, 4:49:31 AM2/4/14
to google-adm...@googlegroups.com
Hi Bengin!
Did you solve the problem? Because i got the same one...
When i run it on my real device, the ad doesn't show up, but if i run it on the emulator it shows up...
I tried every solution i found on the internet, no one works.
Ben

Bengin Cetindere

unread,
Feb 4, 2014, 11:00:15 AM2/4/14
to google-adm...@googlegroups.com
Not yet...
Did you get the same error?

BeniDzii0702

unread,
Feb 4, 2014, 4:01:10 PM2/4/14
to google-adm...@googlegroups.com
Yes... i debuged it and found out that this happens on the adView.adload() command...
I tried it with the admob sdk but that also doenst work. It says "Constructor not visible" at the line where i create the AdRequest.
My app is online, but there is no banner (but layout and place is there i i defined it). In Admob it says that there are inquires but no impressions and clicks...

As I said, on the emulator it works fine (emulator has english system language). My phone german system language and there it doesnt work.

Any solutions? :S

Bengin Cetindere

unread,
Feb 5, 2014, 12:31:54 AM2/5/14
to google-adm...@googlegroups.com
I tried admob ad skd too, doesnt worked.
I am german too^^
If i find any solution ill post it here

Danny Backx

unread,
Feb 11, 2014, 12:23:45 PM2/11/14
to google-adm...@googlegroups.com
I have similar issues, both with my application and with the "banner" demo I downloaded.

E/GooglePlayServicesUtil(17980): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

also I see

E/SQLiteLog(17980): (14) os_unix.c:30241: (2) open(/NotificationPermissions.db) -
D/WebKit  (17980): SQLite database failed to load from /NotificationPermissions.db

Please help.

  Danny

Dorr Lin

unread,
Feb 12, 2014, 11:33:48 PM2/12/14
to google-adm...@googlegroups.com
I got the same problem a few days ago.

I followed this document:


It worked for me.

BeniDzii0702於 2014年2月5日星期三UTC+8上午5時01分10秒寫道:

BeniDzii0702

unread,
Feb 13, 2014, 11:01:18 AM2/13/14
to google-adm...@googlegroups.com
I got the problem!

It was the Ad-Type.... Be careful when you create a new Ad.... choose the right Bannertype.
That was my problem, i chose interstitial type instead of banner.

Good luck!

Beni

Danny Backx

unread,
Feb 13, 2014, 12:43:00 PM2/13/14
to google-adm...@googlegroups.com
I am getting some results by a combination of fiddling with layout (to ensure I have 480x75 pixels) and using SMART_BANNER instead of BANNER.
Not entirely sure I have the full picture yet...

All the error/warning messages pointing in other directions are no help in finding this though.

    Danny
--
 
---
You received this message because you are subscribed to a topic in the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/wU_ga7hzUfs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.

Gustavo GUCA

unread,
Feb 25, 2014, 12:25:50 AM2/25/14
to google-adm...@googlegroups.com
Hi folks... I'm absolutely stuck with this... I've migrated from Admob standalone SDK to the Google Play Service, and I've set everything in manifest, also creating the banners in code... It always worked without problem before the migration..

The ads works fine on every device I tested except the ones with Android 4.4+ . Seems like there is a bug with the ChromiumWebView integration, since this is the main change for this version.. Following are my logs from a ad request with a simple sample project consisting of a unique adview: 

02-25 02:18:35.974: V/WebViewChromium(5974): Binding Chromium to the main looper Looper (main, tid 1) {41ee0328}
02-25 02:18:35.974: I/chromium(5974): [INFO:library_loader_hooks.cc(112)] Chromium logging enabled: level = 0, default verbosity = 0
02-25 02:18:35.974: I/BrowserProcessMain(5974): Initializing chromium process, renderers=0
02-25 02:18:35.984: W/chromium(5974): [WARNING:proxy_service.cc(888)] PAC support disabled because there is no system implementation
02-25 02:18:35.994: I/Adreno-EGL(5974): <qeglDrvAPI_eglInitialize:320>: EGL 1.4 QUALCOMM Build: I0404c4692afb8623f95c43aeb6d5e13ed4b30ddbDate: 11/06/13
02-25 02:18:36.114: D/dalvikvm(5974): DexOpt: --- BEGIN 'ads494133920.jar' (bootstrap=0) ---
02-25 02:18:36.225: D/dalvikvm(5974): DexOpt: --- END 'ads494133920.jar' (success) ---
02-25 02:18:36.225: D/dalvikvm(5974): DEX prep '/data/data/com.example.teste/cache/ads494133920.jar': unzip in 0ms, rewrite 110ms
02-25 02:18:36.245: I/Ads(5974): Use AdRequest.Builder.addTestDevice("00D28C195D9171AAC37C4EA54DAAE4B7") to get test ads on this device.
02-25 02:18:36.245: I/Ads(5974): Starting ad request.
02-25 02:18:36.275: D/dalvikvm(5974): GC_FOR_ALLOC freed 308K, 4% free 9184K/9524K, paused 18ms, total 18ms
02-25 02:18:36.335: E/GooglePlayServicesUtil(5974): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
02-25 02:18:36.355: E/GooglePlayServicesUtil(5974): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
02-25 02:18:36.365: E/GooglePlayServicesUtil(5974): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
02-25 02:18:36.385: D/OpenGLRenderer(5974): Enabling debug mode 0
02-25 02:19:36.349: W/Ads(5974): Timed out waiting for ad response.
02-25 02:19:36.359: I/Ads(5974): Scheduling ad refresh 60000 milliseconds from now.
02-25 02:19:36.359: W/Ads(5974): Failed to load ad: 2
02-25 02:20:36.403: I/Ads(5974): Ad is not visible. Not refreshing ad.
02-25 02:20:36.403: I/Ads(5974): Scheduling ad refresh 60000 milliseconds from now.
02-25 02:21:36.457: I/Ads(5974): Ad is not visible. Not refreshing ad.
02-25 02:21:36.457: I/Ads(5974): Scheduling ad refresh 60000 milliseconds from now.


The same project, without any changes works fine on other devices where Android is 4.3 or less. Please is there any fix for this? I'm also using the latest Google Play Services version currently available (version 15).

The "The Google Play services resources were not found." does appear on other devices too, but as I could see on the FAQ from the AdMob page, this is something that we should ignore.. (In fact this is kinda annoying.. If we should ignore why does it appear logged as an error!!!???)

Thanks,

Gustavo.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.

Amy Quispe (AdMob SDK Team)

unread,
Feb 25, 2014, 6:29:57 PM2/25/14
to google-adm...@googlegroups.com
Hi Gustavo,

Can you show me the code producing this stack trace?

Thanks so much

Amy Quispe

Gustavo GUCA

unread,
Feb 25, 2014, 6:38:54 PM2/25/14
to google-adm...@googlegroups.com
Yes Amy, I made a simple projected that just loads the ad to show the problem:

I'm running on a Nexus 4, with Android 4.4.2. The same works fine on a Sony Xperia Arc S running 4.0.4.

package com.example.teste;

import android.app.Activity;
import android.os.Build;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.webkit.WebView;
import android.widget.LinearLayout;

import com.google.android.gms.ads.AdListener;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdSize;
import com.google.android.gms.ads.AdView;

public class MainActivity extends Activity {

 private AdView adView;
 public static String ADMOB_ID = "ca-app-pub-9906023002971535/8148896000";
 
 @Override
 protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.activity_main);
 initAdMob();
 }

 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
 // Inflate the menu; this adds items to the action bar if it is present.
 getMenuInflater().inflate(R.menu.main, menu);
 return true;
 }
 
 private void initAdMob() {
 final LinearLayout adPlaceHolder = (LinearLayout) findViewById(R.id.adPlaceHolder);
 adPlaceHolder.setVisibility(View.INVISIBLE);
 adPlaceHolder.removeAllViews();
 adView = new AdView(this);
 adView.setAdUnitId(ADMOB_ID);
 adView.setAdSize(AdSize.BANNER);
 adPlaceHolder.addView(adView);
 // Initiate a generic request to load it with an ad
 
 adView.loadAd(new AdRequest.Builder().build());
 adView.setAdListener(new AdListener() {

 @Override
 public void onAdFailedToLoad(int errorCode) {
 adPlaceHolder.setVisibility(View.GONE);
 super.onAdFailedToLoad(errorCode);
 }

 @Override
 public void onAdLoaded() {
 adPlaceHolder.setVisibility(View.VISIBLE);
 super.onAdLoaded();
 }
 
 });
 }
 
 @Override
 protected void onResume() {
 super.onResume();
 if (adView != null) {
 adView.resume();
 }
 }

 @Override
 protected void onPause() {
 super.onPause();
 if (adView != null)
 adView.pause();
 }

}

My manifest:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"

   
package="com.example.teste"

   
android:versionCode="1"
   
android:versionName="1.0" >


   
<uses-sdk

       
android:minSdkVersion="8"
       
android:targetSdkVersion="18" />



   
<uses-permission android:name="android.permission.INTERNET" />



   
<application

       
android:allowBackup="true"
       
android:icon="@drawable/ic_launcher"
       
android:label="@string/app_name"
       
android:theme="@style/AppTheme" >
       
<meta-data
           
android:name="com.google.android.gms.version"
           
android:value="@integer/google_play_services_version" />


       
<activity

           
android:name="com.example.teste.MainActivity"

           
android:label="@string/app_name" >
           
<intent-filter>
               
<action android:name="android.intent.action.MAIN" />


               
<category android:name="android.intent.category.LAUNCHER" />
           
</intent-filter>
       
</activity>
       
         
<activity
           
android:name="com.google.android.gms.ads.AdActivity"
           
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
       
   
</application>


</manifest>


And finally my single layout:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
   
xmlns:tools="http://schemas.android.com/tools"
   
android:layout_width="match_parent"
   
android:layout_height="match_parent"
   
tools:context=".MainActivity" >


   
<LinearLayout
       
android:id="@+id/adPlaceHolder"
       
android:layout_width="match_parent"
       
android:layout_height="match_parent"
       
android:orientation="vertical" >
   
</LinearLayout>


</RelativeLayout>



I've already tried another ad-unit id but I got the same behavior.

Thanks!

Gustavo GUCA

unread,
Feb 25, 2014, 8:15:42 PM2/25/14
to google-adm...@googlegroups.com
If I try to do load more ad requests I end up getting a exception... Seems likes something is getting stuck..

02-25 22:11:23.520: W/Ads(20153): Too many background threads already running. Aborting task.
02-25 22:11:23.520: W/Ads(20153): java.util.concurrent.RejectedExecutionException: Task aba@441b8680 rejected from java.util.concurrent.ThreadPoolExecutor@4352d7e8[Running, pool size = 10, active threads = 10, queued tasks = 0, completed tasks = 7]
02-25 22:11:23.520: W/Ads(20153): at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2011)
02-25 22:11:23.520: W/Ads(20153): at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:793)
02-25 22:11:23.520: W/Ads(20153): at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1339)
02-25 22:11:23.520: W/Ads(20153): at aaz.a(SourceFile:26)
02-25 22:11:23.520: W/Ads(20153): at aae.b_(SourceFile:104)
02-25 22:11:23.520: W/Ads(20153): at bfv.l(SourceFile:294)
02-25 22:11:23.520: W/Ads(20153): at bgb.a(SourceFile:197)
02-25 22:11:23.520: W/Ads(20153): at bga.a(SourceFile:544)
02-25 22:11:23.520: W/Ads(20153): at bfu.d(SourceFile:190)
02-25 22:11:23.520: W/Ads(20153): at bft.handleMessage(SourceFile:126)
02-25 22:11:23.520: W/Ads(20153): at android.os.Handler.dispatchMessage(Handler.java:102)
02-25 22:11:23.520: W/Ads(20153): at android.os.Looper.loop(Looper.java:136)
02-25 22:11:23.520: W/Ads(20153): at android.app.ActivityThread.main(ActivityThread.java:5017)
02-25 22:11:23.520: W/Ads(20153): at java.lang.reflect.Method.invokeNative(Native Method)
02-25 22:11:23.520: W/Ads(20153): at java.lang.reflect.Method.invoke(Method.java:515)
02-25 22:11:23.520: W/Ads(20153): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
02-25 22:11:23.520: W/Ads(20153): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
02-25 22:11:23.520: W/Ads(20153): at dalvik.system.NativeStart.main(Native Method)
02-25 22:11:30.558: I/Ads(20153): Ad is not visible. Not refreshing ad.
02-25 22:11:30.558: I/Ads(20153): Scheduling ad refresh 60000 milliseconds from now.
02-25 22:11:36.464: I/Ads(20153): Ad is not visible. Not refreshing ad.
02-25 22:11:36.464: I/Ads(20153): Scheduling ad refresh 60000 milliseconds from now.
02-25 22:11:48.307: I/Ads(20153): Ad is not visible. Not refreshing ad.

Amy Quispe (AdMob SDK Team)

unread,
Feb 27, 2014, 8:55:10 PM2/27/14
to google-adm...@googlegroups.com
Hi Gustavo,

I'm still looking at this, will get back to you ASAP.

Amy Quispe

Amy Quispe (AdMob SDK Team)

unread,
Feb 28, 2014, 2:31:08 PM2/28/14
to google-adm...@googlegroups.com
Hi Gustavo,

This is a bug on our end. We're looking into a fix.

Amy Quispe

Gustavo GUCA

unread,
Mar 1, 2014, 12:44:53 PM3/1/14
to google-adm...@googlegroups.com
Ok Amy, thanks... 

I'll be watching this thread for any further updates on this.

Eric Wong

unread,
Mar 2, 2014, 10:24:48 PM3/2/14
to google-adm...@googlegroups.com
Gustavo, I experience something similar to what you have.

I used the admob XML method to integrate banner ads.
The banner shows up fine but log keep saying...


"The Google Play services resources were not found. Check your project configuration to ensure that the resources are included."

I tried the java method too but it didn't work.
So, I currently settle on the XML method but I have no idea if this problem is going to cause any problems if I release the app publicly.

I have already added admob library to my app as instructed at

I see some people suggest ticking the Google API instead of Android API but that does not seems to make any difference.

I also tried to use the froyo admob library too but eclipse won't build.
Eclipse keep complaining the library (com.google.android.gms.ads) not found or similar.

Any idea how to solve this? or what is going on?

Amy Quispe (AdMob SDK Team)

unread,
Mar 3, 2014, 1:47:28 PM3/3/14
to google-adm...@googlegroups.com
The namespaces have changed from the old library to the new play services library. You can see some of the differences here.

Chun Ming (Eric) Wong

unread,
Mar 4, 2014, 2:50:13 AM3/4/14
to google-adm...@googlegroups.com
I never used the old library and I started this admob implementation on a new app I am building.
In other words, I have been using the new library from the start.

I am also implementing the interstitial ad and it has exactly the same problem, i.e.

"The Google Play services resources were not found. Check your project configuration to ensure that the resources are included."
Eric Wong
--
 
---
You received this message because you are subscribed to a topic in the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/wU_ga7hzUfs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.

William Ferguson

unread,
Mar 4, 2014, 2:59:31 AM3/4/14
to google-adm...@googlegroups.com
If your app is otherwise working fine then there is nothing to worry about.
That message is benign.

William

Danny Backx

unread,
Mar 4, 2014, 3:36:12 AM3/4/14
to google-adm...@googlegroups.com

Same here.

Op 4-mrt.-2014 08:50 schreef "Chun Ming (Eric) Wong" <ericw...@gmail.com>:
...

Andrei Cristescu

unread,
Mar 8, 2014, 6:59:18 AM3/8/14
to google-adm...@googlegroups.com
Hello,

In your AdView xml configuration, there might be a problem:

android:layout_alignLeft="@+id/crypt"

Are you creating a new ID  on the fly? If so, for which resource? You should specify the ID of an existing view from the same layout.

Mattia Pagini

unread,
Mar 8, 2014, 9:09:55 AM3/8/14
to google-adm...@googlegroups.com
I have the same problem, Admob is not working and the error : The Google Play services resources were not found. Check your project configuration to ensure that the resources are included still display in devices.

this is my error log:

03-08 14:58:51.502: I/Ads(3423): Use AdRequest.Builder.addTestDevice("A58DA59557EB5D65293E02CEE19E1F79") to get test ads on this device.
03-08 14:58:51.512: I/dalvikvm(3423): Could not find method android.webkit.WebSettings.getDefaultUserAgent, referenced from method abc.a
03-08 14:58:51.512: W/dalvikvm(3423): VFY: unable to resolve static method 3901: Landroid/webkit/WebSettings;.getDefaultUserAgent (Landroid/content/Context;)Ljava/lang/String;
03-08 14:58:51.512: D/dalvikvm(3423): VFY: replacing opcode 0x71 at 0x0011
03-08 14:58:51.522: I/Ads(3423): Starting ad request.
03-08 14:58:51.522: I/dalvikvm(3423): Could not find method android.webkit.WebSettings.setMediaPlaybackRequiresUserGesture, referenced from method abk.<init>
03-08 14:58:51.522: W/dalvikvm(3423): VFY: unable to resolve virtual method 3916: Landroid/webkit/WebSettings;.setMediaPlaybackRequiresUserGesture (Z)V
03-08 14:58:51.522: D/dalvikvm(3423): VFY: replacing opcode 0x6e at 0x003d
03-08 14:58:51.572: W/ResourceType(3423): getEntry failing because entryIndex 13 is beyond type entryCount 4
03-08 14:58:51.572: W/ResourceType(3423): Failure getting entry for 0x7f0c000d (t=11 e=13) in package 0 (error -2147483647)
03-08 14:58:51.572: E/GooglePlayServicesUtil(3423): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
03-08 14:58:51.642: D/dalvikvm(3423): GC_CONCURRENT freed 266K, 8% free 6799K/7367K, paused 12ms+11ms, total 62ms
03-08 14:58:51.652: D/libEGL(3423): loaded /system/lib/egl/libEGL_mali.so
03-08 14:58:51.652: D/libEGL(3423): loaded /system/lib/egl/libGLESv1_CM_mali.so
03-08 14:58:51.652: D/libEGL(3423): loaded /system/lib/egl/libGLESv2_mali.so
03-08 14:58:51.692: D/OpenGLRenderer(3423): Enabling debug mode 0
03-08 14:58:51.792: D/webviewglue(3423): nativeDestroy view: 0x64d822c8
03-08 14:58:51.802: D/webcore(3423): >>>>>>>>>>>>>>>>>>>>>>>>>>>viewSizeChanged
03-08 14:58:51.862: D/webcore(3423): >>>>>>>>>>>>>>>>>>>>>>>>>>>viewSizeChanged
03-08 14:58:51.972: W/ResourceType(3423): getEntry failing because entryIndex 13 is beyond type entryCount 4
03-08 14:58:51.982: W/ResourceType(3423): Failure getting entry for 0x7f0c000d (t=11 e=13) in package 0 (error -2147483647)
03-08 14:58:51.982: E/GooglePlayServicesUtil(3423): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
03-08 14:58:52.122: W/ResourceType(3423): getEntry failing because entryIndex 13 is beyond type entryCount 4
03-08 14:58:52.122: W/ResourceType(3423): Failure getting entry for 0x7f0c000d (t=11 e=13) in package 0 (error -2147483647)
03-08 14:58:52.122: E/GooglePlayServicesUtil(3423): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
03-08 14:58:52.642: I/Ads(3423): No fill from ad server.
03-08 14:58:52.642: W/Ads(3423): Failed to load ad: 3

and this is my xml file:

<LinearLayout
           android:layout_width="match_parent"
           android:layout_height="50dp"
           android:orientation="vertical"
           android:background="#000000" >
           <com.google.android.gms.ads.AdView
    android:id="@+id/adView"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    ads:adUnitId="ca-app-pub-3948811721068628/XXXXXXXXXX"
    ads:adSize="BANNER"/>

</LinearLayout>

This is the code i call in my fragment:
AdView adView = (AdView) rootView.findViewById(R.id.adView);
   AdRequest adRequest = new AdRequest.Builder()
       .addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
       .addTestDevice("A58DA59557EB5D65293E02CEE19E1F79")
       .build();
   adView.loadAd(adRequest);

Is there a bugFix for this?
 

Chun Ming (Eric) Wong

unread,
Mar 8, 2014, 9:16:35 AM3/8/14
to google-adm...@googlegroups.com
Check your adUnitId.
Why do you have /xxxxxx there?

Admob xl method works for me even though it complain about the Google Play services not found.
Eric Wong
--

---
You received this message because you are subscribed to a topic in the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/wU_ga7hzUfs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mattia Pagini

unread,
Mar 11, 2014, 6:24:14 PM3/11/14
to google-adm...@googlegroups.com
XXXXX it's to censor the complete ID...
...
Reply all
Reply to author
Forward
0 new messages