/
Inventory Forecast by Ad Space

Inventory Forecast by Ad Space



URL: /admin/adnet/pub/admin/espacios.html?op=i&o=xml

Mandatory parameters:
  • fecha_inicio: date from which the estimate is made. It must be indicated using the date format selected by the user. The date must be subsequent the current date. Example: If today is 12/13/2007, the first valid date will be 12/14/2007.
  • fecha_fin: date until which the estimate is made. It must be indicated using the date format selected by the user. No date should be more than 6 months in the future.
  • espacio_id: ad space for which the estimate is performed.
  • granularidad: estimated granularity
                   d: by day
                   h: by day and time
Example of URLs with parameters:

/admin/adnet/pub/admin/espacios.html?op=i&o=xml&espacio_id=4342&fecha_inicio=13%2F12%2F2007&fecha_fin=18%2F12%2F2007&granularidad=d

Response:

It contains a list of objects <estimacion>.  Each contains:
  • inicio: estimate beggining timestamp, in seconds, from 1970
  • fin: estimate end timestamp, in seconds, from 1970
  • impresiones: estimated impressions for the period
  • vendidas: sold impressions for the period

Response example:

<lista>
    <estimacion fin=”1229219999” impresiones=”100” vendidas=”50” inicio=”1229133600”>
    <estimacion fin=”1229306999” impresiones=”120” vendidas=”20” inicio=”1229220000”>
</lista>

Related content