WSDL Page:  http://<your_domain_here>/api/1/addedit.asmx?op=Campaign

 

Parameter Summary:

api_key / STRING = Admin API Key {See get.asmx > GetAPIKey}

campaign_id / INT = Campaign ID [Existing ID = Edit Campaign / "0" = Create Campaign] {See export.asmx > Campaigns}

affiliate_id / INT = Affiliate ID {See export.asmx > Affiliate}

offer_id / INT = Offer ID {See export.asmx > Offers}

offer_contract_id / INT = Offer Contract ID {See export.asmx > Offers}

media_type_id / INT (unsignedByte) = Media Type ID {See get.asmx > GetMediaTypes}

third_party_name / STRING = Third Party Name

account_status_id / INT (unsignedByte) = Campaign Status ID {See get.asmx > AccountStatuses}

currency_id / INT (unsignedByte) = Currency ID {See get.asmx > Currencies}

payout / DECIMAL = Price Paid Per Conversion

paid_redirects / BOOL = Paid Redirect? ["TRUE", "FALSE"]

clear_session_on_conversion / BOOL = Clear Session on Conversion? ["TRUE", "FALSE"]

postback_url / STRING = Campaign Postback URL

postback_delay_ms / INT = Postback Delay (ms)

pixel_html / STRING = Campaign Pixel HTML

test_link / STRING = Campaign Test Link

 

Parameter Types:

api_key - ID

campaign_id - ID

affiliate_id - ID

offer_id - ID

offer_contract_id - ID

media_type_id - ASSIGNABLE

third_party_name - ASSIGNABLE

account_status_id - ASSIGNABLE

currency_id - ASSIGNABLE

payout - ASSIGNABLE

paid_redirects - ASSIGNABLE

clear_session_on_conversion - ASSIGNABLE

postback_url - ASSIGNABLE

postback_delay_ms - ASSIGNABLE

pixel_html - ASSIGNABLE

test_link - ASSIGNABLE

 

Sample GET Call:

http://demo.cakemarketing.com/api/1/addedit.asmx/Campaign?api_key=dNJFmId9rI&campaign_id=3571&affiliate_id=0&offer_id=0&offer_contract_id=0&media_type_id=15&third_party_name=Andy+Campaign&account_status_id=1&currency_id=1&payout=2.25&paid_redirects=TRUE&clear_session_on_conversion=FALSE&postback_url=http://getCAKE.com/postback&postback_delay_ms=60000&pixel_html=%3Ciframe%20src%3D%22http%3A%2F%2Fandytrk.getCAKE.com%2Fp.ashx%3Fo%3D455%26t%3DTRANSACTION_ID%22%20height%3D%221%22%20width%3D%221%22%20frameborder%3D%220%22%3E%3C%2Fiframe%3E&test_link=http://getCAKE.com

 

Sample XML Response:

<campaign_addedit_response>
   <success>true</success>
   <message>Campaign Updated</message>
   <success_info>
      <campaign_id>3571</campaign_id>
      <affiliate_id>-1</affiliate_id>
      <offer_id>1000042</offer_id>
      <offer_contract_id>647</offer_contract_id>
      <media_type_id>15</media_type_id>
      <original>true</original>
   </success_info>
</campaign_addedit_response>