POST api/NetworkAdUnitConfigurationMediaType?systemName={systemName}&username={username}&password={password}

Creates a new network ad unit configuration media type

Request Information

URI Parameters

NameDescriptionTypeAdditional information
systemName

string

Required

username

string

Required

password

string

Required

Body Parameters

APINetworkAdUnitConfigurationMediaType
NameDescriptionTypeAdditional information
Id

Unique identifier

integer

None.

NetworkAdUnitConfigurationId

Unique identifier of network ad unit configuration to which this belongs

integer

None.

NetworkMediaTypeId

Unique identifier of network media type to which this relates

integer

None.

NumberOfAdverts

The number of adverts of this media type to be included

integer

None.

Priority

Priority of this media type compared to others for this ad unit

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "networkAdUnitConfigurationId": 2,
  "networkMediaTypeId": 3,
  "numberOfAdverts": 1,
  "priority": 1
}

application/xml, text/xml

Sample:
<APINetworkAdUnitConfigurationMediaType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rochester.Models">
  <Id>1</Id>
  <NetworkAdUnitConfigurationId>2</NetworkAdUnitConfigurationId>
  <NetworkMediaTypeId>3</NetworkMediaTypeId>
  <NumberOfAdverts>1</NumberOfAdverts>
  <Priority>1</Priority>
</APINetworkAdUnitConfigurationMediaType>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>