Offerit API Get Offer List
From Offerit
This function allows you to get basic information about each offer.. You must make a SOAP call with the following optional parameters:
- categoryid - The ID of the an offer category. If you pass a category, the return will only include offers in that category. If you wish to grab all offers, you can leave the field blank.
- groupid - The ID of the an offer group. If you pass a group, the return will only include offers in that group. If you wish to grab all offers, you can leave the field blank.
Output Fields
- offerid: Numeric ID of this offerid
- name Name of this offer
- offer_description Text description of the offer for affiliates.
- default_landing_page_id Numeric ID of the main landing page for this offer.
- default_landing_page_url URL of the main landing page for this offer.
- commission an array with details about the way the default commission used with this offer.
NuSOAP Example
This example continues from the main article NuSOAP Example:
$function = 'get_offer_list'; $values = Array(); $result = $client->call($function, $values, 'offeritapiadmin_wsdl');
Sample Output
Array ( [0] => Array ( [default_landing_page_url] => http://staging.offerit.com/james.php?type=transid&transid=%%transid%% [default_landing_page_id] => 1 [offer_description] => Credit Score [name] => Credit Score [offerid] => 2 [commission] => Array ( [commissionid] => 2 [deduct_voids] => 1 [hide_rebills] => 0 [hide_joins] => 0 [retro_payout] => 0 [flat_amount_per_click] => 0 [flat_amount_per_visitor] => 0 [flat_amount_per_conversion] => 0 [flat_amount_per_continuity] => 0 [percentage_of_customer_conversion_revenue] => 1200 [percentage_of_customer_continuity_revenue] => 0 [flat_amount_for_1000_impressions] => 0 ) ) [1] => Array ( [default_landing_page_url] => http://whistles.com [default_landing_page_id] => 14 [offer_description] => adsfasdf [name] => asdf [offerid] => 9 [commission] => Array ( [commissionid] => 66 [deduct_voids] => 0 [hide_rebills] => 0 [hide_joins] => 0 [retro_payout] => 0 [flat_amount_per_click] => 0 [flat_amount_per_visitor] => 0 [flat_amount_per_conversion] => 0 [flat_amount_per_continuity] => 0 [percentage_of_customer_conversion_revenue] => 0 [percentage_of_customer_continuity_revenue] => 0 [flat_amount_for_1000_impressions] => 0 ) ) [2] => Array ( [default_landing_page_url] => http://www.porsche.com [default_landing_page_id] => 24 [offer_description] => Test [name] => Cars [offerid] => 18 [commission] => Array ( [commissionid] => 16 [deduct_voids] => 1 [hide_rebills] => 0 [hide_joins] => 0 [retro_payout] => 0 [flat_amount_per_click] => 0 [flat_amount_per_visitor] => 0 [flat_amount_per_conversion] => 500 [flat_amount_per_continuity] => 0 [percentage_of_customer_conversion_revenue] => 0 [percentage_of_customer_continuity_revenue] => 0 [flat_amount_for_1000_impressions] => 0 ) ) [3] => Array ( [default_landing_page_url] => http://www.example.com [default_landing_page_id] => 80 [offer_description] => Testing. [name] => Offer Testing Requestable Forms [offerid] => 66 [commission] => Array ( [commissionid] => 63 [deduct_voids] => 1 [hide_rebills] => 0 [hide_joins] => 0 [retro_payout] => 0 [flat_amount_per_click] => 0 [flat_amount_per_visitor] => 0 [flat_amount_per_conversion] => 100 [flat_amount_per_continuity] => 100 [percentage_of_customer_conversion_revenue] => 0 [percentage_of_customer_continuity_revenue] => 0 [flat_amount_for_1000_impressions] => 0 ) ) [4] => Array ( [default_landing_page_url] => http://yahoo.com?tid=%%click_hash%%&loginid=%%loginid%% [default_landing_page_id] => 97 [offer_description] => This is my offer I am describing it now On several Lines [name] => aaaaaaaaaaa [offerid] => 80 [commission] => Array ( [commissionid] => 74 [deduct_voids] => 1 [hide_rebills] => 0 [hide_joins] => 0 [retro_payout] => 0 [flat_amount_per_click] => 0 [flat_amount_per_visitor] => 0 [flat_amount_per_conversion] => 0 [flat_amount_per_continuity] => 0 [percentage_of_customer_conversion_revenue] => 1500 [percentage_of_customer_continuity_revenue] => 0 [flat_amount_for_1000_impressions] => 0 ) ) [5] => Array ( [default_landing_page_url] => http://jamesstagingtest.com?passthrough=abc [default_landing_page_id] => 154 [offer_description] => [name] => Inherit Value Offer Test [offerid] => 129 [commission] => Array ( [commissionid] => 127 [deduct_voids] => 1 [hide_rebills] => 0 [hide_joins] => 0 [retro_payout] => 0 [flat_amount_per_click] => 100 [flat_amount_per_visitor] => 200 [flat_amount_per_conversion] => 300 [flat_amount_per_continuity] => 400 [percentage_of_customer_conversion_revenue] => 500 [percentage_of_customer_continuity_revenue] => 600 [flat_amount_for_1000_impressions] => 700 ) ) )