Skip to main content
PUT
Update condition

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

segmentId
integer<int64>
required
conditionId
integer<int64>
required

Body

application/json

This condition includes or excludes visitors using an ad blocker

targetingType
enum<string>
required

Targeting condition type. According to this field it's necessary to add some additional fields

Available options:
PAGE_URL,
PAGE_TITLE,
LANDING_PAGE,
ORIGIN,
ORIGIN_TYPE,
REFERRERS,
NEW_VISITORS,
BROWSER_LANGUAGE,
GEOLOCATION,
DEVICE_TYPE,
SCREEN_DIMENSION,
VISITOR_IP,
AD_BLOCKER,
PREVIOUS_PAGE,
KEY_PAGES,
PAGE_VIEWS,
FIRST_VISIT,
LAST_VISIT,
ACTIVE_SESSION,
TIME_SINCE_PAGE_LOAD,
SAME_DAY_VISITS,
VISITS,
VISITS_BY_PAGE,
INTERNAL_SEARCH_KEYWORDS,
TABS_ON_SITE,
HEAT_SLICE,
SKY_STATUS,
TEMPERATURE,
DAY_NIGHT,
FORECAST_SKY_STATUS,
FORECAST_TEMPERATURE,
DAY_OF_WEEK,
TIME_RANGE,
HOUR_MINUTE_RANGE,
JS_CODE,
COOKIE,
EVENT,
EXPLICIT_TRIGGER,
BROWSER,
OPERATING_SYSTEM,
DOM_ELEMENT,
MOUSE_OUT,
TARGET_EXPERIMENT,
TARGET_PERSONALIZATION,
EXCLUSIVE_EXPERIMENT,
CONVERSIONS,
CUSTOM_DATUM,
YSANCE_SEGMENT,
YSANCE_ATTRIBUT,
TEALIUM_BADGE,
TEALIUM_AUDIENCE,
PRICE_OF_DISPLAYED_PAGE,
NUMBER_OF_VISITED_PAGES,
VISITED_PAGES,
SEGMENT,
KEY_MOMENT,
CUSTOM,
SDK_LANGUAGE,
VISITOR_CODE,
TARGET_FEATURE_FLAG,
APPLICATION_VERSION
weight
integer<int32>
required

Conditions of higher importance will have greater values. Default value: 1

Example:

1

include
boolean
required

Indicates if visitors who meet this condition should be included or excluded from the segment. Default value: 'true'

Response

OK

This condition includes or excludes visitors using an ad blocker

targetingType
enum<string>
required

Targeting condition type. According to this field it's necessary to add some additional fields

Available options:
PAGE_URL,
PAGE_TITLE,
LANDING_PAGE,
ORIGIN,
ORIGIN_TYPE,
REFERRERS,
NEW_VISITORS,
BROWSER_LANGUAGE,
GEOLOCATION,
DEVICE_TYPE,
SCREEN_DIMENSION,
VISITOR_IP,
AD_BLOCKER,
PREVIOUS_PAGE,
KEY_PAGES,
PAGE_VIEWS,
FIRST_VISIT,
LAST_VISIT,
ACTIVE_SESSION,
TIME_SINCE_PAGE_LOAD,
SAME_DAY_VISITS,
VISITS,
VISITS_BY_PAGE,
INTERNAL_SEARCH_KEYWORDS,
TABS_ON_SITE,
HEAT_SLICE,
SKY_STATUS,
TEMPERATURE,
DAY_NIGHT,
FORECAST_SKY_STATUS,
FORECAST_TEMPERATURE,
DAY_OF_WEEK,
TIME_RANGE,
HOUR_MINUTE_RANGE,
JS_CODE,
COOKIE,
EVENT,
EXPLICIT_TRIGGER,
BROWSER,
OPERATING_SYSTEM,
DOM_ELEMENT,
MOUSE_OUT,
TARGET_EXPERIMENT,
TARGET_PERSONALIZATION,
EXCLUSIVE_EXPERIMENT,
CONVERSIONS,
CUSTOM_DATUM,
YSANCE_SEGMENT,
YSANCE_ATTRIBUT,
TEALIUM_BADGE,
TEALIUM_AUDIENCE,
PRICE_OF_DISPLAYED_PAGE,
NUMBER_OF_VISITED_PAGES,
VISITED_PAGES,
SEGMENT,
KEY_MOMENT,
CUSTOM,
SDK_LANGUAGE,
VISITOR_CODE,
TARGET_FEATURE_FLAG,
APPLICATION_VERSION
weight
integer<int32>
required

Conditions of higher importance will have greater values. Default value: 1

Example:

1

include
boolean
required

Indicates if visitors who meet this condition should be included or excluded from the segment. Default value: 'true'

htmlDescription
string
read-only

Html readable description of the targeting condition

id
integer<int64>
read-only

Unique Id