미디에이션과 Pangle 통합

This guide shows you how to use the Google Mobile Ads SDK to load and display ads from Pangle using AdMob Mediation, covering both waterfall and bidding integrations. It covers how to add Pangle to an ad unit's mediation configuration, and how to integrate the Pangle SDK and adapter into an Android app.

Supported integrations and ad formats

The mediation adapter for Pangle has the following capabilities:

Integration
Bidding
Waterfall
Formats
App open  1
Banner
Interstitial
Rewarded
Rewarded Interstitial
Native
1 Bidding integration for this format is in closed beta.

Requirements

  • Android API level 21 or higher

Step 1: Set up configurations in Pangle UI

Pangle 계정에 가입하거나 로그인합니다.

새 애플리케이션 추가

Applications(애플리케이션) 탭으로 이동하고 Add App(앱 추가) 버튼을 클릭합니다.

애플리케이션을 만들려는 운영체제를 선택하고 양식의 나머지 부분을 작성합니다. 그런 다음 제출을 클릭합니다.

애플리케이션의 앱 ID를 기록해 둡니다.

광고 게재위치 만들기

애플리케이션을 만들었으면 추가 버튼을 클릭하여 광고 게재위치를 만듭니다.

입찰

광고 형식광고 게재위치 이름을 선택하고 가격 책정 유형으로 인앱 입찰을 선택합니다. 양식의 나머지 부분을 작성하고 제출을 클릭합니다.

광고 게재위치를 만들었으면 광고 게재위치 ID를 기록해 둡니다.

폭포

광고 형식광고 게재위치 이름을 선택하고, 가격 책정 유형으로 글로벌 CPM을 선택합니다. 양식의 나머지 부분을 작성하고 제출을 클릭합니다.

광고 게재위치를 만들었으면 광고 게재위치 ID를 기록해 둡니다.

Pangle Reporting API 키 찾기

입찰

이 단계는 입찰 통합에는 필요하지 않습니다.

폭포

페이지 왼쪽 하단에 있는 User ID를 메모합니다.

통합 > SDK 및 API > Pangle Reporting API 2.0을 클릭합니다. 역할 ID보안 키를 기록해 둡니다.

테스트 모드 사용 설정

Pangle 테스트 광고를 사용 설정하는 방법은 Pangle의 테스트 광고 추가 방법 가이드에 있는 안내를 따릅니다.

Step 2: Set up Pangle demand in AdMob UI

광고 단위에 대한 미디에이션 설정 구성

Pangle 를 광고 단위의 미디에이션 구성에 추가해야 합니다.

먼저 AdMob 계정에 로그인합니다. 그런 다음 미디에이션 탭으로 이동합니다. 수정할 기존 미디에이션 그룹이 있는 경우 해당 미디에이션 그룹의 이름을 클릭하여 수정한 후 Pangle 광고 소스로 추가로 건너뜁니다.

새 미디에이션 그룹을 만들려면 미디에이션 그룹 만들기를 선택합니다.

광고 형식과 플랫폼을 입력하고 계속을 클릭합니다.

미디에이션 그룹에 이름을 지정하고 타겟팅할 위치를 선택합니다. 미디에이션 그룹 상태를 사용으로 설정한 다음 광고 단위 추가를 클릭합니다.

이 미디에이션 그룹을 하나 이상의 기존AdMob 광고 단위와 연결합니다. 그런 다음 완료를 클릭합니다.

이제 광고 단위 카드가 선택한 광고 단위로 채워진 것을 볼 수 있습니다.

광고 소스로 Pangle 추가

입찰

광고 소스 섹션의 입찰 카드에서 광고 소스 추가를 선택합니다. 그런 다음 Pangle을 선택합니다.

파트너십 계약을 체결하는 방법을 클릭하고Pangle과(와) 입찰 파트너십을 설정합니다.

확인 및 동의를 클릭한 다음 계속을 클릭합니다.

이미 Pangle에 대한 매핑이 있는 경우 해당 매핑을 선택할 수 있습니다. 그렇지 않으면 매핑 추가를 클릭합니다.

그런 다음 이전 섹션에서 얻은 App ID and Ad Placement ID를 입력합니다. 그런 다음 완료를 클릭합니다.

중요: App ID 는Pangle UI에서와 같이 타겟팅된 앱과 연결되어야 합니다.

폭포

광고 소스 섹션의 폭포식 구조 카드에서 광고 소스 추가를 선택합니다. 그런 다음 Pangle을 선택합니다.

Pangle를 선택합니다. 그런 다음Pangle 에 eCPM 값을 입력하고 계속을 클릭합니다.

이미 Pangle에 대한 매핑이 있는 경우 해당 매핑을 선택할 수 있습니다. 그렇지 않으면 매핑 추가를 클릭합니다.

그런 다음 이전 섹션에서 얻은 App ID and Ad Placement ID를 입력합니다. 그런 다음 완료를 클릭합니다.

Step 3: Import the Pangle SDK and adapter

In your project-level settings.gradle.kts file, add the following repositories:

dependencyResolutionManagement {
  repositories {
    google()
    mavenCentral()
    maven {
      url = uri("https://artifact.bytedance.com/repository/pangle/")
    }
  }
}

Then, in your app-level build.gradle.kts file, add the following implementation dependencies and configurations. Use the latest versions of the Pangle SDK and adapter:

dependencies {
    implementation("com.google.android.gms:play-services-ads:23.2.0")
    implementation("com.google.ads.mediation:pangle:6.0.0.8.0")
}

Manual integration

  1. Download the latest version of the Pangle SDK for Android and extract the open_ad_sdk.aar under from the downloaded archive folder and add it to your project.

  2. Navigate to the Pangle adapter artifacts on Google's Maven Repository. Select the latest version, download the Pangle adapter's .aar file, and add it to your project.

Step 4: Add required code

ProGuard obfuscation

If you use ProGuard to obfuscate Android code, follow the instructions in Pangle's documentation to ensure Pangle SDK code isn't obfuscated.

Step 5: Test your implementation

테스트 광고 사용 설정

AdMob 용 테스트 기기를 등록하고 Pangle UI에서 테스트 모드를 사용 설정해야 합니다.

테스트 광고 확인

Pangle에서 테스트 광고를 수신하고 있는지 확인하려면 광고 검사기에서 Pangle (Bidding) and Pangle (Waterfall) 광고 소스를 사용하여 단일 광고 소스 테스트를 사용 설정하세요.

Optional Steps

Native ads

Ad rendering

The Pangle adapter returns its native ads as NativeAd objects. It populates the following fields for a NativeAd.

Field Assets always included by Pangle adapter
Headline
Image 1
Body
Icon
Call to action
Star rating
Store
Price
Advertiser

1 The Pangle adapter does not provide direct access to the main image asset for its native ads. Instead, the adapter populates the MediaView with a video or an image.

Error codes

If the adapter fails to receive an ad from Pangle, you can check the underlying error from the ad response using ResponseInfo.getAdapterResponses() under the following classes:

com.pangle.ads
com.google.ads.mediation.pangle.PangleMediationAdapter

Here are the codes and accompanying messages thrown by the Pangle adapter when an ad fails to load:

Error code Domain Reason
101 com.google.ads.mediation.pangle Invalid server parameters (e.g. Missing app ID or placement ID).
102 com.google.ads.mediation.pangle The requested ad size does not match a Pangle supported banner size.
103 com.google.ads.mediation.pangle Missing or invalid bid response.
-1-60000 com.pangle.ads Pangle SDK returned an error. See Pangle's documentation for more details.

Pangle Android Mediation Adapter Changelog

Version 6.0.0.8.0

  • Verified compatibility with Pangle SDK version 6.0.0.8.

Built and tested with:

  • Google Mobile Ads SDK version 23.1.0.
  • Pangle SDK version 6.0.0.8.

Version 6.0.0.7.0

  • Verified compatibility with Pangle SDK version 6.0.0.7.

Built and tested with:

  • Google Mobile Ads SDK version 23.1.0.
  • Pangle SDK version 6.0.0.7.

Version 6.0.0.5.0

  • Verified compatibility with Pangle SDK version 6.0.0.5.

Built and tested with:

  • Google Mobile Ads SDK version 23.1.0.
  • Pangle SDK version 6.0.0.5.

Version 6.0.0.4.0

  • Verified compatibility with Pangle SDK version 6.0.0.4.

Built and tested with:

  • Google Mobile Ads SDK version 23.1.0.
  • Pangle SDK version 6.0.0.4.

Version 6.0.0.3.0

  • Verified compatibility with Pangle SDK version 6.0.0.3.

Built and tested with:

  • Google Mobile Ads SDK version 23.1.0.
  • Pangle SDK version 6.0.0.3.

Version 5.9.0.6.0

  • Verified compatibility with Pangle SDK version 5.9.0.6.

Built and tested with:

  • Google Mobile Ads SDK version 23.1.0.
  • Pangle SDK version 5.9.0.6.

Version 5.9.0.5.0

  • Verified compatibility with Pangle SDK version 5.9.0.5.

Built and tested with:

  • Google Mobile Ads SDK version 23.1.0.
  • Pangle SDK version 5.9.0.5.

Version 5.9.0.4.0

  • Verified compatibility with Pangle SDK version 5.9.0.4.

Built and tested with:

  • Google Mobile Ads SDK version 23.0.0.
  • Pangle SDK version 5.9.0.4.

Version 5.9.0.2.0

  • Verified compatibility with Pangle SDK version 5.9.0.2.

Built and tested with:

  • Google Mobile Ads SDK version 23.0.0.
  • Pangle SDK version 5.9.0.2.

Version 5.8.1.0.0

  • Verified compatibility with Pangle SDK version 5.8.1.0.

Built and tested with:

  • Google Mobile Ads SDK version 23.0.0.
  • Pangle SDK version 5.8.1.0.

Version 5.8.0.9.0

  • Verified compatibility with Pangle SDK version 5.8.0.9.
  • Updated the minimum required Google Mobile Ads SDK version to 23.0.0.

Built and tested with:

  • Google Mobile Ads SDK version 23.0.0.
  • Pangle SDK version 5.8.0.9.

Version 5.8.0.7.0

  • Verified compatibility with Pangle SDK version 5.8.0.7.

Built and tested with:

  • Google Mobile Ads SDK version 22.6.0.
  • Pangle SDK version 5.8.0.7.

Version 5.8.0.6.0

  • Verified compatibility with Pangle SDK version 5.8.0.6.

Built and tested with:

  • Google Mobile Ads SDK version 22.6.0.
  • Pangle SDK version 5.8.0.6.

Version 5.7.0.3.0

  • Verified compatibility with Pangle SDK version 5.7.0.3.

Built and tested with:

  • Google Mobile Ads SDK version 22.6.0.
  • Pangle SDK version 5.7.0.3.

Version 5.7.0.2.0

  • Verified compatibility with Pangle SDK version 5.7.0.2.

Built and tested with:

  • Google Mobile Ads SDK version 22.6.0.
  • Pangle SDK version 5.7.0.2.

Version 5.7.0.1.0

  • Verified compatibility with Pangle SDK version 5.7.0.1.

Built and tested with:

  • Google Mobile Ads SDK version 22.6.0.
  • Pangle SDK version 5.7.0.1.

Version 5.6.0.3.0

  • Verified compatibility with Pangle SDK version 5.6.0.3.
  • Updated the minimum required Google Mobile Ads SDK version to 22.6.0.

Built and tested with:

  • Google Mobile Ads SDK version 22.6.0.
  • Pangle SDK version 5.6.0.3.

Version 5.5.0.9.0

  • Updated the minimum required Google Mobile Ads SDK version to 22.5.0.
  • Verified compatibility with Pangle SDK version 5.5.0.9.

Built and tested with:

  • Google Mobile Ads SDK version 22.5.0.
  • Pangle SDK version 5.5.0.9.

Version 5.5.0.8.0

  • Verified compatibility with Pangle SDK version 5.5.0.8.

Built and tested with:

  • Google Mobile Ads SDK version 22.3.0.
  • Pangle SDK version 5.5.0.8.

Version 5.5.0.7.0

  • Verified compatibility with Pangle SDK version 5.5.0.7.

Built and tested with:

  • Google Mobile Ads SDK version 22.3.0.
  • Pangle SDK version 5.5.0.7.

Version 5.5.0.6.0

  • Bidding app open ad format isn't supported in this version as this adapter version was reverted to depend on Google Mobile Ads SDK version 22.3.0.
  • Verified compatibility with Pangle SDK version 5.5.0.6.

Built and tested with:

  • Google Mobile Ads SDK version 22.3.0.
  • Pangle SDK version 5.5.0.6.

Version 5.5.0.4.0

  • Added bidding support for app open ad format.
  • Added watermark support for bidding ads.
  • Updated the minimum required Google Mobile Ads SDK version to 22.4.0.
  • Verified compatibility with Pangle SDK version 5.5.0.4.

Built and tested with:

  • Google Mobile Ads SDK version 22.4.0.
  • Pangle SDK version 5.5.0.4.

Version 5.4.1.1.0

  • Fixed an issue where the adapter fails to initialize.
  • Verified compatibility with Pangle SDK version 5.4.1.1.

Built and tested with:

  • Google Mobile Ads SDK version 22.3.0.
  • Pangle SDK version 5.4.1.1.

Version 5.4.0.9.0

  • Verified compatibility with Pangle SDK version 5.4.0.9.
  • Updated the minimum required Google Mobile Ads SDK version to 22.3.0.

Built and tested with:

  • Google Mobile Ads SDK version 22.3.0.
  • Pangle SDK version 5.4.0.9.

Version 5.4.0.8.0

  • Verified compatibility with Pangle SDK version 5.4.0.8.

Built and tested with:

  • Google Mobile Ads SDK version 22.2.0.
  • Pangle SDK version 5.4.0.8.

Version 5.3.0.6.0

  • Verified compatibility with Pangle SDK version 5.3.0.6.

Built and tested with:

  • Google Mobile Ads SDK version 22.2.0.
  • Pangle SDK version 5.3.0.6.

Version 5.3.0.5.0

  • Verified compatibility with Pangle SDK version 5.3.0.5.

Built and tested with:

  • Google Mobile Ads SDK version 22.2.0.
  • Pangle SDK version 5.3.0.5.

Version 5.3.0.4.0

  • Verified compatibility with Pangle SDK version 5.3.0.4.

Built and tested with:

  • Google Mobile Ads SDK version 22.2.0.
  • Pangle SDK version 5.3.0.4.

Version 5.2.0.7.0

  • Verified compatibility with Pangle SDK version 5.2.0.7.

Built and tested with:

  • Google Mobile Ads SDK version 22.1.0.
  • Pangle SDK version 5.2.0.7.

Version 5.2.0.6.0

  • Verified compatibility with Pangle SDK version 5.2.0.6.

Built and tested with:

  • Google Mobile Ads SDK version 22.1.0.
  • Pangle SDK version 5.2.0.6.

Version 5.2.0.5.0

  • Verified compatibility with Pangle SDK version 5.2.0.5.

Built and tested with:

  • Google Mobile Ads SDK version 22.1.0.
  • Pangle SDK version 5.2.0.5.

Version 5.2.0.3.0

  • Added waterfall support for app open, banner (includes MREC), interstitial, rewarded and native ad formats.
  • Verified compatibility with Pangle SDK version 5.2.0.3.

Built and tested with:

  • Google Mobile Ads SDK version 22.0.0.
  • Pangle SDK version 5.2.0.3.

Version 5.1.0.9.0

  • Verified compatibility with Pangle SDK version 5.1.0.9.

Built and tested with:

  • Google Mobile Ads SDK version 22.0.0.
  • Pangle SDK version 5.1.0.9.

Version 5.1.0.8.0

  • Verified compatibility with Pangle SDK version 5.1.0.8.

Built and tested with:

  • Google Mobile Ads SDK version 22.0.0.
  • Pangle SDK version 5.1.0.8.

Version 5.1.0.6.0

  • Updated adapter to use new VersionInfo class.
  • Updated the minimum required Google Mobile Ads SDK version to 22.0.0.

Built and tested with:

  • Google Mobile Ads SDK version 22.0.0.
  • Pangle SDK version 5.1.0.6.

Version 5.0.1.1.0

  • Verified compatibility with Pangle SDK version 5.0.1.1.

Built and tested with:

  • Google Mobile Ads SDK version 21.5.0.
  • Pangle SDK version 5.0.1.1.

Version 5.0.1.0.0

  • Verified compatibility with Pangle SDK version 5.0.1.0.

Built and tested with:

  • Google Mobile Ads SDK version 21.5.0.
  • Pangle SDK version 5.0.1.0.

Version 5.0.0.9.0

  • Verified compatibility with Pangle SDK version 5.0.0.9.

Built and tested with:

  • Google Mobile Ads SDK version 21.5.0.
  • Pangle SDK version 5.0.0.9.

Version 5.0.0.8.0

  • Verified compatibility with Pangle SDK version 5.0.0.8.

Built and tested with:

  • Google Mobile Ads SDK version 21.5.0.
  • Pangle SDK version 5.0.0.8.

Version 5.0.0.7.0

  • Verified compatibility with Pangle SDK version 5.0.0.7.

Built and tested with:

  • Google Mobile Ads SDK version 21.5.0.
  • Pangle SDK version 5.0.0.7.

Version 5.0.0.6.0

  • Verified compatibility with Pangle SDK version 5.0.0.6.

Built and tested with:

  • Google Mobile Ads SDK version 21.5.0.
  • Pangle SDK version 5.0.0.6.

Version 4.9.0.9.0

  • Verified compatibility with Pangle SDK version 4.9.0.9.
  • Updated the minimum required Google Mobile Ads SDK version to 21.5.0.

Built and tested with:

  • Google Mobile Ads SDK version 21.5.0.
  • Pangle SDK version 4.9.0.9.

Version 4.9.0.8.0

  • Verified compatibility with Pangle SDK version 4.9.0.8.

Built and tested with:

  • Google Mobile Ads SDK version 21.4.0.
  • Pangle SDK version 4.9.0.8.

Version 4.9.0.7.0

  • Verified compatibility with Pangle SDK version 4.9.0.7.

Built and tested with:

  • Google Mobile Ads SDK version 21.4.0.
  • Pangle SDK version 4.9.0.7.

Version 4.9.0.6.0

  • Verified compatibility with Pangle SDK version 4.9.0.6.

Built and tested with:

  • Google Mobile Ads SDK version 21.4.0.
  • Pangle SDK version 4.9.0.6.

Version 4.8.1.0.0

  • Verified compatibility with Pangle SDK version 4.8.1.0.
  • Updated the minimum required Google Mobile Ads SDK version to 21.4.0.

Built and tested with:

  • Google Mobile Ads SDK version 21.4.0.
  • Pangle SDK version 4.8.1.0.

Version 4.8.0.9.0

  • Verified compatibility with Pangle SDK version 4.8.0.9.

Built and tested with:

  • Google Mobile Ads SDK version 21.3.0.
  • Pangle SDK version 4.8.0.9.

Version 4.8.0.8.0

  • Verified compatibility with Pangle SDK version 4.8.0.8.

Built and tested with:

  • Google Mobile Ads SDK version 21.3.0.
  • Pangle SDK version 4.8.0.8.

Version 4.8.0.7.0

  • Verified compatibility with Pangle SDK version 4.8.0.7.

Built and tested with:

  • Google Mobile Ads SDK version 21.3.0.
  • Pangle SDK version 4.8.0.7.

Version 4.8.0.6.0

  • Verified compatibility with Pangle SDK version 4.8.0.6.

Built and tested with:

  • Google Mobile Ads SDK version 21.3.0.
  • Pangle SDK version 4.8.0.6.

Version 4.7.0.7.0

  • Verified compatibility with Pangle SDK version 4.7.0.7.
  • Updated the minimum required Google Mobile Ads SDK version to 21.3.0.

Built and tested with:

  • Google Mobile Ads SDK version 21.3.0.
  • Pangle SDK version 4.7.0.7.

Version 4.7.0.6.0

  • Verified compatibility with Pangle SDK version 4.7.0.6.

Built and tested with:

  • Google Mobile Ads SDK version 21.2.0.
  • Pangle SDK version 4.7.0.6.

Version 4.7.0.5.0

  • Verified compatibility with Pangle SDK version 4.7.0.5.

Built and tested with:

  • Google Mobile Ads SDK version 21.2.0.
  • Pangle SDK version 4.7.0.5.

Version 4.7.0.3.0

  • Verified compatibility with Pangle SDK version 4.7.0.3.
  • The adapter now attempts to initialize the Pangle SDK before loading ads.

Built and tested with:

  • Google Mobile Ads SDK version 21.2.0.
  • Pangle SDK version 4.7.0.3.

Version 4.6.0.9.0

  • Verified compatibility with Pangle SDK version 4.6.0.9.
  • Updated the minimum required Google Mobile Ads SDK version to 21.2.0.

Built and tested with:

  • Google Mobile Ads SDK version 21.2.0.
  • Pangle SDK version 4.6.0.9.

Version 4.5.0.6.1

  • Added bidding support for native ad format.
  • Updated the minimum required Google Mobile Ads SDK version to 21.1.0.

Built and tested with:

  • Google Mobile Ads SDK version 21.1.0.
  • Pangle SDK version 4.5.0.6.

Version 4.5.0.6.0

  • Verified compatibility with Pangle SDK version 4.5.0.6.

Built and tested with:

  • Google Mobile Ads SDK version 21.0.0.
  • Pangle SDK version 4.5.0.6.

Version 4.5.0.5.0

  • Verified compatibility with Pangle SDK version 4.5.0.5.

Built and tested with:

  • Google Mobile Ads SDK version 21.0.0.
  • Pangle SDK version 4.5.0.5.

Version 4.5.0.4.0

  • Verified compatibility with Pangle SDK version 4.5.0.4.

Built and tested with:

  • Google Mobile Ads SDK version 21.0.0.
  • Pangle SDK version 4.5.0.4.

Version 4.5.0.3.0

  • Verified compatibility with Pangle SDK version 4.5.0.3.
  • Updated compileSdkVersion and targetSdkVersion to API 31.
  • Updated the minimum required Google Mobile Ads SDK version to 21.0.0.
  • Updated the minimum required Android API level to 19.

Built and tested with:

  • Google Mobile Ads SDK version 21.0.0.
  • Pangle SDK version 4.5.0.3.

Version 4.3.0.9.0

  • Verified compatibility with Pangle SDK version 4.3.0.9.

Built and tested with:

  • Google Mobile Ads SDK version 20.6.0.
  • Pangle SDK version 4.3.0.9.

Version 4.3.0.8.0

  • Verified compatibility with Pangle SDK version 4.3.0.8.

Built and tested with:

  • Google Mobile Ads SDK version 20.6.0.
  • Pangle SDK version 4.3.0.8.

Version 4.3.0.7.0

  • Verified compatibility with Pangle SDK version 4.3.0.7.

Built and tested with:

  • Google Mobile Ads SDK version 20.6.0.
  • Pangle SDK version 4.3.0.7.

Version 4.3.0.6.0

  • Verified compatibility with Pangle SDK version 4.3.0.6.

Built and tested with:

  • Google Mobile Ads SDK version 20.6.0.
  • Pangle SDK version 4.3.0.6.

Version 4.3.0.4.0

  • Verified compatibility with Pangle SDK version 4.3.0.4.

Built and tested with:

  • Google Mobile Ads SDK version 20.6.0.
  • Pangle SDK version 4.3.0.4.

Version 4.2.5.3.0

  • Initial release!
  • Added bidding support for banner (includes MREC), interstitial and rewarded ad formats.

Built and tested with:

  • Google Mobile Ads SDK version 20.6.0.
  • Pangle SDK version 4.2.5.3.