ERROR_CODE_INTERNAL_ERROR (the same code has been working few weeks ago without any problem)

3,900 views
Skip to first unread message

mma...@appfeel.com

unread,
Mar 19, 2015, 3:47:31 PM3/19/15
to google-adm...@googlegroups.com
Hi,

I'm trying to request banner/interstitial ads but always getting ERROR_CODE_INTERNAL_ERROR, with testing or real ads the problem is the same.
It started to happen last weeks, the same code was working before without any problem.
Please need response as many apps depend on this code.

I've tried with both 6587000 and 6171000 versions. Here it is the LogCat:


03-19 20:30:21.615: W/Ads(15895): There was a problem getting an ad response. ErrorCode: 0
03-19 20:30:21.640: I/dalvikvm(15895): Could not find method android.webkit.WebSettings.setMixedContentMode, referenced from method com.google.android.gms.ads.internal.s.g.<init>
03-19 20:30:21.640: W/dalvikvm(15895): VFY: unable to resolve virtual method 3153: Landroid/webkit/WebSettings;.setMixedContentMode (I)V
03-19 20:30:21.640: D/dalvikvm(15895): VFY: replacing opcode 0x6e at 0x004a
03-19 20:30:21.650: I/dalvikvm(15895): Could not find method android.webkit.WebView.evaluateJavascript, referenced from method com.google.android.gms.ads.internal.s.g.evaluateJavascript
03-19 20:30:21.650: W/dalvikvm(15895): VFY: unable to resolve virtual method 3164: Landroid/webkit/WebView;.evaluateJavascript (Ljava/lang/String;Landroid/webkit/ValueCallback;)V
03-19 20:30:21.650: D/dalvikvm(15895): VFY: replacing opcode 0x6f at 0x0016
03-19 20:30:21.650: I/dalvikvm(15895): Could not find method com.google.android.gms.ads.internal.s.g.isAttachedToWindow, referenced from method com.google.android.gms.ads.internal.s.g.onDraw
03-19 20:30:21.650: W/dalvikvm(15895): VFY: unable to resolve virtual method 5758: Lcom/google/android/gms/ads/internal/s/g;.isAttachedToWindow ()Z


And here it is the code I'm using:

  private void createBannerView(String _pid, AdMobAdsAdListener adListener) {
    if (adView != null) {
      if (adView.getParent() != null) {
        ((ViewGroup) adView.getParent()).removeView(adView);
      }
      adView.destroy();
      adView = null;
    }
    if (adView == null) {
      adView = new AdView(this.getActivity());
      adView.setAdSize(adSize);
      adView.setAdUnitId(_pid);
      adView.setAdListener(adListener);
      adView.setVisibility(View.GONE);
    }

    if (adView.getParent() != null) {
      ((ViewGroup) adView.getParent()).removeView(adView);
    }
    isBannerVisible = false;
    adView.loadAd(buildAdRequest());
  }

  @SuppressLint("DefaultLocale")
  private AdRequest buildAdRequest() {
    AdRequest.Builder request_builder = new AdRequest.Builder();
    if (isTesting) {
      // This will request test ads on the emulator and device by passing this hashed device ID.
      String ANDROID_ID = Settings.Secure.getString(this.getActivity().getContentResolver(), android.provider.Settings.Secure.ANDROID_ID);
      String deviceId = md5(ANDROID_ID).toUpperCase();
      request_builder = request_builder.addTestDevice(deviceId).addTestDevice(AdRequest.DEVICE_ID_EMULATOR);
    }
    Bundle bundle = new Bundle();
    if (adExtras != null) {
      Iterator<String> it = adExtras.keys();
      while (it.hasNext()) {
        String key = it.next();
        try {
          bundle.putString(key, adExtras.get(key).toString());
        } catch (JSONException exception) {
          Log.w(ADMOBADS_LOGTAG, String.format("Caught JSON Exception: %s", exception.getMessage()));
        }
      }
    }
    AdMobExtras adextras = new AdMobExtras(bundle);
    request_builder = request_builder.addNetworkExtras(adextras);
    AdRequest request = request_builder.build();
    return request;
  }

mma...@appfeel.com

unread,
Mar 19, 2015, 3:55:00 PM3/19/15
to google-adm...@googlegroups.com
Other info:
- Google play services version: 7.0.97 (1791429-036)
- Device: Samsung Galaxy S3 GT-I9300 Android 4.3

I know that is happening also in other devices with different configurations.



El dijous, 19 març de 2015 20:47:31 UTC+1, mma...@appfeel.com va escriure:

Andrew Brogdon (Mobile Ads SDK Team)

unread,
Mar 19, 2015, 7:19:30 PM3/19/15
to google-adm...@googlegroups.com
Thanks for posting with so much detail.  We recently rolled out a new version of Google Play services (v7.0), which, judging by your description, would coincide with the appearance of this crash.  The first thing I would suggest is to download the matching version of our SDK, which was released this afternoon, and see if building with it corrects the issue.

-Andrew

mma...@appfeel.com

unread,
Mar 21, 2015, 7:20:48 AM3/21/15
to google-adm...@googlegroups.com
Hi Andrew, unfortunately this haven't solved the issue: still the same error: ERROR_CODE_INTERNAL_ERROR

Andrew Brogdon (Mobile Ads SDK Team)

unread,
Mar 24, 2015, 6:05:41 PM3/24/15
to google-adm...@googlegroups.com
Alright then, let me see what else I can do to help.  

I checked with one of the SDK team engineers, and the VFY warnings you see aren't necessarily an issue. Applications will often attempt to load methods present in newer versions of Android and then fall back to others if they find the installed version lacks the method. Those warnings also appear after the error code in your log, which isn't what I'd expect if they were the root cause of the issue.

Is there anything else in the logcat before you see "There was a problem getting an ad response. ErrorCode: 0"? And has the log changed at all after switching to the latest SDK?

-Andrew

mma...@appfeel.com

unread,
Mar 25, 2015, 3:11:24 PM3/25/15
to google-adm...@googlegroups.com
Hi Andrew,

I haven't identified any big issue in the logcat, anyway here it comes. Also I haven't noticed any significant change since the version update.
You can find the complete source code here (which you can see that there haven't been changes for 3 months, when it was working: https://github.com/appfeel/admob-google-cordova/tree/master/src/android
Here it goes the complete log for interstitial and banner requests (verbose).

This is for an interstitial ad:

03-25 19:56:46.249: I/v8(22561): [22561]    65523 ms:  Mark-sweep 1.2 (13.9) -> 1.1 (13.9) MB, 0 ms (+ 21 ms in 1 steps since start of marking, biggest step 21.470947 ms) [idle notification: finalize incremental] [GC in old space requested].
03-25 19:56:46.485: I/View(22561): Touch down dispatch to android.widget.RelativeLayout{42584b30 V.E..... ........ 0,0-600,951}, event = MotionEvent { action=ACTION_DOWN, id[0]=0, x[0]=117.80366, y[0]=294.6878, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=31678127, downTime=31678127, deviceId=2, source=0x1002 }
03-25 19:56:46.487: W/ResourceType(22561): No package identifier when getting name for resource number 0x00000064
03-25 19:56:46.493: I/View(22561): Touch down dispatch to org.apache.cordova.CordovaWebView{424fba68 VFEDH.C. .F...... 0,0-600,951 #64}, event = MotionEvent { action=ACTION_DOWN, id[0]=0, x[0]=117.80366, y[0]=294.6878, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=31678127, downTime=31678127, deviceId=2, source=0x1002 }
03-25 19:56:46.605: W/ResourceType(22561): No package identifier when getting name for resource number 0x00000064
03-25 19:56:46.610: I/View(22561): Touch up dispatch to org.apache.cordova.CordovaWebView{424fba68 VFEDH.C. .F...... 0,0-600,951 #64}, event = MotionEvent { action=ACTION_UP, id[0]=0, x[0]=116.80112, y[0]=291.6781, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=31678261, downTime=31678127, deviceId=2, source=0x1002 }
03-25 19:56:46.648: V/Provider/Settings(22561): get setting for user 0 by user 0 so skipping cache
03-25 19:56:46.649: V/Provider/Settings(22561):  from settings cache , name = android_id , value = 95367edeaa7199dd
03-25 19:56:46.680: D/dalvikvm(22561): create interp thread : stack size=128KB
03-25 19:56:46.680: D/dalvikvm(22561): create new thread
03-25 19:56:46.681: D/dalvikvm(22561): new thread created
03-25 19:56:46.681: D/dalvikvm(22561): threadid=35: interp stack at 0x67903000
03-25 19:56:46.681: D/dalvikvm(22561): init ref table
03-25 19:56:46.681: D/dalvikvm(22561): init mutex
03-25 19:56:46.681: D/dalvikvm(22561): threadid=35: created from interp
03-25 19:56:46.681: D/dalvikvm(22561): update thread list
03-25 19:56:46.681: D/dalvikvm(22561): start new thread
03-25 19:56:46.683: D/dalvikvm(22561): threadid=35: notify debugger
03-25 19:56:46.683: D/dalvikvm(22561): threadid=35 (AdWorker #10): calling run()
03-25 19:56:46.691: D/jdwp(22561):     --> RUNNING, Not SUSPENDED
03-25 19:56:46.692: D/jdwp(22561):     --> RUNNING, Not SUSPENDED
03-25 19:56:46.695: V/Provider/Settings(22561): get setting for user 0 by user 0 so skipping cache
03-25 19:56:46.696: V/Provider/Settings(22561):  from settings cache , name = android_id , value = 95367edeaa7199dd
03-25 19:56:46.714: I/Ads(22561): Starting ad request.
03-25 19:56:46.729: D/dalvikvm(22561): create interp thread : stack size=128KB
03-25 19:56:46.729: D/dalvikvm(22561): create new thread
03-25 19:56:46.729: D/dalvikvm(22561): new thread created
03-25 19:56:46.730: D/dalvikvm(22561): threadid=36: interp stack at 0x67925000
03-25 19:56:46.731: D/dalvikvm(22561): update thread list
03-25 19:56:46.731: D/dalvikvm(22561): init ref table
03-25 19:56:46.731: D/dalvikvm(22561): init mutex
03-25 19:56:46.731: D/dalvikvm(22561): threadid=36: created from interp
03-25 19:56:46.731: D/dalvikvm(22561): start new thread
03-25 19:56:46.731: D/dalvikvm(22561): threadid=36: notify debugger
03-25 19:56:46.733: D/WebView(22561): setNetworkAvailable=true
03-25 19:56:46.733: D/dalvikvm(22561): threadid=36 (AdWorker #11): calling run()
03-25 19:56:46.748: D/jdwp(22561):     --> RUNNING, Not SUSPENDED
03-25 19:56:46.749: D/jdwp(22561):     --> RUNNING, Not SUSPENDED
03-25 19:56:46.766: D/AwContents(22561): setContentsSize 600, 951
03-25 19:56:46.767: D/AwContents(22561): setPageScaleFactor 1.0
03-25 19:56:46.779: D/dalvikvm(22561): threadid=30: exiting
03-25 19:56:46.784: D/dalvikvm(22561): threadid=30: bye!
03-25 19:56:46.788: D/dalvikvm(22561): create interp thread : stack size=128KB
03-25 19:56:46.789: D/dalvikvm(22561): create new thread
03-25 19:56:46.789: D/dalvikvm(22561): new thread created
03-25 19:56:46.789: D/dalvikvm(22561): update thread list
03-25 19:56:46.789: D/dalvikvm(22561): threadid=30: interp stack at 0x66e3a000
03-25 19:56:46.789: D/dalvikvm(22561): init ref table
03-25 19:56:46.790: D/dalvikvm(22561): init mutex
03-25 19:56:46.790: D/dalvikvm(22561): threadid=30: created from interp
03-25 19:56:46.791: D/dalvikvm(22561): start new thread
03-25 19:56:46.791: D/dalvikvm(22561): threadid=30: notify debugger
03-25 19:56:46.792: D/dalvikvm(22561): threadid=30 (Thread-1936): calling run()
03-25 19:56:46.801: D/AwContents(22561): setContentsSize 600, 951
03-25 19:56:46.802: D/AwContents(22561): setPageScaleFactor 1.0
03-25 19:56:46.804: D/jdwp(22561):     --> SLEEPING, Not SUSPENDED
03-25 19:56:46.805: D/jdwp(22561):     --> SLEEPING, Not SUSPENDED
03-25 19:56:46.831: D/AwContents(22561): setContentsSize 600, 951
03-25 19:56:46.831: D/AwContents(22561): setPageScaleFactor 1.0
(repeated several times...)
03-25 19:56:46.892: D/AwContents(22561): setContentsSize 600, 951
03-25 19:56:46.892: D/AwContents(22561): setPageScaleFactor 1.0
03-25 19:56:46.895: D/dalvikvm(22561): create interp thread : stack size=128KB
03-25 19:56:46.895: D/dalvikvm(22561): create new thread
03-25 19:56:46.895: D/dalvikvm(22561): new thread created
03-25 19:56:46.895: D/dalvikvm(22561): update thread list
03-25 19:56:46.895: D/dalvikvm(22561): threadid=37: interp stack at 0x67a86000
03-25 19:56:46.895: D/dalvikvm(22561): init ref table
03-25 19:56:46.895: D/dalvikvm(22561): init mutex
03-25 19:56:46.895: D/dalvikvm(22561): threadid=37: created from interp
03-25 19:56:46.895: D/dalvikvm(22561): start new thread
03-25 19:56:46.897: D/dalvikvm(22561): threadid=37: notify debugger
03-25 19:56:46.897: D/dalvikvm(22561): threadid=37 (AdWorker #12): calling run()
03-25 19:56:46.908: D/jdwp(22561):     --> RUNNING, Not SUSPENDED
03-25 19:56:46.910: D/jdwp(22561):     --> RUNNING, Not SUSPENDED
03-25 19:56:46.913: D/AwContents(22561): setContentsSize 600, 951
03-25 19:56:46.914: D/AwContents(22561): setPageScaleFactor 1.0
(repeated several times...)
03-25 19:56:47.227: D/AwContents(22561): setContentsSize 600, 951
03-25 19:56:47.228: D/AwContents(22561): setPageScaleFactor 1.0
03-25 19:56:47.252: W/Ads(22561): There was a problem getting an ad response. ErrorCode: 0
03-25 19:56:47.253: D/AwContents(22561): setContentsSize 600, 951
03-25 19:56:47.254: D/AwContents(22561): setPageScaleFactor 1.0
03-25 19:56:47.265: D/WebView(22561): WebView<init>
03-25 19:56:47.267: V/Provider/Settings(22561): get setting for user 0 by user 0 so skipping cache
03-25 19:56:47.267: V/Provider/Settings(22561):  from settings cache , name = show_password , value = null
03-25 19:56:47.268: D/AwContents(22561): mIsCTSApp: false
03-25 19:56:47.291: D/WebView(22561): onPause
03-25 19:56:47.291: W/Ads(22561): Failed to load ad: 0






And here it comes for a banner (also trying to resolve the exception which I think it's not related to this issue as in the interstitial case it doesn't raise and the AdMob response is the same):

03-25 19:55:48.290: W/ResourceType(22561): No package identifier when getting name for resource number 0x00000064
03-25 19:55:48.298: I/View(22561): Touch down dispatch to org.apache.cordova.CordovaWebView{424fba68 VFEDH.C. .F...... 0,0-600,951 #64}, event = MotionEvent { action=ACTION_DOWN, id[0]=0, x[0]=311.48087, y[0]=87.889755, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=31619939, downTime=31619939, deviceId=2, source=0x1002 }
03-25 19:55:48.339: W/ResourceType(22561): No package identifier when getting name for resource number 0x00000064
03-25 19:55:48.341: I/View(22561): Touch up dispatch to org.apache.cordova.CordovaWebView{424fba68 VFEDH.C. .F...... 0,0-600,951 #64}, event = MotionEvent { action=ACTION_UP, id[0]=0, x[0]=311.48087, y[0]=87.889755, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=31619999, downTime=31619939, deviceId=2, source=0x1002 }
03-25 19:55:48.371: W/ResourceType(22561): No package identifier when getting name for resource number 0x00000064
03-25 19:55:48.382: D/ViewGroup(22561): addInArray been called, this = org.apache.cordova.CordovaWebView{424fba68 VFEDH.C. .F....ID 0,0-600,951 #64} ,child = android.widget.RelativeLayout{42584b30 V.E..... ......I. 0,0-0,0} ,call stack =
03-25 19:55:48.382: D/ViewGroup(22561): java.lang.Throwable: addInArray
03-25 19:55:48.382: D/ViewGroup(22561): at android.view.ViewGroup.addInArray(ViewGroup.java:3786)
03-25 19:55:48.382: D/ViewGroup(22561): at android.view.ViewGroup.addViewInner(ViewGroup.java:3740)
03-25 19:55:48.382: D/ViewGroup(22561): at android.view.ViewGroup.addView(ViewGroup.java:3564)
03-25 19:55:48.382: D/ViewGroup(22561): at android.view.ViewGroup.addView(ViewGroup.java:3540)
03-25 19:55:48.382: D/ViewGroup(22561): at com.appfeel.cordova.admob.AdMobAds.createBannerView(AdMobAds.java:330)
03-25 19:55:48.382: D/ViewGroup(22561): at com.appfeel.cordova.admob.AdMobAds.access$2(AdMobAds.java:284)
03-25 19:55:48.382: D/ViewGroup(22561): at com.appfeel.cordova.admob.AdMobAds$1.run(AdMobAds.java:277)
03-25 19:55:48.382: D/ViewGroup(22561): at android.os.Handler.handleCallback(Handler.java:808)
03-25 19:55:48.382: D/ViewGroup(22561): at android.os.Handler.dispatchMessage(Handler.java:103)
03-25 19:55:48.382: D/ViewGroup(22561): at android.os.Looper.loop(Looper.java:193)
03-25 19:55:48.382: D/ViewGroup(22561): at android.app.ActivityThread.main(ActivityThread.java:5341)
03-25 19:55:48.382: D/ViewGroup(22561): at java.lang.reflect.Method.invokeNative(Native Method)
03-25 19:55:48.382: D/ViewGroup(22561): at java.lang.reflect.Method.invoke(Method.java:515)
03-25 19:55:48.382: D/ViewGroup(22561): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:825)
03-25 19:55:48.382: D/ViewGroup(22561): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:641)
03-25 19:55:48.382: D/ViewGroup(22561): at dalvik.system.NativeStart.main(Native Method)
03-25 19:55:48.390: V/Provider/Settings(22561): get setting for user 0 by user 0 so skipping cache
03-25 19:55:48.391: V/Provider/Settings(22561): invalidate [secure]: current 6 != cached 0
03-25 19:55:48.393: V/Provider/Settings(22561): from db cache, name = android_id , value = 95367edeaa7199dd
03-25 19:55:48.413: I/dalvikvm(22561): Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zzg
03-25 19:55:48.413: W/dalvikvm(22561): VFY: unable to resolve virtual method 461: Landroid/content/pm/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller;
03-25 19:55:48.413: D/dalvikvm(22561): VFY: replacing opcode 0x6e at 0x000b
03-25 19:55:48.426: D/asset(22561): AssetManager-->addDefaultAssets CIP path not exsit!
03-25 19:55:48.436: D/dalvikvm(22561): open_cached_dex_file : /data/app/com.google.android.gms-2.apk /data/dalvik-cache/data@app@com.google.and...@classes.dex
03-25 19:55:48.476: D/dalvikvm(22561): create interp thread : stack size=128KB
03-25 19:55:48.476: D/dalvikvm(22561): create new thread
03-25 19:55:48.476: D/dalvikvm(22561): new thread created
03-25 19:55:48.476: D/dalvikvm(22561): update thread list
03-25 19:55:48.476: D/dalvikvm(22561): threadid=22: interp stack at 0x63bc4000
03-25 19:55:48.476: D/dalvikvm(22561): init ref table
03-25 19:55:48.476: D/dalvikvm(22561): init mutex
03-25 19:55:48.476: D/dalvikvm(22561): threadid=22: created from interp
03-25 19:55:48.476: D/dalvikvm(22561): start new thread
03-25 19:55:48.477: D/dalvikvm(22561): threadid=22: notify debugger
03-25 19:55:48.477: D/dalvikvm(22561): threadid=22 (AdWorker #1): calling run()
03-25 19:55:48.489: D/jdwp(22561):     --> RUNNING, Not SUSPENDED
03-25 19:55:48.490: D/jdwp(22561):     --> RUNNING, Not SUSPENDED
03-25 19:55:48.498: I/dalvikvm(22561): Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method com.google.android.gms.common.ff.a
03-25 19:55:48.498: W/dalvikvm(22561): VFY: unable to resolve virtual method 479: Landroid/content/pm/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller;
03-25 19:55:48.498: D/dalvikvm(22561): VFY: replacing opcode 0x6e at 0x000d
03-25 19:55:48.509: D/dalvikvm(22561): open_cached_dex_file : /data/data/com.appfeel.admob.test/cache/ads-1766654272.jar /data/data/com.appfeel.admob.test/cache/ads-1766654272.dex
03-25 19:55:48.510: D/dalvikvm(22561): DexOpt: --- BEGIN 'ads-1766654272.jar' (bootstrap=0) ---
03-25 19:55:48.561: D/dalvikvm(22561): create interp thread : stack size=128KB
03-25 19:55:48.561: D/dalvikvm(22561): create new thread
03-25 19:55:48.561: D/dalvikvm(22561): new thread created
03-25 19:55:48.561: D/dalvikvm(22561): update thread list
03-25 19:55:48.562: D/dalvikvm(22561): threadid=23: interp stack at 0x664fd000
03-25 19:55:48.562: D/dalvikvm(22561): init ref table
03-25 19:55:48.562: D/dalvikvm(22561): init mutex
03-25 19:55:48.562: D/dalvikvm(22561): threadid=23: created from interp
03-25 19:55:48.562: D/dalvikvm(22561): start new thread
03-25 19:55:48.562: D/dalvikvm(22561): threadid=23: notify debugger
03-25 19:55:48.562: D/dalvikvm(22561): threadid=23 (SharedPreferencesImpl-load): calling run()
03-25 19:55:48.563: D/dalvikvm(22561): threadid=23: exiting
03-25 19:55:48.573: D/jdwp(22561):     --> RUNNING, Not SUSPENDED
03-25 19:55:48.574: D/jdwp(22561):     --> RUNNING, Not SUSPENDED
03-25 19:55:48.575: V/Provider/Settings(22561): get setting for user 0 by user 0 so skipping cache
03-25 19:55:48.576: V/Provider/Settings(22561):  from settings cache , name = android_id , value = 95367edeaa7199dd
03-25 19:55:48.580: D/dalvikvm(22561): threadid=23: bye!
03-25 19:55:48.588: I/Ads(22561): Starting ad request.
03-25 19:55:48.603: D/dalvikvm(22561): create interp thread : stack size=128KB
03-25 19:55:48.603: D/dalvikvm(22561): create new thread
03-25 19:55:48.603: D/dalvikvm(22561): new thread created
03-25 19:55:48.603: D/dalvikvm(22561): update thread list
03-25 19:55:48.604: D/dalvikvm(22561): threadid=23: interp stack at 0x664fd000
03-25 19:55:48.604: D/dalvikvm(22561): init ref table
03-25 19:55:48.604: D/dalvikvm(22561): init mutex
03-25 19:55:48.604: D/dalvikvm(22561): threadid=23: created from interp
03-25 19:55:48.604: D/dalvikvm(22561): start new thread
03-25 19:55:48.605: D/dalvikvm(22561): DexOpt: --- END 'ads-1766654272.jar' (success) ---
03-25 19:55:48.605: D/WebView(22561): setNetworkAvailable=false
03-25 19:55:48.605: D/dalvikvm(22561): DEX prep '/data/data/com.appfeel.admob.test/cache/ads-1766654272.jar': unzip in 0ms, rewrite 95ms
03-25 19:55:48.605: D/dalvikvm(22561): threadid=23: notify debugger
03-25 19:55:48.606: D/dalvikvm(22561): threadid=23 (AdWorker #2): calling run()
03-25 19:55:48.611: D/jdwp(22561):     --> RUNNING, Not SUSPENDED
03-25 19:55:48.612: D/jdwp(22561):     --> RUNNING, Not SUSPENDED
03-25 19:55:48.616: V/SoftKeyboardDetect(22561): We are in our onMeasure method
03-25 19:55:48.618: V/SoftKeyboardDetect(22561): Old Height = 951
03-25 19:55:48.619: V/SoftKeyboardDetect(22561): Height = 951
03-25 19:55:48.620: V/SoftKeyboardDetect(22561): Old Width = 600
03-25 19:55:48.620: V/SoftKeyboardDetect(22561): Width = 600
03-25 19:55:48.620: D/SoftKeyboardDetect(22561): Ignore this event
03-25 19:55:48.626: D/AwLayoutSizer(22561): onLayoutChange 600, 951, 1.0
03-25 19:55:48.627: D/AwLayoutSizer(22561): setFixedLayoutSize 0, 0
03-25 19:55:48.660: I/GraphicBuffer(22561): allocate buffer (w:64 h:64 f:1) handle(0x61f89ed0) err(0)
03-25 19:55:48.661: I/GraphicBuffer(22561): allocate buffer (w:384 h:384 f:1) handle(0x61ed6fa0) err(0)
03-25 19:55:48.662: I/GraphicBuffer(22561): allocate buffer (w:384 h:384 f:1) handle(0x61ed7358) err(0)
03-25 19:55:48.663: I/GraphicBuffer(22561): allocate buffer (w:128 h:128 f:1) handle(0x61ed7558) err(0)
03-25 19:55:48.680: D/AwContents(22561): setContentsSize 600, 951
03-25 19:55:48.681: D/AwContents(22561): setPageScaleFactor 1.0
03-25 19:55:48.683: W/MALI(22561): MTK_AUX_isMTKFormat:168: int MTK_AUX_isMTKFormat(ANativeWindowBuffer_t*): format=1
03-25 19:55:48.683: W/MALI(22561): MTK_AUX_isMTKFormat:168: int MTK_AUX_isMTKFormat(ANativeWindowBuffer_t*): format=1
03-25 19:55:48.683: W/MALI(22561): MTK_AUX_isMTKFormat:168: int MTK_AUX_isMTKFormat(ANativeWindowBuffer_t*): format=1
03-25 19:55:48.683: W/MALI(22561): MTK_AUX_isMTKFormat:168: int MTK_AUX_isMTKFormat(ANativeWindowBuffer_t*): format=1
03-25 19:55:48.693: I/Ads(22561): CsiReporterFactory: CSI is not enabled. No CSI reporter created.
03-25 19:55:48.744: D/AwContents(22561): setContentsSize 600, 951
03-25 19:55:48.744: D/AwContents(22561): setPageScaleFactor 1.0
(repeated several times...)
03-25 19:55:48.780: D/AwContents(22561): setContentsSize 600, 951
03-25 19:55:48.780: D/AwContents(22561): setPageScaleFactor 1.0
03-25 19:55:48.785: D/dalvikvm(22561): create interp thread : stack size=128KB
03-25 19:55:48.785: D/dalvikvm(22561): create new thread
03-25 19:55:48.785: D/dalvikvm(22561): new thread created
03-25 19:55:48.785: D/dalvikvm(22561): update thread list
03-25 19:55:48.785: D/dalvikvm(22561): threadid=24: interp stack at 0x66740000
03-25 19:55:48.785: D/dalvikvm(22561): init ref table
03-25 19:55:48.785: D/dalvikvm(22561): init mutex
03-25 19:55:48.785: D/dalvikvm(22561): threadid=24: created from interp
03-25 19:55:48.785: D/dalvikvm(22561): start new thread
03-25 19:55:48.787: D/dalvikvm(22561): threadid=24: notify debugger
03-25 19:55:48.787: D/dalvikvm(22561): threadid=24 (Thread-1918): calling run()
03-25 19:55:48.804: D/AwContents(22561): setContentsSize 600, 951
03-25 19:55:48.805: D/AwContents(22561): setPageScaleFactor 1.0
03-25 19:55:48.824: D/jdwp(22561):     --> RUNNING, Not SUSPENDED
03-25 19:55:48.825: D/jdwp(22561):     --> RUNNING, Not SUSPENDED
03-25 19:55:48.833: D/AwContents(22561): setContentsSize 600, 951
03-25 19:55:48.834: D/AwContents(22561): setPageScaleFactor 1.0
03-25 19:55:48.842: D/dalvikvm(22561): create interp thread : stack size=128KB
03-25 19:55:48.843: D/dalvikvm(22561): create new thread
03-25 19:55:48.843: D/dalvikvm(22561): new thread created
03-25 19:55:48.843: D/dalvikvm(22561): update thread list
03-25 19:55:48.844: D/dalvikvm(22561): threadid=25: interp stack at 0x66860000
03-25 19:55:48.844: D/dalvikvm(22561): init ref table
03-25 19:55:48.844: D/dalvikvm(22561): init mutex
03-25 19:55:48.844: D/dalvikvm(22561): threadid=25: created from interp
03-25 19:55:48.844: D/dalvikvm(22561): start new thread
03-25 19:55:48.844: D/dalvikvm(22561): threadid=25: notify debugger
03-25 19:55:48.844: D/dalvikvm(22561): threadid=25 (Thread-1919): calling run()
03-25 19:55:48.845: D/dalvikvm(22561): threadid=24: exiting
03-25 19:55:48.848: D/dalvikvm(22561): threadid=24: bye!
03-25 19:55:48.850: D/AwContents(22561): setContentsSize 600, 951
03-25 19:55:48.851: D/AwContents(22561): setPageScaleFactor 1.0
03-25 19:55:48.867: D/AwContents(22561): setContentsSize 600, 951
03-25 19:55:48.867: D/AwContents(22561): setPageScaleFactor 1.0
03-25 19:55:48.878: D/jdwp(22561):     --> SLEEPING, Not SUSPENDED
03-25 19:55:48.879: D/jdwp(22561):     --> SLEEPING, Not SUSPENDED
03-25 19:55:48.881: D/AwContents(22561): setContentsSize 600, 951
03-25 19:55:48.882: D/AwContents(22561): setPageScaleFactor 1.0
03-25 19:55:48.898: D/AwContents(22561): setContentsSize 600, 951
03-25 19:55:48.899: D/AwContents(22561): setPageScaleFactor 1.0
(repeated several times...)
03-25 19:55:51.191: D/AwContents(22561): setContentsSize 600, 951
03-25 19:55:51.191: D/AwContents(22561): setPageScaleFactor 1.0
03-25 19:55:51.194: D/dalvikvm(22561): threadid=25: exiting
03-25 19:55:51.196: D/dalvikvm(22561): threadid=25: bye!
03-25 19:55:51.199: D/dalvikvm(22561): create interp thread : stack size=128KB
03-25 19:55:51.199: D/dalvikvm(22561): create new thread
03-25 19:55:51.200: D/dalvikvm(22561): new thread created
03-25 19:55:51.200: D/dalvikvm(22561): update thread list
03-25 19:55:51.200: D/dalvikvm(22561): threadid=24: interp stack at 0x66745000
03-25 19:55:51.200: D/dalvikvm(22561): init ref table
03-25 19:55:51.200: D/dalvikvm(22561): init mutex
03-25 19:55:51.200: D/dalvikvm(22561): threadid=24: created from interp
03-25 19:55:51.200: D/dalvikvm(22561): start new thread
03-25 19:55:51.200: D/dalvikvm(22561): threadid=24: notify debugger
03-25 19:55:51.200: D/dalvikvm(22561): threadid=24 (Thread-1920): calling run()
03-25 19:55:51.204: D/AwContents(22561): setContentsSize 600, 951
03-25 19:55:51.204: D/AwContents(22561): setPageScaleFactor 1.0
03-25 19:55:51.219: D/AwContents(22561): setContentsSize 600, 951
03-25 19:55:51.219: D/jdwp(22561):     --> SLEEPING, Not SUSPENDED
03-25 19:55:51.219: D/AwContents(22561): setPageScaleFactor 1.0
03-25 19:55:51.220: D/jdwp(22561):     --> SLEEPING, Not SUSPENDED
03-25 19:55:51.236: D/AwContents(22561): setContentsSize 600, 951
03-25 19:55:51.236: D/AwContents(22561): setPageScaleFactor 1.0
03-25 19:55:51.245: D/dalvikvm(22561): create interp thread : stack size=128KB
03-25 19:55:51.245: D/dalvikvm(22561): create new thread
03-25 19:55:51.246: D/dalvikvm(22561): new thread created
03-25 19:55:51.246: D/dalvikvm(22561): update thread list
03-25 19:55:51.246: D/dalvikvm(22561): threadid=25: interp stack at 0x6686e000
03-25 19:55:51.246: D/dalvikvm(22561): init ref table
03-25 19:55:51.246: D/dalvikvm(22561): init mutex
03-25 19:55:51.246: D/dalvikvm(22561): threadid=25: created from interp
03-25 19:55:51.246: D/dalvikvm(22561): start new thread
03-25 19:55:51.247: D/dalvikvm(22561): threadid=25: notify debugger
03-25 19:55:51.247: D/dalvikvm(22561): threadid=25 (GAThread): calling run()
03-25 19:55:51.252: D/AwContents(22561): setContentsSize 600, 951
03-25 19:55:51.252: D/AwContents(22561): setPageScaleFactor 1.0
03-25 19:55:51.253: D/dalvikvm(22561): create interp thread : stack size=128KB
03-25 19:55:51.253: D/dalvikvm(22561): create new thread
03-25 19:55:51.253: D/dalvikvm(22561): new thread created
03-25 19:55:51.253: D/dalvikvm(22561): update thread list
03-25 19:55:51.253: D/dalvikvm(22561): threadid=26: interp stack at 0x6698e000
03-25 19:55:51.253: D/dalvikvm(22561): init ref table
03-25 19:55:51.253: D/dalvikvm(22561): init mutex
03-25 19:55:51.253: D/dalvikvm(22561): threadid=26: created from interp
03-25 19:55:51.253: D/dalvikvm(22561): start new thread
03-25 19:55:51.253: D/dalvikvm(22561): threadid=26: notify debugger
03-25 19:55:51.254: D/dalvikvm(22561): threadid=26 (measurement-1): calling run()
03-25 19:55:51.271: D/AwContents(22561): setContentsSize 600, 951
03-25 19:55:51.271: D/jdwp(22561):     --> RUNNING, Not SUSPENDED
03-25 19:55:51.272: D/AwContents(22561): setPageScaleFactor 1.0
03-25 19:55:51.272: D/jdwp(22561):     --> WAIT, Not SUSPENDED
03-25 19:55:51.274: D/jdwp(22561):     --> SLEEPING, Not SUSPENDED
03-25 19:55:51.275: D/jdwp(22561):     --> SLEEPING, Not SUSPENDED
03-25 19:55:51.286: D/AwContents(22561): setContentsSize 600, 951
03-25 19:55:51.286: D/AwContents(22561): setPageScaleFactor 1.0
(repeated several times...)
03-25 19:55:51.344: D/AwContents(22561): setContentsSize 600, 951
03-25 19:55:51.344: D/AwContents(22561): setPageScaleFactor 1.0
03-25 19:55:51.354: D/dalvikvm(22561): create interp thread : stack size=128KB
03-25 19:55:51.354: D/dalvikvm(22561): create new thread
03-25 19:55:51.354: D/dalvikvm(22561): new thread created
03-25 19:55:51.354: D/dalvikvm(22561): update thread list
03-25 19:55:51.354: D/dalvikvm(22561): threadid=27: interp stack at 0x66aae000
03-25 19:55:51.354: D/dalvikvm(22561): init ref table
03-25 19:55:51.354: D/dalvikvm(22561): init mutex
03-25 19:55:51.354: D/dalvikvm(22561): threadid=27: created from interp
03-25 19:55:51.355: D/dalvikvm(22561): start new thread
03-25 19:55:51.355: D/dalvikvm(22561): threadid=27: notify debugger
03-25 19:55:51.355: D/dalvikvm(22561): threadid=27 (AdWorker #3): calling run()
03-25 19:55:51.361: D/AwContents(22561): setContentsSize 600, 951
03-25 19:55:51.361: D/AwContents(22561): setPageScaleFactor 1.0
03-25 19:55:51.363: D/jdwp(22561):     --> RUNNING, Not SUSPENDED
03-25 19:55:51.375: D/AwContents(22561): setContentsSize 600, 951
03-25 19:55:51.376: D/AwContents(22561): setPageScaleFactor 1.0
03-25 19:55:51.378: D/jdwp(22561):     --> RUNNING, Not SUSPENDED
03-25 19:55:51.390: D/AwContents(22561): setContentsSize 600, 951
03-25 19:55:51.390: D/AwContents(22561): setPageScaleFactor 1.0
(repeated several times...)
03-25 19:55:51.982: D/AwContents(22561): setContentsSize 600, 951
03-25 19:55:51.983: D/AwContents(22561): setPageScaleFactor 1.0
03-25 19:55:51.992: W/Ads(22561): There was a problem getting an ad response. ErrorCode: 0
03-25 19:55:51.999: D/AwContents(22561): setContentsSize 600, 951
03-25 19:55:51.999: D/AwContents(22561): setPageScaleFactor 1.0
03-25 19:55:52.013: I/dalvikvm(22561): Could not find method android.webkit.WebSettings.setMixedContentMode, referenced from method com.google.android.gms.ads.internal.s.g.<init>
03-25 19:55:52.013: W/dalvikvm(22561): VFY: unable to resolve virtual method 3153: Landroid/webkit/WebSettings;.setMixedContentMode (I)V
03-25 19:55:52.013: D/dalvikvm(22561): VFY: replacing opcode 0x6e at 0x004a
03-25 19:55:52.024: D/WebView(22561): WebView<init>
03-25 19:55:52.026: V/Provider/Settings(22561): get setting for user 0 by user 0 so skipping cache
03-25 19:55:52.026: V/Provider/Settings(22561):  from settings cache , name = show_password , value = null
03-25 19:55:52.027: D/AwContents(22561): mIsCTSApp: false
03-25 19:55:52.060: W/Ads(22561): Failed to load ad: 0
03-25 19:55:56.253: D/dalvikvm(22561): create interp thread : stack size=128KB
03-25 19:55:56.254: D/dalvikvm(22561): create new thread
03-25 19:55:56.254: D/dalvikvm(22561): new thread created
03-25 19:55:56.254: D/dalvikvm(22561): threadid=28: interp stack at 0x66bd6000
03-25 19:55:56.254: D/dalvikvm(22561): init ref table
03-25 19:55:56.254: D/dalvikvm(22561): init mutex
03-25 19:55:56.254: D/dalvikvm(22561): threadid=28: created from interp
03-25 19:55:56.254: D/dalvikvm(22561): update thread list
03-25 19:55:56.254: D/dalvikvm(22561): start new thread
03-25 19:55:56.255: D/dalvikvm(22561): threadid=28: notify debugger
03-25 19:55:56.255: D/dalvikvm(22561): threadid=28 (Failed Connect): calling run()
03-25 19:55:56.264: D/jdwp(22561):     --> SLEEPING, Not SUSPENDED
03-25 19:55:56.265: D/jdwp(22561):     --> SLEEPING, Not SUSPENDED

mma...@appfeel.com

unread,
Mar 27, 2015, 1:03:21 PM3/27/15
to google-adm...@googlegroups.com
Hi Andrew,

I have been doing some testing and there is new data that might be useful:

I've started a new native app (fragment) with the following code on onCreate:

  private AdView adView;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    if (savedInstanceState == null) {
      getSupportFragmentManager().beginTransaction().add(R.id.container, new PlaceholderFragment()).commit();
    }

    this.adView = new AdView(this);
    this.adView.setAdSize(AdSize.SMART_BANNER);
    this.adView.setAdUnitId(AD_UNIT_ID);
    this.adView.setAdListener(new AdListener() {
      @Override
      public void onAdLoaded() {
        super.onAdLoaded();
      }

      @Override
      public void onAdFailedToLoad(int errorCode) {
        super.onAdFailedToLoad(errorCode);
      }

      @Override
      public void onAdOpened() {
        super.onAdOpened();
      }
    });

    AdRequest.Builder adBuilder = new AdRequest.Builder();
    Bundle bundle = new Bundle();
    bundle.putInt("cordova", 1);
    AdMobExtras adextras = new AdMobExtras(bundle);
    adBuilder = adBuilder.addNetworkExtras(adextras);
    this.adView.loadAd(adBuilder.build());
  }


This is loading the ad correctly without any problems.
Then I went to the cordova app again and placed the following code:

  private void createBannerView(String _pid, AdMobAdsAdListener adListener, boolean isBackFill) {
    this.adView = new AdView(cordova.getActivity());
    this.adView.setAdSize(AdSize.SMART_BANNER);
    this.adView.setAdUnitId(AD_UNIT_ID);
    this.adView.setAdListener(new AdListener() {
      @Override
      public void onAdLoaded() {
        super.onAdLoaded();
      }

      @Override
      public void onAdFailedToLoad(int errorCode) {
        super.onAdFailedToLoad(errorCode);
      }

      @Override
      public void onAdOpened() {
        super.onAdOpened();
      }
    });

    AdRequest.Builder adBuilder = new AdRequest.Builder();
    Bundle bundle = new Bundle();
    bundle.putInt("cordova", 1);
    AdMobExtras adextras = new AdMobExtras(bundle);
    adBuilder = adBuilder.addNetworkExtras(adextras);
    this.adView.loadAd(adBuilder.build());
  }

cordova.getActivity() is the following one:

  public class CordovaActivity extends Activity implements CordovaInterface {
  ...
  
      /**
       * Get the Android activity.
       */
      @Override public Activity getActivity() {
          return this;
      }
  
  ...
  }

This code is giving the ERROR_CODE_INTERNAL_ERROR.
Both apps are targeting API  22 and have appcompat_v7 and google play services v7.0 integrated as libraries.
The only difference is that the last one is using cordova.getActivity() as context to create AdView object...

So I've also tried with:

cordova.getActivity().getBaseContext()

cordova.getActivity().getApplicationContext()

With same results.

Please any help will be really welcome.


El dijous, 19 març de 2015 20:47:31 UTC+1, mma...@appfeel.com va escriure:
Hi,

Andrew Brogdon (Mobile Ads SDK Team)

unread,
Mar 27, 2015, 2:23:32 PM3/27/15
to google-adm...@googlegroups.com
I'm not sure why the context you're receiving isn't working when the SDK attempts to place an ad in it. Cordova isn't actually something we support here, so we don't have that much collective knowledge on the subject. 

I do know that they maintain a support team on Stack Exchange (http://stackoverflow.com/questions/tagged/cordova), and floatinghotpot has some open source code that may aid you in finding a solution, but we're just not geared up to provide answers about their framework.

-Andrew
Message has been deleted

Calméjane Christophe

unread,
Apr 8, 2015, 4:56:40 PM4/8/15
to google-adm...@googlegroups.com
Hi,

I'm having the same issue.
Here is my logcat:
04-08 22:42:27.905: I/Ads(11506): Starting ad request.
04-08 22:42:28.355: I/Ads(11506): CsiReporterFactory: CSI is not enabled. No CSI reporter created.
04-08 22:42:29.265: D/dalvikvm(11506): DexOpt: --- END 'ads1921057526.jar' (success) ---
04-08 22:42:29.265: D/dalvikvm(11506): DEX prep '/data/data/com.myComp.TestApp/cache/ads1921057526.jar': unzip in 0ms, rewrite 2448ms
04-08 22:42:58.275: W/Ads(11506): There was a problem getting an ad response. ErrorCode: 0


It used to work perfectly a couple days ago, and now (without any change in the code) I get this error everytime. Either with test Ads or not.
I have an old version of my application installed on another device and it still works fine, so it's not an issue related to AdmoID nor AppID.
Both devices have 7.0.99 GP version installed on the device.
What I cannot tell is which SDK was used to build the old version which works, but the new version uses GPS rev23 which is the current available version.

Any advices?
Thanks

carloalb...@gmail.com

unread,
Apr 17, 2015, 3:49:13 PM4/17/15
to google-adm...@googlegroups.com
Hello,

I am having the same issue. Version is 7095000 and it was working till a couple of days ago.
Now it is always failing in loading the ad.

here is the log:


Any idea on how to solve?

carloalb...@gmail.com

unread,
Apr 18, 2015, 12:32:15 PM4/18/15
to google-adm...@googlegroups.com
It seems that clearing data on the device solved the issue... I don't know if this is going to work... I mean, it is not good that the user has to clear Google Play Services data to have AD working... and moreover the user does not care about the AD probably

mma...@appfeel.com

unread,
Apr 27, 2015, 12:01:27 PM4/27/15
to google-adm...@googlegroups.com
Hi Andrew,

I've seen that changing the package name of the app makes it work again (so It seems that it has been blocked).
Right now I've renamed it and started receiving ads again, but I don't want it to be blocked again.

This is just a demo app for our admob cordova/phonegap plugin (https://github.com/appfeel/admob-google-cordova) that users can download and play with it as much as they want.
The demo app can be found here: https://github.com/appfeel/admob-google-demo
I understand that blocking can happen (and moreover having that this is an open source demo project which we have no control on what users are doing with it).

The original app is configured to show demo ads and It's not necessary to show real ads (it's not even published to google play store).
With the blocked package name it is impossible to get ads, even test ones.
Could it be possible to enable only test ads for those package names? (even if they are not requesting test ads)
com.appfeel.admob.test (old one)
com.appfeel.admobtest (new one)

Thanks,
Miquel

Andrew Brogdon (Mobile Ads SDK Team)

unread,
Apr 27, 2015, 12:48:32 PM4/27/15
to google-adm...@googlegroups.com
If the specific package name of your application is causing requests to fail, it means that your application has been blocked for some type of policy violation, as you've surmised. We're a technical forum here, so we don't handle anything to do with policy stuff -- not only do I lack the authority to reinstate an account, I don't even know how one would begin to do so.

That said, AdMob does have an appeals process for this type of thing, and you can try going through that:


-Andrew

Игорь Титаренко

unread,
May 18, 2015, 2:40:36 PM5/18/15
to google-adm...@googlegroups.com


Hi,guys!
   I'm sorry that I'm damping in your theme!but i'm having the same issue.

I'm trying to request banner/interstitial ads but always getting "There was a problem getting an ad response. ErrorCode: 0" , with testing or real ads the problem is the same.I have HTC HD2 and asus fonepad HD7.I did it everything according to the official documents of the Googl .It started to happen from beginning.


 Here is my logcat:


05-13 21:56:47.325  24622-24622/? V/Zygote﹕ Switching descriptor 32 to /dev/null
05-13 21:56:47.325  24622-24622/? V/Zygote﹕ Switching descriptor 10 to /dev/null
05-13 21:56:47.325  24622-24622/? D/dalvikvm﹕ Late-enabling CheckJNI
05-13 21:56:47.475  24622-24622/  D/ActivityThread﹕ handleBindApplication:
05-13 21:56:47.475  24622-24622/  D/ActivityThread﹕ setTargetHeapUtilization:0.25
05-13 21:56:47.475  24622-24622/  D/ActivityThread﹕ setTargetHeapMinFree:524288
05-13 21:56:48.095  24622-24622/  I/dalvikvm﹕ Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zzh
05-13 21:56:48.095  24622-24622/  W/dalvikvm﹕ VFY: unable to resolve virtual method 473: Landroid/content/pm/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller;
05-13 21:56:48.095  24622-24622/  D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x000b
05-13 21:56:48.525  24622-24622/  I/dalvikvm﹕ Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method com.google.android.gms.common.hg.a
05-13 21:56:48.525  24622-24622/  W/dalvikvm﹕ VFY: unable to resolve virtual method 449: Landroid/content/pm/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller;
05-13 21:56:48.525  24622-24622/  D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x000d
05-13 21:56:48.595  24622-24622/  I/WebViewFactory﹕ Provider overridden by property: persist.webview.provider=classic
05-13 21:56:48.605  24622-24622/  I/Ads﹕ CsiReporterFactory: CSI is not enabled. No CSI reporter created.
05-13 21:56:48.615  24622-24622/  I/Ads﹕ Starting ad request.
05-13 21:56:48.675  24622-24643/  D/dalvikvm﹕ DexOpt: --- BEGIN 'ads480125931.jar' (bootstrap=0) ---
05-13 21:56:48.765  24622-24622/  I/Adreno200-EGL﹕ <qeglDrvAPI_eglInitialize:294>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB.04.01.01.00.036_msm8960_JB_CL2644550_release_AU (CL2644550)
    Build Date: 07/31/12 Tue
    Local Branch:
    Remote Branch: quic/master
    Local Patches: NONE
    Reconstruct Branch: AU_LINUX_ANDROID_JB.04.01.01.00.036 +  NOTHING
05-13 21:56:49.025  24622-24622/  D/OpenGLRenderer﹕ Enabling debug mode 0
05-13 21:56:49.135  24622-24643/  D/dalvikvm﹕ DexOpt: --- END 'ads480125931.jar' (success) ---
05-13 21:56:49.135  24622-24643/  D/dalvikvm﹕ DEX prep '/data/data/com..../cache/ads480125931.jar': unzip in 0ms, rewrite 459ms
05-13 21:56:49.155  24622-24622/  I/Timeline﹕ Timeline: Activity_idle id: android.os.BinderProxy@41831fd8 time:30214208
05-13 21:57:00.865  24622-24647/  W/Ads﹕ There was a problem getting an ad response. ErrorCode: 0                //
05-13 21:57:00.915  24622-24622/  I/dalvikvm﹕ Could not find method android.webkit.WebSettings.setMixedContentMode, referenced from method com.google.android.gms.ads.internal.u.h.<init>
05-13 21:57:00.915  24622-24622/  W/dalvikvm﹕ VFY: unable to resolve virtual method 3060: Landroid/webkit/WebSettings;.setMixedContentMode (I)V
05-13 21:57:00.915  24622-24622/  D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x004a
05-13 21:57:01.015  24622-24622/  W/Ads﹕ Failed to load ad: 0
05-13 21:57:24.115  24622-24622/  W/Ads﹕ Not enough space to show ad. Needs 320x50 dp, but only has 304x436 dp.   //
05-13 21:57:24.725  24622-24622/  I/Choreographer﹕ Skipped 32 frames!  The application may be doing too much work on its main thread.
05-13 21:57:24.775  24622-24622/  I/Timeline﹕ Timeline: Activity_idle id: android.os.BinderProxy@41831fd8 time:30249820



Any advices?
Thanks
  

Andrew Brogdon (Mobile Ads SDK Team)

unread,
May 18, 2015, 7:34:14 PM5/18/15
to google-adm...@googlegroups.com, ig.tyt...@gmail.com
I believe this line from your logcat explains what's going on:

05-13 21:57:24.115  24622-24622/  W/Ads﹕ Not enough space to show ad. Needs 320x50 dp, but only has 304x436 dp.   //

I'd recommend checking the horizontal padding on your activity or fragment, as that's a common reason for this type of error (a 320dp screen minus 16dp of padding would equal 304dp).

-Andrew

Piotr Gryko

unread,
May 21, 2016, 8:29:01 AM5/21/16
to Google Mobile Ads SDK Developers
Maybe that can be useful, I configured admob and firebase console. Google-services.json contains my development SHA key.  

Exactly the same code and the same build works fine with live/test ads on samsung galaxy s4 mini (4.4.2). It doesn't work (Error code:0 without any details) on samsung note 4 (5.1.1)
Reply all
Reply to author
Forward
0 new messages