Wiki

Clone wiki

Adobe Air Plugin / bannerAds

Banner Ads

Plugin supports sticky banner ads displayed on the top of the user interface. Every banner component has to have unique placement name. Please note that the placement name has to be constant after once defined and cannot change with every app restart. Also you have to choose the size of the placement. To check available sizes, please see createPlacement method documentation. To reload new ad once, use reloadPlacement method. If you want to let AATKit reload ads automatically, use startPlacementAutoreload and stopPlacementAutoreload methods. See the example of creating banner 320x53 below.

#!javascript#
aatkit.createPlacement("YourPlacementName", AATKitExtension.BANNERAUTO);
aatkit.startPlacementAutoReload("YourPlacementName");

To set position of the banner ad, you can use setPlacementAlignment, setPlacementAlignmentWithOffset and setPlacementPosition methods. The code below will place banner on the bottom-center position on the screen.

#!javascript#

aatkit.setPlacementAlignment("YourPlacementName", AATKitExtension.BOTTOMCENTER);

Updated