General Information
Postback Url:
This is the web address/url where your script is located.
Password:
Using a password is a great way to ensure your scripts don't become compromised. When we call your postback script you will be able to check against this password to ensure its our servers that are posting to you.
This is the web address/url where your script is located.
Password:
Using a password is a great way to ensure your scripts don't become compromised. When we call your postback script you will be able to check against this password to ensure its our servers that are posting to you.
Variable Information & Examples
The Global Postback System sends [POST] variables to pass information to your server. Below your will find a list of posted variables and an example PHP script showing these variables in action.
[POST] Variables sent in Postbacks:
Variable |
Description |
Examples |
| password | This contains the password that you enter on this page and is used to verify that only our server can make posts to your scripts. | secretpassword |
| payout | This is the payout amount for the offer completed. | 0.99, 1.00, 4.20 |
| offer_id | This is the offer id telling you which offer was completed. | 80, 195, 40 |
| tracking_id |
Tracking ID or "Subid" of the user that completed the offer. This could be a users id, email address, or unique username. You can define this by appending &tracking_id= to the end an offer link or at the end of a monetization tool's src url.
Offer URL Example:
http://www.cpagrip.com/show.php?u=2549038&id=offer_id&tracking_id=812947 Content Tool URL Example: http://www.cpagrip.com/script_include.php?id=tool_id&tracking_id=812947 |
812947, name@site.com, simon123 |
*Optional [GET] Variables to be used in Postback URL:
Variable |
Example Postback URL |
| {payout} |
Example:
http://www.site.com/file.php?payout={payout}
|
| {offer_id} |
Example:
http://www.site.com/file.php?offer={offer_id}
|
| {tracking_id} |
Example:
http://www.site.com/file.php?subid={tracking_id}
|
PHP Example: (examples apply for your server and are just for informational purposes.)
<?php if($_POST['password'] != 'secretpassword'){ echo "Access Denied."; exit; } mysqlx_query("UPDATE users SET total=total+".$_POST['payout']." WHERE tracking_id=".$_POST['tracking_id'],$db); ?>
CPAGrip A.I. Assistant