public function getStats(array $fields = array(), array $params = array(), $pending = false)
 {
     $this->assureId();
     $param_types = array('aggregation' => 'aggregation_enum', 'end_time' => 'datetime', 'start_time' => 'datetime');
     $enums = array('aggregation_enum' => AdsPixelStatsResultAggregationValues::getInstance()->getValues());
     $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_GET, '/stats', new AdsPixelStatsResult(), 'EDGE', AdsPixelStatsResult::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums));
     $request->addParams($params);
     $request->addFields($fields);
     return $pending ? $request : $request->execute();
 }
 protected static function getReferencedEnums()
 {
     $ref_enums = array();
     $ref_enums['Aggregation'] = AdsPixelStatsResultAggregationValues::getInstance()->getValues();
     return $ref_enums;
 }