Submit a Ticket My Tickets
Welcome
Login  Sign up

EXPORT Advertisers API Version 1 (DEPRECATED)

EXPORTS Advertisers API Version 1

Updated on 2014-03-26
Current Version: Version 1
Deprecated Version:
Requests Allowed: GET & SOAP

 

Summary:

Returns an array of advertisers and its properties.

 

Resource/WSDL Page:

http://<your_domain_here>/api/1/export.asmx?op=Advertisers

 

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.  Must be a valid API key (existing and not expired)

Example Value: 

Fo35NRAqvFLXoZxqB4aViaiYM7iVMhh

advertiser_id
Required
Type: INTEGER
Length (Max/Min): N/A

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

 **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

http://demo.cakemarketing.com/api/1/export.asmx/Advertisers?api_key=MlQpSoHKAYl7jROoTKy9g&advertiser_id=0

 

Sample XML Response:

<advertiser_export_response>
  <success>true</success>
  <row_count>1</row_count>
  <advertisers>
    <advertiser>
      <advertiser_id>2</advertiser_id>
      <advertiser_name>Mink Media</advertiser_name>
      <account_managers>
        <contact>
          <contact_id>1158</contact_id>
          <contact_name>Mike Walters</contact_name>
        </contact>
      </account_managers>
      <account_status>
        <account_status_id>1</account_status_id>
        <account_status_name>Active</account_status_name>
      </account_status>
      <address>
        <street_1/>
        <street_2/>
        <city/>
        <state/>
        <zip_code/>
        <country/>
      </address>
      <website>http://www.cakemarketing.com</website>
      <contacts>
        <contact_info>
          <contact_id>1295</contact_id>
          <contact_type>
            <contact_type_id>1</contact_type_id>
            <contact_type_name>Account Manager</contact_type_name>
          </contact_type>
          <role>
            <role_id>7</role_id>
            <role_name>Advertiser</role_name>
          </role>
          <department>
            <department_id xsi:nil="true"/>
            <department_name/>
          </department>
          <first_name>John</first_name>
          <middle_name/>
          <last_name>Doe</last_name>
          <email_address>test@cakemarketing.com</email_address>
          <title>CMO</title>
          <phone_work>555-1212</phone_work>
          <phone_cell>555-1212</phone_cell>
          <phone_fax/>
          <im_service/>
          <im_name/>
          <include_in_mass_emails>true</include_in_mass_emails>
          <notes/>
        </contact_info>
      </contacts>
      <tags/>
      <credit_limits>
        <credit>
          <currency>
            <currency_id>1</currency_id>
            <currency_symbol>$</currency_symbol>
            <currency_name>US Dollar</currency_name>
            <currency_abbr>USD</currency_abbr>
          </currency>
          <credit_limit>-1</credit_limit>
          <credit_used>0.0000</credit_used>
          <prepaid_amount>68.0000</prepaid_amount>
          <hard_cap>true</hard_cap>
          <date_added>2013-02-05T09:57:50.007</date_added>
        </credit>
      </credit_limits>
      <suppression_lists>
        <suppression_list>
          <suppression_list_id>35</suppression_list_id>
          <suppression_list_name>Suppression List 35</suppression_list_name>
          <suppression_list_type>
            <suppression_list_type_id>1</suppression_list_type_id>
            <suppression_list_type_name>Static Link</suppression_list_type_name>
          </suppression_list_type>
          <md5_only>false</md5_only>
          <date_created>2012-06-22T18:23:21.94</date_created>
          <date_updated xsi:nil="true"/>
          <static_link_info>
            <list_location>https://affiliates.leadsaccelerize.com/creatives/
suppression/sfc.zip</list_location>
          </static_link_info>
        </suppression_list>
        <suppression_list>
          <suppression_list_id>70</suppression_list_id>
          <suppression_list_name>Suppression List 70</suppression_list_name>
          <suppression_list_type>
            <suppression_list_type_id>3</suppression_list_type_id>
            <suppression_list_type_name>Optizmo</suppression_list_type_name>
          </suppression_list_type>
          <md5_only>false</md5_only>
          <date_created>2012-06-28T16:29:45.437</date_created>
          <date_updated xsi:nil="true"/>
          <optizmo_info>
            <list_location>https://one.optizmo.net/api?action=add_emails&onid=9863748b822ed1dec82ccff39e517d52&advertiser_id=2&
advertiser_name=Mink+Media&optout_id=70&optout_name=Suppression+List+70&optout_set_md5only=0&ref=qhsmw&check_hash=b2b344bc9a35b0f6869f800477fda888</list_location>
            <list_size>0</list_size>
          </optizmo_info>
        </suppression_list>
      </suppression_lists>
      <blacklists/>
      <billing_cycle>
        <billing_cycle_id>3</billing_cycle_id>
        <billing_cycle_name>Monthly</billing_cycle_name>
      </billing_cycle>
      <quickbooks_id xsi:nil="true"/>
      <online_signup>false</online_signup>
      <signup_ip_address/>
      <api_key>rKm71EV06m0</api_key>
      <date_created>2011-07-08T00:00:00</date_created>
      <date_last_accepted_terms xsi:nil="true"/>
      <notes/>
    </advertiser>
  </advertisers>
</advertiser_export_response>

 


Example Error Messages: 

Error Message

Likely Cause

Invalid API Key

API Key does not exist or is expired

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.