hi I am new in admob ads and I just start using it, I created a simple ad and it worked fine but when I exits the app and run it again the ad disappeared and stopped showing, and then I tried again after closing and opening the app the ad appeared after 60 seconds, any one know the reason of this.
It is likely that when no ad was showing there was no ad available for your app at that point in time. You may find that while your app is still making few requests that it doesn't always get an ad response.
Related
Unity Android ads SDK has a severe problem: it will create an interstitial ad in the background while the user switches the app between foreground and background very quickly.
When the app's "onResume" is called, I will call Unity to show an interstitial ad. But if the app goes to the background before the ads showed, Unity SDK will also pop the ad. This's bad. How can I stop this?
Thanks!
I am using admob ads in my mobile app. When I gone through the guidelines I found the below statement.
If your app is automatically refreshing ads, make sure ad requests are not made when the screen is off. Also, if users navigate to and from pages with ads in an application over a short period of time, a new ad request should not be made sooner than the recommended 60 second rate.
https://support.google.com/admob/answer/3245199?hl=en
Can you please tell me what I need to do that for "make sure ad requests are not made when the screen is off"
I am using codova admob pro plugin in to integrate ads. https://github.com/floatinghotpot/cordova-admob-pro
and using the code
if(AdMob) AdMob.createBanner( {
adId: admobid.banner,
position: AdMob.AD_POSITION.TOP_CENTER,
autoShow: true } );
Thankyou.
You do not need to do anything. The ad unit is automatically paused when the screen is off or your activity goes in background. You can monitor the logcat to verify this.
At least this is seen to be happening with Mopub which i use to mediate admob.
do not call your ad-refreshment code via service. Service can work in background even when app is not in foreground.
Call the code through some activity or fragment, which will automatically pause as soon as it goes into background
I'm trying to integrate Admob interstitial ads to my android app and for some reason. Every time I open an ad it calls my activity onDestroy method witch results on my app being closed without any log-cat errors or messages.
Does anyone knows what may be causing my app to close once Admob interstitial is opened ?
Thanks in advance.
Android closes processes if needed when an application enters the background. You need to be able to handle the destruction of the activity. Look into saving instance states HERE
I've integrated AdMob with my app. I can't seem to find this in any AdMob references.
Are AdMobs still running and bringing you revenue even if the app is in background or the ad is not visible? (for example
the user pressed the "Home" button
the user turned off the screen
the ad is positioned outside screen bounds
In my opinon this is clearly a wrong behavior if AdMob is still requesting ads and paying money per impressions in any of the above cases.
How does this actually work? Can anyone point me to a link/reference that exaplains this behavior?
Thanks
Clicking back, home, or closing your phone will pause your application but not terminate it. It is possible to run your application as a Service\WakeLock and it will continue to run in the background. Admob requests should not be running in the background if your application is paused. You should not be receiving impressions or revenue while your application is in the background.
Quote from AdMob: background requests?
You can see in LogCat when AdMob is requesting ad. Are you seeing any
requests when your app is in the foreground (you should), and when
your app pauses (you should not see any requests)?
By: Android Dev Guy
I have an AdView in the main activity with its requestInterval set to (the recommended) 20 seconds.
The problem is that the Advert never seems to change.
I know that the refreshes are occurring as I get callbacks to onReceiveRefreshedAd on the AdListener, furthermore the impressions are being counted in the Sites and Apps Reporting control panel.
I can see that the AdView flickers just after the onReceiveRefreshedAd callback occurs, so my assumption is that AdMob is simply serving the same ad time after time.
The only way to get a new/different advert is to restart the activity.
This isn't the way its supposed to behave surely?
I'm not in test mode nor am I using a registered test device.
Thanks,
It is very common to return the same ad, as well as not returning any ads at all, the ads can have a specific target applications, which are with "higher" priority, so you are getting one of the ads that doesn't require anything in particular :)
EDIT: once your app becomes more popular, it will show different ads more frequently, so don't worry about it.