/**
  * Perform search using given criteria
  **/
 public function findBy(Criteria $criteria)
 {
     $parameters = $criteria->format();
     $options = array('dimensions' => @$parameters['dimensions'], 'sort' => @$parameters['sort'], 'max-results' => @$parameters['max-results'], 'filters' => @$parameters['filters'], 'segment' => @$parameters['segment']);
     $results = $this->service->data_ga->get(@$parameters["site"], @$parameters["start-date"], @$parameters["end-date"], @$parameters["metrics"], $options);
     return $this->createResult($criteria, $results);
 }
 /**
  * Perform search using given criteria
  **/
 public function findBy(Criteria $criteria)
 {
     $parameters = $criteria->format();
     $options = array('dimensions' => @$parameters['dimensions'], 'sort' => @$parameters['sort'], 'max-results' => @$parameters['max-results'], 'filters' => @$parameters['filters']);
     //just dump the parameters to make sure they're formatted correctly
     var_dump($parameters);
 }