public function createCustomConversion(array $fields = array(), array $params = array(), $pending = false)
 {
     $this->assureId();
     $param_types = array('custom_event_type' => 'custom_event_type_enum', 'default_conversion_value' => 'float', 'description' => 'string', 'name' => 'string', 'pixel_id' => 'string', 'pixel_rule' => 'string');
     $enums = array('custom_event_type_enum' => CustomConversionCustomEventTypeValues::getInstance()->getValues());
     $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_POST, '/customconversions', new CustomConversion(), 'EDGE', CustomConversion::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums));
     $request->addParams($params);
     $request->addFields($fields);
     return $pending ? $request : $request->execute();
 }
 public function updateSelf(array $fields = array(), array $params = array(), $pending = false)
 {
     $this->assureId();
     $param_types = array('default_conversion_value' => 'float', 'description' => 'string', 'name' => 'string');
     $enums = array();
     $request = new ApiRequest($this->api, $this->data['id'], RequestInterface::METHOD_POST, '/', new CustomConversion(), 'NODE', CustomConversion::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums));
     $request->addParams($params);
     $request->addFields($fields);
     return $pending ? $request : $request->execute();
 }
 /**
  * @param array $fields
  * @param array $params
  * @return Cursor
  */
 public function getCustomConversions(array $fields = array(), array $params = array())
 {
     return $this->getManyByConnection(CustomConversion::className(), $fields, $params);
 }