# 전면 비디오 광고

## 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-9.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 %}


---

# 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/flutter/undefined-3.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.
