Submit a Ticket My Tickets
Welcome
Login  Sign up

SIGNUP GetMediaTypes API Version 1

SIGNUP GetMediaTypes API Version 1

Updated on 2014-06-02
Current Version: Version 1
Deprecated Version: NA
Requests Allowed: GET&SOAP

 

Summary:

Returns an array of media types


Resource/WSDL Page:

http://yourdomainhere.com/api/1/signup.asmx?op=GetMediaTypes


Parameters

api_key
Required
Type: STRING
Length (Max/Min): 50

Must be a valid API key (existing and not expired) 

Example Values: Fo35NRAqvFLXoZxqB4aViaiYM7iVMhh

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

https://demo-new.cakemarketing.com/api/1/signup.asmx/GetMediaTypes?api_key=3YmDJeT3VHTFhDqAjr2OlQ

 

Sample XML Response:

<ArrayOfMediaType>
  <MediaType>
    <media_type_id>15</media_type_id>
    <type_name>Adware</type_name>
  </MediaType>
  <MediaType>
    <media_type_id>7</media_type_id>
    <type_name>Banner</type_name>
  </MediaType>
  <MediaType>
    <media_type_id>6</media_type_id>
    <type_name>Co-Reg</type_name>
  </MediaType>
  <MediaType>
    <media_type_id>8</media_type_id>
    <type_name>Contextual</type_name>
  </MediaType>
  <MediaType>
    <media_type_id>3</media_type_id>
    <type_name>Email</type_name>
  </MediaType>
  <MediaType>
    <media_type_id>12</media_type_id>
    <type_name>Incentivized</type_name>
  </MediaType>
  <MediaType>
    <media_type_id>17</media_type_id>
    <type_name>Linkout</type_name>
  </MediaType>
  <MediaType>
    <media_type_id>42</media_type_id>
    <type_name>Mobile</type_name>
  </MediaType>
  <MediaType>
    <media_type_id>2</media_type_id>
    <type_name>Network</type_name>
  </MediaType>
  <MediaType>
    <media_type_id>13</media_type_id>
    <type_name>Other</type_name>
  </MediaType>
  <MediaType>
    <media_type_id>1</media_type_id>
    <type_name>Post</type_name>
  </MediaType>
  <MediaType>
    <media_type_id>4</media_type_id>
    <type_name>PPC</type_name>
  </MediaType>
  <MediaType>
    <media_type_id>9</media_type_id>
    <type_name>Radio</type_name>
  </MediaType>
  <MediaType>
    <media_type_id>44</media_type_id>
    <type_name>Restricted</type_name>
  </MediaType>
  <MediaType>
    <media_type_id>5</media_type_id>
    <type_name>SEO</type_name>
  </MediaType>
  <MediaType>
    <media_type_id>16</media_type_id>
    <type_name>Social Media</type_name>
  </MediaType>
  <MediaType>
    <media_type_id>43</media_type_id>
    <type_name>test</type_name>
  </MediaType>
  <MediaType>
    <media_type_id>10</media_type_id>
    <type_name>TV</type_name>
  </MediaType>
  <MediaType>
    <media_type_id>11</media_type_id>
    <type_name>Upsell</type_name>
  </MediaType>
</ArrayOfMediaType>



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.