Requesting Non Rewarded Video

Woobi edited this page Aug 21, 2018 · 5 revisions

Woobi Vidget- Non Rewarded Video

In WoobiVidget, It is possible to request non rewarded video ads.

General

Woobi.init() - to optimize the call to any API method, please call the init method in your app as soon as possible. This call carries the required operations for a clean and working state.

You can update the GDPR and Consent by calling the method:
Woobi.setConsentAndGDPRState(this, true, "test");
The default value of GDPR is false and Consent is empty string.

Woobi Vidget Ad needs an ad instance to reveal it's API. To create an ad instance use the following code:
WoobiVidgetAd mWoobiVidgetAd = Woobi.getWoobiVidgetAd(Activity activity, String appId);

Once a WoobiVidgetAd object has been created and before calling get() / getAndShow(), activate the following: mWoobiVidgetAd.requestNonIncentVideo(); This is a setter and will not invoke an ad request.

Following instance creation, configure the ad as you prefer, example setters:
private String mClientId;

Ad API

To present Woobi Vidget Ad, the following API should be activated: mWoobiVidgetAd.getAndShow();

Parameters explained:

appId: The application id as provided in Woobi management system.
clientId: the unique user id. If you do not have the clientId please pass null.

Precache

To precache Woobi Vidget Ad:
mWoobiVidgetAd.get();

To show a precached Vidget Ad:
mWoobiVidgetAd.show();

Custom Params

Parameters as JSONObject that Woobi passes to the RTB server. This can be null if no parameters added.
You can add the custom params to the ad:
JSONObject customParams = new JSONObject();
mWoobiVidgetAd.setCustomParams(customParams);

In any case of confusion or doubt feel free to consult the code in the demo application inside the extension zip file.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.