> 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/setplacementcontentgravity.md).

# setPlacementContentGravity

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

Sets gravity for ads that don't fill entire placement area.

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

```javascript
setPlacementContentGravity(placementName, gravity)
```

placementName **(REQUIRED)**

*string* Unique name of placement. The same name will be used in addapptr.com account.

gravity **(REQUIRED)**

*int* The Gravity to set.

```
#!javascript
ContentGravity_BannerTop = 300
ContentGravity_BannerBottom = 301
ContentGravity_BannerCenter = 302
```

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

```javascript
RNAatkit.setPlacementContentGravity("BannerPlacement", RNAatkit.ContentGravity_BannerTop);
```
