Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
298 views
in Technique[技术] by (71.8m points)

Cannot show test ads on android application (Admob)

Whenever I run the app with test ads, I run into the following error-

I/Ads: Ad failed to load : 3

I have followed the instructions from Admob closely for implementing banner and interstitial ads.

Also, I am not using a new account. My Admob account is over 2 years old and I have ads working perfectly fine in another app (I implemented ads in that application only last week).

Note that I had already created the ad units for this current application a while back, and only today decided the include ads in it. I have tried to create new ad units and tested using the test ad unit IDs but even the test ads do not load and give the above error.

On all the questions I have seen on this topic, test ads work but real ads don't whereas that is not the case for me. Both types of ads do not load.

Anyone has any suggestions on how to get the ads to work?

question from:https://stackoverflow.com/questions/65921076/cannot-show-test-ads-on-android-application-admob

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I had this exact same issue and looked through tons of stackoverflow questions but couldn't find an answer that matches me.

For me, if you log into Admob, you have to add an "app-ads.txt" file which then allows for the ads to be sent.

For reference, here is a short tutorial:

https://support.google.com/admob/answer/9363762?hl=en

If you don't want to create an entire website, just use a free website hosting device. It doesn't matter if the name has like 20 numbers in it, you just need a working one.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...