Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Forcing admob to refresh ad every second in Android

Tags:

android

admob

I have built an android app which has a fixed screen that will remain focused for more than a minute. Kind of a story in the page.

I have integrated Admob adrequest into the application. But it is the single ad that comes on load of the screen and remains till I quit.

Can I do something so that the Ad will change every 1 sec.

like image 317
Bhabani Shankar Avatar asked Sep 15 '25 11:09

Bhabani Shankar


1 Answers

You can control the refresh frequency by using the admob account online or you can also set the refresh time in seconds using the API :

  AdView.loadAd(new AdRequest());

Even though a call to the API will ask admob server to fetch a new ad, but that doesn't guarantee that a new ad will be fetched. Moreover, 1 second seems to be too short a interval to be refreshing your ads. If I was a user of your app, I would rather un-install it. :) But yes, that's my personal take on it..

like image 147
Anand Sainath Avatar answered Sep 18 '25 10:09

Anand Sainath