googleads / googleads-mobile-android-examples

googleads-mobile-android
Apache License 2.0
1.69k stars 1.87k forks source link

Google admob not loading error code 2 in good network connection #60

Closed VigneshVickee closed 7 years ago

VigneshVickee commented 7 years ago

admob is not loading in any real device even test ad also not displaying.. I am sure about the coding but i can't find the solution for this problem..

using google admob version 9.8.0 ('com.google.android.gms:play-services-ads:9.8.0')

ericleich commented 7 years ago

Which ad format are you having problems with? Banner? Interstitial?

As mentioned in Issue #55, error code 2 means network error. Are you sure your device is connected to the internet (you can use Chrome to access web pages that aren't cached), and that you don't have an ad blocker installed on your device?

pmpandit04 commented 7 years ago

I am expriencing the same issue with compile 'com.google.android.gms:play-services-ads:10.2.0'. This error is occuring in your example app for Banner Ads.

Ad failed to load, errorcode: 2

None of the ads in my apps are not getting displayed because of this error. Few other people who are using my apps are getting the same error. Our devices are connected and we do not have ad blockers installed. These ads seemed to have stopped working in the past 3 -4 days or so, they were working fine before. Please help.

pmpandit04 commented 7 years ago

ericleich, any information on why googleads-mobile-android-examples for banner ads is giving this error?

Ad failed to load, errorcode: 2

This occurs when I run on a Pixel device or Genymotion emulator.

VigneshVickee commented 7 years ago

ericleich, i am facing issue in both banner and interstitial ad.. i am sure that i having good network connection ..even i checked with wifi as well as mobile network the problem still exist..

JeniferJethrouth commented 7 years ago

Am also getting same issue. Even my apps which is available in playstore also not receiving ads. is there any changes done in Admob sdks?Please help us. its a major problem for us.

ericleich commented 7 years ago

What's the app? I can try to reproduce.

JeniferJethrouth commented 7 years ago

App link: https://play.google.com/store/apps/details?id=com.thanthi.news&hl=en

josedlpozo commented 7 years ago

Hi! I am having the same issue.. I am using

compile 'com.google.firebase:firebase-ads:10.0.1'

In logcat I can see this:

W/Ads: Timed out waiting for ad response.
W/Ads: Failed to load ad: 2
W/Ads: Timed out waiting for ad response.
I/Ads: Scheduling ad refresh 60000 milliseconds from now.

I have change firebase-ads to play-services-ads, but still having the same problem.

Can you help me?

ericleich commented 7 years ago

@JeniferJethrouth I downloaded and ran your app. You appear to be making ~20 concurrent ad requests, which probably causing the SDK to exceed it's thread pool and most/all the requests time out. Try limiting to 2-3 concurrent, and use the ad loaded callback to request the next ad until you have enough for your app. There is an open bug against the SDK internally to better support this multiple concurrent request use case, but I don't have timelines for when it will be fixed/rolled out.

@josedlpozo Maybe you have the same issue as Jenifer (too many concurrent requests), or one of the issues mentioned above (an ad blocker is installed, or not a good internet connection). Error code 2 indicates a network issue. I can assure you that firebase-ads vs play-services-ads won't make a difference here.

josedlpozo commented 7 years ago

@ericleich I force my app to make only one request, but it still answers with error code 2. I have tried changing my ad unit id with no news. I have tried with Wi-Fi connection and 4G, and also don't have ad blocker installed.

I have seen that many people have the same issue.. maybe is an API bug? I am a little bit disgruntled :(

pmpandit04 commented 7 years ago

@ericleich @josedlpozo
I can reproduce the problem in the example app in this repo for Doubleclick banner ads. I have tried it in my home and work WiFi along with cellular network and it happens all the time. I do not have any ad blockers installed.

ericleich commented 7 years ago

I ran the DFP banner example and I'm getting ads back. I'm running out of ideas for why this could be happening.

How about running the DFP banner example on a nexus emulator? That would take out any device-specific variables that could be contributing.

VigneshVickee commented 7 years ago

@ericleich I have also tested sample app with single ad request, ad is visible at first time only. opening the app after sometime its showing same issue in the log cat.

ericleich commented 7 years ago

Hmm, what do you mean "after sometime"? Do you mean when the ad refreshes it fails to load, you are rotating the device, you background the app and come back, or something else?

VigneshVickee commented 7 years ago

@ericleich when i cleared the app in background and open it again ad is not loading..

ericleich commented 7 years ago

Can you try clearing the data on the Google Play services app, and re-run the banner app to see if that works?

VigneshVickee commented 7 years ago

Even though clearing google play services app, the problem still exists. really disappointing......

ericleich commented 7 years ago

Did you clear all data (Storage -> Manage Space -> Clear all data) in addition to just (Storage -> Clear Cache)?

VigneshVickee commented 7 years ago

@ericleich yes i did like that only..still the issue exist

ericleich commented 7 years ago

I'm pretty confident this behavior is being caused by an app making too many ad requests at once, which puts the SDK into a bad state. When running @JeniferJethrouth 's app, I have been able to consistently reproduce getting my Android device into this network error state, even when running other apps like BannerExample. Restarting Google play services, which can effectively be done by clearing all data, fixes the issue for me.

We are working on a fix in the SDK to handle this case more gracefully. In the meantime, we recommend loading ads serially by waiting for the onAdLoaded callback before starting the next request.

satishdy commented 7 years ago

I am seeing the same issue for Native Ads. They show up and randomly throw "Failed to load ad: 2" exception. Also I see Volley: [5175] ft.a: Unexpected response code 404 for https://lh5.googleusercontent.com/proxy/uQ3n4CTboPCQkUGO5fGdBBeod7BdJiUXyibJ6O2M9v8Q0P6Zk2gGtfXfeqI2zfy7VDGb7o_-ZJop-Yi-1WzCXa4cDC9mM931_gb_DKD0c8EZfnpyTNAAuPJn=w251-h251-n-e7-rw-v1

before the n/w timeout exception is thrown.

MrLights commented 7 years ago

I'm also having the same problem. My log cat shows this:

I/Ads: Starting ad request. I/Ads: Use AdRequest.Builder.addTestDevice("BC735B00175AB7B9FEC0877435DA68EA") to get test ads on this device. W/Ads: Error while connecting to ad server: Unexpected response code for CONNECT: 404 W/Ads: There was a problem getting an ad response. ErrorCode: 2 I/Ads: Scheduling ad refresh 60000 milliseconds from now. W/Ads: Failed to load ad: 2 I/Ads: Ad is not visible. Not refreshing ad. I/Ads: Scheduling ad refresh 60000 milliseconds from now.

I've use the same implementation I have with my other apps. But for the latest implementation that uses firebase-ads it seems not working and show the above logs.

ericleich commented 7 years ago

Have you tried clearing Google play services data as explained in https://github.com/googleads/googleads-mobile-android-examples/issues/60#issuecomment-289097368?

MrLights commented 7 years ago

Thanks for the response. I've done clear of cache and the error has now change. It shows this logs:

I/Ads: Starting ad request. I/Ads: Use AdRequest.Builder.addTestDevice("BC735B00175AB7B9FEC0877435DA68EA") to get test ads on this device. W/Ads: There was a problem getting an ad response. ErrorCode: 0 W/Ads: Failed to load ad: 0

It is now ErrorCode: 0. Base from what I've learn from the net, it says..

"It could be that you have only recently created a new Ad Unit ID and requesting for live ads. It could take a few hours for ads to start getting served if that is that case. If you are receiving test ads then your implementation is fine. Just wait a few hours and see if you are able to receive live ads then. If not, can send us your Ad Unit ID for us to look into."

But the weird part is I've setup the Ad Unit IDs long time ago. It should already show up if the definition is true.

ericleich commented 7 years ago

Please confirm which ad format you're using. Native Ads?

Also, can you please share logcat output when running:

adb shell "setprop log.tag.Ads VERBOSE; logcat Ads:* *:S"

MrLights commented 7 years ago

Hi again @ericleich,

By Native Ads do you mean Ads by Admob? if yes, I'm using that. I'm implementing a banner type ad for my Android app.

Also as requested for the adb shell logs.. here are the logs that showed up:

I/Ads ( 5121): Starting ad request. I/Ads ( 5121): Use AdRequest.Builder.addTestDevice("BC735B00175AB7B9FEC0877435DA68EA") to get test ads on this device. D/Ads ( 5121): AdLoaderBackgroundTask started. D/Ads ( 5121): Fetching ad response from remote ad request service. D/Ads ( 5121): App is still foreground. D/Ads ( 745): Binding to the ad request service. D/Ads ( 745): Starting ad request from service using: AFMA_getAd D/Ads ( 745): Got 2 signal pbs from gmscore D/Ads ( 745): Merged client and gmscore signals D/Ads ( 745): Return the combined signals D/Ads ( 745): Fail to obtain recent context. D/Ads ( 745): Enabling hardware acceleration on an overlay. W/Ads ( 745): JS: The page at https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html displayed insecure content from file:///android_asset/webkit/android-weberror.png. W/Ads ( 745): (null:1) D/Ads ( 5121): Received ad response. W/Ads ( 5121): There was a problem getting an ad response. ErrorCode: 0 W/Ads ( 5121): Failed to load ad: 0 D/Ads ( 5121): Enable the debug gesture detector on the admob ad frame. D/Ads ( 745): DSID dispatcher woke up. D/Ads ( 745): Running DSID refresh task. D/Ads ( 745): Failed to get auth token for DSID: dxj: BadAuthentication

vfaSonnt commented 7 years ago

Sorry, is this problem solved yet? I mean SDK fix it yet. I have too many request in many screen and popup.

ericleich commented 7 years ago

@vfaSonnt The SDK fix for this issue will be included in the next Google play services release. Once your device picks up the update, you won't need to update your app. I can't provide a timeline on the release date.

@MrLights your issue sounds different than this particular topic. The logs didn't quite produce what I was looking for, unfortunately. Can you try with our sample banner ad unit ca-app-pub-3940256099942544/6300978111 and see if ad serving works with that ad unit?

MrLights commented 7 years ago

@ericleich I've use the sample banner ad unit you gave. It still did not work. Here are the logs using the sample ad unit:

I/Ads: Starting ad request. I/Ads: Use AdRequest.Builder.addTestDevice("BC735B00175AB7B9FEC0877435DA68EA") to get test ads on this device. W/Ads: JS: The page at https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html displayed insecure content from file:///android_asset/webkit/android-weberror.png. (null:1) W/Ads: There was a problem getting an ad response. ErrorCode: 0 W/Ads: Failed to load ad: 0 E/Ads: Failed to connect to https://googleads.g.doubleclick.net/pagead/drt/m. No DSID retrieved.

ericleich commented 7 years ago

Sorry for the delay here. Can you run this again with the adb shell logs, but this time connect your device and run:

adb shell "setprop log.tag.Ads VERBOSE; logcat Ads:* *:S"

Before you start up the app and make the request. If this is set up beforehand, there should be an ad request url in the logcat logs which would help me debug further.

MrLights commented 7 years ago

Hi @ericleich. Thanks for assisting and helping me out with this issue but a couple of days ago my Ad banners started working. But this is only when I'm using/test it with my actual device. But unfortunately it still doesn't show up on the Android emulator (both AS emulator and Genymotion).

ericleich commented 7 years ago

Glad it started working for you on device. I still am unable to confirm why it isn't working on your emulator. It's working on my end so I don't believe it's a network-wide problem.

If you're satisfied with testing on device we can leave it at that. If you're keen on making this work on your emulator, I'll ask that you run adb shell "setprop log.tag.Ads VERBOSE; logcat Ads:* *:S" again, prior to loading the ad, so that I can see what the ad request url looks like on your end.

MrLights commented 7 years ago

Hi @ericleich.

Here is the result of command adb shell "setprop log.tag.Ads VERBOSE; logcat Ads:* *:S": As instructed, I run the command before any ad request. I hope this logs helps with your investigation. Done this using AS Emulator - Nexus 5 API23.

--------- beginning of system --------- beginning of main 05-19 15:38:30.965 8950 8950 I Ads : Starting ad request. 05-19 15:38:42.609 8950 8962 W Ads : There was a problem getting an ad response. ErrorCode: 0 05-19 15:38:42.609 8950 8950 W Ads : Failed to load ad: 0 05-19 15:42:00.990 8950 8950 I Ads : Starting ad request. 05-19 15:42:00.991 3787 3787 D Ads : Binding to the ad cache service. 05-19 15:42:00.995 8950 8950 D Ads : App is still foreground. 05-19 15:42:01.009 8950 11337 D Ads : Fetching ad response from remote ad request service. 05-19 15:42:01.013 3787 3787 D Ads : Binding to the ad request service. 05-19 15:42:01.065 3787 11353 D Ads : Starting ad request from service using: AFMA_getAd 05-19 15:42:01.126 3787 11356 D Ads : Got 2 signal pbs from gmscore 05-19 15:42:01.130 3787 11356 D Ads : Merged client and gmscore signals 05-19 15:42:01.130 3787 11356 D Ads : Return the combined signals 05-19 15:42:01.141 3787 11359 D Ads : Fail to obtain recent context. 05-19 15:42:01.191 3787 3787 D Ads : Enabling hardware acceleration on an overlay. 05-19 15:42:11.211 8950 8961 D Ads : Received ad response. 05-19 15:42:11.211 8950 8961 W Ads : There was a problem getting an ad response. ErrorCode: 0 05-19 15:42:11.211 8950 8950 W Ads : Failed to load ad: 0 05-19 15:42:11.212 8950 8950 D Ads : Enable the debug gesture detector on the admob ad frame. 05-19 15:42:35.158 3787 3787 E Ads : JS: Not allowed to load local resource: file:///android_asset/webkit/android-weberror.png (data:text/html,chromewebdata:0)

ericleich commented 7 years ago

Hmm, that's still not giving the output I'm expecting. When I run this on my end I get a log like this:

D/Ads ( 3078): AdRequestServiceImpl: Sending request: https://googleads.g.doubleclick.net/mads/gma?carrier=310260&riv=5&_activity_context=true&format=320x50_mb&gl=US&seq_num=26&eid=318477040%2C318476426&u_sd=3.5&ms=CoACdNpDBj_g4VmrWkiQ54YjI0H29fbIoTx4RWEcBU_ShmLaOjoa4NIM0JDheqtXmwtJEaOQM9p8GfmqYNc_uDgYzSlkVW9krWl6qyTtz1J7YIwvL_jViF4O_M18NNzlVOYEm2Wua_-CMGUoGHzJD3rQBxzgcc8IORpSwdtH8z8xRh3P_F5jyMMzQfmZ67vSB19sL_fqxNCW8eOTRnD3O5Tuqysy2bGw8WulJPo287e8I_gdW0ZQ9ur12xX_cjnD-DJ62k-JGKNgQ6pE6Lc9pMlVVUQ4VwS4ISm9kSzxYt8Agsppp9DAoqpWAdqAGdO6LrNRSh0Xu6z96moLjQfIiRrAnwqAAoBVtX81w-mCRiM9yvsDiDTfPUh2BRqb6RRWqJPcVa6vpgknFZBsSWFizxFGIm5_Gy5pTvkPSYh9oexOceDbqUPf9Ub4xOHzOeissZzrFM7-r6xiPm1lpk0QIHq-ZMUy7scMCB9rDYPG3d69EoQlZmKevZrqZpokifWeXDaWOOUGJHHWDGUlbj4D7kfWDe35vOLIrffGyX2oTeEMd-qSERZ0kOA2wMNyr6XBGuDjKjbWxN0BBKt_4uw1BoazvbxJT1Yk1gpsC4QnYQoHxiss-p9fqBC59E9Fx6YzPF55tbNqOK7iurxvJNJecYOsmb7juhCleFk2lwXFYLW6-2SflgUSEIQfw8XCz5zwY5nPeDNGKo4&target_api=25&hl=en&scroll_index=-1&platform=unknown&submodel=Android%20SDK%20built%20for%20x86_64&rm=2&android_app_muted=false&request_id=cbe90290-23ff-4854-bf1e-c8c5246581f1&am=0&cnt=0&ma=0&js=afma-sdk-a-v10298000.10298000.0&session_id=5607872062634993389&muv=11&coh=1&sp=0&gnt=13&android_app_volume=1&android_num_video_cache_tasks=0&is_test_device=true&adtest=on&ad_x=160&ad_y=2161&ad_w=1120&ad_h=175&ad_v=1&u_w=412&u_h=684&msid=com.google.samples.quickstart.admobexample&app_name=1.android.com.google.samples.quickstart.admobexample&_package_name=com.google.samples.quickstart.admobexample&an=1.android.com.google.samples.quickstart.admobexample&net=ed&u_audio=4&u_so=p&basets=42399&currts=1499884&preqs_in_session=25&pclick=0&support_transparent_background=true&pimp=24&preqs=25&time_in_session=1457486&treq=1439056&tfetch=1439131&tresponse=1439675&tload=1439852&dload=796&timp=1439852&pcc=0&ismediation=false&output=html&region=mobile_app&u_tz=-420&client_sdk=1&ex=1&client=ca-app-pub-3940256099942544&slotname=6300978111&askip=0&gsb=4g&caps=inlineVideo_interactiveVideo_mraid1_mraid2_sdkVideo_th_autoplay_mediation_av_transparentBackground_sdkAdmobApiForAds_di_sfv_dinm_dim_nav_dinmo&bisch=true&blev=1&swdr=false&cans=5&canm=true&heap_free=871853&heap_max=402653184&heap_total=8580748&wv_count=4&sai=1&blockAutoClicks=true&_efs=false&forceHttps=true&includeDoritos=true&tcar=7&jsv=4-production-20170522_RC00&urll=2291#_activity_context=true&android_num_video_cache_tasks=0&caps=inlineVideo_interactiveVideo_mraid1_mraid2_sdkVideo_th_autoplay_mediation_av_transparentBackground_sdkAdmobApiForAds_di_sfv_dinm_dim_nav_dinmo&eid=318477040%252C318476426&format=320x50_mb&heap_free=871853&heap_max=402653184&heap_total=8580748&js=afma-sdk-a-v10298000.10298000.0&msid=com.google.samples.quickstart.admobexample&preqs=25&scroll_index=-1&seq_num=26&target_api=25

klodha commented 7 years ago

Hi, I am also facing same error with NativeAd in Unity game. In example code, when I put my ad unit ID, it worked fine. But same ID in my main project is not working and I keep getting different errors. Most of time its error code 2 (searched for this and found its network error, but my device has perfect network connection, download speed 20Mbps, upload 5Mbps).

I/Ads ( 9050): Starting ad request. I/Ads ( 9050): Use AdRequest.Builder.addTestDevice("5CE2F9BD6D9FFCC64203D778CB46460E") to get test ads on this device. D/Ads ( 9050): AdLoaderBackgroundTask started. D/Ads ( 9050): Fetching ad response from remote ad request service. D/Ads ( 9091): Binding to the ad cache service. D/Ads ( 9091): Binding to the ad request service. D/Ads ( 9091): Starting ad request from service using: AFMA_getAd I/Ads ( 9091): Parental control value is stale. Refreshing. D/Ads ( 9091): Got 2 signal pbs from gmscore D/Ads ( 9091): Merged client and gmscore signals D/Ads ( 9091): Return the combined signals I/Ads ( 9091): Successfully received play store parental controls the result. D/Ads ( 9091): Fail to obtain recent context. D/Ads ( 9091): Enabling hardware acceleration on an overlay. D/Ads ( 9091): AdRequestServiceImpl: Sending request: https://googleads.g.doubleclick.net/mads/gma?carrier=405868&riv=7&_activity_context=true&format=320x150_as&gl=IN&seq_num=1&eid=318475406%2C318477524%2C318476426%2C318476962%2C318478496&u_sd=2&ms=CpUCCoACvBT7V-4WmNHaVhOO87KZnraKtoVYBaDFHkg-BH7CR0qYDjbirHXM1mfyY76PIf-LUkWq2Ga8AyOu0MEc3WOioVHKTE-0F7Qtn-xmR8DM-fEWvIxFzSLSiB7_AV7KmaJMpltm27Vc0L7RijyiYVEme6N4TSFbVqeiZ6TADXufyAXRWzLGxTVIAc4yfrMOxPblqJqfB8833-AsY-Ep4gvS7ph2MeWwXo8fkFkpiPMbeZYWLNd0-aDr20P8K71ztno-2L4AiXCk9Y7CgpqLDjIjbm5zqjl3en4pxhgHgSEjOCp6mccuCgjnvGMg5YKcI6OXE5CLTcQcmB5SzDKUCQzSJBIQ2xGlTj2ei4_FBHtpzObd3hKVAgqAAmL0og4ZstVN82J9yJtVUpChvwemzEQQF0p3a72X3jHWeVQC_mSzipXzOhX9hjOaQNZpAZkjmUaOLYsgUjLo4pNGtk6s19TPwq9oUrQ8gMVPlMjm6JsE58ibJroCssF4ZPyIeawMojpzP_hfS3MXS_zS1GnT4aavncwQmY8IRVA6NSRj2Nn2iDSAlF1j8w_23GgZuaFOcAkZlEqz1E6LnkWuX7GGlYA7XcaIbUUHCJgqku-eQonqrZuxI0ZO3r7N8nbIwNd0Z7Fc2UvXLxKQ_Cl4H39Fv3Vv9ix402bUI2JNLqfJ1RvUyh5YxyzXXk772eQ9Xa-KOAMoxdMnYQU3s5USEHfcbFuDzfJfb7n6CIqG7a8&target_api=23&hl=en&fbs_aiid=c9db0ab1f2c4ad39c4fbd130cc1b2400&scroll_index=-1&gmp_app_id=1%3A827991976187%3Aandroid%3A592a2d9823dc2f65&platform=JSR&submodel=LS-5010&rm=2&android_app_muted=false&request_id=780c45d4-5712-4302-94f9-0cd69e73c159&am=0&cnt=1&ma=1&kw=game&disable_ml=false&js=afma-sdk-a-v11302246.11020000.1&session_id=17045844909352762093&muv=15&ene=true&coh=1&sp=0&forceHttps=true&gnt=13&mv=80807300.com.android.vending&android_app_volume=1&fbs_aeid=-6816143805688415448&android_num_video_cache_tasks=0&request_agent=unity-3.6.3&u_w=640&u_h=360&msid=com.gamiana.teenpatti&app_name=20000020.android.com.gamiana.teenpatti&_package_name=com.gamiana.teenpatti&an=20000020.android.com.gamiana.teenpatti&net=wi&u_audio=3&u_so=l&basets=103099827&currts=103099827&preqs_in_session=2&pclick=0&support_transparent_background=true&pimp=0&preqs=0&time_in_session=973102&output=html&region=mobile_app&u_tz=330&client_sdk=1&ex=1&client=ca-app-pub-4316209134410998&slotname=8286552665&kw_type=broad&gsb=wi&local_service=false&lite=false&caps=inlineVideo_interactiveVideo_mraid1_mraid2_sdkVideo_th_autoplay_mediation_av_transparentBackground_sdkAdmobApiForAds_di_aso_sfv_dinm_dim_nav_navc_dinmo_gcache&bisch=true&blev=0.95&swdr=false&cans=5&canm=false&_mv=80807300.com.android.vending&pscfas=true&heap_free=4226830&heap_max=134217728&heap_total=10833076&wv_count=0&sai=1&blockAutoClicks=true&includeDoritos=true&content_infol=-1&blob=ABPQqLGAYwZRkMglnRyuvpHRMull5rYflN3j4p5w4jqTJI5Iu9ibusXSHV4FCGGmY2OUgBMMdLjhjIhR7h1GGgFV-7TwrtDIiPXG9IbsipqHevGX0_qbWWFixaCIFytpP-KjBQbXH0IDe0_4CQahQdW5s6ocE42i2HYf7bJSV77wKt5cZQAy51m9A7zRyqPbd3pDjB5IqukZEwHVXaQ6yaf3vkTc2fCmkwCvv6CvFrf7TcynWp1qronM2fJSRg&et=234&tcar=287&jsv=4-production-20170821_RC00&urll=2674#_activity_context=true&android_num_video_cache_tasks=0&caps=inlineVideo_interactiveVideo_mraid1_mraid2_sdkVideo_th_autoplay_mediation_av_transparentBackground_sdkAdmobApiForAds_di_aso_sfv_dinm_dim_nav_navc_dinmo_gcache&eid=318475406%252C318477524%252C318476426%252C318476962%252C318478496&format=320x150_as&heap_free=4226830&heap_max=134217728&heap_total=10833076&js=afma-sdk-a-v11302246.11020000.1&msid=com.gamiana.teenpatti&preqs=0&scroll_index=-1&seq_num=1&target_api=23 W/Ads ( 9050): Timed out waiting for ad response. I/Ads ( 9050): Scheduling ad refresh 60000 milliseconds from now. D/Ads ( 9050): Ad refresh scheduled. W/Ads ( 9050): Failed to load ad: 2 D/Ads ( 9050): Enable the debug gesture detector on the admob ad frame. W/Ads ( 9091): Error while connecting to ad server: null D/Ads ( 9050): Received ad response. W/Ads ( 9050): There was a problem getting an ad response. ErrorCode: 2 W/Ads ( 9050): An ad refresh is already scheduled. D/Ads ( 9050): Ad refresh scheduled. W/Ads ( 9050): Failed to load ad: 2 D/Ads ( 9050): Enable the debug gesture detector on the admob ad frame.

I tried resetting Google Play services, uninstalled updates and everything I could locate related to admob and unity with regards to this issue.

Some time error message change to 403 like this:

D/Ads (13715): Scheduling long-period DRT refresh task. D/Ads (13715): Scheduling near-term DRT refresh task. I/Ads (13715): Parental control value is stale. Refreshing. I/Ads (13715): Initialized AdMob in container 11.3.02 (246-161239932) D/Ads (14163): Chimera is not available. D/Ads (13715): Pinging URL: https://pagead2.googlesyndication.com/pagead/gen_204?id=gmob-apps&action=gmscore_upgrade&device=JSR%20LS-5010&locale=en_IN&js=11302246.11302000&os=5.1.1&api=22&lta=false&eids=&appid=com.google.android.gms&previous_gmscore_version=-1 I/Ads (13715): Successfully received play store parental controls the result. D/Ads (13715): Pinging URL: https://pagead2.googlesyndication.com/pagead/gen_204?id=gmob-apps&device=JSR%20LS-5010&js=11302246.11302000&os=5.1.1&api=22&lat=0&eids=&tslu=1&appid=com.google.android.gms D/Ads (13715): Pinging URL: https://pagead2.googlesyndication.com/pagead/gen_204?id=gmob-apps&device=JSR%20LS-5010&js=11302246.11302000&os=5.1.1&api=22&lat=0&eids=&tslu=10&appid=com.google.android.gms D/Ads (14606): Chimera is not available. D/Ads (13715): [JAMS] Accounts changed I/Ads (13715): Accounts have changed: com.google.android.gms.auth.GOOGLE_ACCOUNT_CHANGE D/Ads (13715): Running DSID refresh task. D/Ads (13715): DSID dispatcher woke up. D/Ads (13715): Running DSID refresh task. D/Ads (13715): Saved DSID. D/Ads (13715): Saved DSID. D/Ads (13715): [JAMS] Gservices updated D/Ads (13715): [JAMS] Negotiation enabled D/Ads (13715): [JAMS] Next negotiation to run in 0 seconds D/Ads (13715): [JAMS] Negotiator starts running at Tue Aug 22 17:04:12 IST 2017 E/Ads (13715): [JAMS] Failed to negotiate D/Ads (13715): [JAMS] Scheduling retry... D/Ads (13715): [JAMS] Next negotiation to run in 1200 seconds I/Ads (15477): Starting ad request. I/Ads (15477): Use AdRequest.Builder.addTestDevice("5CE2F9BD6D9FFCC64203D778CB46460E") to get test ads on this device. D/Ads (15477): AdLoaderBackgroundTask started. D/Ads (15477): Fetching ad response from remote ad request service. D/Ads (13715): Binding to the ad request service. D/Ads (13715): Starting ad request from service using: AFMA_getAd D/Ads (13715): Got 2 signal pbs from gmscore D/Ads (13715): Merged client and gmscore signals D/Ads (13715): Return the combined signals D/Ads (13715): Fail to obtain recent context. D/Ads (13715): Enabling hardware acceleration on an overlay. D/Ads (13715): AdRequestServiceImpl: Sending request: https://googleads.g.doubleclick.net/mads/gma?carrier=405868&riv=7&_activity_context=true&format=320x150_as&gl=IN&seq_num=1&eid=318475406&u_sd=2&ms=CpUCCoAC3BYcWt8Uat3-XFOZlLd8jpTGZ5IKCAjFDkLkCV7O_F7-QBHtqz6v3jfwCaCqYfuRYg6BxTS8wCqu1P0E2yT5qmCPMluFHUEinOXGT7aFafYnsZJZ_CuxgX26DlDpnWJGgBoI0LRSsLqUjiWhRVCEe5J3eDJNWd6-U-EDGnycIw_GWLTD5zDSAqwzwbJZxxPt39DOFu96pv09J9o8kgCa6cl9GOf0G0EWlFMhltcUR4AALbdsmKuQzWSxnr9i-DwsnfzFhxbuIJPwhUWLOXoyYwo7_yMzdvU2hRDLimYkZjwZ2FIiKQYnvxdlJ5buY3aCFZSXQ4Uc2xYTxQWcagmvLBIQp9s2nuNucAio963f7lqXXBKVAgqAAmU3p9KTHWriZq61wbZfycEWdNkyTmoIL1ZWXeV1dLFx1UkaWzyIkSzli-uOkaLDLqFxISoG-2ztVbKT39Hn7x-vtLX9UcMAj17BsnCiCEEVcW7B6ClHlAfMJqixoENtQF7t51_hbUvwTPX25Um0jaWtzryRg4ef0a8nC8CC--J5IXzWKPPDnC73RwIGc7SywtO0xYfbZ1NjHOBMiFu6jUeIFfe_rVN4b21K_9_aWcgWu4rr3c8kTGq8ruuqU7qSmmaEWBNQ8DsYSYR_Z2B5PJo8GyVQqe05quL3HVzRQVw_a96KZ3VoodqoRhXmb-QQcpTzwn2kMevTfwBozwzl1WcSEFeMkz8NTSRuqmIoN44hucg&target_api=23&hl=en&scroll_index=-1&platform=JSR&submodel=LS-5010&rm=2&android_app_muted=false&request_id=ad1c1147-7a98-4e68-ab1b-5f08ca172df0&am=0&cnt=0&ma=1&kw=game&disable_ml=false&js=afma-sdk-a-v11302246.11020000.1&session_id=1387268129250875094&muv=15&ene=true&coh=1&sp=0&forceHttps=true&gnt=13&mv=80807300.com.android.vending&android_app_volume=1&android_num_video_cache_tasks=0&request_agent=unity-3.6.3&u_w=640&u_h=360&msid=com.gamiana.teenpatti&app_name=20000020.android.com.gamiana.teenpatti&_package_name=com.gamiana.teenpatti&an=20000020.android.com.gamiana.teenpatti&net=ed&u_audio=3&u_so=l&basets=103672152&currts=103672152&preqs_in_session=0&pclick=0&support_transparent_background=true&pimp=0&preqs=0&time_in_session=0&output=html&region=mobile_app&u_tz=330&client_sdk=1&ex=1&client=ca-app-pub-4316209134410998&slotname=8286552665&kw_type=broad&gsb=4g&local_service=false&lite=false&caps=inlineVideo_interactiveVideo_mraid1_mraid2_sdkVideo_th_autoplay_mediation_av_transparentBackground_sdkAdmobApiForAds_di_aso_sfv_dinm_dim_nav_navc_dinmo&bisch=true&blev=0.93&swdr=false&cans=5&canm=true&_mv=80807300.com.android.vending&pscfas=true&heap_free=394471&heap_max=134217728&heap_total=8635095&wv_count=0&sai=0&blockAutoClicks=true&includeDoritos=true&content_infol=-1&blob=ABPQqLEuikY_lh5-LZ6SDmp1EeD7LB2eRdyURb4HJAtpetmdq4-G4GsiOm5N2c6n0y4njc4xfcJTiNx-RWcH82hzYiHF8mDdN4csHmVLCJlVIspmMkBKtQgtAdyfwXXGZWOkqWWg2EG35tt1P4rs00qXnW8U2KvE79pDPXlDnnGMs72PiACBgLTmxMgn1uMuQPG1J65puGhn5mvz8ETi6ut4pygrIwDSeo0jV25dcpFi960w3O0n4u_P5VdakQ&et=175&tcar=233&jsv=4-production-20170821_RC00&urll=2481#_activity_context=true&android_num_video_cache_tasks=0&caps=inlineVideo_interactiveVideo_mraid1_mraid2_sdkVideo_th_autoplay_mediation_av_transparentBackground_sdkAdmobApiForAds_di_aso_sfv_dinm_dim_nav_navc_dinmo&eid=318475406&format=320x150_as&heap_free=394471&heap_max=134217728&heap_total=8635095&js=afma-sdk-a-v11302246.11020000.1&msid=com.gamiana.teenpatti&preqs=0&scroll_index=-1&seq_num=1&target_api=23 W/Ads (13715): Received error HTTP response code: 403 D/Ads (15477): Received ad response. W/Ads (15477): There was a problem getting an ad response. ErrorCode: 0 W/Ads (15477): Failed to load ad: 0 D/Ads (15477): Enable the debug gesture detector on the admob ad frame.

Main concern is that in sample project, it worked fine always. Other major plugins I am using in main project (which were not in sample are Unibill, OneSignal, Facebook).

Any help?

stowy commented 7 years ago

Hi @klodha, these github issues are intended for issues related to the android sample apps. Can I request that you post your request at the Unity support forum or if you are only using the Android SDK, the Android support forum.

You will get prompt responses for troubleshooting your issue there.

klodha commented 7 years ago

@stowy Alright, I will post in Unity plugin repo. Frustrating problem is that same code ID works and serve ad, and my id gives error 403 always. While if I put my id in this sample project, it works. So it can't be account specific and thus very confused.

arip1232 commented 6 years ago

@klodha how to know this log? /Ads ( 9050): Starting ad request. I/Ads ( 9050): Use AdRequest.Builder.addTestDevice("5CE2F9BD6D9FFCC64203D778CB46460E") to get test ads on this device. D/Ads ( 9050): AdLoaderBackgroundTask started. D/Ads ( 9050): Fetching ad response from remote ad request service. D/Ads ( 9091): Binding to the ad cache service. D/Ads ( 9091): Binding to the ad request service. D/Ads ( 9091): Starting ad request from service using: AFMA_getAd I/Ads ( 9091): Parental control value is stale. Refreshing. D/Ads ( 9091): Got 2 signal pbs from gmscore D/Ads ( 9091): Merged client and gmscore signals D/Ads ( 9091): Return the combined signals I/Ads ( 9091): Successfully received play store parental controls the result. D/Ads ( 9091): Fail to obtain recent context. D/Ads ( 9091): Enabling hardware acceleration on an overlay. D/Ads ( 9091): AdRequestServiceImpl: Sending request: https://googleads.g.doubleclick.net/mads/gma?carrier=405868&riv=7&_activity_context=true&format=320x150_as&gl=IN&seq_num=1&eid=318475406%2C318477524%2C318476426%2C318476962%2C318478496&u_sd=2&ms=CpUCCoACvBT7V-4WmNHaVhOO87KZnraKtoVYBaDFHkg-BH7CR0qYDjbirHXM1mfyY76PIf-LUkWq2Ga8AyOu0MEc3WOioVHKTE-0F7Qtn-xmR8DM-fEWvIxFzSLSiB7_AV7KmaJMpltm27Vc0L7RijyiYVEme6N4TSFbVqeiZ6TADXufyAXRWzLGxTVIAc4yfrMOxPblqJqfB8833-AsY-Ep4gvS7ph2MeWwXo8fkFkpiPMbeZYWLNd0-aDr20P8K71ztno-2L4AiXCk9Y7CgpqLDjIjbm5zqjl3en4pxhgHgSEjOCp6mccuCgjnvGMg5YKcI6OXE5CLTcQcmB5SzDKUCQzSJBIQ2xGlTj2ei4_FBHtpzObd3hKVAgqAAmL0og4ZstVN82J9yJtVUpChvwemzEQQF0p3a72X3jHWeVQC_mSzipXzOhX9hjOaQNZpAZkjmUaOLYsgUjLo4pNGtk6s19TPwq9oUrQ8gMVPlMjm6JsE58ibJroCssF4ZPyIeawMojpzP_hfS3MXS_zS1GnT4aavncwQmY8IRVA6NSRj2Nn2iDSAlF1j8w_23GgZuaFOcAkZlEqz1E6LnkWuX7GGlYA7XcaIbUUHCJgqku-eQonqrZuxI0ZO3r7N8nbIwNd0Z7Fc2UvXLxKQ_Cl4H39Fv3Vv9ix402bUI2JNLqfJ1RvUyh5YxyzXXk772eQ9Xa-KOAMoxdMnYQU3s5USEHfcbFuDzfJfb7n6CIqG7a8&target_api=23&hl=en&fbs_aiid=c9db0ab1f2c4ad39c4fbd130cc1b2400&scroll_index=-1&gmp_app_id=1%3A827991976187%3Aandroid%3A592a2d9823dc2f65&platform=JSR&submodel=LS-5010&rm=2&android_app_muted=false&request_id=780c45d4-5712-4302-94f9-0cd69e73c159&am=0&cnt=1&ma=1&kw=game&disable_ml=false&js=afma-sdk-a-v11302246.11020000.1&session_id=17045844909352762093&muv=15&ene=true&coh=1&sp=0&forceHttps=true&gnt=13&mv=80807300.com.android.vending&android_app_volume=1&fbs_aeid=-6816143805688415448&android_num_video_cache_tasks=0&request_agent=unity-3.6.3&u_w=640&u_h=360&msid=com.gamiana.teenpatti&app_name=20000020.android.com.gamiana.teenpatti&_package_name=com.gamiana.teenpatti&an=20000020.android.com.gamiana.teenpatti&net=wi&u_audio=3&u_so=l&basets=103099827&currts=103099827&preqs_in_session=2&pclick=0&support_transparent_background=true&pimp=0&preqs=0&time_in_session=973102&output=html&region=mobile_app&u_tz=330&client_sdk=1&ex=1&client=ca-app-pub-4316209134410998&slotname=8286552665&kw_type=broad&gsb=wi&local_service=false&lite=false&caps=inlineVideo_interactiveVideo_mraid1_mraid2_sdkVideo_th_autoplay_mediation_av_transparentBackground_sdkAdmobApiForAds_di_aso_sfv_dinm_dim_nav_navc_dinmo_gcache&bisch=true&blev=0.95&swdr=false&cans=5&canm=false&_mv=80807300.com.android.vending&pscfas=true&heap_free=4226830&heap_max=134217728&heap_total=10833076&wv_count=0&sai=1&blockAutoClicks=true&includeDoritos=true&content_infol=-1&blob=ABPQqLGAYwZRkMglnRyuvpHRMull5rYflN3j4p5w4jqTJI5Iu9ibusXSHV4FCGGmY2OUgBMMdLjhjIhR7h1GGgFV-7TwrtDIiPXG9IbsipqHevGX0_qbWWFixaCIFytpP-KjBQbXH0IDe0_4CQahQdW5s6ocE42i2HYf7bJSV77wKt5cZQAy51m9A7zRyqPbd3pDjB5IqukZEwHVXaQ6yaf3vkTc2fCmkwCvv6CvFrf7TcynWp1qronM2fJSRg&et=234&tcar=287&jsv=4-production-20170821_RC00&urll=2674#_activity_context=true&android_num_video_cache_tasks=0&caps=inlineVideo_interactiveVideo_mraid1_mraid2_sdkVideo_th_autoplay_mediation_av_transparentBackground_sdkAdmobApiForAds_di_aso_sfv_dinm_dim_nav_navc_dinmo_gcache&eid=318475406%252C318477524%252C318476426%252C318476962%252C318478496&format=320x150_as&heap_free=4226830&heap_max=134217728&heap_total=10833076&js=afma-sdk-a-v11302246.11020000.1&msid=com.gamiana.teenpatti&preqs=0&scroll_index=-1&seq_num=1&target_api=23 W/Ads ( 9050): Timed out waiting for ad response. I/Ads ( 9050): Scheduling ad refresh 60000 milliseconds from now. D/Ads ( 9050): Ad refresh scheduled. W/Ads ( 9050): Failed to load ad: 2 D/Ads ( 9050): Enable the debug gesture detector on the admob ad frame. W/Ads ( 9091): Error while connecting to ad server: null D/Ads ( 9050): Received ad response. W/Ads ( 9050): There was a problem getting an ad response. ErrorCode: 2 W/Ads ( 9050): An ad refresh is already scheduled. D/Ads ( 9050): Ad refresh scheduled. W/Ads ( 9050): Failed to load ad: 2 D/Ads ( 9050): Enable the debug gesture detector on the admob ad frame.

I tried resetting Google Play services, uninstalled updates and everything I could locate related to admob and unity with regards to this issue.

Some time error message change to 403 like this:

D/Ads (13715): Scheduling long-period DRT refresh task.
D/Ads (13715): Scheduling near-term DRT refresh task.
I/Ads (13715): Parental control value is stale. Refreshing.
I/Ads (13715): Initialized AdMob in container 11.3.02 (246-161239932)
D/Ads (14163): Chimera is not available.
D/Ads (13715): Pinging URL: https://pagead2.googlesyndication.com/pagead/gen_204?id=gmob-apps&action=gmscore_upgrade&device=JSR%20LS-5010&locale=en_IN&js=11302246.11302000&os=5.1.1&api=22&lta=false&eids=&appid=com.google.android.gms&previous_gmscore_version=-1
I/Ads (13715): Successfully received play store parental controls the result.
D/Ads (13715): Pinging URL: https://pagead2.googlesyndication.com/pagead/gen_204?id=gmob-apps&device=JSR%20LS-5010&js=11302246.11302000&os=5.1.1&api=22&lat=0&eids=&tslu=1&appid=com.google.android.gms
D/Ads (13715): Pinging URL: https://pagead2.googlesyndication.com/pagead/gen_204?id=gmob-apps&device=JSR%20LS-5010&js=11302246.11302000&os=5.1.1&api=22&lat=0&eids=&tslu=10&appid=com.google.android.gms
D/Ads (14606): Chimera is not available.
D/Ads (13715): [JAMS] Accounts changed
I/Ads (13715): Accounts have changed: com.google.android.gms.auth.GOOGLE_ACCOUNT_CHANGE
D/Ads (13715): Running DSID refresh task.
D/Ads (13715): DSID dispatcher woke up.
D/Ads (13715): Running DSID refresh task.
D/Ads (13715): Saved DSID.
D/Ads (13715): Saved DSID.
D/Ads (13715): [JAMS] Gservices updated
D/Ads (13715): [JAMS] Negotiation enabled
D/Ads (13715): [JAMS] Next negotiation to run in 0 seconds
D/Ads (13715): [JAMS] Negotiator starts running at Tue Aug 22 17:04:12 IST 2017
E/Ads (13715): [JAMS] Failed to negotiate
D/Ads (13715): [JAMS] Scheduling retry...
D/Ads (13715): [JAMS] Next negotiation to run in 1200 seconds
I/Ads (15477): Starting ad request.
I/Ads (15477): Use AdRequest.Builder.addTestDevice("5CE2F9BD6D9FFCC64203D778CB46460E") to get test ads on this device.
D/Ads (15477): AdLoaderBackgroundTask started.
D/Ads (15477): Fetching ad response from remote ad request service.
D/Ads (13715): Binding to the ad request service.
D/Ads (13715): Starting ad request from service using: AFMA_getAd
D/Ads (13715): Got 2 signal pbs from gmscore
D/Ads (13715): Merged client and gmscore signals
D/Ads (13715): Return the combined signals
D/Ads (13715): Fail to obtain recent context.
D/Ads (13715): Enabling hardware acceleration on an overlay.
D/Ads (13715): AdRequestServiceImpl: Sending request: https://googleads.g.doubleclick.net/mads/gma?carrier=405868&riv=7&_activity_context=true&format=320x150_as&gl=IN&seq_num=1&eid=318475406&u_sd=2&ms=CpUCCoAC3BYcWt8Uat3-XFOZlLd8jpTGZ5IKCAjFDkLkCV7O_F7-QBHtqz6v3jfwCaCqYfuRYg6BxTS8wCqu1P0E2yT5qmCPMluFHUEinOXGT7aFafYnsZJZ_CuxgX26DlDpnWJGgBoI0LRSsLqUjiWhRVCEe5J3eDJNWd6-U-EDGnycIw_GWLTD5zDSAqwzwbJZxxPt39DOFu96pv09J9o8kgCa6cl9GOf0G0EWlFMhltcUR4AALbdsmKuQzWSxnr9i-DwsnfzFhxbuIJPwhUWLOXoyYwo7_yMzdvU2hRDLimYkZjwZ2FIiKQYnvxdlJ5buY3aCFZSXQ4Uc2xYTxQWcagmvLBIQp9s2nuNucAio963f7lqXXBKVAgqAAmU3p9KTHWriZq61wbZfycEWdNkyTmoIL1ZWXeV1dLFx1UkaWzyIkSzli-uOkaLDLqFxISoG-2ztVbKT39Hn7x-vtLX9UcMAj17BsnCiCEEVcW7B6ClHlAfMJqixoENtQF7t51_hbUvwTPX25Um0jaWtzryRg4ef0a8nC8CC--J5IXzWKPPDnC73RwIGc7SywtO0xYfbZ1NjHOBMiFu6jUeIFfe_rVN4b21K_9_aWcgWu4rr3c8kTGq8ruuqU7qSmmaEWBNQ8DsYSYR_Z2B5PJo8GyVQqe05quL3HVzRQVw_a96KZ3VoodqoRhXmb-QQcpTzwn2kMevTfwBozwzl1WcSEFeMkz8NTSRuqmIoN44hucg&target_api=23&hl=en&scroll_index=-1&platform=JSR&submodel=LS-5010&rm=2&android_app_muted=false&request_id=ad1c1147-7a98-4e68-ab1b-5f08ca172df0&am=0&cnt=0&ma=1&kw=game&disable_ml=false&js=afma-sdk-a-v11302246.11020000.1&session_id=1387268129250875094&muv=15&ene=true&coh=1&sp=0&forceHttps=true&gnt=13&mv=80807300.com.android.vending&android_app_volume=1&android_num_video_cache_tasks=0&request_agent=unity-3.6.3&u_w=640&u_h=360&msid=com.gamiana.teenpatti&app_name=20000020.android.com.gamiana.teenpatti&_package_name=com.gamiana.teenpatti&an=20000020.android.com.gamiana.teenpatti&net=ed&u_audio=3&u_so=l&basets=103672152&currts=103672152&preqs_in_session=0&pclick=0&support_transparent_background=true&pimp=0&preqs=0&time_in_session=0&output=html&region=mobile_app&u_tz=330&client_sdk=1&ex=1&client=ca-app-pub-4316209134410998&slotname=8286552665&kw_type=broad&gsb=4g&local_service=false&lite=false&caps=inlineVideo_interactiveVideo_mraid1_mraid2_sdkVideo_th_autoplay_mediation_av_transparentBackground_sdkAdmobApiForAds_di_aso_sfv_dinm_dim_nav_navc_dinmo&bisch=true&blev=0.93&swdr=false&cans=5&canm=true&_mv=80807300.com.android.vending&pscfas=true&heap_free=394471&heap_max=134217728&heap_total=8635095&wv_count=0&sai=0&blockAutoClicks=true&includeDoritos=true&content_infol=-1&blob=ABPQqLEuikY_lh5-LZ6SDmp1EeD7LB2eRdyURb4HJAtpetmdq4-G4GsiOm5N2c6n0y4njc4xfcJTiNx-RWcH82hzYiHF8mDdN4csHmVLCJlVIspmMkBKtQgtAdyfwXXGZWOkqWWg2EG35tt1P4rs00qXnW8U2KvE79pDPXlDnnGMs72PiACBgLTmxMgn1uMuQPG1J65puGhn5mvz8ETi6ut4pygrIwDSeo0jV25dcpFi960w3O0n4u_P5VdakQ&et=175&tcar=233&jsv=4-production-20170821_RC00&urll=2481#_activity_context=true&android_num_video_cache_tasks=0&caps=inlineVideo_interactiveVideo_mraid1_mraid2_sdkVideo_th_autoplay_mediation_av_transparentBackground_sdkAdmobApiForAds_di_aso_sfv_dinm_dim_nav_navc_dinmo&eid=318475406&format=320x150_as&heap_free=394471&heap_max=134217728&heap_total=8635095&js=afma-sdk-a-v11302246.11020000.1&msid=com.gamiana.teenpatti&preqs=0&scroll_index=-1&seq_num=1&target_api=23
W/Ads (13715): Received error HTTP response code: 403
D/Ads (15477): Received ad response.
W/Ads (15477): There was a problem getting an ad response. ErrorCode: 0
W/Ads (15477): Failed to load ad: 0
D/Ads (15477): Enable the debug gesture detector on the admob ad frame.
arip1232 commented 6 years ago

@ericleich how to know ads log?

arip1232 commented 6 years ago

@ericleich and @klodha how to know ads admob network log?

stowy commented 6 years ago

@arip1232 if you're asking how to view the network traffic for admob, I recommend using Charles proxy.

Also please note that these github issues are for issues with the sample apps only, for support debugging your apps, can we request that you make a request on our support forum at https://groups.google.com/forum/#!categories/google-admob-ads-sdk/android - they will be able to help debug your issue with you efficiently.

klodha commented 6 years ago

@arip1232 using adb logcat you can see such log.

stowy commented 6 years ago

Correct, you will be able to see whether ads have loaded and other ads related events if you filter for 'Ads' in the adb logcat. However you won't be able to see network traffic. Sorry if I misunderstood the question.

mrdabhu commented 5 years ago

Same problem with ad loading... whenever i tried google sample ads it's loads successfully & fast. but whenever i get more installs in a day on my app, ad not load successfully. In new app ads load successfully but whenever it get more real time users ads stop working... please suggest me the solutions...

vyapariapp commented 5 years ago

My code is working in app1(worked with the test ads id and real ads id) and I copied AdMob code from app1 to app2 and update real app id with test app id, but when run app2 test ads is not showing and it showing this error "onRewardedVideoAdFailedToLoad" with error code 2 what to do?

MobileAds.initialize(mContext, "ca-app-pub-3940256099942544~3347511713"); mRewardedVideoAd.loadAd("ca-app-pub-3940256099942544/5224354917", new AdRequest.Builder().build());

https://stackoverflow.com/questions/54905011/onrewardedvideoadfailedtoload-2

stowy commented 5 years ago

Hi @advancedgithubuser for support debugging your apps, please make a request on our support forum at https://groups.google.com/forum/#!categories/google-admob-ads-sdk/android - they will be able to help debug your issue with you efficiently.

Revathicolourmoon0140 commented 3 years ago

how can i implement admob ads in visual studio code ,

help me please

ayushman17 commented 3 years ago

Hi! I have integrated Ad mob with created Interstitial ads and displaying testing Ads but not displaying Live Ads. even I have a good internet connection. The log is like:-

2021-01-05 00:42:14.327 2577-2577/com.ascb508.memeshare D/Ads: { "Code": 2, "Message": "Network error.", "Domain": "com.google.android.gms.ads", "Cause": "null", "Response Info": { "Response ID": "null", "Mediation Adapter Class Name": "", "Adapter Responses": [] } }

2021-01-05 00:42:14.328 2577-2577/com.ascb508.memeshare I/Ads: Ad failed to load : 2

help me please🙏🏻

techjubayer commented 3 years ago

E/GmsClient: unable to connect to service: com.google.android.gms.leibniz.events.service.START on com.google.android.gms

Please give solution for this problem

AkashNair2 commented 1 year ago

Do Adview works on Android TV? I'm having the same issue, Network Error? Is there any progress about this thread?

{ "Code": 2, "Message": "Network error.", "Domain": "com.google.android.gms.ads", "Cause": "null", "Response Info": { "Response ID": "null", "Mediation Adapter Class Name": "", "Adapter Responses": [] } }