Admob real ads not showing - android

i am having problems in showing ads on my android app. I am able to show ads using this
AdView adview = (AdView)findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().
addTestDevice("127544499E3830865BD4E63234B4CC99").build();
adview.loadAd(adRequest);
But when i wanted to show real ads, i removed this
addTestDevice("127544499E3830865BD4E63234B4CC99")
but now its showing nothing, just plain white. So anybody have idea, i looked at another question but nothing works, everything this correct from my admob account and i am also having permissions,activity & meta in my manifest.

Look at your logcat, it will tell you why you aren't showing any ads. It's probably because there aren't any to show right now. This is a normal situation.

You have removed the ad id number so it has nothing to show. You are supposed to insert your number that you generated on admob page.
There is a tutorial: https://developers.google.com/mobile-ads-sdk/docs/admob/android/quick-start

I was able to solve the situation, this was happening because of the device it self. I mean only on that device later when i gave this a little time and tested it on other device. It just worked great.
Thanks everyone for the suggestion.

Related

Long Applovin interstitial Ads shows as a two cycle so there is a loss in user retention

I am using applovin ads in my android app, but the ads are too long and not able to click on the close as well.
The user experience is too bad. Also the ads are shown as tow cycles. It leads to the loss in user retention.
Kindly let me know any one facing the issue like the same.
I have followed this doc to show the interstitial ads in my app.
https://dash.applovin.com/documentation/mediation/android/getting-started/interstitials
Sorry for the late answer. May be you did it but if you don't someone also facing the same issue because I am also facing this issue. It is a bug in MaxAd in "testing Mode". You can check it while downloading from play store and on a real time device.
its easy to setting time in applovin, by going to discovery and Application go to video setting and adjust
enter image description here
hope thats answer your question

admob native ads will be shown?

i have been trying to implement Native Ads from admob.
I got some sample code from Github. I tried to implement this code, and the demo code works fine. The native ads show up properly.
I then created my own Admob account and obtained an Ad Unit ID. The previous demo code for native ad did not work with this id, and I got an error with error code 0 although my created Ad Unit ID works fine for banner type ads.
Are this native ads still in beta?? when are they supposed to be out for the common developer?
Helllom I have the same problem but I dont think the real problem be the space. I'm not sure but maybe Native Ads Advanced are still in beta. I try the same code with the Ad Unit ID from admob's example and it works fine. You can try the examples code with your ad units but it doesnt work for me.
What happens to me every time I create an Admob banner ad, it takes a while to appear. So i think you should check again in an hour. I'm guessing Google is processing ad unit id and this is taking some time.
Also, they're not in beta. You should be able to use them. If you still cannot see real ads, post your code and I'll take a look at it.
I hope this helps.
I am getting the exact same error. I implemented native ad code from the example given in git hub. Now I am always getting error code '0' .
Funny thing . When I replace My ad unit Id with the ad_unit_id given in Example.
Ads is displaying in my APP. So it is Clear that my implementation is Correct.
There is some problem with admob ad unit. Its been 18 hour since I created it, I am still getting error with my ad_unit.
If it is ad_unit activation problem then , How would I know it is ready or not , or i have to create some other new ad_unit.

AdMob no reaction on click

I'm currently developing an app with AdMob. I have followed all instruction from official admob (BannerExample) and though I managed to display the ads, but there's no reaction when I click on it. Does anyone has a clue why is so?
Thanks in advance.
Got it! Finally find my answer. I found that my layout is overlapping each other. That's why the ads seems no reaction. Once I've fixed the layout, the ad works perfectly.

Force the orientation of Admob

I want to know if there is a possibility to force the orientation of an Admob Banner (4.3.1) for Android. My game force the player to play in landscape, but I would like to put the Ad at the vertical. Like this the Ad will destroy less space on the screen and I can put the ad at a better place to get clicks.
I already saw games like this, but I don't remember which one... Oh, and my Ad is only on a XML file, so if I can use it without JAVA code, it would be excellent.
I found nothing on my research :S
Thanks
Unfortunately, AdMob does not support a 50x320 creative.
You can flip it, but the content will still be in a different orientation. And this should be done probably in the code. I don't exactly know hoe.
This link might help

Beginning Android Programming - Adding Ads to the App

Okay, so I recently completed most of my first app for android. It's almost ready for the market, but I'd like to put in ads. I have installed and registered with AdWhirl, but I cannot figure out how to actually make ads show up, based on their instructions. I have found a few resources out there that help somewhat (such as http://malsandroid.blogspot.com/2010/05/admob-and-adwhirl.html ) but nothing that has actually let me make the ads work. I'm not sure if my inexperience is the issue or if the AdWhirl support is just that bad.
The AdWhirl support says:
"
4. In the Activity where you intend to add the ad:
● Import the com.adwhirl.AdWhirlLayout package
● Add an AdWhirl layout with a code snippet similar to below.
LinearLayout layout = (LinearLayout) findViewById(R.id.layout_main);
AdWhirlLayout adWhirlLayout = new AdWhirlLayout(this, "AdWhirl SDK Key");
RelativeLayout.LayoutParams adWhirlLayoutParams =
new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);
layout.addView(adWhirlLayout, adWhirlLayoutParams);
layout.invalidate();
"
I have added this code to my app, but I cannot get any ads to display. I DID import the package and I DID replace the "AdWhirl SDK Key" bit with my SDK Key so I know that is not the issue. I am wondering where this code snippet should be placed in my code and how I should modify this snippet to make ads work. Also, any insight as to what each piece of this code does (or is trying to do) would be extremely helpful.
Anyways, thanks for looking this over... I really appreciate.
There are several causes to your problem:
Ads is likely loaded from the server, so if there is no connection to the internet from your phone/avd, then nothing you will see. Check the logcat, some exceptions will be there in that case.
May be the code snippet is placed incorrectly. It should be placed into onCreate() method of your activity, which uses R.id.layout_main as the layout.
Some problems on AdWhirl site. But this is not likely.
Anyway, you are not stricted to use AdWhirl, so you may try another ads provider like admob and smaato.
Okay so the problem was with AdMob which I was using through AdWhirl. It took them a bit to begin sending me ads, although I'm not sure why.
I just started working on other parts of my code when I noticed that ads had appeared in the sections I had coded them into before.
So I guess the trick to this is to make sure you have all of your keys and IDs right on AdMob and AdWhirl, then sit back and wait for a bit until AdMob starts sending you stuff. Also, make sure your ads aren't inside a layout with padding as that will probably cause them to not show up.

Categories

Resources