I have followed many answers about that error here, but my problem is not solved.Every time I run my tiện ích no ads appear & I get this error message in Logcat:

"There was a problem getting an ad response. ErrorCode: 0 Failed to lớn load ad:0"

Here is my java code. What did I miss?

private void LoadAds() { AdView mAdView = (AdView) findViewById(R.id.linearLayoutAdmob); AdRequest adRequest = new AdRequest.Builder().build(); mAdView.loadAd(adRequest);and here my xml layout with admob at the last lines

I cannot figure what the problem is. I"m new in game android development.

Bạn đang xem: Android : Admob Ads Error Codes


app android admob
cốt truyện
Improve this question
Follow
edited Aug 12, năm ngoái at 20:17
*

Jared Rummler
37.1k1919 gold badges133133 silver badges146146 bronze badges
asked Aug 12, năm ngoái at 18:33
*

Ahmed SamirAhmed Samir
79111 gold badge55 silver badges88 bronze badges
3
địa chỉ cửa hàng a bình luận |

20 Answers 20


Sorted by: Reset to mặc định
Trending sort available


Trending sort Trending sort is based off of the mặc định sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.

It falls back to lớn sorting by highest score if no posts are trending.

Switch to lớn Trending sort
Highest score (default) Trending (recent votes count more) Date modified (newest first) Date created (oldest first)
84
This is what google says

"It could be that you have only recently created a new Ad Unit ID & requesting for live ads. It could take a few hours for ads lớn start getting served if that is that case. If you are receiving thử nghiệm ads then your implementation is fine. Just wait a few hours & see if you are able khổng lồ receive live ads then. If not, can send us your Ad Unit ID for us to lớn look into."

so basically you have to wait for a few hours :)

https://groups.google.com/forum/#!category-topic/google-admob-ads-sdk/android/fBe3YL3ffpo


cốt truyện
Improve this answer
Follow
edited Dec 1, năm 2016 at 17:21
*

Gueorgui Obregon
4,96722 gold badges3232 silver badges5757 bronze badges
answered Aug 1, 2016 at 7:02
*

zooterzooter
2,02811 gold badge1212 silver badges2121 bronze badges
5
add a comment |
17
If you are using live admob ads id in development mode application , it will show this error.

Use debug mode admob ads id during development & live admob ids in release mode app


nội dung
Improve this answer
Follow
answered Apr 25, 2017 at 12:57
*

Sourabh soniSourabh soni
47866 silver badges1010 bronze badges
4
địa chỉ a comment |
17
Solution:

If your tài khoản is new, that might be the problem. Wait 2-3 hours, after that it will automatically start showing ads.If it still doesn"t show ads, maybe you forgot to setup a payment method.

How to setup payment methods in AdMob:

Login into AdMob Navigate to "Payments" tab on the left side of your screenType in your real address, name and account typePut the ads (ad unit) into the application Wait for 2-3 HoursThere you go!gmail.com


share
Improve this answer
Follow
edited Mar 31, 2019 at 14:55
CommunityBot
111 silver badge
answered Apr 11, 2018 at 17:35
Aashish KaushikAashish Kaushik
45044 silver badges1717 bronze badges
2
địa chỉ a comment |
15
If you have just opened your admob account, Fill the payment details first, else you will not get the ad impression even in the kiểm tra mode.


mô tả
Improve this answer
Follow
answered Feb 5, 2018 at 18:53
NBA groupNBA group
14911 silver badge55 bronze badges
4
địa chỉ a bình luận |
7
You have to verify the size of the ad you created, if it is smaller it will always get this error. Just verify và change khổng lồ the specific size:

ads:adSize="360x100"
tóm tắt
Improve this answer
Follow
answered Nov 30, 2016 at 21:11
user3394003user3394003
10911 silver badge22 bronze badges
add a comment |
4
Open your adMob account and create new sets of keys,and put this keys(banner/interstitial)in your project.this is happens to lớn me once i fixed like this,try this solution. Or still issues create new tiện ích (just change the name) in adMob và create new keys


nói qua
Improve this answer
Follow
answered May 11, năm 2016 at 11:21
Jithu P.SJithu P.S
1,8531919 silver badges3232 bronze badges
add a bình luận |
4
Make sure you don"t have an địa chỉ blocker installed on your device.


cốt truyện
Improve this answer
Follow
answered Jan 7, 2017 at 21:44
Goran Horia MihailGoran Horia Mihail
3,40622 gold badges2828 silver badges4040 bronze badges
2
showroom a phản hồi |
4
Make sure you"ve added this in the AndroidManifest.xml file


nội dung
Improve this answer
Follow
answered Sep 16, 2017 at 8:30
AnupamChughAnupamChugh
1,66611 gold badge2323 silver badges3434 bronze badges
địa chỉ cửa hàng a comment |
3
I was getting this error because admob has blocked my app to serve ads. So I changed the package name và everything started khổng lồ work perfectly fine


share
Improve this answer
Follow
answered Dec 7, 2016 at 14:09
Zohab AliZohab Ali
7,39644 gold badges4444 silver badges5959 bronze badges
2
địa chỉ a comment |
3
I added the code below for the testing environment

AdRequest adRequest = new AdRequest.Builder().addTestDevice(your device id) //When you testing on emulator.addTestDevice(AdRequest.DEVICE_ID_EMULATOR).build();
chia sẻ
Improve this answer
Follow
edited Sep 12, 2017 at 8:37
answered Mar 28, 2017 at 5:35
MadasamyMadasamy
6777 bronze badges
địa chỉ cửa hàng a comment |
3
May not apply khổng lồ all, but my personal problem was turning off my Pi-hole

And yes for those wondering, I like to regularly shoot myself in the foot.

Xem thêm: Hồ Quang Hiếu - Một Tình Yêu Đúng Nghĩa


giới thiệu
Improve this answer
Follow
answered Jun 24, 2019 at 14:00
PantsPants
65966 silver badges2323 bronze badges
1
địa chỉ cửa hàng a bình luận |
2
try changing ads:adSize="BANNER" with ads:adSize="SMART_BANNER"


giới thiệu
Improve this answer
Follow
answered Aug 12, 2015 at 18:53
Gjoko BozhinovGjoko Bozhinov
1,1371111 silver badges1515 bronze badges
5
add a bình luận |
2
i found the error from the emulator after i install the app on real device the ads shown perfectly thanks everyone & i hope my answer being useful for others ..


nói qua
Improve this answer
Follow
edited Aug 12, 2015 at 21:48
answered Aug 12, năm ngoái at 21:36
Ahmed SamirAhmed Samir
79111 gold badge55 silver badges88 bronze badges
add a phản hồi |
2
One more reason can be: Missing payment information

Your ad units aren"t serving ads because your payment information is missing. Showroom your payment information now.Learn More


giới thiệu
Improve this answer
Follow
answered Sep 19, 2018 at 6:01
DevenDeven
2,82611 gold badge2626 silver badges3434 bronze badges
địa chỉ a comment |
0
If your ad unit id string is lượt thích this:xyzYou should remove the translatable part. For me it fixed the problem.


tóm tắt
Improve this answer
Follow
answered Jul 31, năm nhâm thìn at 13:38
Atinator98Atinator98
5111 silver badge77 bronze badges
2
add a phản hồi |
0
Most likely you have recently created a new Ad Unit ID, but you also could get this error because you"re passing a wrong Ad Unit ID.


chia sẻ
Improve this answer
Follow
answered Feb 26, 2017 at 1:47
maabed sjmaabed sj
111 bronze badge
add a phản hồi |
0
Make sure your ads not violate google ads rule, otherwise you have to lớn fill appeal form first to contact AdMob tư vấn and after they re-enable your ads serving, ads should appear.


nói qua
Improve this answer
Follow
answered Nov 20, 2017 at 19:21
Yao LiYao Li
1,81711 gold badge2323 silver badges2323 bronze badges
add a comment |
0
Dear Friend if after then you start to lớn using your real ADMOB ứng dụng ID instead of testing ids , just wait a few hours(for me it takes about 2-3 hours) after which you will get live admob ads.


nội dung
Improve this answer
Follow
answered Mar 22, 2018 at 14:01
Petros MosoyanPetros Mosoyan
21822 silver badges1313 bronze badges
showroom a phản hồi |
0
If you have just implemented ads and want to lớn test it only & still not getting ads seen then use this test ads ids Sample Ads Ids

One more thing, if you are testing it in emulator then use this in Kotlin

val adRequest = AdRequest.Builder() .addTestDevice(AdRequest.DEVICE_ID_EMULATOR) .build()Also go through this


tóm tắt
Improve this answer
Follow
answered Mar 9, 2019 at 17:42
Kishan SolankiKishan Solanki
12.4k22 gold badges6969 silver badges7474 bronze badges
add a comment |
0
In my case, It worked on switching to lớn another mạng internet connection. Earlier I was using my company"s wifi & changing the connection to lớn my personal wifi hotspot it worked!


giới thiệu
Improve this answer
Follow
answered Oct 15, 2019 at 10:18
Pinkesh DarjiPinkesh Darji
91999 silver badges2222 bronze badges
showroom a bình luận |
Highly active question
. Earn 10 reputation (not counting the association bonus) in order to answer this question. The reputation requirement helps protect this question from spam and non-answer activity.

Not the answer you're looking for? Browse other questions tagged app android admob or ask your own question.


The Overflow Blog Featured on Meta
Linked
0
admob failing to load địa chỉ cửa hàng (error code 0 and http 403) when loading an add
11
Android AdRequest returns only onAdFailedToLoad AdRequest.ERROR_CODE_NO_FILL
6
admob banner live ad not showing but test showing
6
"E/Ads: Error waiting for future" error when testing AdMob with emulator
2
Android Admob Error code 0
2
Admob Ads. TimeoutException. Error waiting for future. Failed to lớn load Ad 3
0
AdMob test ads have gone in a new app
0
AdMob Ads not displaying on apk Studio
-1
Error getting an ad response Admob
Related
2052
How lớn lazy load images in ListView in android
921
"Conversion lớn Dalvik format failed with error 1" on external JAR
685
game android error: Failed lớn install *.apk on device *: timeout
218
Does this app use the Advertising Identifier (IDFA)? - AdMob 6.8.0
1
AdMob ErrorCode 0 mostly
52
Admob ads not loading - Failed khổng lồ load ad: 0
4
Admob giving me ErrorCode: 1
Hot Network Questions more hot questions
Question feed
Subscribe to lớn RSS
Question feed khổng lồ subscribe to this RSS feed, copy và paste this URL into your RSS reader.


default
Stack Overflow
Products
Company
Stack Exchange Network
Site thiết kế / biệu tượng công ty © 2022 Stack Exchange Inc; user contributions licensed under CC BY-SA. Rev2022.9.9.42970


Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device và disclose information in accordance with our Cookie Policy.