POST api/Sector?sessionId={sessionId}

Creates a new sector

Request Information

URI Parameters

NameDescriptionTypeAdditional information
sessionId

string

Required

Body Parameters

APISector
NameDescriptionTypeAdditional information
Id

Unique identifier

integer

None.

SectorGroupId

Unique identifier of sector group to which this belongs

integer

None.

CTRGroupId

Unique identifier of ctr group to which this relates

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.

NumberOfImpressions

Number of impressions required to determine performance information

integer

None.

NumberOfClicks

Number of clicks required to determine performance information

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "sectorGroupId": 2,
  "ctrGroupId": 1,
  "state": "sample string 3",
  "name": "sample string 4",
  "pricingPerImpression": true,
  "minimumImpressionPrice": 1.1,
  "maximumImpressionPrice": 1.1,
  "pricingPerClick": true,
  "minimumClickPrice": 1.1,
  "maximumClickPrice": 1.1,
  "numberOfImpressions": 1,
  "numberOfClicks": 1
}

application/xml, text/xml

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

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>