android interstitial ad is not diplaying - android

android interstitial ad is displaying for test device
AdRequest adRequest = new AdRequest.Builder()
.addTestDevice("XXXXXXXXXXXXXX")
.build();
interstitial.loadAd(adRequest);
But after publishing(removed the "addTestDevice" line), I cannot see any ad. It always returns error code "ERROR_CODE_NO_FILL".(from logcat)
I searched a lot, but couldn't get a satisfactory answer. Is it one of the android's million bugs?
The below is my admob dashboard screenshot. It has some few requests, but no impression. This is not due to my code problem as I am displaying the ad, but loading itself fails after request : ERROR_CODE_NO_FILL

NO_FILL is a standard response. It means that you made a request on the ad network and the ad network has no inventory for you.
The solution is to use mediation to hand off to other ad networks when the first doesn't have any fill. Admob provides a good out of the box mediation.

Related

Admob with designed for families not showing ads

I want to add my app to "Designed for families", but for mixed audience, so as official documentation said I change my ads request like this:
Bundle extras = new Bundle();
extras.putBoolean("is_designed_for_families", true);
AdRequest adRequest = new AdRequest.Builder()
.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
.addNetworkExtrasBundle(AdMobAdapter.class, extras)
.tagForChildDirectedTreatment(true)
.build();
The problem is that when I put the "is_designed_for_families" extra, no ads is displayed.
W/Ads: Failed to load ad: 3
Update: I know that error 3 means that admob doesn't have an ad to show at the moment, but I have set "test device" so it should show test ads.
I haven't marked as "Designed for families" in Google Play yet, because I want to check that the ads are displaying correctly.
Any ideas about what is happening?
Error code 3 means that admbob doesn't have an ad to show at the moment.
This means that your code implementation is correct but at the moment there are no ads to show.
Also, if you have just implemented admob, it could take some time for it to start sending you ads. This is called "Warming up" and it could take up to a couple of days (depending on the number of ad requests).
Update: If you receive a NO FILL error (code: 3) while testing "Designed for families" ads, the test ad will not be shown.
To test if your admob implementation works, just remove the extra "is_designed_for_families".
This is the intended behaviour of the admob sdk. Source
You can change AdMob with another because AdMob look at your app settings in the play store and check if its a "familey" app
see this website
https://www.quora.com/Which-is-a-better-alternative-to-AdMob-for-Android-ad-platform

Admob Interstitial Ad showing black with new Ad unit ID

i have created one app and i am using admob Interstitial Ads.
As i have created new Interstitial Ad unit ID for that app but ad is showing black with close button, but if i use my old applications Ad unit ID ads will show up.
I dont know why this issue is happening?
Thanks.
For a newly created ad unit it may take some time before getting live ads. Add your device as a test device and check with test ads. They should render fine.
AdRequest request = new AdRequest.Builder()
.addTestDevice(AdRequest.DEVICE_ID_EMULATOR) // All emulators
.addTestDevice("AC98C820A50B4AD8A2106EDE96FB87D4") // An example device ID
.build();
This happened to me (the cross didn't even appear) and I have the Internet permission missing in the Manifest:
<uses-permission android:name="android.permission.INTERNET" />
I think there are a lot of reasons why this happens.

Admob not showing banners, not even test ads, "ad request successful but no ad returned due to lack of ad inventory".

When I try to run my program on my android device, the admob response is this: "ad request successful but no ad returned due to lack of ad inventory".
However, when I try to run my program with ads.show( "banner", { x=10000, y=10000, appId= appID, testMode=true} )
(the bool being there for displaying a test ad) It returns the same thing... any ideas why I dont get the test banners?
the app is in landscape mode, and the app is not yet released on the google play store.
here are the settings from my admob portal:(ALBUM) http://imgur.com/vV5MaD3,trRnju3,Hpl2h3l#0
Thanks for any help in advance! :)
Well, every documentation contains way to get test ads. So, I thought it must be there.
For ADT, you can find it here:- developers.google.com/mobile-ads-sdk/docs/admob/android/… Just find in page for "test ads".
Or just include the code as -
// Create an ad request. Check logcat output for the hashed device ID to
// get test ads on a physical device. e.g.
// "Use AdRequest.Builder.addTestDevice("ABCDEF012345") to get test ads on this device."
AdRequest adRequest = new AdRequest.Builder()
.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
.build();
For Unity official plugin, it is here- github.com/googleads/googleads-mobile-plugins Click on Plugin to see instructions or direct link - https://github.com/googleads/googleads-mobile-plugins/tree/master/unity#test-ads
AdRequest request = new AdRequest.Builder()
.AddTestDevice(AdRequest.TestDeviceSimulator) // Simulator.
.AddTestDevice("0123456789ABCDEF0123456789ABCDEF") // Test Device 1.
.Build();
Not same you can see, library functions have difference of starting letter.

Android only one admob ad is showing

I recently got the admob ads working correctly, I tested it through:
AdRequest adRequest = new AdRequest.Builder()
//.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
//.addTestDevice("INSERT_YOUR_HASHED_DEVICE_ID_HERE")
.build();
The .addtestDevice worked for the Adrequest.DEVICE_ID_EMULATOR. I received a test ad when that was not in comments. I took it out because I just wanted to see what would happen. I am only seeing one ad being displayed and refreshed constantly. Is there a way to have different ads be shown?
If you mean you're only seeing one live add, that's up to google (or your other providers) as to which ad is being shown. See ADMOB application showing only one add always, how to change the advertisements?

Using Android Admob sdk I receive same banner all the time

Using Android Admob sdk I receive same banner all the time. On different devices banner is different.
Traces show request for ad and response.
No error or warnings about admob.
Code from my program:
OnCreate()
{
....
AdRequest adRequest = new AdRequest();
m_adView.loadAd(adRequest);
}
Here is request sent from admob sdk to server:
10-12 13:09:28.828: I/Ads(3865): adRequestUrlHtml: AFMA_buildAdURL({"preqs":10,"session_id":"5459438313201923230","u_sd":1.5,"seq_num":"19","slotname":"a14faa4a66469eb","u_w":320,"msid":"com.datecs.bgmaps","js":"afma-sdk-a-v6.1.0","toar":0,"mv":"8014017.com.android.vending","isu":"CF95DC53F383F9A836FD749F3EF439CD","cipa":0,"format":"320x50_mb","net":"wi","app_name":"25.android.com.datecs.bgmaps","hl":"bg","extras":{"_norefresh":"t","gw":1,"mad_hac":"1"},"u_h":533,"carrier":"28401","ptime":362288,"u_audio":3});
I saw "_norefresh" in request url, but I control banners from admob site - refresh rate 45sek. So tis souldn't be a problem.
Any suggestions?
Even if I stop internet - my ads continue to show on screen. sdk repeats last banners cached somewhere in device. On 20-30 ad request I receive once: 'No ads to serve for you' or some like this. So Admob repeat last banners when there is no connection or no new ads from google.
False alarm and spent 2 days to fight nonexistent problem.

Categories

Resources