---
description: Integrate banners
---

# Banner

### Usage

Plugin supports sticky banner ads displayed on the top of the user interface. Every banner component has to have unique placement name. Please note that the placement name has to be constant after once defined and cannot change with every app restart. Also you have to choose the size of the placement. To check available sizes, please see [createPlacement](../other/reference/functions/createplacement) method documentation. To reload new ad once, use [reloadPlacement](../other/reference/functions/reloadplacement) method. If you want to let AATKit reload ads automatically, use [startPlacementAutoreload](../other/reference/functions/startplacementautoreload) and [stopPlacementAutoreload](../other/reference/functions/stopplacementautoreload) methods. Use [addPlacementToView](../other/reference/functions/addplacementtoview) to show the banner once it's created. See the example of creating banner `320x53` below.

```
AATKitCordova.createPlacement("YourPlacementName", "Banner320x53");
AATKitCordova.addPlacementToView("YourPlacementName");
AATKitCordova.startPlacementAutoReload("YourPlacementName");
```

To set position of the banner ad, you can use [setPlacementAlignment](../other/reference/functions/setplacementalignment), [setPlacementAlignmentWithOffset](../other/reference/functions/setplacementalignmentwithoffset) and [setPlacementPosition](../other/reference/functions/setplacementposition) methods. The code below will place banner on the `bottom-center` position on the screen.

```javascript
AATKitCordova.setPlacementAlignment("YourPlacementName", "BottomCenter");
```
