Filters are built by
The value that you want to filter.
Which attribute the filter should filter on. You could choose diffrent attributes for each method, this can be seen i the xsd-file (see the bottom of the page) examples:
# CustomFieldId (optional):
Id or Alias for the customfield, used when the attribute is set to CustomFieldById or CustomFieldByAlias.