> For the complete documentation index, see [llms.txt](https://adpopcornssp.gitbook.io/ssp-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://adpopcornssp.gitbook.io/ssp-sdk/sdk/flutter/undefined-3.md).

# 전면 비디오 광고

## 1. 광고 요청

<mark style="color:red;">`loadInterstitialVideo`</mark>API를 호출하여 전면 비디오 광고를 요청합니다.

{% code title="Dart" %}

```dart
AdPopcornSSP.loadInterstitialVideo('your_app_key', 'your_placement_id');
```

{% endcode %}

## 3. 광고 노출

전면 비디오 광고가 정상적으로 로딩 완료 된 후, 광고 노출을 하고자 하는 시점에 <mark style="color:red;">`showInterstitialVideo`</mark> API를 호출합니다.

{% code title="Dart" %}

```dart
AdPopcornSSP.showInterstitialVideo('your_app_key', 'your_placement_id');
```

{% endcode %}

## 4. 이벤트 연동

{% code title="Dart" %}

```dart
AdPopcornSSP.interstitialVideoAdLoadSuccessListener = (placementId) {
};
AdPopcornSSP.interstitialVideoAdLoadFailListener = (placementId, errorCode) {
};
AdPopcornSSP.interstitialVideoAdShowSuccessListener = (placementId) {
};
AdPopcornSSP.interstitialVideoAdShowFailListener = (placementId) {
};
AdPopcornSSP.interstitialVideoAdClosedListener = (placementId) {
};
```

{% endcode %}

| 이벤트                                                 | 설명                                                           |
| --------------------------------------------------- | ------------------------------------------------------------ |
| AdPopcornSSP.interstitialVideoAdLoadSuccessListener | 전면 비디오 로딩 성공                                                 |
| AdPopcornSSP.interstitialVideoAdLoadFailListener    | 전면 비디오 로딩 실패. [에러코드 값](/ssp-sdk/sdk/android/undefined-10.md) |
| AdPopcornSSP.interstitialVideoAdShowSuccessListener | 전면 비디오 노출 성공                                                 |
| AdPopcornSSP.interstitialVideoAdShowFailListener    | 전면 비디오 노출 실패                                                 |
| AdPopcornSSP.interstitialVideoAdClosedListener      | 전면 비디오 닫기                                                    |

## 6. 샘플 코드

{% code title="Dart" %}

```dart
AdPopcornSSP.loadInterstitialVideo('your_app_key', 'your_placement_id');

AdPopcornSSP.interstitialVideoAdLoadSuccessListener = (placementId) {
  AdPopcornSSP.showInterstitialVideo('your_app_key', 'your_placement_id');
};
```

{% endcode %}
