Wiki

Clone wiki

Adobe Air Plugin / createPlacement

Overview

Creates placement with given name and size and adds it to the view. There is no need to call AddPlacementToView(placementName) after this method.

Syntax

createPlacement(placementName:String, placementSize:int)
placementName (required)

String. Unique name of placement. The same name will be used in addapptr.com account.

placementSize (required)

int. Type of the placement (size).

AATKitExtension.BANNER320x53 = 0

AATKitExtension.BANNER768x90 = 1

AATKitExtension.BANNER300x250 = 2

AATKitExtension.FULLSCREEN = 3

AATKitExtension.MULTISIZEBANNER = 4

AATKitExtension.REWARDED = 5;

AATKitExtension.BANNERAUTO = 10

returns void.

Examples

#!ActionScript
import com.intentsoftware.adobe.aatkit.AATKitExtension;

.
.
.

AATKitExtension.getInstance().createPlacement("BannerPlacement", AATKitExtension.BANNERAUTO);

Updated