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

Creates a new campaign event

Request Information

URI Parameters

NameDescriptionTypeAdditional information
systemName

string

Required

username

string

Required

password

string

Required

Body Parameters

APICampaignEvent
NameDescriptionTypeAdditional information
Id

Unique identifier

integer

None.

CampaignId

Unique identifier of campaign to which this belongs

integer

None.

State

Status: Active, Closed or Suspended

string

None.

Name

Name of campaign event

string

None.

DefaultConversionValue

Default conversion value assigned

decimal number

None.

DefaultEventPrice

Default event price assigned

decimal number

None.

VastEvent

Denotes event used within vast adverts

boolean

None.

UnmatchedTreatment

Denotes how event should be treated if it does not match a previous click: TreatAsUnmatched, TreatAsCountOnly, TreatAsCountAndConversionOnly or TreatAsMatched

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "campaignId": 2,
  "state": "sample string 3",
  "name": "sample string 4",
  "defaultConversionValue": 1.1,
  "defaultEventPrice": 1.1,
  "vastEvent": true,
  "unmatchedTreatment": "sample string 5"
}

application/xml, text/xml

Sample:
<APICampaignEvent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rochester.Models">
  <CampaignId>2</CampaignId>
  <DefaultConversionValue>1.1</DefaultConversionValue>
  <DefaultEventPrice>1.1</DefaultEventPrice>
  <Id>1</Id>
  <Name>sample string 4</Name>
  <State>sample string 3</State>
  <UnmatchedTreatment>sample string 5</UnmatchedTreatment>
  <VastEvent>true</VastEvent>
</APICampaignEvent>

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>