public function addGoal(
        $name,
        $matchAttribute,
        $pattern,
        $patternType,
        $caseSensitive = '',
        $revenue = '',
        $allowMultipleConversionsPerVisit = '',
        array $optional = []
    )
    {
        return $this->_request('Goals.addGoal', [
            'name' => $name,
            'matchAttribute' => $matchAttribute,
            'pattern' => $pattern,
            'patternType' => $patternType,
            'caseSensitive' => $caseSensitive,
            'revenue' => $revenue,
            'allowMultipleConversionsPerVisit' => $allowMultipleConversionsPerVisit,
        ], $optional);
    }
public function addGoal(
        $name,
        $matchAttribute,
        $pattern,
        $patternType,
        $caseSensitive = '',
        $revenue = '',
        $allowMultipleConversionsPerVisit = '',
        array $optional = []
    )
    {
        return $this->_request('Goals.addGoal', [
            'name' => $name,
            'matchAttribute' => $matchAttribute,
            'pattern' => $pattern,
            'patternType' => $patternType,
            'caseSensitive' => $caseSensitive,
            'revenue' => $revenue,
            'allowMultipleConversionsPerVisit' => $allowMultipleConversionsPerVisit,
        ], $optional);
    }
public function addGoal ( $ name , $ matchAttribute , $ pattern , $ patternType , $ caseSensitive = '' , $ revenue = '' , $ allowMultipleConversionsPerVisit = '' , array $ optional = [ ] ) { return $ this -> _request ( 'Goals.addGoal' , [ 'name' => $ name , 'matchAttribute' => $ matchAttribute , 'pattern' => $ pattern , 'patternType' => $ patternType , 'caseSensitive' => $ caseSensitive , 'revenue' => $ revenue , 'allowMultipleConversionsPerVisit' => $ allowMultipleConversionsPerVisit , ] , $ optional ) ; }
Add a goal

@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
Add a goal