# 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](https://aatkit.gitbook.io/aatkit-unity-integration/other/reference/aatkitbinding/methods/createplacement) method documentation. To reload new ad once, use [reloadPlacement](https://aatkit.gitbook.io/aatkit-unity-integration/other/reference/aatkitbinding/methods/reloadplacement) method. If you want to let AATKit reload ads automatically, use [startPlacementAutoreload](https://aatkit.gitbook.io/aatkit-unity-integration/other/reference/aatkitbinding/methods/startplacementautoreload) and [stopPlacementAutoreload](https://aatkit.gitbook.io/aatkit-unity-integration/other/reference/aatkitbinding/methods/stopplacementautoreload) methods. See the example of creating banner `320x53` below.

```csharp
AATKitBinding.CreatePlacement ("YourPlacementName", AATKitBinding.PlacementSize.Banner320x53);
AATKitBinding.StartPlacementAutoReload ("YourPlacementName");
```

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

```csharp
AATKitBinding.SetPlacementAlignment("YourPlacementName", BannerAlignment.BottomCenter);
```
