Create site screen resolution targeting
Creates a screen resolution targeting rule for the specified site.
https://YOUR-NETWORK-DOMAIN/rest-api/site/{siteId}/targeting/screen-resolution/create.do Creates a screen resolution targeting rule for the specified site. The rule matches requests from devices whose screen resolution meets the specified width and height criteria combined with the given comparison operator. For example, use GREATER_EQUAL with 1920x1080 to target full HD and above. Returns the created targeting rule on success. Requires RESOLUTION targeting permission. Send either relation, screenWidth and screenHeight (one relation on both dimensions), or one or more of minWidth, maxWidth, minHeight and maxHeight (inclusive limits; a limit left out is open) — for example minWidth=1024 and maxWidth=1439 for screens 1024 to 1439 px wide.
Path Params
siteId integer required
Unique numeric ID of the site
3001 Form Params
rule string required
Targeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist
INCLUDE relation string
Relation applied to both screenWidth and screenHeight — LOWER, GREATER, LOWER_EQUAL, GREATER_EQUAL or EQUAL. Leave out when sending minWidth, maxWidth, minHeight or maxHeight
LOWER screenWidth integer
Screen width in pixels, 0–9999, compared with relation
1 screenHeight integer
Screen height in pixels, 0–9999, compared with relation
1 minWidth integer
Lowest screen width in pixels, 1–9999, inclusive; leave out for no lower limit
1024 maxWidth integer
Highest screen width in pixels, 1–9999, inclusive; leave out for no upper limit
1439 minHeight integer
Lowest screen height in pixels, 1–9999, inclusive; leave out for no lower limit
1 maxHeight integer
Highest screen height in pixels, 1–9999, inclusive; leave out for no upper limit
1 Responses
200
Success
400
Invalid targeting value
401
Unauthorized
403
Forbidden
404
Site not found
500
Internal server error