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.
Ad Type | Class Name for Android Adapter |
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 |
Ad Type | Class Name for iOS Adapter |
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"}
Download the plugin from Pangle platform manually, then find PangleAdapterScriptsDependencies.unitypackage
, as below:
Open your project in the Unity editor, select Assets > Import Package > Custom Package, and find the PangleAdapterScriptsDependencies.unitypackage
. Make sure the file is selected, and then click Import.The plugin will help to import Pangle SDK and Adapters automatically from Maven&Cocoa Pod when you export an Android or iOS project.
Add following permissions and provider to your app's AndroidManifest.xml
.
:warning: Please make sure to add provider or ad's loading will not work properly.
Once you finish the steps above, you need to initialized Pangle SDK. For now, you have to initialize Pangle SDK after exporting an Android or iOS project, we would strongly recommend to initialized Pangle SDK on app launch.
Initialize Pangle Android 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 initializes the SDK before you send any ad requests. init
only need to be called once per app’s lifecycle.
TTAdSdk.InitCallback
will be informed about the result of the initialize.
If you use TextureView for video ads, please set useTextureView(true)
in the Builder and add add WAKE_LOCK
permission in the manifest.
You also could check the initialization status with the method TTAdSdk.isInitSuccess()
Please refer to Initialize Pangle Android SDK for manual integration and more information.
Initialize Pangle with the APP ID as the argument. Unless there is a particular reason, stipulate asUIApplicationDelegate application(_:didFinishLaunchingWithOptions:)
We recommand to use asynchronize initialization method + (void)startWithAsyncCompletionHandler:(BUCompletionHandler)completionHandler; to init the SDK, and also set allowModifyAudioSessionSetting to true
to not interrupt the background's audio playback.
Please refer to Initialize Pangle iOS SDK for manual integration and more information.
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.