Once you’ve set up AdMob ads for your application, you might want to change how often they are refreshed.
If they are refreshed often, your users will see more ads when they’re on the same screen. This is good in that they see more ads, but can also be very annoying.
In the XML entry for your AdMob banner, just add this attribute to set your refresh rate to 60 seconds, as an example:
1 |
app:refreshInterval="60" |
AdMob only allows you to have a refresh rate between 12-120 seconds
The complete XML element for the AdMob banner should look something like this:
1 2 3 4 5 6 7 8 9 10 11 |
<com.admob.android.ads.AdView android:id="@+id/ad" android:layout_width="fill_parent" android:layout_height="wrap_content" app:backgroundColor="#000000" app:primaryTextColor="#FFFFFF" app:secondaryTextColor="#CCCCCC" app:keywords="@string/admob_keywords" app:refreshInterval="60" android:layout_gravity="bottom" /> |
3 Responses to “How to change the refresh rate/interval of AdMob ads on Android”
How would I change the refresh time in JAVA?
I’m not sure how to do it programmatically, you’d have to check the API.
However, it’s worth mentioning that there is another way to change the refresh rate: via the AdMob website.
See here for more info:
http://code.google.com/mobile/ads/kb/#refreshrate
Will not load