# 구글 애드 매니저

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

* AdPie SDK 버전 1.4.5 이상

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

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

### 3 : 미디에이션 등록

* 아래의 절차대로 진행을 해야 하며, 자세한 사항은 [미디에이션](https://support.google.com/admanager/answer/6272813?hl=ko\&sjid=17829723247869263806-AP) 를 확인합니다.
* 1\) [애드 매니저](https://admanager.google.com) 사이트 통해 로그인을 합니다.
* 2\) 수익 파트너 등록이 되어 있지 않으면 아래와 같이 등록합니다.
* ```
  (1) 관리 > 업체을 클릭합니다.
  (2) 새 회사를 클릭합니다.
  (3) 광고 네트워크를 선택합니다.
  (4) 이름에 'AdPie'로 입력합니다.
  (5) 광고 네트워크에서 'MoPub'을 선택하고 미디에이션을 활성화합니다.
  (6) 저장을 클릭합니다.
  ```
* 3\) 수익 그룹이 등록되어 있지 않으면 아래와 같이 등록합니다.
* ```
  (1) 게재 > 수익 그룹을 클릭합니다.
  (2) 새 수익 그룹을 클릭합니다.
  (3) 보고를 위해 알아보기 쉬운 고유한 수익 그룹 이름을 입력합니다.
  (4) 수익 그룹으로 타겟팅하려는 광고 형식과 인벤토리 유형을 선택합니다.
  (5) 저장을 클릭합니다.
  ```
* 4\) 수익 그룹에서 AdPie를 수익파트너로 추가합니다.
* ```
  (1) 게재 > 수익 그룹을 클릭합니다.
  (2) 수정할 수익 그룹의 이름을 클릭합니다.
  (3) 수익 파트너 추가를 클릭합니다.
  (4) 수익 파트너 드롭다운에서 앞에서 등록한 'AdPie' 수익 파트너를 선택합니다.
  (5) 통합 유형을 '맞춤 이벤트'로 기본 설정 확인합니다.
  (6) 타겟팅하려는 플랫폼(iOS)을 선택합니다.
  (7) 상태 ('운영중' 또는 '비활성화')를 선택합니다.
  (8) 기본 CPM을 입력합니다.
  (9) 추가 수익 파트너 세부 정보를 입력합니다. (자세한 내용은 아래 참고합니다.)
  (10) 저장을 클릭합니다.
  ```

> Label은 구분하기 쉬운 값을 입력합니다.

> Class Name 에는 광고 유형에 맞게 아래의 클래스 이름을 입력합니다.

* AdMobAdPieBannerAd: 배너(Banner) 광고용 클래스
* AdMobAdPieInterstitialAd: 전면(Interstitial) 광고용 클래스
* AdMobAdPieRewardedAd: 보상(Reward) 광고용 클래스

> Parameter(선택사항) 정보에는 AdPie에서 발급받은 **Media ID**와 **Slot ID**를 `{"app_id":"Insert_Media_ID", "slot_id":"Insert_Slot_ID"}` 형식으로 입력합니다.

<div align="left"><figure><img src="/files/gA8LNNQ2fwkAP6TET26y" alt=""><figcaption></figcaption></figure></div>


---

# 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/admanager.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.
