Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Mobrand android monetization SDK


  • This documentation is intended to help you integrate Mobrand's android monetization SDK.

Getting started

  • Before starting to monetize with mobrand you will need a publisher account. You can login or register on our site.
  • create or get the id of the apps your wish to monetize, the id will be required later on.

Android Native

If you want to use the Mobrand monetization SDK natively on your android app this guide is for you.

Add the Mobrand monetization SDK on your gradle dependencies :

implementation 'com.mobrand:android-sdk:1.0.6'

Banner Ads

Add AdView to the layout


Banner sizes

  • You can pick any of the 3 banner sizes provided by mobrand.
Banner Type Size in dp (WxH)
MobrandBanner 320x50
MobrandLargeBanner 320x100
MobrandFullBanner 468x60
  • Changing the banner type will change the size of the banner, custom banner size are not yet available.

Load an ad

  • call fetchAd() and pass in your appid , remember you can get the id here
    MobrandBanner banner = findViewById(;

Your app is now ready to display the Mobrand banner ads.

Interstitial Ads

Update your AndroidManifest.xml

<activity android:name="com.mobrand.sdk.intersitial.InterstitialActivity" />

Create the interstitial and call fetchAd() and pass in your appid , remember you can get the id here

mInterstitial = new InterstitialAd(this);
    .setCountDown(2)  // our default is 4
You can change the number of seconds the user needs to wait before closing the interstitial by setting the countdown

To show an interstitial, use the isLoaded() method to verify that it's done loading, then call show()

    if (mInterstitial.isLoaded()) {;
    } else {
        Log.d("TAG", "The interstitial wasn't loaded yet.");

If you want to show the add as soon as it loads, add setShowOnload()

    mInterstitial = new InterstitialAd(this);
        .setShowOnload()    // this will open the interstitial as soon as it is loaded

Admob Mediation

If you want to use the Mobrand monetization SDK using Admob mediaion on your android app this guide is for you. This guide assumes you are already integrated and working with admob, if not, please do so here.

Add the Mobrand Admob Mediation SDK on your gradle dependencies :

implementation 'com.mobrand:android-admob-mediation:1.0.8'

No further code changes are required, now all we need to do is create a mediation group on admob.

Go to admob mediation group , and click "Create Mediation Group".


Select ad format (Banner) & platform. Rewarded formats are not available yet.


Configure the mediation group. Click "ADD AD UNITS" and select the ad unit that you wish to mediate.


On Ad Sources, click "ADD CUSTOM EVENT"


Give it a name and the wanted eCPM.


Set the Class Name as "com.mobrand.mobrand.admob.mediation.MobrandEventBanner" and the Parameter with your App Id.


Click Save to save the mobrand mediation group

You can’t perform that action at this time.