0

The Unity ADBannerView example code is:

private ADBannerView banner = null;
void Start()
{
    banner = new ADBannerView(ADBannerView.Type.Banner, ADBannerView.Layout.Top);
    ADBannerView.onBannerWasClicked += OnBannerClicked;
    ADBannerView.onBannerWasLoaded  += OnBannerLoaded;
}
void OnBannerClicked()
{
    Debug.Log("Clicked!\n");
}
void OnBannerLoaded()
{
    Debug.Log("Loaded!\n");
    banner.visible = true;
}

My question is does the ad banner automatically go away after a set length or do I have to manually do something to get it only to display for a short amount of time, because that seems a little risky trying to interfere with an ad.

Steven
  • 166,672
  • 24
  • 332
  • 435
Beastwood
  • 446
  • 3
  • 19
  • http://stackoverflow.com/questions/17704253/adbannerview-fails-to-receive-ad-with-error-the-operation-couldnt-be-completed/22990407#22990407 This has worked well to me – Lennon Spirlandelli Apr 10 '14 at 14:22

2 Answers2

0

It's a simple wrapper around the ADBannerView class in iAd.framework, so it will behave just like that.

iAd's ADBannerView will stay visible as long as you set it to be (and as long as there is ad inventory).

Khakionion
  • 742
  • 7
  • 20
0

I think AD Banner display can be hidden.

Simply use:

banner.Hide();

wherever you want.

Or you can use IEnumerator to delay the time of showing this.

Benjamin W.
  • 46,058
  • 19
  • 106
  • 116
Faizan Khan
  • 207
  • 1
  • 14