Banner
Banner ads are classic static banners, usually located at the bottom or top of the screen.
Banner is a singleton now, if you are using .bannerTop or .bannerBottom on different controllers, the SDK will use the same banner instance.
Banner ads are refreshed every 15 seconds automatically by default. To display a banner, you need to call the following code:
- Swift
- Objective-C
Appodeal.showAd(.bannerBottom, rootViewController: self)
[Appodeal showAd:AppodealShowStyleBannerBottom rootViewController:self];
Checking If Ad Is Loaded
You can check if the ad has been loaded before showing it. This method returns a boolean value indicating whether or not the banner has been loaded.
- Swift
- Objective-C
Appodeal.isReadyForShow(with: .bannerTop)
[Appodeal isReadyForShowWithStyle: AppodealShowStyleBannerTop];
We recommend you to check ad caching before trying to show it.
You can use our demo app as a reference project.
Demo App
If you want to use advanced Banner integration, you can find detailed documentation here