WSDL Page:  http://<your_domain_here>/affiliates/api/2/offers.asmx?op=GetCampaign

 

Parameter Summary:

api_key / STRING = Affiliate API Key {See auth.asmx > Login}

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

campaign_id / INT = Campaign ID {See offers.asmx > OfferFeed}

 

Parameter Types:

api_key - ID

affiliate_id - ID

campaign_id - ID

 

Sample GET Call:

https://demo.cakemarketing.com/affiliates/api/2/offers.asmx/GetCampaign?api_key=WGdlFhziHLA&affiliate_id=5969&campaign_id=16820

 

Sample XML Response:

<campaign_response>
   <success>true</success>
   <row_count>1</row_count>
   <campaign>
      <offer_id>1000006</offer_id>
      <offer_contract_id>1342</offer_contract_id>
      <campaign_id>16820</campaign_id>
      <offer_name>$50 Victorias Secret Gift Card - US - Bronze Tier</offer_name>
      <vertical_name>Survey</vertical_name>
      <status_name>Active</status_name>
      <payout>$3.00</payout>
      <price_format>CPA</price_format>
      <preview_link/>
      <thumbnail_image_url>http://demo.cakemarketing.com/thumbs/1000006/debt_map_v100_1.jpg</thumbnail_image_url>
      <description>tlhwarelthse;</description>
      <restrictions>wet;ew'jtelwkjtw</restrictions>
      <allowed_media_types>
         <media_type>
            <type_id>3</type_id>
            <type_name>Email</type_name>
            <category_id>3</category_id>
            <category_name>Email</category_name>
         </media_type>
         <media_type>
            <type_id>7</type_id>
            <type_name>Banner</type_name>
            <category_id>1</category_id>
            <category_name>Display</category_name>
         </media_type>
      </allowed_media_types>
      <expiration_date />
      <creatives_download_url>http://demo.cakemarketing.com/affiliates/dc.ashx?ac=16820&d=1&key=2c5d2e34-6036-481c-91a2-a576d90a6647</creatives_download_url>
      <creatives>
         <creative_info>
            <creative_id>1130013</creative_id>
            <creative_name>1130013</creative_name>
            <creative_type>
               <type_id>1</type_id>
               <type_name>Link</type_name>
            </creative_type>
            <unique_link>http://demotrk.cakemarketing.com/?a=5969&oc=1342&c=1130013&m=7&s1=</unique_link>
            <creative_download_url/>
            <width xsi:nil="true"/>
            <height xsi:nil="true"/>
         </creative_info>
         <creative_info>
            <creative_id>1130014</creative_id>
            <creative_name>1130014 - Test 123</creative_name>
            <creative_type>
               <type_id>2</type_id>
               <type_name>Email</type_name>
            </creative_type>
            <unique_link>http://demotrk.cakemarketing.com/?a=5969&oc=1342&c=1130014&m=7&s1=</unique_link>
            <creative_download_url>http://demo.cakemarketing.com/affiliates/dc.ashx?ac=16820&c=1130014&d=1&key=2c5d2e34-6036-481c-91a2-a576d90a6647</creative_download_url>
            <width xsi:nil="true"/>
            <height xsi:nil="true"/>
         </creative_info>
         <creative_info>
            <creative_id>1132081</creative_id>
            <creative_name>1132081 - MAP of USA - 600x80</creative_name>
            <creative_type>
               <type_id>2</type_id>
               <type_name>Email</type_name>
            </creative_type>
            <unique_link>http://demotrk.cakemarketing.com/?a=5969&oc=1342&c=1132081&m=7&s1=</unique_link>
            <creative_download_url>http://demo.cakemarketing.com/affiliates/dc.ashx?ac=16820&c=1132081&d=1&key=2c5d2e34-6036-481c-91a2-a576d90a6647</creative_download_url>
            <width>600</width>
            <height>80</height>
         </creative_info>
      </creatives>
      <from_lines>
         <string>The ar</string>
      </from_lines>
      <subject_lines>
         <string>atetrwetewt</string>
      </subject_lines>
      <suppression_link>http://demo.cakemarketing.com/affiliates/s.ashx?c=1000006</suppression_link>
      <test_link/>
      <postback_url/>
      <pixel_html/>
   </campaign>
</campaign_response>