createInFeedBannerPlacement

Overview

Creates in-feed banner placement with given name. Also applies the passed configuration.

Syntax

createInFeedBannerPlacement(placementName, configuration))

placementName (REQUIRED)

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

configuration (REQUIRED)

The JSON object containing configuration. Set parameters listed below, otherwise AATKit uses default values.

int numberOfWorkers - Determines the number of ad requests that can be made simultaneously.

bool manualAdSpaceCounting - Determines if manual adspace counting should be used.

bool reloadOnFail - Determines if the ad should be reloaded when request fails or cache doesn't contain any ad. If this parameter isn't defined, AATKit will reload ad by default.

int cacheSize - Determines how many ads should be pre-loaded.

string[] bannerSizes - Array containing banner sizes. Only ads with defined sizes will be loaded. If this parameter isn't defined, AATKit will load all sizes.

    320x53
    768x90
    300x250
    468x60
    Multiple-Sizes
    320x75
    320x100
    320x150
    320x160
    320x480

Examples

RNAatkit.createInFeedBannerPlacement("InFeed", {
    cacheSize: 1,
    reloadOnFail: false,
    manualAdSpaceCounting: false,
    bannerSizes: [
        "320x53",
        "300x250"
    ]
    });

Last updated