# ADBannerView

> ADBannerView is a wrapper around the ADBannerView class found in the Apple iAd framework and is only available on iOS.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.iOS](/engine/6000.5/script-reference/unityengine/ios.md)
* **Assembly:** UnityEngine.CoreModule

> **Warning:**
>
> **Removed.** iOS.ADBannerView class is obsolete, Apple iAD service discontinued

```csharp
public sealed class ADBannerView
```

## Remarks

It provides a view that displays banner advertisements to the user.

iOS.ADBannerView class is obsolete. Apple iAD service discontinued.

## Constructors

| Constructor                                                                                                                                                 | Description                                                   |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
| [ADBannerView(UnityEngine.iOS.ADBannerView.Type,UnityEngine.iOS.ADBannerView.Layout)](/engine/6000.5/script-reference/unityengine/ios/adbannerview/ctor.md) | Creates a banner view with given type and auto-layout params. |

## Properties

| Property                                                                             | Description                                         |
| ------------------------------------------------------------------------------------ | --------------------------------------------------- |
| [layout](/engine/6000.5/script-reference/unityengine/ios/adbannerview/layout-1.md)   | Banner layout.                                      |
| [loaded](/engine/6000.5/script-reference/unityengine/ios/adbannerview/loaded.md)     | Checks if banner contents are loaded.               |
| [position](/engine/6000.5/script-reference/unityengine/ios/adbannerview/position.md) | The position of the banner view.                    |
| [size](/engine/6000.5/script-reference/unityengine/ios/adbannerview/size.md)         | The size of the banner view.                        |
| [visible](/engine/6000.5/script-reference/unityengine/ios/adbannerview/visible.md)   | Banner visibility. Initially banner is not visible. |

## Static Methods

| Method                                                                                     | Description                                                                                    |
| ------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------- |
| [IsAvailable](/engine/6000.5/script-reference/unityengine/ios/adbannerview/isavailable.md) | Checks if the banner type is available (e.g. MediumRect is available only starting with ios6). |

## Enums

| Enum                                                                                          | Description                                         |
| --------------------------------------------------------------------------------------------- | --------------------------------------------------- |
| [ADBannerView.Layout](/engine/6000.5/script-reference/unityengine/ios/adbannerview/layout.md) | Specifies how banner should be layed out on screen. |
| [ADBannerView.Type](/engine/6000.5/script-reference/unityengine/ios/adbannerview/type.md)     | The type of the banner view.                        |

## Delegates

| Delegate                                                                                                                              | Description                                  |
| ------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- |
| [ADBannerView.BannerFailedToLoadDelegate](/engine/6000.5/script-reference/unityengine/ios/adbannerview/bannerfailedtoloaddelegate.md) | Will be fired when banner ad failed to load. |
| [ADBannerView.BannerWasClickedDelegate](/engine/6000.5/script-reference/unityengine/ios/adbannerview/bannerwasclickeddelegate.md)     | Will be fired when banner was clicked.       |
| [ADBannerView.BannerWasLoadedDelegate](/engine/6000.5/script-reference/unityengine/ios/adbannerview/bannerwasloadeddelegate.md)       | Will be fired when banner loaded new ad.     |
