# SetPlacementAlignmentWithOffsetInPixels

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

Sets banner placement position on the screen with defined offset in pixels for both platform (Android/iOS). Please note banner cannot be displayed outside of the screen on the Android platform while it is possible on iOS. So please always make sure your banner displays correctly on both platforms. **Note**: x-axis direction is right, y-axis direction is top for both platforms.

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

```csharp
SetPlacementAlignmentWithOffsetInPixels(placementName, bannerAlignment, x, y)
```

placementName **(REQUIRED)**

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

bannerAlignment **(REQUIRED)**

*int* Banner alignment on the screen. BannerAlignment.TopLeft = 0 BannerAlignment.TopCenter = 1 BannerAlignment.TopRight = 2 BannerAlignment.BottomLeft = 3 BannerAlignment.BottomCenter = 4 BannerAlignment.BottomRight = 5

x **(REQUIRED)**

*int* The x value of the banner offset in pixels. When this value is positive the banner is moved to the right, when it is negative the banner is moved to the left.

**y (REQUIRED)**

*int* The y value of the banner offset in pixels. When this value is positive the banner is moved to the bottom, when it is negative the banner is moved to the top.

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

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

```csharp
setPlacementAlignmentWithOffsetInPixels("BannerPlacement", BannerAlignment.BottomCenter, 0, -10);
```
