This guide shows you how to use the Google Mobile Ads SDK to load and display ads from Pangle using 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 a Flutter app.
Supported integrations and ad formats
The AdMob mediation adapter for Pangle has the following capabilities:
Integration | |
---|---|
Bidding | |
Waterfall | |
Formats | |
Banner | |
Interstitial | |
Rewarded | |
Rewarded Interstitial |
Requirements
- Latest Google Mobile Ads SDK
- Flutter 3.7.0 or higher
- To deploy on Android
- Android API level 21 or higher
- To deploy on iOS
- iOS deployment target of 12.0 or higher
- A working Flutter project configured with the Google Mobile Ads SDK. See Get Started for details.
- Complete the mediation Get started guide
Step 1: Set up configurations in Pangle UI
Step 2: Set up Pangle demand in AdMob UI
광고 단위에 대한 미디에이션 설정 구성
Step 3: Import the Pangle SDK and adapter
pub.dev를 통한 통합
(Android만 해당) 다음 저장소를 내부의 build.gradle
파일에 추가합니다.
프로젝트의 android
디렉터리에 있습니다.
repositories {
google()
mavenCentral()
maven {
url = uri("https://artifact.bytedance.com/repository/pangle/")
}
}
다음 종속 항목을 최신 버전의
Pangle 패키지에 있는 SDK 및 어댑터
pubspec.yaml
파일:
dependencies:
gma_mediation_pangle: ^1.0.0
수동 통합
Google 모바일 광고 미디에이션 플러그인 최신 버전 다운로드
Pangle님,
다운로드한 파일을 추출하고 추출된 플러그인 폴더를 추가합니다.
(및 그 콘텐츠를) Flutter 프로젝트에 추가합니다. 그런 다음
pubspec.yaml
파일에 다음 종속 항목을 추가합니다.
dependencies:
gma_mediation_pangle:
path: path/to/local/package
Step 4: Add required code
Android
No additional code required for Pangle integration.
iOS
SKAdNetwork integration
Follow Pangle's documentation
to add the SKAdNetwork identifiers to your project's Info.plist
file.
Step 5: Test your implementation
테스트 광고 사용 설정
AdMob 용 테스트 기기를 등록하고 Pangle UI에서 테스트 모드를 사용 설정해야 합니다.
테스트 광고 확인
Pangle에서 테스트 광고를 수신하고 있는지 확인하려면 광고 검사기에서 Pangle (Bidding) and Pangle (Waterfall) 광고 소스를 사용하여 단일 광고 소스 테스트를 사용 설정하세요.
Error codes
If the adapter fails to receive an ad from Pangle, publishers can check the
underlying error from the ad response using
ResponseInfo
under the
following classes:
Android
com.pangle.ads
com.google.ads.mediation.pangle.PangleMediationAdapter
iOS
GADMediationAdapterPangle
Here are the codes and accompanying messages thrown by the Pangle adapter when an ad fails to load:
Android
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. |
iOS
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. |
-1-60000 | Sent by Pangle SDK | Pangle SDK returned an error. See Pangle's documentation for more details. |
Pangle Flutter Mediation Adapter Changelog
2.0.0
- Verified compatibility with Pangle Android adapter version 6.1.0.9.0.
- Verified compatibility with Pangle iOS adapter version 6.2.0.5.0.
- Built and tested with the Google Mobile Ads Flutter Plugin version 5.1.0.
1.1.0
- Verified compatibility with Pangle Android adapter version 5.9.0.4.0.
- Verified compatibility with Pangle iOS adapter version 5.9.0.7.0.
- Built and tested with the Google Mobile Ads Flutter Plugin version 5.1.0.
1.0.0
- Initial release.
- Verified compatibility with Pangle Android adapter version 5.8.0.9.0
- Verified compatibility with Pangle iOS adapter version 5.8.0.8.0
- Built and tested with the Google Mobile Ads Flutter Plugin version 5.0.0.