To display a banner you will need to bind it to FrameLayout or ConstraintLayout for Android and UIView for iOS
banner.bindBanner(container)
Stopping and Starting Auto-Refresh
There may be cases when you would like to stop auto-refresh, for instance, when you hide a banner ad or want to refresh it manually.
Stop auto-refresh for a banner ad with the following code:
banner.stopAutorefresh()
Start auto-refresh for a banner ad with the following code:
banner.startAutorefresh(30.0)
Manually refresh the contents with the following code. You must stop auto-refresh prior to calling refreshAd.
banner.refresh()
Destroying Banners
Once you're finished with a banner ad, it's essential to clean up its resources by invoking the destroy() method. Neglecting this step could lead to a deterioration in your app's performance