API Reference
Detailed reference for the Web Offerwall JavaScript API.
Read time 1 minuteLast updated 20 days ago
init
Init call must be called before showing offerwall content. By default, offerwall content is being preloaded.
Option | Type | Default value | Description |
|---|
sdkKey</TableCell> <TableCell>ID</TableCell> <TableCell>
-` | Application SDK key. |
| string | | Publisher User ID used to reward users. |
| boolean | | See User Privacy for value descriptions. |
| boolean | | See User Privacy for value descriptions. |
| boolean | | See User Privacy for value descriptions. |
| string | | See User Privacy for value descriptions. |
| string | | Placement name. |
| boolean | | Whether to preload offerwall content. |
| function | | Callback when initialization has completed. |
| array | | User Tags. For example: , |
update
Update call updates initial data and acts as a reset for the SDK.
preload
Tapjoy('preload', options);
Option | Type | Default Value | Description |
|---|
| callback | function | | Callback when content is loaded |
showOfferwall
Init call must be called before showing offerwall content. By default, offerwall content is being preloaded.
Tapjoy('showOfferwall', options);
Option | Type | Default Value | Description |
|---|
| node | HTMLElement | | N/A |
| callback | Function | | Function that is being called with current offerwall status |
closeOfferwall
Closes any active offerwall windows.
Tapjoy('closeOfferwall');