EXPORT Offers API Version 6 (DEPRECATED)
Updated on 2015-08-14
Current Version: 6
Deprecated Version: V1, V2, V3, V4, V5
Requests Allowed: GET & SOAP
Summary:
Returns an array of offers potentially filtered by offer id, offer name, advertiser id, vertical id, offer type id, media type id, offer status id or tag id.
You can also obtain this from within your CAKE instance by going to the advertiser tab >> offers >> export.
Resource/WSDL Page:
http://<your_domain_here>/api/6/export.asmx?op=Offers
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. Example Value: Fo35NRAqvFLXoZxqB4aViaiYM7iVMhh |
offer_name | Leave blank = ALL Offer names Example Values: ACME Offer |
offer_id | This is the identifier for a unique Offer. Use EXPORT Offer API 0 = ALL Offer IDs Example Values: 1234 |
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 | Must pass at least >= 0 as value. Used to filter records matching the value or will return all records if <=0. Use EXPORT Verticals API Example Values: 3 |
offer_type_id | Must pass at least >= 0 as value. Used to filter records matching the value or will return all records if <=0. Use GET OfferTypes API Example Values: 3 |
media_type_id | Must pass at least >= 0 as value. Used to filter records matching the value or will return all records if <=0. Use GET MediaTypes API Example Values: 3 |
tag_id | Obtained via previous EXPORT Offers call Example Values: 3 |
start_at_row | Must pass at least 0 as value, which means start at the beginning of the data set. Example Values: 3 |
row_limit | Must pass at least 0 as value, which means no limit. Example Values: 3 |
sort_field | Accepts "offer_id","offer_name", "date_created", "expiration_date" |
sort_descending | The following values can only be used for this parameter (TRUE or FALSE). Example Values: TRUE |
offer_status_id Required Type: Integer | Sstatus of the offer. Use GET OfferStatuses API Example Values: 1 |
**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:
Example Error Messages:
Error Message | Likely Cause |
Invalid API Key | API Key does not exist or is expired |