Attention:
With the deprecation of the custom event interface in AdMob v20.6.0, it is recommended to use AdMob versions below 20.6.0 to avoid issues. For more information, please refer to the provided link.
If you are using AdMob v20.6.0 and above, it is necessary to update the Pangle adapter to version 2.0.0 or above, and the Pangle SDK to version 4.6.0.0 or above.
Please set Google Ad Manager in your app first.
Apps
-> + Add App
to create an app for mediation.app ID
.Ad Placements
-> + Add Ad Placement
to create the placement for mediation.placement ID
.Open Delivery
section, click Yield Group
-> New Yield GROUP
to create a mediation group.
Mobile App
for Inventory type,ADD Yield Partner
to set with Pangle.Custome Event
on integration type and platform based on your OS.Set Label
, Class Name
and Parameter
in the mediation setting.
If you use SDK v46 and above:(recommended)
If you use SDK v45 and below:
com.google.ads.mediation.pangle.customevent.PangleCustomEvent
directly in the Admob platform.Class Name
.Ad Type | Class Name |
Reward Video Ads | com.google.ads.mediation.sample.customevent.adapter.AdmobRewardVideoAdapter |
Interstitial Ads | com.google.ads.mediation.sample.customevent.adapter.AdmobFullScreenVideoAdapter |
Banner Ads | com.google.ads.mediation.sample.customevent.adapter.AdmobTemplateBannerAdapter |
Native Ads | com.google.ads.mediation.sample.customevent.adapter.AdmobNativeFeedAdAdapter |
Class Name
.Ad Type | adapter'class name (need add |
Reward Video Ads | AdmobRewardVideoAdapter |
Interstitial Ads | AdmobFullScreenVideoAdapter |
Banner Ads | AdmobTemplateBannerAdapter |
Native Ads | AdmobNativeFeedAdAdapter |
com.bytedance.pangle.admob.adapter.demo.pangle.adapter.AdmobRewardVideoAdapter
1234567
{"placementID":"your slot ID"}
to Parameter.{"placementID":"1234567"}
Add url 'https://artifact.bytedance.com/repository/pangle'
maven in the allprojects
section of your project-level build.gradle
.
Next, open the app-level build.gradle
file for your app, add implementation 'com.pangle.global:ads-sdk:x.x.x.x'
in "dependencies" section.In order to use the Android Advertising ID, we also recommend adding com.google.android.gms:play-services-ads-identifier
.
Add the following permissions and provider to your app's AndroidManifest.xml
.
Please make sure to add provider or ad's loading will not work properly.
Initialize Pangle SDK asynchronously is supported since the v3.5.0.0 SDK, please call TTAdSdk.init(final Context var0, final TTAdConfig var1, final TTAdSdk.InitCallback var2)
to initialize the SDK before you send any ad requests. init
only need to be called once per app’s lifecycle, we strongly recommend doing this on app launch.
TTAdSdk.InitCallback
will be informed about the result of the initialization.
If you use TextureView for video ads, please set useTextureView(true)
in the Builder and add add WAKE_LOCK
permission in the manifest.
If you use SDK v46 and above:(recommended)
If you use SDK v45 and below:
You also could check the initialization status with the method TTAdSdk.isInitSuccess()
Please refer to Integrate Pangle SDKand Initialize Pangle SDK for manual integration and more information.
From our adapter v2.0.0, we support gradle integration.
Please open the app-level build.gradle
file for your app, add implementation 'com.pangle.global:adapter-for-admob:2.0.0'
in "dependencies" section.
SDK Integration
-> SDK download
, you can download adapters for different ad formats from your Pangle platform.Please unzip the file and add adapter files from Android folder into your application project. They can be used with no code changes. Also you can customize it for your use case.