TRACK MassConversionAdjustment API Version 1
Updated on 2014-04-11
Current Version: Version 2
Deprecated Version: NA
Requests Allowed: GET/SOAP
Summary:
This API is designed to make adjustments to conversions that have already happened. This API will not create or delete conversions.
Resource/WSDL Page:
http://<your_domain_here>/api/1/track.asmx?op=MassConversionAdjustment
Parameters
api_key |
This api_key must be a valid API key (exisiting and NOT expired). You can obtain this api_key from within CAKE >> Setup >> Permissions in the API Key list. Example Value: Fo35NRAqvFLXoZxqB4aViaiYM7iVMhh |
get_current_totals_only |
how Totals or Run Adjustment Query? ["TRUE" = Show Totals/DO NOT RUN QUERY, "FALSE" = Run Adjustment Query] Example Values: TRUE |
start_date |
This start date will filter all conversions from a specific date.
Allowed formats: "YYYY-mm-dd","dd-mm-YYYY" Example Values: 2014-02-15 |
end_date |
This end date will filter all conversions from a specific date. Allowed formats: "YYYY-mm-dd","dd-mm-YYYY" Example Values: 2014-02-16 |
affiliate_id |
This is the identifier for a unique Affiliate. Use EXPORT Affiliates API. If passing anything <= 0 the result will include all affiliates. Example Values: 1234 |
offer_id |
This is the identifier for a unique Offer. Use EXPORT Offers API. If passing anything <= 0 the result will include all offers. Example Values: 1234 |
campaign_id |
This is the identifier for a unique Campaign. Use EXPORT Campaigns API. If passing anything <= 0 the result will include all campaigns. Example Values: 0 |
sub_affiliate |
Enter in the Sub Affiliate name Example Values:Empty |
creative_id |
This is the identifier for a unique Creative. Use EXPORT Creatives API. If passing anything <= 0 the result will include all creatives. Example Values: 1234 |
affiliate_payment_type |
conversion Affiliate Payment Type ["paid_only", "unpaid_only", "paid_and_unpaid"] Example Values: paid_only |
advertiser_payment_type |
conversion Affiliate Payment Type ["paid_only", "unpaid_only", "paid_and_unpaid"]
Example Values: paid_only |
total_to_adjust |
Total Conversions to Adjust Example Values: 1 |
payout |
Price Paid Per Conversion Example Values: 20 |
payout_currency_id |
Payout Currency ID. Use Get Currencies API. Example Values: 1 |
received |
Price Received Per Conversion Example Values: 2 |
received_currency_id |
Received Currency ID. Use GET Currencies API. Example Values: 1 |
return_option |
Mark the Conversions as Returned? ["mark_as_returned", "mark_as_unreturned", "do_not_change"] Example Values: do_not_change |
note |
Free form Notes. Example: banana |
billing_option |
The billing option should be applied to; [ignore_billing or next_generated_bill or latest_generated_bill]
Example Value: ignore_billing |
**Note all optional parameters still need to be passed through in the actual call. These parameters do not need a value (therefore you can use a null value).
Example Request
Sample XML Response:
<mass_conversion_adjustment_response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://cakemarketing.com/api/1/"> true 1 Conversion(s) Adjusted <conversions_found>1 <conversions_adjusted>1 <total_payout_old>20.0000 <total_received_old>2.0000 <total_payout_new>20.0000 <total_received_new>2.0000 <max_cdh_date>2014-02-20T12:52:31.127 |
Example Error Messages:
Error Message |
Likely Cause |
Invalid API Key |
API key does not exist or is expired. |
Affiliate Not Found |
Affiliate ID provided does not exist or is invalid. |
Campaign Not Found |
Campaign ID provided does not exist or is invalid. |
Creative Not Found |
Creative ID provided does not exist or is invalid. |
SubAffiliate Not Found |
SubAffiliate ID provided does not exist or is invalid. |
Invalid Transaction IDs |
Transaction IDs provided do not exist, are invalid or the total number of IDs is grater than the total_to_insert. |