Ejemplo n.º 1
0
        public Task LoadRewardedVideo()
        {
            return(Thread.UI.Run(() =>
            {
                if (UnitId.IsEmpty())
                {
                    OnAdFailed.Raise("The UnitId of the RewardedVideoView has not specified!");
                    return;
                }

                NativeView = new RewardedAd(UIRuntime.CurrentActivity, UnitId);
                NativeView.LoadAd(new Android.Gms.Ads.AdRequest.Builder().Build(), new AdmobRewardedAdLoadCallback(this));
            }));
        }