androidbanner-adsappylar

How do I refill the buffer in the Appylar Android sdk?


I have implemented the Appylar Android SDK in my app. In the docs, I can see that there is an internal buffer with banners and interstitials in the SDK.

The problem is that after all ads in the buffer have been shown, the buffer is empty. That means that there are no more banners or interstitials to show.

Here is the code I have for showing banners:

if(bannerView.canShowAd()) {
    bannerView.showAd()
}

In this scenario, I need the canShowAd() function to return true, and that will only be the case if there are ads in the buffer. In other words, how do I refill the buffer once it is empty?


Solution

  • The buffer is automatically refilled by the sdk, you don't have to do anything.