# 앱러빈

### 1 : 미디에이션 추가 준비

* AdPie SDK 버전 1.4.5 이상

### 2 : Custom Event 클래스 추가

* 샘플 앱 [다운로드](https://github.com/gomfactory/AdPie-iOS-SDK/archive/master.zip)
* 압축 해제 후, Mediations 디렉토리 > AppLovinAdapterAdPie 디렉토리가 존재하는지 확인합니다.
* 개발중인 Xcode 프로젝트를 열고, "AppLovinAdapterAdPie" 디렉토리를 Xcode 프로젝트로 드래그하여 추가합니다.

### 3 : 미디에이션 등록(Custom Event)

* 아래의 절차대로 진행을 해야 하며, 자세한 사항은 [Custom SDK Network Integration Guide](https://dash.applovin.com/documentation/mediation/android/mediation-setup/custom-sdk) 를 확인합니다.
* 1\) [앱러빈](https://www.applovin.com) 사이트에서 로그인을 합니다.
* 2\) 사이드바에서 [MAX > Mediation > Manage > Networks](https://dash.applovin.com/o/mediation/networks/) 를 선택합니다.
* 3\) 페이지 하단에 있는 **Click here to add a Custom Network**를 클릭합니다.
* 4\)Network Type은 **SDK**를 선택하고 Custom Network 이름을 입력합니다.
* 5\) iOS Adapter Class Name에 `AppLovinAdPieAdapter`를 입력합니다.

  > AppLovinAdPieAdapter: \
  > 배너(Banner), 전면(Interstitial), 보상(Reward), 네이티브(Native) 광고용 클래스

<figure><img src="/files/DKDTSbRXFk1Xj25EHWMc" alt=""><figcaption></figcaption></figure>

* 6\) 저장 (Save)를 클릭합니다.
* 7\) [MAX > Mediation > Manage > Ad Units](https://dash.applovin.com/o/mediation/ad_units/) 에서 AdPie를 추가할 Ad Unit을 선택합니다.
* **8) App ID (optional)** 에 AdPie에서 발급받은 `Media ID` 를 입력하고, **Placement ID** 에는 `Slot ID`를 입력합니다.

<figure><img src="/files/32nMnQGBFT6mIzI7Gyy9" alt=""><figcaption></figcaption></figure>

* 9\) 저장 (Save)를 클릭합니다.


---

# 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://platform-business.gitbook.io/adpie/ios/mediation/applovin.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.
