How to integrate Web Offerwall into your webpage
Implement the Web Offerwall using custom JavaScript.
Read time 1 minuteLast updated 3 hours ago
Here is the sample HTML code. Update the SDK_KEY with the one provided by our team. USER_ID must be unique for each user. PLACEMENT_NAME is an optional parameter which has default value as
#WebOfferwall
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> </head> <body> <script> (() => { var t, a, p, j, o, y; (t = window), (a = document), (p = 'https://rewards.unity.com/owp/web/sdk/latest'), 'function' == typeof t[(j = 'Tapjoy')] ? t[j]('activator-reinitialized') : ((t[j] = function () { (t[j].q = t[j].q || []).push(arguments); }), (t[j].l = 1 * new Date()), (o = a.createElement('script')), (y = a.getElementsByTagName('script')[0]), (o.async = 1), (o.src = p), y.parentNode.insertBefore(o, y)); })(); </script> <script> Tapjoy('init', { sdkKey: '<SDK_KEY>', publisherUserId: '<USER_ID>', eventName: '<PLACEMENT_NAME>', }); </script> <button onclick="javascript:Tapjoy('showOfferwall', {});">Click Me</button> </body> </html>