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

Creates a new network ad unit

Request Information

URI Parameters

NameDescriptionTypeAdditional information
systemName

string

Required

username

string

Required

password

string

Required

Body Parameters

APINetworkAdUnit
NameDescriptionTypeAdditional information
Id

Unique identifier

integer

None.

NetworkId

Unique identifier of network to which this belongs

integer

None.

State

Status: Active, Closed or Suspended

string

None.

Name

Textual identifier

string

None.

Width

Width of ad unit in pixels

integer

None.

Height

Height of ad unit in pixels

integer

None.

Biddable

Denotes that advertisers may directly bid to appear

boolean

None.

MultiPart

Denotes a multi-part ad unit

boolean

None.

MinimumImpressionPrice

Minimum CPM price for an advert to appear

decimal number

None.

MinimumClickPrice

Minimum CPC price for an advert to appear

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "networkId": 2,
  "state": "sample string 3",
  "name": "sample string 4",
  "width": 1,
  "height": 1,
  "biddable": true,
  "multiPart": true,
  "minimumImpressionPrice": 1.1,
  "minimumClickPrice": 1.1
}

application/xml, text/xml

Sample:
<APINetworkAdUnit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rochester.Models">
  <Biddable>true</Biddable>
  <Height>1</Height>
  <Id>1</Id>
  <MinimumClickPrice>1.1</MinimumClickPrice>
  <MinimumImpressionPrice>1.1</MinimumImpressionPrice>
  <MultiPart>true</MultiPart>
  <Name>sample string 4</Name>
  <NetworkId>2</NetworkId>
  <State>sample string 3</State>
  <Width>1</Width>
</APINetworkAdUnit>

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>