meson-wrap / ai.meson.ads / BidFetcher

BidFetcher

open class BidFetcher

Bid fetcher class - Responsible to fetch the bid from Meson-server and give callback on completion.

Constructors

<init>

BidFetcher(adUnitId: String)

Create Bid fetcher with the above parameter

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

cancelBidFetch

fun cancelBidFetch(): Unit

Cancels the current Bid Fetching Job launched in this scope.

destroy

open fun destroy(): Unit

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

fetchBid

open 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.

Inheritors

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

InterstitialBidFetcher

class InterstitialBidFetcher : BidFetcher

Interstitial bid fetcher - functions same as its parent class BidFetcher with any adType specific functionality present in this class.

RewardedBidFetcher

class RewardedBidFetcher : BidFetcher

Rewarded bid fetcher - functions same as its parent class BidFetcher with any adType specific functionalities present in this class.