Tuesday, September 6, 2022
HomeGame DevelopmentCombine AdPumb SDK for Cell Advert Mediation? - Third-Celebration

Combine AdPumb SDK for Cell Advert Mediation? – Third-Celebration


AdPumb is a cellular advert mediation platform that assists app builders or publishers in incomes 2x extra income by way of the very best app monetization features.
Our superior mediation options assist publishers to attach with Demand Facet Platforms.

How Does it Work?
Combine AdPumb SDK within the writer’s app to be able to get management over eCPM and Fill Charges

Combine?

  • Advert Your Writer ID to the android-manifest.xml

  • Add Dependency: To resolve the AdPumb requirement, it’s essential to present the repository particulars to your Gradle script.

implementation ‘com.adpumb:bidmachine:1.9.2’
*********************

  • Then you want to config the important thing to AndroidManifest.xml. Then add metadata with the title “com.adpumb.config.key”.

Inserting Advert Codecs

Interstitial
personal void onAdditionButtonClick() {
InterstitialPlacement addition = new InterstitialPlacementBuilder()
.title(“addition”) //Identify of the position is essential. Income dashboard will observe the position based mostly on the title given.
.construct();
DisplayManager.getInstance().showAd(addition);
}

Rewarded
personal void onAdditionButtonClick() {
RewardedPlacement rewardedPlacement = new RewardedPlacementBuilder()
.title(“placementName”)
.loaderTimeOutInSeconds(5)
.onAdCompletion(new AdCompletion() {
@Override
public void onAdCompletion(boolean success, PlacementDisplayStatus placementDisplayStatus) {
if (success){
Toast.makeText(mActivity, “You’ve gotten efficiently watched Rewarded Advert”, Toast.LENGTH_SHORT).present();
}else {
Toast.makeText(mActivity, “please watch Rewarded Advert – “+placementDisplayStatus.title(), Toast.LENGTH_SHORT).present();
}
}
})
.construct();
DisplayManager.getInstance().showAd(rewardedPlacement);
}

Native
NativePlacement nativePlacement = new NativePlacementBuilder()
.title(“placement_name_here”)
.toBeShownOnActivity(this)//Exercise context
.refreshRateInSeconds(15) //native advert will refresh in 15 seconds
.adListener(new NativeAdListener() {
@Override
public void onAdRecieved(NativeAd nativeAd, boolean b) { //refreshed models will probably be returned right here
//present native advertisements to your structure
//do one thing
}
})
.construct();

    DisplayManager.getInstance().showNativeAd(nativePlacement,exercise);

Advantages

  • 2x Extra Advert Income
  • 3000+ demanding companions
  • Simple Integration
  • Management Over eCPM and Fill Charges


RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments