VideoLab allows your users to get rewarded for watching videos and content 24/7.
Each 10-15 minutes being watched rewards your user once, at which point - a new session start automatically.
Currently, VideoLab is only available for users from United States. We advice not to display it to users from other countries.
For further details, please contact your account manager.
In order to initialize Videolab, the following parameters should be passed in the initialization call: secret key, app id and user id.
The call should look similar to:
public static final String YOUR_VL_SECRET_KEY = ""; //set your value public static final String YOUR_VL_APP_ID = ""; //set your value public static final String YOUR_VL_USER_ID = ""; //set your value Videolab.getInstance().init(YOUR_VL_APP_ID, YOUR_VL_SECRET_KEY, YOUR_VL_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) .
- If you are using OfferWall and want this activity working there, please follow the OfferWall documentation how to implement (via initializing and implementing listeners if needed), otherwise VideoLab offers will be showing in a separate OS webview as it always was earlier.
OfferToro SDK instances should be created in the activity by calling the following method:
The Videolab module gives a possibility to be notified of events happening in Videolab lifecycle via listeners.
The following listeners are available:
onOTVideolabSessionCreateSuccess(int completion) - invoked when Videolab is successfully initialized and the user has successfully created a Videolab session. The (@param
completion) is a number between 0 and 100 indicating last saved point in previous session;
onOTVideolabSessionCreateFail() - invoked when user failed to create a Videolab session;
onOTVideolabSessionFulfill(int completion) - notify how far the user is from completion;
onOTVideolabSessionCompleted() - invoked when a user successfully completed one Videolab session, and should be rewarded.
onOTVideolabFatalError(int errorCode, String errorMessage) - invoked when Videolab encounters a fatal error (@param
errorMessage) that requires the attention of a higher level program to rectify the problem;
onOTVideolabLog(String message) - invoked periodically with verbose messages (@param
To be notified of Videolab events,
setVideolabListener(VideolabListener listener) method should be called:
After being successfully initialized, Videolab could be displayed into the app.
For displaying Videolab,
showVideolab() method should be called:
OfferToro SDK supports two ways to reward your users. Those are:
To get notified on VideoLab session completions, use the
onOTVideolabSessionCompleted() listener as explained in section 3.
Server to Server postbacks is a more secure way to receive notifications, in order to reward your users.
To receive Server to Server postbacks, you must define your postback URL in your App Placement under your OfferToro account
For more information - Please check this page: