Documentation

​
​

Development

User Acquisition

Monetization

Industry

Unity Offerwall

Offerwall Android SDK

Offerwall iOS SDK

Offerwall Unity SDK

Unity Offerwall

Tapjoy Offerwall
​
​
Integration
  • Quickstart
Displaying Offerwall
  • Deep linking
  • Custom js integration
Advanced
  • API reference
  • Installation and authentication
  • User privacy
Testing
  • Test devices
  1. Grow your game
  2. Unity Offerwall
  3. Web Offerwall

API Reference

Detailed reference for the Web Offerwall JavaScript API.
Read time 3 minutes
Last updated 6 months 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

sdkKey</TableCell>       <TableCell>ID</TableCell>       <TableCell>
-`
Application SDK key.
publisherUserId
string
-
Publisher User ID used to reward users.
ageRestrictedUser
boolean
false
Refer to User Privacy for value descriptions.
gdprConsentGiven
boolean
false
Refer to User Privacy for value descriptions.
userSubjectToGdpr
boolean
false
Refer to User Privacy for value descriptions.
usPrivacy
string
1---
Refer to User Privacy for value descriptions.
eventName
string
#WebOfferwall
Placement name.
preload
boolean
false
Whether to preload offerwall content.
callback
function
() => {}
Callback when initialization has completed.
userTags
array
[]
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');

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.

  • On this page
    • init

    • update

    • preload

    • showOfferwall

    • closeOfferwall


Report a problem with this page