Display rewarded ad on Apple

Display a rewarded ad

let rewardedAd = AdropRewardedAd(unitId: "PUBLIC_TEST_UNIT_ID_REWARDED")
rewardedAd.delegate = self
rewardedAd.load()
        
...
        
// call show function when the ad needs to be displayed.
rewardedAd.show(fromRootViewController: self, userDidEarnRewardHandler: { type, amount in
        print("earned reward type: \(type) amount: \(amount)")
})

Last updated