> 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/unity/unity-ios/unity-plugin-2.x.x/undefined-2.md).

# 네이티브 광고

<figure><img src="/files/7vvpLunpsgYi74VTMFe6" alt="" width="214"><figcaption></figcaption></figure>

## 네이티브 광고

네이티브 광고는 SDK에서 광고 데이터(제목, 설명, 이미지 URL 등)를 JSON으로 전달하며, Unity에서 직접 UI를 구성합니다.

### 이벤트

```csharp
void InitNative()
{
    // 초기화
    nativeAd = new APSSPNativeAd("APP_KEY", "PLACEMENT_ID");
    nativeAd.OnLoaded += (data) => {
        Debug.Log("Title: " + data.Title);
        Debug.Log("Desc: " + data.Desc);
        Debug.Log("IconImage: " + data.IconImageURL);
        Debug.Log("MainImage: " + data.MainImageURL);
        Debug.Log("CTA: " + data.CtaText);
        Debug.Log("LandingURL: " + data.LandingURL);
        Debug.Log("PrivacyIcon: " + data.PrivacyPolicyImageURL);
    };
    nativeAd.OnLoadFailed += (error) => Debug.Log("Native LoadFail: " + error);
    nativeAd.SetDelegate();
}

// 로드
void LoadNative() => nativeAd.Load();

// Impression 리포트 (광고가 화면에 보일 때 호출)
void ReportImpression() => nativeAd.ReportImpression();   // 노출 시 호출

// Click 리포트 (유저가 광고를 클릭할 때 호출)
void ReportClick() => nativeAd.ReportClick();             // 클릭 시 호출

// 인스턴스 제거
void OnDestroy() => nativeAd?.Destroy();
```
