> ## Documentation Index
> Fetch the complete documentation index at: https://guide.daro.so/llms.txt
> Use this file to discover all available pages before exploring further.

# 인터스티셜 광고

> Unity 프로젝트에서 DARO 인터스티셜 광고를 구현하는 방법을 알아봅니다.

## 인터스티셜 광고 형태 소개

* 화면 전체를 덮는 형태로 노출되는 광고입니다.
* 게임 라운드 사이, 화면 전환, 주요 액션 이후처럼 자연스러운 중단 지점에 사용합니다.

![전면 광고 예시](https://mintcdn.com/delightroom-5a71a6a8/dxU0bpsPoPvkYh_g/sdk-integration/common-img/ad-formats/interstitial-example-image.png?fit=max\&auto=format\&n=dxU0bpsPoPvkYh_g\&q=85\&s=fa0468f45283f40d5937e24afde61f88)

***

## 광고 연동하기

**1. 광고 인스턴스 생성**

```csharp theme={null}
private DaroInterstitialAd ad;

ad = new DaroInterstitialAd("your-interstitial-ad-unit-key");
```

**2. 이벤트 핸들러 등록**

```csharp theme={null}
ad.OnAdLoaded += info => Debug.Log("interstitial loaded");
ad.OnAdFailedToLoad += error => Debug.LogWarning(error.Message);
ad.OnAdShown += info => Debug.Log("shown");
ad.OnAdFailedToShow += error => Debug.LogWarning(error.Message);
ad.OnAdClicked += info => Debug.Log("clicked");
ad.OnAdImpression += info => Debug.Log("impression");
ad.OnAdDismissed += info => Debug.Log("dismissed");
```

**3. 광고 로드**

```csharp theme={null}
ad.Load();
```

**4. 광고 표시**

```csharp theme={null}
if (ad != null && ad.IsReady())
{
    ad.Show();
}
```

**5. 광고 해제**

```csharp theme={null}
ad?.Dispose();
ad = null;
```

***

## Example

```csharp expandable theme={null}
using Daro;
using UnityEngine;

public sealed class InterstitialHost : MonoBehaviour
{
    [SerializeField] private string adUnitKey = "your-interstitial-ad-unit-key";
    private DaroInterstitialAd ad;

    private void OnEnable()
    {
        ad = new DaroInterstitialAd(adUnitKey);
        ad.OnAdLoaded += info => Debug.Log($"loaded latency={info.Latency}ms");
        ad.OnAdFailedToLoad += error => Debug.LogWarning(error.Message);
        ad.OnAdDismissed += info => ad?.Load();
        ad.Load();
    }

    public void Show()
    {
        if (ad != null && ad.IsReady())
        {
            ad.Show();
        }
    }

    private void OnDisable()
    {
        ad?.Dispose();
        ad = null;
    }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.