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

Creates a new sector group

Request Information

URI Parameters

NameDescriptionTypeAdditional information
systemName

string

Required

username

string

Required

password

string

Required

Body Parameters

APISectorGroup
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.

PricingPerImpression

Allow charging based upon CPM model

boolean

None.

MinimumImpressionPrice

Minimum impression price for adverts

decimal number

None.

MaximumImpressionPrice

Maximum impression price for adverts

decimal number

None.

PricingPerClick

Allow charging based upon CPC model

boolean

None.

MinimumClickPrice

Minimum click price for adverts

decimal number

None.

MaximumClickPrice

Maximum click price for adverts

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "networkId": 1,
  "state": "sample string 2",
  "name": "sample string 3",
  "pricingPerImpression": true,
  "minimumImpressionPrice": 1.1,
  "maximumImpressionPrice": 1.1,
  "pricingPerClick": true,
  "minimumClickPrice": 1.1,
  "maximumClickPrice": 1.1
}

application/xml, text/xml

Sample:
<APISectorGroup xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rochester.Models">
  <Id>1</Id>
  <MaximumClickPrice>1.1</MaximumClickPrice>
  <MaximumImpressionPrice>1.1</MaximumImpressionPrice>
  <MinimumClickPrice>1.1</MinimumClickPrice>
  <MinimumImpressionPrice>1.1</MinimumImpressionPrice>
  <Name>sample string 3</Name>
  <NetworkId>1</NetworkId>
  <PricingPerClick>true</PricingPerClick>
  <PricingPerImpression>true</PricingPerImpression>
  <State>sample string 2</State>
</APISectorGroup>

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>