Creates a custom parameter targeting rule for the specified zone.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/zone/{zoneId}/targeting/custom/create.do
Creates a custom parameter targeting rule for the specified zone. Supports EXPRESSION, VALUE, and SUBSTRING custom types. Requires UPDATE permission on the zone and MANAGE_SUPPLY_PRE_TARGETING user permission.
Path Params
zoneIdintegerrequired
Unique numeric ID of the zone
200
Form Params
rulestringrequired
Targeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist
INCLUDE
customValuestringrequired
Custom targeting value or expression (e.g., '($p1==1 || $p1=="a") && $p2>=12')
premium_user
customTypestring
Custom target type — EXPRESSION, VALUE, or SUBSTRING (optional)
VALUE
operationstring
Comparison operation, by customType — VALUE: EQUALS, NOT_EQUALS, GREATER, GREATER_OR_EQUALS, LESS, LESS_OR_EQUALS; ONE_OF: IN, NOT_IN, or ALL (has all of: every listed value must be an item of the request value; only for a parameter registered as a list, otherwise 400); SUBSTRING: CONTAINS, NOT_CONTAINS. Not used with EXPRESSION.