Create banner screen resolution targeting
Creates a screen resolution targeting rule for the specified banner.
https://YOUR-NETWORK-DOMAIN/rest-api/banner/{bannerId}/targeting/screen-resolution/create.do Creates a screen resolution targeting rule for the specified banner. Requires SCREEN_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
bannerId integer required
Unique numeric ID of the banner
7890 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
Banner not found
500
Internal server error