Adjump
VersionHome Page
  • Adjump SDK Documentation
  • ANDROID
    • 📲SDK Setup
    • ⚡SDK Initialization
    • 🛠️ProGuard Rules
  • REACT NATIVE
    • 📲SDK Setup
    • ⚡SDK Initialization
    • 🛠️ProGuard Rules
  • Flutter
    • 📲SDK Setup
    • ⚡SDK Initialization
    • 🛠️ProGuard Rules
  • Payout
    • 🔌S2S Postback Setup
Powered by GitBook
On this page
  • Initializing the AdJump.
  • Initialize AdJump SDK:
  • Open the Adjump offerwall
  1. ANDROID

SDK Initialization

Initializing the AdJump.

You must initialize the AdJump SDK before you can use any of its features.

AdJump adjump = new AdJump(Context context, String accountid, String appid, String userId);
val adjump = AdJump(context:Context, accountid:String, appId:String, userId:String)

The parameters to this call are as follows:

Parameter
Description

context

Your application's context.

accountId

Your Adjump account id.

appId

Your Adjump application id.

userId

The registered User Id associated with your application.

Initialize AdJump SDK:

Initialize the AdJump OfferWall SDK by invoking the initialize function

adJump.initialize(new AdJump.InitialisationListener() {

       @Override
       public void onInitialisationSuccess() {
          runOnUiThread(() -> Toast.makeText(HomeActivity.this, "SDK Initialized Successfully", Toast.LENGTH_SHORT).show());

        }

        @Override
        public void onInitialisationError(Exception exception) {
                // An error occurred during initialization
           runOnUiThread(() -> Toast.makeText(HomeActivity.this, "Failed to Initialize SDK", Toast.LENGTH_SHORT).show());
           
    }
});
adJump.initialize(object : AdJump.InitialisationListener {

       override fun onInitialisationSuccess() {
          runOnUiThread { Toast.makeText(this@HomeActivity, "SDK Initialized Successfully", Toast.LENGTH_SHORT).show() }
        }

        override fun onInitialisationError(exception: Exception) {
           // An error occurred during initialization
           runOnUiThread { Toast.makeText(this@HomeActivity, "Failed to Initialize SDK", Toast.LENGTH_SHORT).show() }
        }
        
})

Open the Adjump offerwall

To initiate the OfferWall, simply invoke the launchOfferWall method.

if (adjump.isAvailable()) {
adjump.launchOfferWall(); 
} else {
// show some message or alert when adjump is not available!
// or reinitialize Adjump
}
if (adjump.isAvailable) {
    adjump.launchOfferWall()
} else {
    // show some message or alert when adjump is not available!
    // or reinitialize Adjump
}

PreviousSDK SetupNextProGuard Rules

Last updated 2 months ago

⚡