Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api-documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ $sig = base64_encode(hash_hmac("sha1" , "$reward_conversion$reward_name$click_id
In order to get a list of surveys for the json offerwall integration you are required to set **"offerwall"** parameter to **"true"** and **"content_type"** parameter to **"json"**.
This way you can retrieve a longer list of surveys than the html version (limited to 60), along with an HTTP responce code of 200. If no matching surveys are found then the response body will be empty with an HTTP response code of 204.

When the necessary demographics are not know for a specific device id (a user) then the the response will contain one "Demographic Survey" and the flag **"hasDemographics"** will be set to false. This Demographic survey (**"survey_class":"Pollfish/Demographics"** ), is part of the onboarding process of the user and it does not deliver any revenue when it gets completed (CPA =0). When a Demographic survey is presented, the users has to answer all the demographic questions in order to unlock the list of Pollfish and Mediation surveys. New demographic questions might be added from time to time (or re-asked) and surveys might be locked again until those are answered in the relevant demographic survey.
When the necessary demographics are not know for a specific device id (a user) then the response will contain one "Demographic Survey" and the flag **"hasDemographics"** will be set to false. This Demographic survey (**"survey_class":"Pollfish/Demographics"** ), is part of the onboarding process of the user and it does not deliver any revenue when it gets completed (CPA =0). When a Demographic survey is presented, the users has to answer all the demographic questions in order to unlock the list of Pollfish and Mediation surveys. New demographic questions might be added from time to time (or re-asked) and surveys might be locked again until those are answered in the relevant demographic survey.

If the **"content_type"** parameter is set to **"html"** or is ommited then the request will be served like an ordinary offerwall request, returning an html page with the surveys matched for each device_id (user).

Expand Down