> 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/ios/ios-3.1.0+/undefined-12.md).

# 응답 에러 코드 및 샘플 프로젝트

## 응답 에러 코드

각 광고 별 이벤트 리스너로 전달되는 에러코드의 정의입니다.

<table><thead><tr><th width="138">코드</th><th>메세지</th><th>설명</th></tr></thead><tbody><tr><td>200</td><td>Exception</td><td>일반 에러</td></tr><tr><td>1000</td><td>Invalid Parameter</td><td>잘못된 파라미터</td></tr><tr><td>9999</td><td>Unknown Sever Error</td><td>알려지지 않은 서버 에러</td></tr><tr><td>2000</td><td>Invalid Media Key</td><td>잘못된 앱키</td></tr><tr><td>2030</td><td>Invalid Spot Key</td><td>잘못된 스팟키</td></tr><tr><td>2100</td><td>Empty Campaign</td><td>광고 없음</td></tr><tr><td>2200</td><td>Invalid Third Party Name</td><td>외부 네트워크 정보 로드 실패</td></tr><tr><td>3200</td><td>Native Spot Does Not Initialized</td><td>네이티브 설정 초기화 오류</td></tr><tr><td>5000</td><td>Sever Timeout</td><td>서버 타임 아웃</td></tr><tr><td>5001</td><td>Load Ad Failed</td><td>특정 네트워크 광고 로드의 실패</td></tr><tr><td>5002</td><td>No Ad</td><td>모든 네트워크 광고 로드의 실패</td></tr></tbody></table>

## 샘플 프로젝트

* 샘플 프로젝트 내 미디에이션 추가 방법
  * 미디에이션의 경우 Podfile을 수정하여 원하는 업체를 활성화 한 뒤, pod update 해주시기 바랍니다.
  * Podfile에 추가한 업체의 경우 샘플에 포함된 mediationAdapter의 해당 폴더를 프로젝트에 add 해 주시기 바랍니다.

**SPM**

> [APSSPSDK SPM Sample 코드 (Swift + SwiftUI)](https://github.com/IGAWorksDev/AdPopcornSDK/raw/refs/heads/master/AdPopcornSSP/02-ios-sdk/APSSPSDK/Test_Sample/APSSP_Swift_Sample.zip)

> [APSSPSDK SPM Sample 코드 (ObjC)](https://github.com/IGAWorksDev/AdPopcornSDK/raw/refs/heads/master/AdPopcornSSP/02-ios-sdk/APSSPSDK/Test_Sample/APSSP_ObjC_Sample.zip)

**CocoaPod**

> [APSSPSDK CocoaPod Sample 코드 (Swift + SwiftUI)](https://github.com/IGAWorksDev/AdPopcornSDK/raw/refs/heads/master/AdPopcornSSP/02-ios-sdk/APSSPSDK/Test_Sample/APSSP_Swift_Sample_Cocoa.zip)

> [APSSPSDK CocoaPod Sample 코드 (ObjC)](https://github.com/IGAWorksDev/AdPopcornSDK/raw/refs/heads/master/AdPopcornSSP/02-ios-sdk/APSSPSDK/Test_Sample/APSSP_ObjC_Sample_Cocoa.zip)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://adpopcornssp.gitbook.io/ssp-sdk/sdk/ios/ios-3.1.0+/undefined-12.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
