Ejemplo n.º 1
0
 protected static function getReferencedEnums()
 {
     $ref_enums = array();
     $ref_enums['Fields'] = AdAccountRoasFieldsValues::getInstance()->getValues();
     return $ref_enums;
 }
Ejemplo n.º 2
0
 public function getRoas(array $fields = array(), array $params = array(), $pending = false)
 {
     $this->assureId();
     $param_types = array('fields' => 'list<fields_enum>', 'filtering' => 'list<Object>', 'time_increment' => 'string', 'time_range' => 'Object');
     $enums = array('fields_enum' => AdAccountRoasFieldsValues::getInstance()->getValues());
     $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_GET, '/roas', new AdAccountRoas(), 'EDGE', AdAccountRoas::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums));
     $request->addParams($params);
     $request->addFields($fields);
     return $pending ? $request : $request->execute();
 }