> For the complete documentation index, see [llms.txt](https://platform-business.gitbook.io/adpie/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform-business.gitbook.io/adpie/ios/mediation/admob.md). Agents can also search and read this documentation through its [MCP server](https://platform-business.gitbook.io/adpie/~gitbook/mcp).

# 구글 애드몹

구글 애드몹의 미디에이션 중 하나의 애드 네트워크(Ad Network)로 구성할 수 있습니다.

### 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 : 미디에이션 등록(Custom Event)

* 아래의 절차대로 진행을 해야 하며, 자세한 사항은 [Custom Event](https://support.google.com/admob/answer/3083407?ctx=tltp\&hl=ko) 를 확인합니다.
* 1\) [애드몹](https://apps.admob.com) 사이트 통해 로그인을 합니다.
* 2\) 사이드바에서 **미디에이션**을 클릭합니다.
* 3\) 미디에이션 그룹의 이름을 클릭합니다.
* 4\) 폭포식 구조 광고 소스 표의 **맞춤 이벤트** 추가를 클릭합니다.
* 5\) 이벤트를 설명하는 라벨을 입력합니다.
* 6\) 이 맞춤 이벤트에 사용할 수동 eCPM을 입력합니다.
* **7) 계속**을 클릭합니다.
* 8\) 각 광고 단위의 **클래스 이름(필수)** 및 **매개변수(선택사항)** 를 입력합니다.

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

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

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

<figure><img src="https://1072946756-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh39HnaSiiPTrGCntZMCm%2Fuploads%2FSxuOSX13884BiFvrjpuf%2Fadmob_dashboard_2.png?alt=media&amp;token=4c42c976-1663-49a5-89b7-ab872e352972" alt=""><figcaption></figcaption></figure>

* **9) 완료** 버튼을 클릭합니다.
* **10) 저장** 버튼을 클릭합니다.
