Exemplo n.º 1
0
        partial void btnAudience_TouchUpInside(UIButton sender)
        {
            if (interstitialAd == null || !interstitialAd.IsAdValid)
            {
                // Ad not ready to present.
                lblInterstitalStatusLabel.Text = "Ad not loaded. Click load to request an ad.";
            }
            else
            {
                lblInterstitalStatusLabel.Text = string.Empty;

                // Ad is ready, present it!
                interstitialAd.ShowAdFromRootViewController(this);
            }
        }