function fetchCampaignPlacement($start_date, $end_date) { $method = 'reports/campaign_placement.csv?start=' . date('Y-m-d', strtotime($start_date)) . '&end=' . date('Y-m-d', strtotime($start_date)); $response = array(); $response = parent::call($method, array()); return $response; }
public function fetchAll($type) { if (is_numeric($type)) { $type_code = $type; } else { $lower_type = strtolower($type); $map = array('dma' => 1, 'connection speed' => 2, 'isp' => 3, 'browser' => 4, 'os' => 5, 'geography' => 7, 'mathselect250' => 8); $type_code = $map[$lower_type] ? $map[$lower_type] : 0; } return $this->cleanResponse(parent::call($this->method . '/' . $type_code . '?with=target_values', array('xml_priority' => 'attribute'))); }