Documentation Index
Fetch the complete documentation index at: https://docs.primeearn.com/llms.txt
Use this file to discover all available pages before exploring further.
Offers IFrame Integration Guide
Embed the PrimeEarn Games & Offers wall directly into your app or website using an IFrame or WebView. This guide walks you through the full setup in six steps.Step 1 — Get Your URL
Your dedicated offers/games wall URL is:XXXXXXXX with your Publisher App ID and Test123 with your user’s unique identifier (see Step 3).
Need the combined wall (Surveys + Games)? Use
https://monetize.primeearn.com/featured?app=XXXXXXXX&uuid=Test123 instead.Step 2 — Implement in Your App or Website
Choose the integration method that fits your platform:WebView (Mobile Apps)
Load the URL inside a native WebView component. Make sure the WebView has:- JavaScript enabled
- DOM storage enabled
- Redirect/navigation handling so external links open in a browser
IFrame (Web)
New Browser Tab
If an IFrame is not suitable, open the URL in a new tab:Step 3 — Pass Parameters
Replace theuuid placeholder with a unique, stable identifier for the current user. This ties offer completions to the correct account.
| Parameter | Required | Description |
|---|---|---|
app | Yes | Your Publisher App ID (provided in your dashboard) |
uuid | Yes | A unique, persistent ID for the end user |
maid | If available | Mobile Advertising ID — IDFA on iOS or GAID on Android. Must be provided when available; significantly improves performance. |
age | No | User age for offer targeting (0–150). |
birthday | No | Date of birth in YYYY-MM-DD format. Preferred over age when both are available. |
gender | No | User gender: m (Male) or f (Female). |
zip | No | Postal / ZIP code for geo-targeted offer matching. |
Step 4 — Customize Design
The offers wall supports several design parameters you can append to the URL.| Parameter | Values | Description |
|---|---|---|
theme | light / dark | Sets the color scheme |
color | Hex code (e.g. 3498db) | Primary accent color (no #) |
logo | URL-encoded image URL | Your brand logo displayed at top |
Step 5 — Handle Rewards via Postback
When a user completes an offer or game milestone, PrimeEarn fires a server-to-server postback to your configured callback URL.Postback URL Format
Configure your callback URL in the dashboard. PrimeEarn will substitute the placeholders at the time of the event:Postback Parameters
| Parameter | Type | Description |
|---|---|---|
{reward} | Integer | Amount of in-app currency to award to the user |
{payout} | Integer/Float | Publisher payout in USD |
{type} | Integer | Event type (see table below) |
{user} | String | The unique user ID you passed as uuid |
{tx_id} | String | Unique transaction ID for deduplication |
Games/Offers Event Types ({type})
| Value | Event | Description |
|---|---|---|
7 | Completed | Offer/game task fully completed and credited |
9 | Reconciled | Transaction reconciled after review. tx_id starts with R- |
11 | Pending | Initial postback during a Credit Delay 7 offer |
Understanding Credit Delay 7
Credit Delay 7 ExplainedSome game offers operate on a 7-day credit delay:
- Immediately when the user completes the task, you receive a
PENDINGpostback (type=11). - After 7 days, one of the following is sent:
COMPLETED(type=7) — task was verified and credit is confirmed.RECONCILED(type=9) — transaction was reconciled. Thetx_idfor reconciled events will begin withR-.
COMPLETED (type=7) or RECONCILED (type=9) postback.Whitelisting IPs
Ensure your server accepts postback requests from these PrimeEarn IPs:Step 6 — Go Live
Before enabling for all users, run through this checklist:- Replace
XXXXXXXXwith your real Publisher App ID - Replace
Test123/uuidwith your real user ID logic - Configure your postback URL in the PrimeEarn dashboard
- Whitelist the PrimeEarn IP addresses on your server
- Test a full offer completion in a staging environment and verify your postback receives the correct parameters
- Handle
PENDING(type=11) postbacks without immediately granting rewards - Verify deduplication logic using
{tx_id}, notingR-prefix for reconciled events