Vishal Vijay
Vishal Vijay

Reputation: 2528

Refreshing of ads in android

In my android app I'm trying to add ads. I have a doubt about refreshing of ad.

Is it need to refresh the ad manually to get new ads? What will be the benefit if I manually refresh the ads?

I tried calling adView.loadAd(new AdRequest()); function in an interval but I'm getting same ads each time.

Upvotes: 1

Views: 1374

Answers (1)

Boardy
Boardy

Reputation: 36205

There's no guarantee that you'll get a new ad but you shouldn't really be refreshing the ad from within the app. Instead within the admob interface there is an option for automatic ad refreshing.

If you login to your admob account go to sites & apps > select Manage Settings under your app name, (hover the mouse around the app name). Then click on the app settings tab. You should then see an automatic refresh option which is set to either use in client code, which I believe is what your doing, or none, or automatic refresh and you can provide an interval of how often it will refresh save you having to do it from code.

Upvotes: 5

Related Questions