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

Create new monitor data

Request Information

URI Parameters

NameDescriptionTypeAdditional information
systemName

string

Required

username

string

Required

password

string

Required

Body Parameters

APIMonitorData
NameDescriptionTypeAdditional information
Timestamp

Timestamp

integer

None.

Searches

Number of searches

integer

None.

Impressions

Number of impressions

integer

None.

Clicks

Number of clicks

integer

None.

Events

Number of events

integer

None.

Spend

Spend value

decimal number

None.

Providers

List of monitor data subsets for providers

Collection of APIMonitorDataSubset

None.

Feeds

List of monitor data subsets for feeds

Collection of APIMonitorDataSubset

None.

Advertisers

List of monitor data subsets for advertisers

Collection of APIMonitorDataSubset

None.

Campaigns

List of monitor data subsets for campaigns

Collection of APIMonitorDataSubset

None.

Publishers

List of monitor data subsets for publishers

Collection of APIMonitorDataSubset

None.

Sites

List of monitor data subsets for sites

Collection of APIMonitorDataSubset

None.

Request Formats

application/json, text/json

Sample:
{
  "timestamp": 1,
  "searches": 2,
  "impressions": 3,
  "clicks": 4,
  "events": 5,
  "spend": 6.1,
  "providers": [
    {
      "id": 1,
      "searches": 2,
      "impressions": 3,
      "clicks": 4,
      "events": 5,
      "spend": 6.1
    },
    {
      "id": 1,
      "searches": 2,
      "impressions": 3,
      "clicks": 4,
      "events": 5,
      "spend": 6.1
    }
  ],
  "feeds": [
    {
      "id": 1,
      "searches": 2,
      "impressions": 3,
      "clicks": 4,
      "events": 5,
      "spend": 6.1
    },
    {
      "id": 1,
      "searches": 2,
      "impressions": 3,
      "clicks": 4,
      "events": 5,
      "spend": 6.1
    }
  ],
  "advertisers": [
    {
      "id": 1,
      "searches": 2,
      "impressions": 3,
      "clicks": 4,
      "events": 5,
      "spend": 6.1
    },
    {
      "id": 1,
      "searches": 2,
      "impressions": 3,
      "clicks": 4,
      "events": 5,
      "spend": 6.1
    }
  ],
  "campaigns": [
    {
      "id": 1,
      "searches": 2,
      "impressions": 3,
      "clicks": 4,
      "events": 5,
      "spend": 6.1
    },
    {
      "id": 1,
      "searches": 2,
      "impressions": 3,
      "clicks": 4,
      "events": 5,
      "spend": 6.1
    }
  ],
  "publishers": [
    {
      "id": 1,
      "searches": 2,
      "impressions": 3,
      "clicks": 4,
      "events": 5,
      "spend": 6.1
    },
    {
      "id": 1,
      "searches": 2,
      "impressions": 3,
      "clicks": 4,
      "events": 5,
      "spend": 6.1
    }
  ],
  "sites": [
    {
      "id": 1,
      "searches": 2,
      "impressions": 3,
      "clicks": 4,
      "events": 5,
      "spend": 6.1
    },
    {
      "id": 1,
      "searches": 2,
      "impressions": 3,
      "clicks": 4,
      "events": 5,
      "spend": 6.1
    }
  ]
}

application/xml, text/xml

Sample:
<APIMonitorData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rochester.Models">
  <Advertisers>
    <APIMonitorDataSubset>
      <Clicks>4</Clicks>
      <Events>5</Events>
      <Id>1</Id>
      <Impressions>3</Impressions>
      <Searches>2</Searches>
      <Spend>6.1</Spend>
    </APIMonitorDataSubset>
    <APIMonitorDataSubset>
      <Clicks>4</Clicks>
      <Events>5</Events>
      <Id>1</Id>
      <Impressions>3</Impressions>
      <Searches>2</Searches>
      <Spend>6.1</Spend>
    </APIMonitorDataSubset>
  </Advertisers>
  <Campaigns>
    <APIMonitorDataSubset>
      <Clicks>4</Clicks>
      <Events>5</Events>
      <Id>1</Id>
      <Impressions>3</Impressions>
      <Searches>2</Searches>
      <Spend>6.1</Spend>
    </APIMonitorDataSubset>
    <APIMonitorDataSubset>
      <Clicks>4</Clicks>
      <Events>5</Events>
      <Id>1</Id>
      <Impressions>3</Impressions>
      <Searches>2</Searches>
      <Spend>6.1</Spend>
    </APIMonitorDataSubset>
  </Campaigns>
  <Clicks>4</Clicks>
  <Events>5</Events>
  <Feeds>
    <APIMonitorDataSubset>
      <Clicks>4</Clicks>
      <Events>5</Events>
      <Id>1</Id>
      <Impressions>3</Impressions>
      <Searches>2</Searches>
      <Spend>6.1</Spend>
    </APIMonitorDataSubset>
    <APIMonitorDataSubset>
      <Clicks>4</Clicks>
      <Events>5</Events>
      <Id>1</Id>
      <Impressions>3</Impressions>
      <Searches>2</Searches>
      <Spend>6.1</Spend>
    </APIMonitorDataSubset>
  </Feeds>
  <Impressions>3</Impressions>
  <Providers>
    <APIMonitorDataSubset>
      <Clicks>4</Clicks>
      <Events>5</Events>
      <Id>1</Id>
      <Impressions>3</Impressions>
      <Searches>2</Searches>
      <Spend>6.1</Spend>
    </APIMonitorDataSubset>
    <APIMonitorDataSubset>
      <Clicks>4</Clicks>
      <Events>5</Events>
      <Id>1</Id>
      <Impressions>3</Impressions>
      <Searches>2</Searches>
      <Spend>6.1</Spend>
    </APIMonitorDataSubset>
  </Providers>
  <Publishers>
    <APIMonitorDataSubset>
      <Clicks>4</Clicks>
      <Events>5</Events>
      <Id>1</Id>
      <Impressions>3</Impressions>
      <Searches>2</Searches>
      <Spend>6.1</Spend>
    </APIMonitorDataSubset>
    <APIMonitorDataSubset>
      <Clicks>4</Clicks>
      <Events>5</Events>
      <Id>1</Id>
      <Impressions>3</Impressions>
      <Searches>2</Searches>
      <Spend>6.1</Spend>
    </APIMonitorDataSubset>
  </Publishers>
  <Searches>2</Searches>
  <Sites>
    <APIMonitorDataSubset>
      <Clicks>4</Clicks>
      <Events>5</Events>
      <Id>1</Id>
      <Impressions>3</Impressions>
      <Searches>2</Searches>
      <Spend>6.1</Spend>
    </APIMonitorDataSubset>
    <APIMonitorDataSubset>
      <Clicks>4</Clicks>
      <Events>5</Events>
      <Id>1</Id>
      <Impressions>3</Impressions>
      <Searches>2</Searches>
      <Spend>6.1</Spend>
    </APIMonitorDataSubset>
  </Sites>
  <Spend>6.1</Spend>
  <Timestamp>1</Timestamp>
</APIMonitorData>

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>