setPlacementAlignmentWithOffset

Overview

Sets banner placement position on the screen with defined offset.

Syntax

setPlacementAlignmentWithOffset(placementName, bannerAlignment, x, y)

placementName (REQUIRED)

string Unique name of placement. The same name will be used in gravite.net account.

bannerAlignment (REQUIRED)

int Banner alignment on the screen.

topLeft
topCenter
topRight
bottomLeft
bottomCenter
bottomRight

x (REQUIRED)

int The x value of the banner offset. When this value is positive the banner is moved to the right, when it is negative the banner is moved to the left.

y (REQUIRED)

int The y value of the banner offset. When this value is positive the banner is moved to the bottom, when it is negative the banner is moved to the top.

Examples

AATKitCordova.setPlacementAlignmentWithOffset("Banner", "topCenter", 13, 4);

Last updated