> For the complete documentation index, see [llms.txt](https://aatkit.gitbook.io/aatkit-react-native-integration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aatkit.gitbook.io/aatkit-react-native-integration/other/reference/rnaatkit/functions/createinfeedbannerplacement.md).

# 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* **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.

```
    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", {
    loadingType: RNAatkit.InFeedBannerPlacementLoadingType_BannerCache,
    cacheSize: 2,
    reloadOnFail: false,
    manualAdSpaceCounting: false,
    bannerSizes: [
        "320x53",
        "300x250"
    ]
    });
```
