# 배너 광고

<div><figure><img src="/files/Mf5pALMa42pPJ6gzraRz" alt=""><figcaption><p>320x50</p></figcaption></figure> <figure><img src="/files/6mJhasJbCGG5vPZ2HQg8" alt=""><figcaption><p>320x100</p></figcaption></figure> <figure><img src="/files/4IHqbqdOK4voxBNELZqD" alt=""><figcaption><p>300x250</p></figcaption></figure></div>

## 배너 광고

### 배너 사이즈

<table><thead><tr><th width="336.8515625">상수</th><th width="126.7578125" align="center">값</th><th>크기</th></tr></thead><tbody><tr><td><code>APSSPSDKPluginIOS.BannerSize320x50</code></td><td align="center">1</td><td>320×50</td></tr><tr><td><code>APSSPSDKPluginIOS.BannerSize300x250</code></td><td align="center">2</td><td>300×250</td></tr><tr><td><code>APSSPSDKPluginIOS.BannerSize320x100</code></td><td align="center">3</td><td>320×100</td></tr></tbody></table>

### 사용법

```csharp
// 초기화
APSSPSDKPluginIOS.InitBannerView(APSSPSDKPluginIOS.BannerSize320x50, "YOUR_APP_KEY", "BANNER_PLACEMENT_ID");
APSSPSDKPluginIOS.BannerViewSetDelegate();

// 로드
APSSPSDKPluginIOS.BannerViewLoadAd();

// 중단
APSSPSDKPluginIOS.BannerViewStopAd();
```

{% hint style="warning" %}
loadAd 호출에 대한 결과로 광고 수신에 실패한 경우에는 loadAd 재호출을 하시면 안됩니다. \
**과도한 광고 요청 API 호출은 block 사유**가 됩니다.
{% endhint %}

### 이벤트

```csharp
void OnEnable()
{
    APSSPSDKPluginIOS.bannerViewLoadSuccess += OnBannerLoadSuccess;
    APSSPSDKPluginIOS.bannerViewLoadFail += OnBannerLoadFail;
    APSSPSDKPluginIOS.bannerViewClicked += OnBannerClicked;
    APSSPSDKPluginIOS.bannerViewImpression += OnBannerImpression;
}

void OnBannerLoadSuccess() { Debug.Log("Banner loaded"); }
void OnBannerLoadFail(string error) { Debug.Log("Banner fail: " + error); }
void OnBannerClicked() { Debug.Log("Banner clicked"); }
void OnBannerImpression() { Debug.Log("Banner impression"); }
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://adpopcornssp.gitbook.io/ssp-sdk/sdk/unity/unity-ios/undefined-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
