Table of contents


<aside> ⚠️ This documentation is about opening the Farly hosted offerwall in your user’s browser. If you want to display the offers directly in your page, use the API: Farly API

</aside>

Setting up


<aside> 💡 You will need with your publisher ID. Visit farly.io or contact your Farly representative if you don’t have yours already.

</aside>

<aside> ⚠️ You must replace PUB_ID with your own value !

</aside>

Open the desktop offerwall

To display the desktop offerwall, redirect your user to the following url, with the proper parameters: https://offerwall.farly.io/offers?device=desktop&pubid=PUB_ID&from=wallv2

Mandatory parameters include userid, pubid, from=wallv2, and device=desktop

All parameters are described in the postman documentation of the Wall V2 that you can find here:

OfferWall

Full example of opening the desktop offerwall in javascript

const PUB_ID = ""; // TODO: fill in your publisher id

const parameters = {
  pubid: PUB_ID,
  userid: "youruniqueuserid", //TODO: replace with your own userid
  device: "desktop",
  from: "wallv2",
  // ... any other parameter you want to include to precise the request,
  // see postman documentation of /feed endpoint
};

const offerwallURL =
  "<https://offerwall.farly.io/offers?"> + new URLSearchParams(parameters);

// open this url for your user
window.open(offerwallURL)