Mopub Android Wrapper

(Redirected from Mopub android wrapper)
Jump to: navigation, search

Pokkt Integration to MoPub

Last Update: 2nd June, 2020

Pokkt SDK version required: 8.0.0

MoPub SDK version used: 5.12.0

Download Latest Version MoPub Wrapper.

Step 1: Getting Started

The following instructions assume you have already integrated MoPub SDK into your application.

Step 2: Adding Your Application to Your Pokkt Publisher's Account

  • Create Account and log-in at
  • Add your application and get its application Id and Security key.

Step 3: Pokkt Integration



  • Add PokktSDK_v8.0.0.aar or PokktSDK_v8.0.0.jar to your project.


Permissions Declarations

Add the following permissions to your project manifest

  1. Mandatory permissions.

    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    • android.permission.INTERNET = Required for SDK communication with server.
    • android.permission.ACCESS_NETWORK_STATE = Required to detect changes in network, like if WIFI is available or not.

Activity Declaration

Add the following activity in your AndroidManifest for Pokkt SDK integration.

   android:windowSoftInputMode="stateAlwaysHidden|adjustUnspecified" />

You can change the android screenOrientation landscape to portrait of your choice, the way you want to display the ads.


  • Add PoktSDK to your project’s Assets->Plugins->Android folder.
  • PokktSDK Unity Plugin is not needed for MoPub Mediation.

Step 4: Adding a Custom Event

  1. Sign in to your MoPub account at
  2. Click Add a network under Networks tab.

    Mopub network andr.jpg

  3. Click Custom Native Network and set up the inventory against your app.
    Mopub custom net andr.jpg
  4. Provide the following details:
    • Custom Event Class:Enter the name of the custom event class.
      • For Rewarded Video: Enter com.mopub.mobileads.PokktMoPubCustomRewardedVideo
      • For Interstitial: Enter com.mopub.mobileads.PokktMoPubCustomInterstitial
      • For Banner: Enter com.mopub.mobileads.PokktMoPubCustomBanner
      • For Banner: Enter com.mopub.mobileads.PokktMoPubCustomEventNative
    • Title:Enter the name for the custom event. This is used in reporting and cannot be changed later.
    • Custom Event Class Data:Enter a JSON string as follows:

      "SCREEN":"Screen ID Created on Pokkt Dashboard",
      "POKKT_APP_ID":"Pokkt App Id",
      "POKKT_SEC_KEY":"Pokkt App Security Key",
      "POKKT_THIRD_PARTY_USERID":"Unique user id as in your app",
      "POKKT_REWARD_NAME":"Virtual currency As per your App",
  5. Click Save Section.
  6. Open Global segment and enable the newly created Ad Network against the ad units of your app.

    Mopub segment andr.jpg

Step 5: Testing your application

Congratulation - that's it! You may now run your app and see Pokkt ads in action.