function createContactFilter($newFilterObject, $createTargetGroup, $version = 1.0)
    {
        if ($version == 1.0) {
            $queryParameters = array(
                'createTargetGroup' => ($createTargetGroup) ? "true" : "false"
            );
            return $this->put("contactfilters/contactfilter", $newFilterObject->toXMLString(), $queryParameters);
        } else if ($version == 2.0) {
            $queryParameters = array(
                'createTargetGroup' => ($createTargetGroup) ? "true" : "false"
            );
            return $this->post("contactfilters/v2", $newFilterObject, $queryParameters, "application/json");
        }
    }