# createInFeedBannerPlacement

### Overview <a href="#markdown-header-overview" id="markdown-header-overview"></a>

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

### Syntax <a href="#markdown-header-syntax" id="markdown-header-syntax"></a>

```javascript
createInFeedBannerPlacement(placementName, configuration))
```

placementName **(REQUIRED)**

[_string_](https://bitbucket.org/addapptr/react-native-plugin/wiki/createInFeedBannerPlacement)_._ 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.

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

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

### Examples <a href="#markdown-header-examples" id="markdown-header-examples"></a>

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