consume

Returns an instance of BannerPlacementLayout to be used within the app. Also automatically counts an ad space.

BannerCache will no longer hold any references to returned banners, and they need to be destroyed manually by the app.

This method respects the frequency capping, set by BannerCacheConfiguration.setMinimumDelay

Return

BannerPlacementLayout instance.


abstract fun consume(force: Boolean): BannerPlacementLayout?

Returns an instance of BannerPlacementLayout to be used within the app. Also automatically counts an ad space. BannerCache will no longer hold any references to returned banners, and they need to be destroyed manually by the app.

Return

BannerPlacementLayout instance.

Parameters

force

true if cache should try to return banner ignoring the frequency capping set by BannerCacheConfiguration.setMinimumDelay