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);
- 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) .
OfferToro SDK instances should be created in the activity by calling the following method:
After being successfully initialized, Non-Incent OfferWall could be displayed into the app. For displaying the Non-Incent OfferWall
showOfferWallNonIncent() method should be called:
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: