Impact

Implements a Banner for Apple's iAd network. Make sure you have enabled iAds for your App in iTunesConnect.

Synopsis

var adBanner = new Ejecta.AdBanner();
adBanner.isAtBottom = true;
adBanner.show();

Properties

.isAtBottom

Whether the adBanner should be shown at the bottom of the screen, instead of the at the top. The default is false (top).

.onload

Assign a function to this property that is called when an iAd was loaded sucessfully

.onerror

Assign a function to this property that is called when no iAd could be loaded

Methods

.show()

Display's the AdBanner. If no iAd could be loaded, the AdBanner remains hidden.

.hide()

Hides the AdBanner again.