CreatePlacement

Overview

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

Syntax

CreatePlacement(placementName, placementSize, statisticsListener)

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).

PlacementSize.Banner320x53 = 0

PlacementSize.Banner320x50 = 8

PlacementSize.Banner768x90 = 1

PlacementSize.Banner300x250 = 2

PlacementSize.Fullscreen = 3

PlacementSize.MultiSizeBanner = 6

PlacementSize.Rewarded = 7

PlacementSize.BannerAuto = 10

statisticsListener (REQUIRED)

IAATKitStatisticsListener IAATKitStatisticsListener implementation that will be notified about statistics events.

returns Vector2 – Placement size in pixels.

Examples

Vector2 size = CreatePlacement("BannerPlacement", PlacementSize.BannerAuto, statisticsListener);

Last updated