Site Stats By Date

Retrieve statistics based on site/zone/date

PHP

Replace:
[SITE_ID] with your site ID - List sites
[DATE_FROM] with the start period e.g. 2015-01-24
[DATE_TO] with the end period e.g. 2015-01-25
[ZONE_ID] with your zone ID - List zones in a site
[YOUR_API_TOKEN] with your token

<?php
  $curl = curl_init('https://api.adnium.com/v1/publisher/stats/[SITE_ID]/date/?token=[YOUR_API_TOKEN]&from=[DATE_FROM]&to=[DATE_TO]&zone=[ZONE_ID]');
  curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
  $response = curl_exec($curl);
  curl_close($curl);
  var_dump($response);
?>
Language