public function getSelf(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, '/', new ReachFrequencyPrediction(), 'NODE', ReachFrequencyPrediction::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums));
     $request->addParams($params);
     $request->addFields($fields);
     return $pending ? $request : $request->execute();
 }
示例#2
0
 public function createReachFrequencyPrediction(array $fields = array(), array $params = array(), $pending = false)
 {
     $this->assureId();
     $param_types = array('budget' => 'unsigned int', 'campaign_group_id' => 'string', 'destination_id' => 'unsigned int', 'destination_ids' => 'list<string>', 'end_time' => 'unsigned int', 'frequency_cap' => 'unsigned int', 'interval_frequency_cap_reset_period' => 'unsigned int', 'num_curve_points' => 'unsigned int', 'objective' => 'string', 'prediction_mode' => 'unsigned int', 'reach' => 'unsigned int', 'rf_prediction_id_to_share' => 'string', 'start_time' => 'unsigned int', 'stop_time' => 'unsigned int', 'story_event_type' => 'unsigned int', 'target_spec' => 'Targeting');
     $enums = array();
     $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_POST, '/reachfrequencypredictions', new ReachFrequencyPrediction(), 'EDGE', ReachFrequencyPrediction::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums));
     $request->addParams($params);
     $request->addFields($fields);
     return $pending ? $request : $request->execute();
 }
示例#3
0
 public function getGrpPlans(array $fields = array(), array $params = array(), $pending = false)
 {
     $this->assureId();
     $param_types = array('status' => 'status_enum');
     $enums = array('status_enum' => ReachFrequencyPredictionStatusValues::getInstance()->getValues());
     $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_GET, '/grp_plans', new ReachFrequencyPrediction(), 'EDGE', ReachFrequencyPrediction::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums));
     $request->addParams($params);
     $request->addFields($fields);
     return $pending ? $request : $request->execute();
 }