Class RewardedAdWrapper

java.lang.Object
FullScreenContentCallback
org.prebid.mobile.eventhandlers.RewardedAdWrapper

public class RewardedAdWrapper extends FullScreenContentCallback
Internal wrapper of rewarded ad from GAM SDK. To achieve safe integration between various GAM SDK versions we have to wrap all PublisherAdView method execution in try / catch. This class instance should be created via newInstance method, which will catch any potential exception on RewardedAd / RewardedAdWrapper instance creation
  • Field Details

  • Method Details

    • onAdFailedToShowFullScreenContent

      public void onAdFailedToShowFullScreenContent(AdError adError)
    • onAdShowedFullScreenContent

      public void onAdShowedFullScreenContent()
    • onAdDismissedFullScreenContent

      public void onAdDismissedFullScreenContent()
    • onUserEarnedReward

      public void onUserEarnedReward(RewardItem rewardItem)
    • loadAd

      public void loadAd(Bid bid)
    • isLoaded

      public boolean isLoaded()
    • show

      public void show(android.app.Activity activity)
    • getRewardItem

      public Object getRewardItem()