One filter. GET, create (201), PUT and POST …/items all answer with this shape. SubIDs are shown ENCODED when the account has SubID encoding on (send them back the same way).
| Name | Type | Description | Notes |
|---|---|---|---|
| type | str | [optional] | |
| id | int | [optional] | |
| name | str | [optional] | |
| is_active | bool | [optional] | |
| ad_type | int | 0 = applies to all ad types, otherwise the adtypeid this filter targets. | [optional] |
| item_count | int | Number of items (domains/ISPs/etc.) currently in the filter. | [optional] |
| items | List[str] | Domain IDs / adzone IDs / ISP IDs / SubID strings — depends on filter type. Not present for `ip` (see ranges). | [optional] |
| campaign_ids | List[str] | Block lists (`_excl`): the campaigns in the filter's own list — read it together with `applies_to`. Allow-lists (`_incl`) and `ip`: the RON campaigns whose allow-list / IP pool is this filter. | [optional] |
| campaign_type | str | Block lists only: which campaign kind the listed ids are. | [optional] |
| applies_to | str | Block lists only — what the ad server does with the row: `ad_type` 0 blocks across every campaign (campaign_ids are ignored); `ad_type` > 0 with no campaign_ids covers every campaign of that ad type; otherwise only the listed ones. | [optional] |
| ranges | List[FilterDetailAllOfRanges] | IP ranges with their captured IP counts. (`type=ip` only.) `range` is a display string — either a single address or `start - end`; `ip_start` / `ip_end` carry the bounds separately. `id` addresses the range in the /ranges/{rangeId} and /items/{item} routes. | [optional] |
| imported | int | `type=ip` writes only: ranges imported by this call. | [optional] |
from goadserver.models.filter_detail import FilterDetail
# TODO update the JSON string below
json = "{}"
# create an instance of FilterDetail from a JSON string
filter_detail_instance = FilterDetail.from_json(json)
# print the JSON string representation of the object
print(FilterDetail.to_json())
# convert the object into a dict
filter_detail_dict = filter_detail_instance.to_dict()
# create an instance of FilterDetail from a dict
filter_detail_from_dict = FilterDetail.from_dict(filter_detail_dict)