WSDL Page:  http://<your_domain_here>/affiliate/api/2/account.asmx?op=GetMediaTypes

 

Parameter Summary:

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

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

 

Parameter Types:

api_key - ID

affiliate_id - ID

 

Sample GET Call:

https://demo.cakemarketing.com/affiliates/api/2/account.asmx/GetMediaTypes?api_key=OIohoAIOxMHZeo7EjB2IQg&affiliate_id=5969

 

Sample XML Response:

<media_type_response>
  <success>true</success>
  <row_count>19</row_count>
  <media_types>
    <media_type>
      <type_id>1</type_id>
      <type_name>Post</type_name>
      <category_id>4</category_id>
      <category_name>Other</category_name>
    </media_type>
    <media_type>
      <type_id>2</type_id>
      <type_name>Network</type_name>
      <category_id>4</category_id>
      <category_name>Other</category_name>
    </media_type>
    <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>4</type_id>
      <type_name>PPC</type_name>
      <category_id>2</category_id>
      <category_name>Search</category_name>
    </media_type>
    <media_type>
      <type_id>5</type_id>
      <type_name>SEO</type_name>
      <category_id>2</category_id>
      <category_name>Search</category_name>
    </media_type>
    <media_type>
      <type_id>6</type_id>
      <type_name>Co-Reg</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>
    <media_type>
      <type_id>8</type_id>
      <type_name>Contextual</type_name>
      <category_id>1</category_id>
      <category_name>Display</category_name>
    </media_type>
    <media_type>
      <type_id>9</type_id>
      <type_name>Radio</type_name>
      <category_id>1</category_id>
      <category_name>Display</category_name>
    </media_type>
    <media_type>
      <type_id>10</type_id>
      <type_name>TV</type_name>
      <category_id>1</category_id>
      <category_name>Display</category_name>
    </media_type>
    <media_type>
      <type_id>11</type_id>
      <type_name>Upsell</type_name>
      <category_id>4</category_id>
      <category_name>Other</category_name>
    </media_type>
    <media_type>
      <type_id>12</type_id>
      <type_name>Incentivized</type_name>
      <category_id>4</category_id>
      <category_name>Other</category_name>
    </media_type>
    <media_type>
      <type_id>13</type_id>
      <type_name>Other</type_name>
      <category_id>4</category_id>
      <category_name>Other</category_name>
    </media_type>
    <media_type>
      <type_id>15</type_id>
      <type_name>Adware</type_name>
      <category_id>4</category_id>
      <category_name>Other</category_name>
    </media_type>
    <media_type>
      <type_id>16</type_id>
      <type_name>Social Media</type_name>
      <category_id>4</category_id>
      <category_name>Other</category_name>
    </media_type>
    <media_type>
      <type_id>17</type_id>
      <type_name>Linkout</type_name>
      <category_id>1</category_id>
      <category_name>Display</category_name>
    </media_type>
    <media_type>
      <type_id>42</type_id>
      <type_name>Mobile</type_name>
      <category_id>4</category_id>
      <category_name>Other</category_name>
    </media_type>
    <media_type>
      <type_id>43</type_id>
      <type_name>test</type_name>
      <category_id>1</category_id>
      <category_name>Display</category_name>
    </media_type>
    <media_type>
      <type_id>44</type_id>
      <type_name>Restricted</type_name>
      <category_id>1</category_id>
      <category_name>Display</category_name>
    </media_type>
  </media_types>
</media_type_response>