Offerit API Record Affiliate Click

From Offerit
Jump to: navigation, search
Offerit
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

This function allows you to record a click for a specific affiliate. To use this function, you must make a SOAP call with the following parameters:

  • loginid - The affiliate ID to record the click to
  • payoutid - The payout ID you want to use
  • offerid - The ID of the offer to record
  • landing_pageid - (optional) The ID of the landing page to use, set to false to use the default landing page for the offer
  • is_unique - (optional) Flag to determine if you want a unique click or not. Defaults to 1
  • lang - (optional) The language to use, default is EN

NuSOAP Example

This example continues from the main article NuSOAP Example:

$values = Array(
      'loginid' => 2,
      'payoutid' => 2,  
      'offerid' => 1,
      'landing_pageid' => 1,
      'is_unique' => 1,
      'lang' => "EN"
   );
$result = $client->call('record_affiliate_click', $values, 'offeritapiadmin_wsdl');

Sample Output

on success:
      SUCCESS
   
   on error:
      ERROR: error message