original_string: public function updateGoal(
          $idGoal,
          $name,
          $matchAttribute,
          $pattern,
          $patternType,
          $caseSensitive = '',
          $revenue = '',
          $allowMultipleConversionsPerVisit = '',
          array $optional = []
      )
      {
          return $this->_request('Goals.updateGoal', [
              'idGoal' => $idGoal,
              'name' => $name,
              'matchAttribute' => $matchAttribute,
              'pattern' => $pattern,
              'patternType' => $patternType,
              'caseSensitive' => $caseSensitive,
              'revenue' => $revenue,
              'allowMultipleConversionsPerVisit' => $allowMultipleConversionsPerVisit,
          ], $optional);
      }
code: public function updateGoal(
          $idGoal,
          $name,
          $matchAttribute,
          $pattern,
          $patternType,
          $caseSensitive = '',
          $revenue = '',
          $allowMultipleConversionsPerVisit = '',
          array $optional = []
      )
      {
          return $this->_request('Goals.updateGoal', [
              'idGoal' => $idGoal,
              'name' => $name,
              'matchAttribute' => $matchAttribute,
              'pattern' => $pattern,
              'patternType' => $patternType,
              'caseSensitive' => $caseSensitive,
              'revenue' => $revenue,
              'allowMultipleConversionsPerVisit' => $allowMultipleConversionsPerVisit,
          ], $optional);
      }
code_tokens: public function updateGoal ( $ idGoal , $ name , $ matchAttribute , $ pattern , $ patternType , $ caseSensitive = '' , $ revenue = '' , $ allowMultipleConversionsPerVisit = '' , array $ optional = [ ] ) { return $ this -> _request ( 'Goals.updateGoal' , [ 'idGoal' => $ idGoal , 'name' => $ name , 'matchAttribute' => $ matchAttribute , 'pattern' => $ pattern , 'patternType' => $ patternType , 'caseSensitive' => $ caseSensitive , 'revenue' => $ revenue , 'allowMultipleConversionsPerVisit' => $ allowMultipleConversionsPerVisit , ] , $ optional ) ; }
docstring: Update a goal
  
  @param int $idGoal
  @param string $name
  @param string $matchAttribute
  @param string $pattern
  @param string $patternType
  @param string $caseSensitive
  @param string $revenue
  @param string $allowMultipleConversionsPerVisit
  @param array $optional
  @return bool|object
  @throws InvalidRequestException
docstring_tokens: Update a goal