Difference between revisions of "Affiliate Host and Post"

From Offerit
Jump to: navigation, search
(Generating a Click Hash)
 
(10 intermediate revisions by 3 users not shown)
Line 14: Line 14:
 
<pre>
 
<pre>
 
http://demo.offerit.com/track/offeritdemo.9.4.6.0.0.0.0.0.0.0.0?hostnpost=1
 
http://demo.offerit.com/track/offeritdemo.9.4.6.0.0.0.0.0.0.0.0?hostnpost=1
 +
</pre>
 +
 +
Below is an example using an iframe that can be placed on a page to track views:
 +
<pre>
 +
<iframe src="http://demo.offerit.com/track/offeritdemo.9.4.6.0.0.0.0.0.0.0.0?hostnpost=1" style="width:0;height:0;border:0; border:none;"></iframe>
 +
</pre>
 +
 +
Below is an example using jquery that can be placed on a page to track views:
 +
<pre>
 +
<!-- include jquery library-->
 +
<script type="text/javascript" src="jscript/jquery.js"></script>
 +
<!-- use jquery post function -->
 +
<script>
 +
$.post(
 +
"http://demo.offerit.com/track/offeritdemo.9.4.6.0.0.0.0.0.0.0.0", //change this to be a tracking link from your Offerit install
 +
{ hostnpost: "1" }
 +
);
 +
</script>
 +
</pre>
 +
 +
If you are instead using a server post like cURL instead of a javascript request, you can send us the ip of the surfer with the optional field s2s_ip.  When passed, Offerit will check this surfer IP against our IP logs and determine if the incoming hostnpost click should be treated as unique visitor or a page view. 
 +
<pre>
 +
http://demo.offerit.com/track/offeritdemo.9.4.6.0.0.0.0.0.0.0.0?hostnpost=1&s2s_ip=111.111.111.111
 +
</pre>
 +
 +
If you are using a server post and for any reason cannot send the ip of the surfer, you should instead send the field s2s.  Passing this parameter will force Offerit to treat the post as a unique visitor rather than a page view
 +
<pre>
 +
http://demo.offerit.com/track/offeritdemo.9.4.6.0.0.0.0.0.0.0.0?hostnpost=1&s2s=1
 +
</pre>
 +
 +
Here is an example using PHP to make a server post with cURL:
 +
<pre>
 +
<?php
 +
 +
$ch = curl_init();
 +
$params= Array(
 +
'hostnpost' => 1, //to indicate we are using hostnpost method
 +
's2s_ip' => "111.111.111.111", // the ip of the surfer so we can check if this is a unique click or an impression
 +
//'s2s' => 1, // use this parameter to force the post to record as a unique visitor click instead of an impression
 +
);
 +
$settings = array(
 +
CURLOPT_URL => 'http://demo.offerit.com/track/offeritdemo.9.4.6.0.0.0.0.0.0.0.0', //change this to be a tracking link from your Offerit install
 +
CURLOPT_POST => true,
 +
CURLOPT_POSTFIELDS => $params,
 +
CURLOPT_RETURNTRANSFER => true,
 +
);
 +
 +
curl_setopt_array($ch, $settings);
 +
 +
$output = curl_exec($ch);
 +
curl_close($ch);
 +
 +
print_r($output);
 
</pre>
 
</pre>
  
Line 85: Line 138:
 
**'' *success*
 
**'' *success*
  
 
+
<div style="display:none;">[[File:Screenshotfrom20140529_163806.png]]</div>
  
 
[[Category:Offerit Affiliate Information]]
 
[[Category:Offerit Affiliate Information]]

Latest revision as of 10:28, 5 July 2017

Offerit
For Affiliates
Automatic SubIDs
Affiliate Stats Dumps
Linkcode
Link Groups
Affiliate Custom Pixels
Affiliate Host and Post
Offerit Affiliate Area
Affiliate Account Details
Affiliate Account Change Log
Affiliate Creatives
Affiliate Creatives Search
Affiliate Settings
Affiliate Custom Pixels
Affiliate Linkcodes
Affiliate Linkcode Settings
Affiliate Login History
Affiliate Messages
Affiliate Dashboard
Dashboard Key Statistics
Dashboard Statistics Summary
Affiliate Payment History
Quick Links
Affiliate Referrals Report
Affiliate Referring URL Report
Affiliate Remote Login
Affiliate Signup
Affiliate Statistic Filters
Affiliate Statistic Views
Affiliate SubIDs
Offerit Setup
Creating Admin Accounts
Tracking Domain
Edit Affiliate Text
Edit CSS Colors
Getting Started Admin
Offerit Quick-Start Guide
Tracking in Offerit
Pixel Builder
Offerit Postback Examples
Replacement Variables
Currency Exchange Rates

Admin Dashboard
The Admin Dashboard
Reporting Admin
The Reporting Admin
Track and Strack
  Report Breakdowns
Profit and Loss Report
Subscription Report
Transactions Reports
Affiliate Ratios Report
Affiliate Managers Report
Visitor Actions Report
Referral Tier Payouts Report
Referral Signup Payouts Report
Additional Commissions Report
Graphical Affiliate Comparison Report
The Single Day Comparison Report
Actual Affiliate Payments Report
Offers Admin
The Offers Admin
Offers
Offer Setup
Affiliate Referrals
Tracking Domain
Commissions
Commission Changes
Suppression Lists
Pixel Builder
ID Numbers
Offer Partner
Offer/Landing Page Redirection
Setting Rules
Admin Host and Post
Offer Post URLs
Offer Goals
Affiliates Admin
The Affiliates Admin
ID Numbers
Affiliate Managers
Affiliate Referrals
Affiliate Activation
Admin-Only Settings
Affiliate Overrides
Creating Admin Accounts
In-House Accounts
Add Manual Sale
Manual Invoice
Affiliate Documents
Affiliate Enabled Offers
Change Affiliate Status
Account Changes
Advertisers Admin
The Advertisers Admin
Account Changes
Advertiser Invoices
Generate Invoice
Advertiser Approval
Change Advertiser Status
Customers Admin
Customers Admin
Manually Adding a Customer
ID Numbers
Payments Admin
The Payments Admin
Payvia Types
Payout Periods
Payvia Dump Formats
Payment Dump Entry Numbers
Payment Dump Variables
Check Functions
Setting Rules
Payment Methods
Payza
Creatives Admin
The Creatives Admin
Add New Creatives
Add New Creative Type
Offeritcode
Code Builder
Track and Strack
Setting Rules
  Default Creative Types
Creative Types
Image Banners
Flash Banners
Dynamic Text Banners
Feeds
Mailers
Video Download
Video Embed
Page Peels
IM Popups
Footer Ads
Page Ads
Overlays
Communications Admin
The Communications Admin
Add News Item
Sending Messages
Signup Questions
Configuration Admin
The Configuration Admin
Affiliate Signup Postback URL
Edit Affiliate Text
Edit CSS Colors
REST API
General
Offerit REST API Overview
GET /service/ping
PATCH /service/set_currency_exchange_rates
Advertiser
PATCH /advertiser/edit_advertiser
POST /advertiser/add_advertiser
Affiliate
GET /affiliate/get_links
GET /affiliate/get_single_link
GET /affiliate/search
GET /affiliate/decode_trackingcode
PATCH /affiliate/edit_affiliate
PATCH /affiliate/payvia
POST /affiliate/add_affiliate
POST /affiliate/affiliate_login_ips
Config
GET /config/get_global_void_ips
GET /config/get_global_post_ips
GET /config/get_global_hostnpost_ips
POST /config/add_global_void_ip
POST /config/remove_global_void_ip
POST /config/add_global_post_ip
POST /config/remove_global_post_ip
POST /config/add_global_hostnpost_ip
POST /config/remove_global_hostnpost_ip
Creative
GET /creative/get_creatives
GET /creative/get_creative_fields
GET /creative/get_creative_rules
PATCH /creative/delete_creative
PATCH /creative/edit_creative
PATCH /creative/edit_creative_rules
PATCH /creative/undelete_creative
POST /creative/add_creative
POST /creative/add_creative_rule
POST /creative/delete_creative_rules
Customer
PATCH /customer/set_customer_details
PATCH /customer/lock
PATCH /customer/unlock
PATCH /customer/forget
GET /customer/export
Offer
GET /offer/get_conversion_caps
GET /offer/check_orderid_exists
GET /offer/get_commission_changes
GET /offer/get_details
PATCH /offer/activate_offer
PATCH /offer/edit_landing_page
PATCH /offer/edit_offer
PATCH /offer/pause_offer
PATCH /offer/set_commission_change_payouts
PATCH /offer/set_enabled_affiliates
PATCH /offer/set_offer_categories
PATCH /offer/set_offer_countries
PATCH /offer/set_offer_goals
PATCH /offer/set_offer_groups
PATCH /offer/set_offer_marketing_types
PATCH /offer/store_offer_ips
POST /offer/add_commission_change
POST /offer/add_landing_page
POST /offer/add_offer
POST /offer/add_tracking_domain
Reporting
GET /report/profitloss
GET /report/transaction
Transaction
GET /transaction/transaction_payout_preview
PATCH /transaction/transaction_update_revenue_by_orderid
PATCH /transaction/transaction_update_revenue_by_transaction_hash
POST /transaction/process_void
POST /transaction/process_chargeback
POST /transaction/process_reversal
POST /transaction/approve_pending_transaction
GET /transaction/click_detail
SOAP API (*deprecated*)
API
Add Affiliate
Add Affiliate Sale
Add Offer
Approve Transaction
Creative Types
Decode Offeritcode
Deny Transaction
Disable Affiliate Landing Page
Edit Affiliate Sale
Enable Affiliate Landing Page
Get Affiliate Stats
Get Allowed Affiliates
Get Landing Page Details
Get Offer Details
Get Offer List
Get Profit Loss Report
List Affiliate Details
List Affiliate Subaffiliates
Ping
Set Affiliate Status
Set SubAffiliate Status
Set Member Details
Record Affiliate Click
Misc.
Rules
Freeform Date
Affiliate Custom Signup
Offeritcode
Tracking in Offerit
Offerit Logos
Void Conversions Remotely

Host and Post is a feature of Offerit that allows affiliates to host their own landing pages or lead generation forms. Using this system allows affiliates to collect information about their leads or customers prior to completing the conversion at the network.

Activating Host and Post

Before this feature can be used, your affiliate account needs to be authorized by the network. The network owner will need the server ip(s) that you will be posting the conversion from. Please read the Admin Host and Post article to learn more about setting this up.

Generating a Click Hash

The Host and Post system in Offerit is designed to work with your affiliate tracking link. The first step is to generate a linkcode, for the offer you wish to promote, through the affiliate interface.

Next you attach a url variable to the linkcode to allow Offerit to track without performing a redirect.

http://demo.offerit.com/track/offeritdemo.9.4.6.0.0.0.0.0.0.0.0?hostnpost=1

Below is an example using an iframe that can be placed on a page to track views:

<iframe src="http://demo.offerit.com/track/offeritdemo.9.4.6.0.0.0.0.0.0.0.0?hostnpost=1" style="width:0;height:0;border:0; border:none;"></iframe>

Below is an example using jquery that can be placed on a page to track views:

<!-- include jquery library-->
<script type="text/javascript" src="jscript/jquery.js"></script>
<!-- use jquery post function -->
<script>
$.post(
	"http://demo.offerit.com/track/offeritdemo.9.4.6.0.0.0.0.0.0.0.0", //change this to be a tracking link from your Offerit install
	{ hostnpost: "1" }
);
</script>

If you are instead using a server post like cURL instead of a javascript request, you can send us the ip of the surfer with the optional field s2s_ip. When passed, Offerit will check this surfer IP against our IP logs and determine if the incoming hostnpost click should be treated as unique visitor or a page view.

http://demo.offerit.com/track/offeritdemo.9.4.6.0.0.0.0.0.0.0.0?hostnpost=1&s2s_ip=111.111.111.111

If you are using a server post and for any reason cannot send the ip of the surfer, you should instead send the field s2s. Passing this parameter will force Offerit to treat the post as a unique visitor rather than a page view

http://demo.offerit.com/track/offeritdemo.9.4.6.0.0.0.0.0.0.0.0?hostnpost=1&s2s=1

Here is an example using PHP to make a server post with cURL:

<?php

$ch = curl_init();
$params= Array(
	'hostnpost' => 1, //to indicate we are using hostnpost method
	's2s_ip' => "111.111.111.111", // the ip of the surfer so we can check if this is a unique click or an impression
	//'s2s' => 1, // use this parameter to force the post to record as a unique visitor click instead of an impression
);
$settings = array(
	CURLOPT_URL => 'http://demo.offerit.com/track/offeritdemo.9.4.6.0.0.0.0.0.0.0.0', //change this to be a tracking link from your Offerit install
	CURLOPT_POST => true,
	CURLOPT_POSTFIELDS => $params,
	CURLOPT_RETURNTRANSFER => true,
);

curl_setopt_array($ch, $settings);

$output = curl_exec($ch);
curl_close($ch);

print_r($output);
  • Posting to track with hostnpost=1 will return a JSON encoded object with the following details:
    • requested_details - the offerid/landing page combination requested
    • current_details - the offerid/landing page combination returned from track. (this may differ from the requested_details because of a redirect in the network setup)
    • message - used to relay any information about the hostnpost attempt
    • click_hash - the unique identifier that needs to be posted to record the completed conversion at the network. If this is not sent in the reply, there was a problem and the conversion cannot be completed.
  • The following messages indicate a denial from the network
    • Host and Post not enabled for this affiliate account
    • Expire redirect to <url>
    • Offer configured to redirect
    • Offer redirect due to cap restrictions
    • Landing page url not found
    • IP is blacklisted by the network
    • IP is from a proxy and is blacklisted
    • IP is from a proxy
    • IP is blacklisted for country
    • IP is already converted within allowed timeframe
    • Offer is not available
    • Offer is in an infinite redirect
    • Affiliate is not allowed for landing page
  • Message on an accepted post
    • Host and post available

Completing the Conversion

Once you have a click_hash you are ready to complete the conversion. To do so send a post to the network with the click_hash you received. For example:

http://demo.offerit.com/signup/process_pixel.php?click_hash=<click_hash returned from track>
  • The following variables can also be sent with the conversion to be recorded with the lead/customer record:
    • username
    • password
    • email
    • ip
    • firstname
    • lastname
    • address1
    • address2
    • zip
    • city
    • state
    • country
    • shipping_firstname
    • shipping_lastname
    • shipping_address1
    • shipping_address2
    • shipping_zip
    • shipping_city
    • shipping_state
    • shipping_country
    • phone


When posting to process_pixel there are a few possible responses

  • In the event of a problem you will receive one of the following:
    • *error* - Bad Host and Post IP (in the event that your posting ip is set not to allowed for the offer)
    • *error* - Host and Post not allowed for affiliate (in the event that your affiliate account has not been approved for host and post)
    • WARNING Transaction ID Previously Converted
    • *error* - Transaction Exists
    • *error* - Offer Expired
    • *error* - Conversion cap reached
    • *error* - No Transaction found to convert
    • *error* - Insert Transaction Failed
  • If the post is successful the reponse will be:
    • *success*
Screenshotfrom20140529 163806.png