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

```csharp
SetPlacementContentGravity(placementName, gravity)
```

placementName **(REQUIRED)**

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

gravity **(REQUIRED)**

_PlacementContentGravity_ The Gravity to set. PlacementContentGravity.Top = 0, PlacementContentGravity.Bottom = 1, PlacementContentGravity.Center = 2

**returns&#x20;**_**void**_

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

```csharp
SetPlacementContentGravity("BannerPlacement", PlacementContentGravity.Top);
```
