public function getInsights(array $fields = array(), array $params = array(), $pending = false)
 {
     $this->assureId();
     $param_types = array('default_summary' => 'bool', 'fields' => 'list<fields_enum>', 'filtering' => 'list<Object>', 'sort' => 'list<string>', 'summary' => 'list<summary_enum>');
     $enums = array('summary_enum' => AdsInsightsSummaryValues::getInstance()->getValues());
     $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_GET, '/insights', new AdsInsights(), 'EDGE', AdsInsights::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums));
     $request->addParams($params);
     $request->addFields($fields);
     return $pending ? $request : $request->execute();
 }
 public function getInsights(array $fields = array(), array $params = array(), $pending = false)
 {
     $this->assureId();
     $param_types = array();
     $enums = array();
     $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_GET, '/insights', new AdsInsights(), 'EDGE', AdsInsights::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums));
     $request->addParams($params);
     $request->addFields($fields);
     return $pending ? $request : $request->execute();
 }
 public function getInsights(array $fields = array(), array $params = array(), $pending = false)
 {
     $this->assureId();
     $param_types = array('action_attribution_windows' => 'list<action_attribution_windows_enum>', 'action_breakdowns' => 'list<action_breakdowns_enum>', 'action_report_time' => 'action_report_time_enum', 'breakdowns' => 'list<breakdowns_enum>', 'date_preset' => 'date_preset_enum', 'default_summary' => 'bool', 'fields' => 'list<fields_enum>', 'filtering' => 'list<Object>', 'level' => 'level_enum', 'product_id_limit' => 'int', 'sort' => 'list<string>', 'summary' => 'list<summary_enum>', 'summary_action_breakdowns' => 'list<summary_action_breakdowns_enum>', 'time_increment' => 'string', 'time_range' => 'map', 'time_ranges' => 'list<map>');
     $enums = array('action_attribution_windows_enum' => AdsInsightsActionAttributionWindowsValues::getInstance()->getValues(), 'action_breakdowns_enum' => AdsInsightsActionBreakdownsValues::getInstance()->getValues(), 'action_report_time_enum' => AdsInsightsActionReportTimeValues::getInstance()->getValues(), 'breakdowns_enum' => AdsInsightsBreakdownsValues::getInstance()->getValues(), 'date_preset_enum' => AdsInsightsDatePresetValues::getInstance()->getValues(), 'summary_enum' => AdsInsightsSummaryValues::getInstance()->getValues(), 'level_enum' => AdsInsightsLevelValues::getInstance()->getValues(), 'summary_action_breakdowns_enum' => AdsInsightsSummaryActionBreakdownsValues::getInstance()->getValues());
     $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_GET, '/insights', new AdsInsights(), 'EDGE', AdsInsights::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums));
     $request->addParams($params);
     $request->addFields($fields);
     return $pending ? $request : $request->execute();
 }