ADDEDIT Offer API Version 2
Updated on 2014-04-24
Current Version: Version 5
Deprecated Version: 1, 2, 3
Requests Allowed: GET & SOAP
Summary:
Inserts new offers or edits existing offers.
Resource/WSDL Page:
http://<your_domain_here>/api/2/addedit.asmx?op=Offer
Parameters
api_key |
This api_key will provide you with the ability to export Campaigns for your instance. You can obtain this api_key from within CAKE >> Setup >> Permissions in the API Key list. Must be a valid API key (existing and not expired) Example Value: Fo35NRAqvFLXoZxqB4aViaiYM7iVMhh |
offer_id
|
0 creates a new offer. Values greater than 1 edits the offer. Example Values: 0 or 123 |
advertiser_id |
If passing anything <= 0 the result will include all advertisers. If the advertiser ID does not exist, it will return an empty array instead of an error. You can obtain the advertiser ID from within your CAKE instance under the Advertiser tab >> ID Example Values: 1234 |
vertical_id |
Vertical associated with the offer Example Values: 12 |
offer_name |
Name of the offer. Required on creation, NULL or empty on edit skips Example Values: Offer Name |
third_party_name |
Alternate name of the offer. NULL or empty skips on creation, NULL sets it as NULL on edit, empty skips on edit Example Values: Alt Offer Name |
offer_status_id |
Status of the offer as active, inactive or pending.Required on creation, 0 to skip on edit Example Values: 1 |
offer_type_id |
Type of offer as 3rd Party, Hosted or Host-n-Post. Required on creation, not used on edit Example Values: 1 |
currency_id |
Currency for the offer. Requered if currencies are enabled and creating an offer, not used on edit Example Values: 1 |
ssl |
Secure pixel required for the offer. Example Values: TRUE |
click_cookie_days |
Cookie set in days for the offer. Example Values: 30 |
impression_cookie_days |
Impression set in days for the offer. Example Values: 30 |
enable_view_thru_conversion |
See conversion generated though impressions. Example Values: TRUE |
click_trumps_impression |
Clicks override impressions for conversions. Example Values: TRUE |
disable_click_deduplication |
Allow duplicate clicks Example Values: TRUE |
last_touch |
Attribute conversion to last touch. Example Values: TRUE |
enable_transaction_id_deduplication |
Deduplicate conversions based on transaction ID. Example Values: TRUE |
offer_contract_name |
Name of the offer contract. NULL or empty skips on creation, NULL sets it as NULL on edit, empty skips on edit Example Values: TRUE |
price_format_id |
Price format of the offer as CPA, CPC, CPM, Fixed or RevShare. Example Values: 1 |
payout |
Payout to affiliate on conversion. Example Values: 20.05 |
received |
Revenue received from advertiser on conversion. Example Values: 20.05 |
received_percentage |
Receive revenue as a percentage from advertiser. Example Values: TRUE |
offer_link |
URL for offer landing page. Required on creation, NULL or empty on edit skips Example Values: http://www.domain.com/a |
thankyou_link |
URL to sent traffic when user revisits after conversion. Required on creation, NULL sets it as NULL on edit, empty skips on edit xample Values: http://www.domain.com/ty |
offer_contract_hidden |
Hide offer contract. Example Values: TRUE |
preview_link |
Non-tracking URL. NULL or empty skips on creation, NULL sets it as NULL on edit, empty skips on edit Example Values: http://www.domain.com/a |
offer_description |
Description of the offer for affiliates. NULL or empty skips on creation, NULL sets it as NULL on edit, empty skips on edit |
restrictions |
Restrictions for running the offer to affiliates. NULL or empty skips on creation, NULL sets it as NULL on edit, empty skips on edit |
advertiser_extended_terms |
Additional conditions required to run offer to affiliates. NULL or empty skips on creation, NULL sets it as NULL on edit, empty skips on edit |
testing_instructions |
Testing information for affiliates. NULL or empty skips on creation, NULL sets it as NULL on edit, empty skips on edit |
tags |
This should be a comma separated list of tag names, each tag name cannot exceed 50 characters Example Values: TAG1, TAG2, TAG3 |
from_lines |
Approved email from senders. Required on creation, NULL or empty on edit skips Example Values: TRUE |
subject_lines |
Approved email subject lines.Required on creation, NULL or empty on edit skips Example Values: TRUE |
**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:
true Offer 1001468 Created 1001468 |
Example Error Messages:
Error Message |
Likely Cause |
Invalid API Key |
API Key does not exist or is expired |
cupCAKE Offer Limit Reached |
cupCAKE client already has 100 offers when creating an offer |
Invalid Advertiser |
advertiser_id doesn't correspond to an advertiser in the system when creating an of |
Invalid Vertical |
vertical_id doesn't correspond to a vertical in the system when creating an offer |
Invalid Offer Name |
offer_name is NULL or empty when creating an offer |
Invalid Offer Status |
offer_status equals 0 when creating an offer |
Invalid Currency ID |
currencies are enabled and currency_id doesn't correspond to a currency in the system when creating an offer |
Invalid Offer Link |
offer_link is NULL or empty when creating an offer |
Invalid Thankyou Link |
thankyou_link is NULL or empty when creating an offer |
Invalid Offer ID |
offer_id doesn't correspond to an offer in the system |