ADDEDIT Offer API Version 3
Updated on 2015-03-06
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/3/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 |
hidden |
Set offer hidden status to on, off or no_change. Cannot use no_change on creation. Example Values: off |
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 |
Set offer pixel status to on, off or no_change. Cannot use no_change on creation. Example Values: off |
click_cookie_days |
Cookie set in days for the offer. Required on creation, negative number on edit to skip Example Values: 30 |
impression_cookie_days |
Impression set in days for the offer. Required on creation, negative number on edit to skip Example Values: 30 |
redirect_offer_contract_id |
Select redirect offer contact for this offer. 0 to skip Example Values: 123 |
redirect_404 |
Set 404 page for offer redirect to on, off or no_change. Cannot use no_change on creation. Example Values: off |
enable_view_thru_conversions |
Set conversion generated though impressions to on, off or no_change. Example Values: off |
click_trumps_impression |
Set clicks override impressions for conversions to on, off or no_change. Example Values: off |
disable_click_deduplication |
Set allow duplicate clicks to on, off or no_change. Example Values: off |
last_touch |
Set attribute conversion to last touch to on, off or no_change. Example Values: off |
enable_transaction_id_deduplication |
Set deduplicate conversions based on transaction ID to on, off or no_change. Example Values: off |
postbacks_only |
Set postback only to on, off or no_change. Example Values: off |
pixel_html |
3rd party pixel. NULL or empty skips on creation, NULL sets it as NULL on edit, empty skips on edit |
postback_url |
3rd party Postback URL. NULL or empty skips on creation, NULL sets it as NULL on edit, empty skips on edit |
postback_url_ms_delay |
Tine in ms before postback url pixel fires. Example Values: 100 |
fire_global_pixel |
Set option to fire global pixel to on, off or no_change. Example Values: off |
fire_pixel_on_nonpaid_conversions |
Set option to fire global pixel for nonpaid conversions to on, off or no_change. Example Values: off |
static_suppression |
This should be limited to a %, 0-100. -1 to skip, -2 to null.
|
conversion_cap_behavior |
Example Values: 1 |
conversion_behavior_on_redirect |
Example Values: 1 |
expiration_date |
Date when the offer will expire. Required even if no expiration is needed. To ignore this field use the "expiration_date_modification_type=do_not_change" Example Values: 12/31/2014 13:59:59 |
expiration_date_modification_type |
Set expiration date modification to do_not_change, change, remove Example Values: change |
offer_contract_name |
NULL or empty skips on creation, NULL sets it as NULL on edit, empty skips on edit Example Values: change1234 |
offer_contract_hidden |
Hide offer contract. 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 |
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 |
thumbnail_file_import_url |
NULL or empty skips on creation, NULL sets it as NULL on edit, empty skips on edit |
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 |
allow_affiliates_to_create_creatives |
Set option to allow affiliates to add own creatives to on, off or no_change. Example Values: off |
unsubscribe_link |
Email unsubscribe link. NULL or empty skips on creation, NULL sets it as NULL on edit, empty skips on edit |
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
GET: |
Sample XML Response:
<offer_addedit_response> <success>true</success> <message>Offer 1001468 Created</message> <offer_id>1001468</offer_id> </offer_addedit_response> |
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 SSL |
ssl equals no_change when creating an offer |
Invalid Enable View Thru Conversions |
enable_view_thru_conversions equals no_change when creating an offer |
Invalid Click Trumps Impression |
click_trumps_impression equals no_change when creating an offer |
Invalid Disable Click Deduplication |
disable_click_deduplication equals no_change when creating an offer |
Invalid Last Touch |
last_touch equals no_change when creating an offer |
Invalid Enable Transaction ID Deduplication |
enable_transaction_id_deduplication equals no_change when creating an offer |
Invalid Received Percentage |
received_percentage equals no_change when creating an offer |
Invalid Offer Contract Hidden |
offer_contract_hidden equals no_change when creating an offer |
Invalid Postbacks Only |
postbacks_only equals no_change when creating an offer |
No Offer Contracts Found For ID ### |
redirect_offer_contract is greater than 0, but no offer contracts are found for that id |
Invalid Redirect 404 |
redirect_404 equals no_change when creating an offer |
Invalid Creative File Import URL |
general error when the offer thumbnail offer fails |
Invalid Offer ID |
offer_id doesn't correspond to an offer in the system |