ADBannerView
Description

ADBannerView is a wrapper around the ADBannerView class found in the Apple iAd framework and is only available on iPhoneiPadiPod Touch.

It provides a view that displays banner advertisements to the user.
private var banner : ADBannerView = null;
	
function ShowBanner() {
    while (!banner.loaded && banner.error == null)
        yield;
        
    if (banner.error == null)
        banner.Show();
    else banner = null;
}

function OnGUI() { GUI.enabled = (banner == null ? true : false); if (GUILayout.Button("Show Banner")) { banner = new ADBannerView(); banner.autoSize = true; banner.autoPosition = ADPosition.Bottom; StartCoroutine(ShowBanner()); } }
Variables
actionInProgress Is the banner currently executing a user-triggered action? (Read Only)
autoPosition Enables the banner view to be positioned automatically.
autoSize If enabled, current banner's size is set automatically according to current screen orientation. It is disabled by default.
currentSizeIdentifier The current size of the advertisement displayed in the banner view.
error An advertisement error. (Read Only)
loaded Has the banner view downloaded an advertisement? (Read Only)
position The position of the banner view.
requiredSizeIdentifiers Identifiers for the sizes of advertisements that the banner view can display.
visible Is the banner view visible? (Read Only)
Constructors
ADBannerView Creates a banner view.
Functions
CancelAction Cancels an executing banner view action.
Hide Hides the banner view.
Show Shows the banner view.
Static Functions
GetSizeFromSizeIdentifier Converts a banner content size identifier into its physical size.