# 네이티브 광고

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

## 네이티브 광고

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

```csharp
// 초기화
APSSPSDKPluginIOS.NativeAdInit("YOUR_APP_KEY", "NATIVE_PLACEMENT_ID");
APSSPSDKPluginIOS.NativeAdSetDelegate();

// 로드
APSSPSDKPluginIOS.NativeAdLoad();

// Impression 리포트 (광고가 화면에 보일 때 호출)
APSSPSDKPluginIOS.NativeAdReportImpression();

// Click 리포트 (유저가 광고를 클릭할 때 호출)
APSSPSDKPluginIOS.NativeAdReportClick();

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

### 이벤트

```csharp
APSSPSDKPluginIOS.nativeAdLoadSuccess += (nativeData) => {
    // nativeData.Title        — 광고 제목
    // nativeData.Desc         — 광고 설명
    // nativeData.IconImageURL — 아이콘 이미지 URL
    // nativeData.MainImageURL — 메인 이미지 URL
    // nativeData.CtaText      — CTA 버튼 텍스트
    // nativeData.LandingURL   — 클릭 시 랜딩 URL
    // nativeData.PrivacyPolicyImageURL — 개인정보 아이콘 URL
    // nativeData.PrivacyPolicyURL      — 개인정보 페이지 URL

    Debug.Log("Native loaded: " + nativeData.Title);
};
APSSPSDKPluginIOS.nativeAdLoadFail += (error) => { };
```


---

# 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-2.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.
