Programmatically fetch, display, and track rewarded game offers using the Prime Earn Partner API. Full reference for all three endpoints, request parameters, response fields, and error codes.
Version 1.3 — added performance_d0, performance_d7, performance_d30 fields to offer objects. See the changelog for details.
The Rewarded Offers API enables you, as an authorised publisher, to programmatically fetch available and active rewarded offers — including mobile games and other app categories — and render them inside your own application or website.Unlike the IFrame Integration, the API gives you full control over the presentation layer while Prime Earn handles offer sourcing, reward logic, and attribution.
Who is this guide for? This document is intended for developers at partner publisher companies who wish to build a custom UI on top of our offer inventory. If you are looking for the no-code solution, refer to the IFrame Integration Guide.
Keep your app token secret. Never expose it in client-side JavaScript, mobile app source code, or public repositories. If your token is compromised, contact your account manager immediately to have it rotated.
Mobile Advertising ID. Pass the user’s IDFA (iOS) or GAID (Android) in this field. Must be provided if available — it significantly improves campaign match rates and attribution accuracy.
birthday
string
Date of birth in YYYY-MM-DD format. Preferred over age — use this whenever you have it.
age
integer
User age (0–150). Only use if birthday is not available.
gender
string
m (Male) or f (Female).
zip
string
Postal / ZIP code. Used for geo-targeted offer matching.
source
integer
Numeric traffic source identifier. Use the ID from the lookup table below.
network
integer
Numeric network identifier. Use the ID from the lookup table below.
placement
string
Describes where in your product the integration is placed (e.g. post_level, main_menu). Useful when you embed the wall in multiple locations and want to compare performance per placement.
locale
string
Interface language. Pass en or en-US to set the wall language to English. Currently only English is supported.
The more user attributes you provide, the better the offer targeting and match quality. maid must always be passed when available. When you have both birthday and age, only send birthday — it is more precise.
Source & Network ID ReferencePass the numeric ID as the value for both source and network. Choose the row that best describes how the user arrived in your app.
When a user’s IP is identified as coming from a VPN or proxy, the API returns HTTP 200 with result: "error" and type: "vpn_detected". Display an error in your UI and ask the user to disable their VPN before retrying.
You can direct users to Prime Earn’s support pages for help with offers or to submit a support ticket. Substitute your real app-key and the user’s external_user_id in the links below: