GET /api/v1/offer-wall/offers?pub_member_id=2173&pub_age=25&pub_geo_country=US
This request will return a list of offers filtered by pub_age, and pub_geo_country.
2. Get Offer Details
Publishers should use this endpoint to get details for a specific offer. The offerId parameter is required, and this endpoint creates a view (impression) in GoKart.
Endpoint:GET /api/v1/offer-wall/offer-details
Parameters:
offerId (required): ID of the offer.
viewId: ID of the view.
pub_* parameters (same as used in the offers endpoint).
Example Request:
GET /api/v1/offer-wall/offer-details?offerId=abc123&pub_member_id=2173&pub_age=25&pub_geo_country=US
This request will return the details of the offer with ID abc123 and create an impression for it, returning the viewId.
Handling viewId
When a user first opens the offer details, the GoKart API generates a viewId, indicating that the user has seen this offer's details. It is important to store this viewId and send it again in subsequent requests if the user opens the offer details again. One way to store this viewId is to use the sessionStorage of the browser.