3:40am
$0.00
Home
Offer Tools
JSON Offer Feed
0
Your JSON Feed URL:
https://www.cpagrip.com/common/offer_feed_json.php?user_id=608004&pubkey=6d0e76a41d0fd151a4040f796ea8de1b&tracking_id=
Use public key for client-side JSON integration for per-visitor results with recorded views
Use private key for server-server JSON integration for complete sets of offers by type or geo
Tracking Domain:
www.cpagrip.com (Default)
JSON Offer Feed Variable Information & Examples
The JSON Offer Feed is a great way to integrate you own offer display system with our network. Below your will find a list of url request variables and their descriptions along with an example PHP script showing you how to use this tool for a virtual currency display.
JSON Feed URL Variables:
Variable Required
&user_id= *Required
This is your affiliate id and is required to process your offer feed.
608004
&pubkey= *Required for client-side integration
This is your public access key and is required to process your offer feed.
6d0e76a41d0fd151a4040f796ea8de1b
&key= *Required for extended results
This is your unique private access key and is required to process your offer feed.
768d92e44ec089c976b8a6aad71e282f
&ip= Optional
This is the ip address of your visitor that you want to show the offers to. It's important that we know the ip address of your visitor so we can display the proper offers for their country.
Note:
If this variable is blank then the ip of the machine making the JSON request will be used instead.
185.160.227.164
&tracking_id= Optional
Tracking ID of the user that is going to complete an offer. This could be a users id, email address, or unique username.
812947, email@website.com, simon123
&lid= Optional
Requires public key
Compatable with view recording
Locker ID. Passing a locker ID will enable all customized offer settings associated with the locker on this feed. Only available when using your public access key.
123456
&ua= Optional
User Agent of your user. By collecting the user agent, we can automatically determine if web or mobile offers should be displayed.
Note: The user agent will be automatically detected if you are using web browser jquery/javascript and not server side code.
Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101 Firefox/4.0
&limit= Optional
Compatable with view recording
Maximum number of offers to display in RSS.
5
&domain= Optional
This option sets the doman used for offer links as provided as it is a valid vanity domain.
rushingfolder.com, avantofiles.com, crystalfolders.com
&showmobile= Optional
Requires private key
Not compatable with view recording
This option (when set as yes, true or 1) will include mobile offers in your json feed, or only mobile offers when set to 'only'.
{blank}, yes, true, 1, only
&showall= Optional
Requires private key
Not compatable with view recording
This option (when set as yes, true or 1) will include all geos and capped offers in your json feed..
Can be combined with 'showmobile' and 'country' to limit scope while still returning capped offers.
{blank}, yes, true, 1
&country= Optional
Requires private key
Not compatable with view recording
This option accepts a two character country code to restrict offers in your json feed to one specific country.
{blank}, US, GB
&offer_type= Optional
Compatable with view recording
This option accepts text to restrict offers in your json feed to one specific type of offer.
{blank}, 'Pin-Submit', 'Mobile Install', 'Free Survey'
&callback= Optional
Compatable with view recording
This option accepts text to restrict offers in your json feed to one specific type of offer.
{blank}, any valid JavaScript user defined function name
Jquery/Javascript Example: (examples apply for your web pages.)