Pangle: A global platform dedicated to developer growth.|Integration Docs
Knowledge Center

[Unity]Admob Custom Event for Pangle

NOTICE: If you use Pangle adapter 2.0.0 and above, please update Pangle SDK to v4.6.0.0 and above.

Setup Pangle Platform

Create a Pangle account

Create an application and placements in Pangle

  • Click Apps -> + Add App to create an app for mediation.

  • You will get an app with its app ID.

Create Ad Placement

  • Click Ad Placements -> + Add Ad Placement to create the placement for mediation.

  • Select the ad's type for your app and finish the create.

  • You will get a placement with its placement ID.

Add Pangle to AdMob's mediation

Create mediation

  • Click Mediation -> CREATE MEDIATION GROUP to create a mediation group.
  • Select the same ad format which created on Pangle side.
  • After select the ad unit you created on AdMob which you want to embed mediation, click ADD CUSTOM EVENT to set with Pangle.

Set Class Name and Parameter

Set Class Name and Parameter in the mediation setting.

If you use SDK v46 and above:(recommended)

If you use SDK v45 and below:

Class Name

  • If you use SDK v46 and above:(recommended)
    •   Fill directly in the Admob platform.
  • If you use SDK v45 and below:
    • If you are using gradle to integrate our adapters, please copy the contents below to Class Name .
    • Ad TypeClass Name
      • Reward Video Ads:
      • Interstitial Ads:
      • Banner Ads:
      • Native Ads:
    • Otherwise, if you are integrating our adapters by manual, please add adapter's package + adapter'class name to Class Name.
    • Ad Typeadapter'class name (need add package of your app )
      • Reward Video Ads: AdmobRewardVideoAdapter
      • Interstitial Ads: AdmobFullScreenVideoAdapter
      • Banner Ads: AdmobTemplateBannerAdapter
      • Native Ads: AdmobNativeFeedAdAdapter
    • for example, com.bytedance.pangle.admob.adapter.demo.pangle.adapter.AdmobRewardVideoAdapter


  • If you use SDK v46 and above:(recommended)
  • If you use SDK v45 and below:
    •   Add {"placementID":"your slot ID"} to Parameter.
    • Parameter: Add {"placementID":"your placement ID on Pangle"} to Parameter , for example,{"placementID":"1234567"}
    • Please make sure to use JSON to set Parameter. Or you need to customize adapter yourself.

Import Pangle SDK and Adapter ( and later)

Download the Unity and Google Admob Adapter SDKs

Import SDK and admob adapter to Unity Project


Google Admob Adapter Import


Pangle SDK Import


Add the Pangle Init function to project

The Pangle init should be called on UI threadMake sure the Pangle init has success before requesting Ads

If you use SDK v46 and above:(recommended)

If you use SDK v45 and below:

Test with test 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 the Pangle platform.