protected static function getReferencedEnums()
 {
     $ref_enums = array();
     $ref_enums['BidType'] = AdBidTypeValues::getInstance()->getValues();
     $ref_enums['ConfiguredStatus'] = AdConfiguredStatusValues::getInstance()->getValues();
     $ref_enums['EffectiveStatus'] = AdEffectiveStatusValues::getInstance()->getValues();
     $ref_enums['Status'] = AdStatusValues::getInstance()->getValues();
     $ref_enums['DatePreset'] = AdDatePresetValues::getInstance()->getValues();
     $ref_enums['ExecutionOptions'] = AdExecutionOptionsValues::getInstance()->getValues();
     $ref_enums['Operator'] = AdOperatorValues::getInstance()->getValues();
     return $ref_enums;
 }
 public function getAds(array $fields = array(), array $params = array(), $pending = false)
 {
     $this->assureId();
     $param_types = array('ad_draft_id' => 'string', 'date_preset' => 'date_preset_enum', 'effective_status' => 'list<string>', 'include_deleted' => 'bool', 'time_range' => 'map', 'updated_since' => 'int');
     $enums = array('date_preset_enum' => AdDatePresetValues::getInstance()->getValues());
     $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_GET, '/ads', new Ad(), 'EDGE', Ad::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums));
     $request->addParams($params);
     $request->addFields($fields);
     return $pending ? $request : $request->execute();
 }