load
expect fun load(adUnitId: String = AdUnitId.REWARDED_DEFAULT, onLoad: () -> Unit, onFailure: (Exception) -> Unit)
Loads an Rewarded Ad. Note: Make all calls to the Mobile Ads SDK on the main thread.
To load an Rewarded ad, call RewardedAdHandler.load method and pass in an AdUnitId as a String to receive the loaded ad, the onLoad callback, and any possible Exception from the onFailure callback.
Parameters
ad Unit Id
Your Rewarded Ad AdUnitId String from AdMob
on Load
Callback after the ad loads
on Failure
Callback sharing the Exception when the ad fail to load