Offerit API Get Offer Details

From Offerit
Revision as of 15:13, 1 February 2013 by OfferitMegan (talk | contribs) (moved Get Offer Details to Offerit API Get Offer Details over redirect)

Jump to: navigation, search

This function allows you to get the details for an offer. The parameter that needs to be passes is:

  • offer - The id(s) of the offer you want to get details for. To pass more than one id, enter the ids as a comma separated list. Also, if you wish to grab all offer ids, you can leave the field blank.

NuSOAP Example

This example continues from the main article NuSOAP Example):

$values = Array(
      'offer' => '2', 
   );
   
$result = $client->call('approve_transaction', $values, 'offeritapiadmin_wsdl');

Sample Output


Array
(
    [0] => Array
        (
            [admin_threshold_email] => 
            [advertiser_username] => 
            [advertiserid] => 0
            [categories] => Array
                (
                    [0] => Array
                        (
                            [category_name] => Category 2
                        )

                    [1] => Array
                        (
                            [category_name] => Category 3
                        )

                )

            [commission] => Array
                (
                    [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] => 0
                    [percentage_of_customer_continuity_revenue] => 0
                    [flat_amount_for_1000_impressions] => 0
                )

            [date_added] => 2013-01-29
            [date_expire] => NEVER
            [date_live] => 2013-01-29
            [deleted] => 0
            [expire_offer] => 0
            [expire_url] => 
            [hidden] => 0
            [join_hit_threshold_hour_to_12] => 
            [join_hit_threshold_hour_to_18] => 
            [join_hit_threshold_hour_to_24] => 
            [join_hit_threshold_hour_to_6] => 
            [landing_pages] => Array
                (
                    [0] => Array
                        (
                            [landing_pageid] => 1
                            [landing_page] => MAIN
                            [name] => My Test Offer 1
                            [url] => http://
                            [description] => Offer description.
                        )

                    [1] => Array
                        (
                            [landing_pageid] => 2
                            [landing_page] => LP2
                            [name] => New landing_page - LP2
                            [url] => 
                            [description] => 
                        )

                )

            [mail_threshold] => 
            [marketing_types] => Array
                (
                    [0] => Array
                        (
                            [marketing_type] => Marketing Type 1
                        )

                    [1] => Array
                        (
                            [marketing_type] => Marketing Type 2
                        )

                    [2] => Array
                        (
                            [marketing_type] => Marketing Type 3
                        )

                )

            [mobile_landing_page] => 0
            [name] => My Test Offer 1
            [no_personal_member_info] => 0
            [offer_description] => 
            [offer_group] => 
            [offerid] => 1
            [remove_ocode] => 0
            [status] => Not Applicable
            [thumbnail_url] => http:///view_banner.php?id=offer_thumb_o1&type=&name=
            [type] => Standard Offer
        )

)