protected static function getReferencedEnums()
 {
     $ref_enums = array();
     $ref_enums['ActionAttributionWindows'] = AdsInsightsActionAttributionWindowsValues::getInstance()->getValues();
     $ref_enums['ActionBreakdowns'] = AdsInsightsActionBreakdownsValues::getInstance()->getValues();
     $ref_enums['ActionReportTime'] = AdsInsightsActionReportTimeValues::getInstance()->getValues();
     $ref_enums['Breakdowns'] = AdsInsightsBreakdownsValues::getInstance()->getValues();
     $ref_enums['DatePreset'] = AdsInsightsDatePresetValues::getInstance()->getValues();
     $ref_enums['Level'] = AdsInsightsLevelValues::getInstance()->getValues();
     $ref_enums['SummaryActionBreakdowns'] = AdsInsightsSummaryActionBreakdownsValues::getInstance()->getValues();
     $ref_enums['Summary'] = AdsInsightsSummaryValues::getInstance()->getValues();
     return $ref_enums;
 }
Esempio n. 2
0
 public function getInsightsAsync(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_POST, '/insights', new AdReportRun(), 'EDGE', AdReportRun::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums));
     $request->addParams($params);
     $request->addFields($fields);
     return $pending ? $request : $request->execute();
 }