EXPORT Campaigns API Version 8
Updated on 2018-03-21
Current Version: Version 8
Deprecated Version: V3, V5, V6, V7
Requests Allowed: GET & SOAP
Summary:
Exports all campaigns potentially filtered by Campaign, Offer, Affiliate, account status or media type.
You can also obtain this from within your CAKE instance by going to the campaigns tab in the offer or Affiliate Cards where you are allowed to export. Additionally, you can go to Affiliates >> custom payouts grid >> Export.
Resource/WSDL Page:
http://youradmindomainhere.com/api/8/export.asmx?op=Campaigns
Parameters
api_key Required Type: STRING Length (Max/Min): 50 | 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 |
campaign_id Required Type: INTEGER Length (Max/Min): N/A | This is the identifier for a unique campaign. Must be non-zero if site_offer_id and source_affiliate_id are both set to 0 Example Values: 1234 |
site_offer_id Required Type: INTEGER Length (Max/Min): N/A | This is the identifier for a unique Site/Offer. This can be found on any Offer card. Must be non-zero if campaign_id and affiliate_id are both set to 0 Example Values: 1234 |
channel_id Required Type: INTEGER Length (Max/Min): N/A | Unique identifier for Channel. Enter 0 for all Channels Example: 0 |
source_affiliate_id Required Type: INTEGER Length (Max/Min): N/A | This is the identifier for a unique Source/Affiliate. This can be found on any Source/Affiliate card. Must be non-zero if offer_id and campaign_id are both set to 0 Example Values: 1234 |
account_status_id Required Type: INTEGER Length (Max/Min): N/A | Must pass at least >= 0 as value. Used to filter records matching the value or will return all records if <=0. Example Values: 3 |
media_type_id Required Type: INTEGER Length (Max/Min): N/A | Must pass at least >= 0 as value. Used to filter records matching the value or will return all records if <=0. Example Values: 3 |
start_at_row Required Type: INTEGER Length (Max/Min): N/A | Must pass at least 0 as value, which means start at the beginning of the data set. Example Values: 3 |
row_limit Required Type: INTEGER Length (Max/Min): N/A | Must pass at least 0 as value, which means no limit. Example Values: 3 |
sort_field Required Type: INTEGER Length (Max/Min): N/A | Accepts "campaign_id","date_created" or 0 to ignore this filter. The value could be any integer in order to ignore this filter. Example Values: 3 |
sort_descending Required Type: BOOL Length (Max/Min): N/A | The following values can only be used for this parameter (TRUE or FALSE). Example Values: TRUE |
**Note all optional parameters still need to be passed through to the actual call. These parameters do not need a value (therefore you can use a null value).
Example Request
Sample XML Response: