Home Game Development How to Integrate AdPumb SDK for Mobile Ad Mediation? – Third-Party

How to Integrate AdPumb SDK for Mobile Ad Mediation? – Third-Party

0
How to Integrate AdPumb SDK for Mobile Ad Mediation? – Third-Party

[ad_1]

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

How Does it Work?
Integrate AdPumb SDK within the writer’s app so as to get management over eCPM and Fill Rates

How to Integrate?

  • Ad Your Publisher 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 that you must config the important thing to AndroidManifest.xml. Then add metadata with the identify “com.adpumb.config.key”.

Placing Ad Formats

Interstitial
non-public void onAdditionButtonClick() {
InterstitialPlacement addition = new InterstitialPlacementBuilder()
.identify(“addition”) //Name of the location is essential. Revenue dashboard will monitor the location based mostly on the identify given.
.construct();
DisplayManager.getInstance().presentAd(addition);
}

Rewarded
non-public void onAdditionButtonClick() {
RewardedPlacement rewardedPlacement = new RewardedPlacementBuilder()
.identify(“placementName”)
.loaderTimeOutInSeconds(5)
.onAdCompletion(new AdCompletion() {
@Override
public void onAdCompletion(boolean success, PlacementDisplayStatus placementDisplayStatus) {
if (success){
Toast.makeText(mActivity, “You have successfully watched Rewarded Ad”, Toast.LENGTH_SHORT).present();
}else {
Toast.makeText(mActivity, “please watch Rewarded Ad – “+placementDisplayStatus.identify(), Toast.LENGTH_SHORT).present();
}
}
})
.construct();
DisplayManager.getInstance().presentAd(rewardedPlacement);
}

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

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

Benefits

  • 2x More Ad Revenue
  • 3000+ demanding companions
  • Easy Integration
  • Control Over eCPM and Fill Rates

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here