Spot

Get spots of the given placement in a period of time

GET /networks/advertisers/campaigns/placements/:placement_id/spots

Parameters

start_date
Required date - Beginning date to retrieve data in format YYYY-MM-DD.
end_date
Required date - Final date to retrieve data in format YYYY-MM-DD.
page
Optional integer - the start index

If not supplied, the page is 1. (Feed pages are 1-based. That is, the first entry is entry 1, not entry 0.) Use this parameter as a pagination mechanism along with the per_page parameter for situations when totalResults exceeds 30 and you want to retrieve entries indexed at 31 and beyond.

per_page
Optional integer - the max-results

You can use this in combination with page to retrieve a subset of elements, or use it alone to restrict the number of returned elements, starting with the first. If you do not use the per_page parameter in your query, your feed returns the default maximum of 30 entries.

Response

Status: 200 OK
Link: <http://track.admasterapi.com/networks/advertisers/campaigns/:campaign_id/spots?page=2>; rel="next",
      <http://track.admasterapi.com/networks/advertisers/campaigns/:campaign_id/spots?page=10>; rel="last"
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
  {
    //Placement ID
    "placement_id": 200019261,
    //Online Date
    "online_date": "2012-04-13",
    //Creative ID
    "creative_id": 200019827,
    //Perchase Unites
    "units": 23,
  }

Modify the given spot

PUT /networks/advertisers/campaigns/placements/:placement_id/spots/:online_date

Request

units
Required float - Perchase Unites
creative_id
Optional integer - Creative ID

Response

Status: 204
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999