meson-wrap / ai.meson.ads / BannerBidFetcher

BannerBidFetcher

class BannerBidFetcher : BidFetcher, FocusChangedListener

Banner bid fetcher - This is a child class of BidFetcher specifically used in case of fetching the bid repeatedly with a fixed refreshInterval

Parameters

adUnitId -

adSize -

Constructors

<init>

BannerBidFetcher(adUnitId: String, adSize: AdSize)
  • Creates BannerBidFetcher with the above two parameters

Inherited Properties

adUnitId

val adUnitId: String
  • Use the adUnit Id created at the time of on-boarding

mAdExtras

var mAdExtras: <ERROR CLASS><String, String>

mAdSize

open var mAdSize: AdSize?

Functions

destroy

fun destroy(): Unit

Destroys the BannerBidFetcher instance and cancels all the coroutines launched in this scope

fetchBid

fun fetchBid(bidFetchListener: MesonBidFetchListener): Unit

Fetches the bid from Meson Ad Server and gives a callback on bidFetchListener if the server returns back with a valid response/invalid response/times out.

onFocusChanged

fun onFocusChanged(isAppInForeground: Boolean): Unit

Inherited Functions

cancelBidFetch

fun cancelBidFetch(): Unit

Cancels the current Bid Fetching Job launched in this scope.