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 loadingType - Determines how ad loading is managed. Possible values:

  • InFeedBannerPlacementLoadingType_BannerCache

  • InFeedBannerPlacementLoadingType_Requests

int cacheSize - Determines how many ads should be pre-loaded. Works only if InFeedBannerPlacementType_BannerCache type is used. If not set while using banner cache, a self-adjusting mechanism for banner cache size optimization will be used.

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 creativeHistorySize – Enables the banner creative history.

[string: string] networkKeyReplacements - Enables to replace the Infeed-Banner placement and Banner Cache network keys with custom values. Note: This feature is designed for very specific use cases only. Please consult your Account Manager before using it.

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.

Examples

Last updated