🎁Session Performance Postbacks

If you have a use-case where you need an estimate of revenue generated per user session, you can use Gamezop's Session Performance Postbacks to meet that use case.

Why do I need this?

If your app or website rewards users for completing tasks (like playing games or engaging with content) you need visibility into the value each user actually generates. Session Performance Postbacks give you that insight.

For example, if you’ve added a “Play Games” section powered by Gamezop, you can use these postbacks to know approximately how much revenue each session drove. This lets you distribute rewards fairly while keeping your program profitable.


How it works

Steps you need to follow to consume our Session Performance Postbacks:

Step 1: Create a Postback URL

Set up an endpoint on your server where we can send session data via HTTP POST after every user session.

Your Postback URL should:

  • Accept POST requests containing JSON data (details below).

  • Respond with HTTP 200 when you successfully record the data.

    • Any other status code will be treated as a failure on your end.

Optionally, you can secure the postbacks using Bearer Token authentication. Just share your token with us when you provide the Postback URL, and we’ll include it in the Authorization header for every request.

Step 2: Append a User ID when sending users to us

When redirecting users to any Gamezop link, append a sub parameter to pass a unique user identifier. This lets us include that same identifier in the postback payload we send to your server.

For example, if you’re embedding games via the All Games API and a game’s URL is:

https://www.gamezop.com/g/9lpHai56Q

and your user’s unique ID is d73e8d1d, open:

https://www.gamezop.com/g/9lpHai56Q?sub=d73e8d1d

We’ll then include sub: d73e8d1d in the data payload of the Session Performance Postback for that session.

Step 3: Receive and process the Postback payload

After each user session ends, we’ll send a POST request to your Postback URL with a JSON body containing all relevant metrics for that session. This data helps you record and act on each user’s performance and revenue contribution.

A typical payload looks like this:

{
  "user-id": "sub1",
  "session-id": "b48a8368-a369-49a4-b427-2d5891ef3763",
  "country": "IN",
  "count-of-ads-viewed": 1,
  "your-estimated-revenue": "0.000012",
  "session-duration": 163
}

Notes on the payload fields:

Key
Description

user-id

This is the sub value sent by you to us

session-id

Unique identifier for the user's session generated by us (useful for deduplication)

country

The ISO 3166-1 alpha-2 country code for the country where the conversion was recorded

count-of-ads-viewed

Our estimate on the number of ads viewed by the user in that particular session

your-estimated-revenue

Our estimate of of ad revenue generated in that particular session, in USD

session-duration

Duration of the session, in seconds

Upon receiving our postback, your server should:

  • Validate the Bearer Token, if you chose to enable it.

  • Record the payload data into your system.

  • Respond with HTTP 200 upon success.


Other notes

  • Ad networks do not provide session-level revenue data in real time. To ensure timely reporting, we estimate session revenue using your historical performance data and other signals. This number should NOT be taken as a guarantee of booked revenue. We recommend maintaining a sufficient buffer in your reward calculations to account for any such variance.

  • For each user session, you’ll receive the Session Performance Postback approximately 10–12 minutes after that session ends.

Last updated

Was this helpful?