Documentation

Here you will find all the info you need to integrate the various monetization tools OfferToro has to offer.

Documentation

Android SDK

SDK version 3.0.3
Updated: Dec 02, 2016

5. Non-Incent OfferWall

  • Step 1. Initialize the Non-Incent OfferWall

    In order to initialize Non-Incent OfferWall, the following parameters should be passed in initialization call: secret key, app id and user id.

    The call should look similar to:

    
    public static final String YOUR_NI_SECRET_KEY = ""; //set your value
    public static final String YOUR_NI_APP_ID = ""; //set your value
    public static final String YOUR_NI_USER_ID = ""; //set your value
    
    OTOfferWallNonIncentSettings.getInstance().configInit(YOUR_NI_APP_ID, 
    YOUR_NI_SECRET_KEY, YOUR_NI_USER_ID);

    NOTES:

    - APPID and SECRET_KEY can be found in your OfferToro account, under your "App Placement" settings.

    - UserID, is a parameter which should be passed from your end as an id for each end user of your app. A common practice is to use the Google Advertising ID (GAID) .

    Step 2. Create OfferToro SDK instance

    OfferToro SDK instances should be created in the activity by calling the following method:

    OffersInit.getInstance().create(this);

    Step 3. Display the Non-Incent OfferWall

    After being successfully initialized, Non-Incent OfferWall could be displayed into the app. For displaying the Non-Incent OfferWall showOfferWallNonIncent() method should be called:

    OffersInit.getInstance().showOfferWallNonIncent(activity);

    Step 4. Implement Non-Incent OfferWall listeners

    The OfferToro SDK gives a possibility to be notified of events happening in the Non-Incent OfferWall lifecycle via the Non-Incent OfferWall listeners.

    The following listeners are available:

    onOTOfferWallInitSuccess() - invoked when Non-Incent OfferWall is successfully initialized;

    onOTOfferWallInitFail(string errorMessage) - invoked when Non-Incent OfferWall initialization fails and receives (@param errorMessage) describing the reason for fail;

    onOTOfferWallOpened() - invoked when Non-Incent OfferWall is displayed;

    onOTOfferWallClosed() - invoked when Non-Incent OfferWall is closed.

    To be notified of Non-Incent OfferWall events setOfferWallNIListener(OfferWallNonIncentListener listener) method should be called:

    OffersInit.getInstance().setOfferWallNIListener(OfferWallNonIncentListener listener);