Ejemplo n.º 1
0
 public function getReachEstimate(array $fields = array(), array $params = array(), $pending = false)
 {
     $this->assureId();
     $param_types = array('currency' => 'string', 'daily_budget' => 'float', 'object_store_url' => 'string', 'optimize_for' => 'optimize_for_enum', 'targeting_spec' => 'Targeting');
     $enums = array('optimize_for_enum' => ReachEstimateOptimizeForValues::getInstance()->getValues());
     $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_GET, '/reachestimate', new ReachEstimate(), 'EDGE', ReachEstimate::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums));
     $request->addParams($params);
     $request->addFields($fields);
     return $pending ? $request : $request->execute();
 }
Ejemplo n.º 2
0
 protected static function getReferencedEnums()
 {
     $ref_enums = array();
     $ref_enums['OptimizeFor'] = ReachEstimateOptimizeForValues::getInstance()->getValues();
     return $ref_enums;
 }