Admob Custom Event for Pangle
Please set Admob in your app first.
Apps
-> + Add App
to create a app for mediation.app ID
.Ad Placements
-> + Add Ad Placement
to create the placement for mediation.placement ID
.Mediation
-> CREATE MEDIATION GROUP
to create a mediation group.ADD CUSTOM EVENT
to set with Pangle.Set Class Name
and Parameter
in the mediation setting.
Copy the contents below to Class Name
based on your needs.
Android Adapter
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 |
iOS Adapter
Ad Type | Class Name |
Reward Video Ads | BUDAdmob_RewardCustomEventAdapter |
Interstitial Ads | BUDAdmob_FullScreenVideoCustomEventAdapter |
Banner Ads | BUDAdmob_BannerCustomEventAdapter |
Native Ads | BUDAdmob_NativeFeedCustomEventAdapter |
Add {"placementID":"your slot ID"}
to Parameter.
{"placementID":"1234567"}
Google Admob Adapter Import
Pangle SDK Import
The Pangle init should called on ui threadMake sure the Pangle init has success before request Ads
Now you have finished the integration. If you wanna test your apps, make sure you use test ads rather than live, production ads. The easiest way to load test ads is to use test mode. It's been specially configured to return test ads for every request, and you're free to use it in your own apps while coding, testing, and debugging.
Refer to the How to add a test device? to add your device to the test devices on Pangle platform.