Documentation

Support

API Reference

Detailed reference for the Web Offerwall JavaScript API.
Read time 1 minuteLast updated 3 hours ago

init

Init call must be called before showing offerwall content. By default, offerwall content is being preloaded.
Tapjoy('init', options);

Option

Type

Default Value

Description

sdkKeyID
-
Application SDK Key
publisherUserIdstring
-
Publisher User ID used to reward users
ageRestrictedUserboolean
false
See User Privacy for value descriptions.
gdprConsentGivenboolean
false
See User Privacy for value descriptions.
userSubjectToGdprboolean
false
See User Privacy for value descriptions.
usPrivacystring
1---
See User Privacy for value descriptions.
eventNamestring
#WebOfferwall
Placement Name
preloadboolean
false
Whether to preload offerwall content
callbackfunction
() => {}
Callback when initialization has completed
userTagsarray
[]
User Tags. For example:
TAG1
,
TAG2

update

Update call updates initial data and acts as a reset for the SDK.

preload

Tapjoy('preload', options);

Option

Type

Default Value

Description

callbackfunction
(err, status) => {}
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

nodeHTMLElement
document.body
N/A
callbackFunction
noop
Function that is being called with current offerwall status

closeOfferwall

Closes any active offerwall windows.
Tapjoy('closeOfferwall');