...
Banner ads can be set to rotate on a pre-set time interval. This is useful to increase the number of banner impressions that will be shown to your users. By default banner ad rotation is disabled. The minimum refresh period is 30 seconds - you cannot set the banner to auto refresh more frequently than once every 30 seconds.
Example: Configure ad to refresh every 30 60 seconds:
Code Block | ||
---|---|---|
| ||
[bannerAd setAutorefreshEnabled:YES]; [bannerAd setAutorefreshInterval:3060]; |
Example: Manually handle refreshing of the ad, for example you may want to fetch a new ad when a view is changed within your app:
...