//public void SetupSmallBanner()
        //{
        //    this.ad = new FreestarBannerAd(
        //        this, FreestarBannerAdSize.FreestarBanner320x50);
        //}

        //public void SetupLargeBanner()
        //{
        //    this.ad = new FreestarBannerAd(this, FreestarBannerAdSize.FreestarBanner300x250);
        //}

        private void LoadAd()
        {
            if (this.ad != null)
            {
                this.ad.RemoveFromSuperview();
            }
            this.ad = new FreestarBannerAd(this, this.requestedSize);
            this.ad.LoadPlacement(null);
        }
 public override void FreestarBannerShown(FreestarBannerAd ad)
 {
     Console.WriteLine("Freestar Banner Ad Shown");
     this.showButton.Enabled = false;
 }
 public override void FreestarBannerLoaded(FreestarBannerAd ad)
 {
     Console.WriteLine("Freestar Banner Ad Loaded");
     this.showButton.Enabled = true;
 }
 public override void FreestarBannerFailed(FreestarBannerAd ad, FreestarNoAdReason reason)
 {
     Console.WriteLine("Freestar Banner Ad Load Failed");
 }
 public override void FreestarBannerClosed(FreestarBannerAd ad)
 {
     Console.WriteLine("Freestar Banner Ad Closed");
 }
Beispiel #6
0
 void IFreestarBannerAdDelegate.FreestarBannerShown(FreestarBannerAd ad)
 {
     Console.WriteLine("Freestar Banner Ad Shown");
     this.showButton.Enabled = false;
 }
Beispiel #7
0
 void IFreestarBannerAdDelegate.FreestarBannerLoaded(FreestarBannerAd ad)
 {
     Console.WriteLine("Freestar Banner Ad Loaded");
     this.showButton.Enabled = true;
 }
Beispiel #8
0
 void IFreestarBannerAdDelegate.FreestarBannerFailed(FreestarBannerAd ad, FreestarNoAdReason reason)
 {
     Console.WriteLine("Freestar Banner Ad Load Failed");
 }
Beispiel #9
0
 void IFreestarBannerAdDelegate.FreestarBannerClosed(FreestarBannerAd ad)
 {
     Console.WriteLine("Freestar Banner Ad Closed");
 }