Create advertiser screen resolution targeting
Creates a screen resolution targeting rule for the specified advertiser.
https://YOUR-NETWORK-DOMAIN/rest-api/advertiser/{advertiserId}/targeting/screen-resolution/create.do Creates a screen resolution targeting rule for the specified advertiser. The rule filters ad requests based on the user's screen resolution (width x height) using the specified comparison relation. For example, you can target screens greater than 1920x1080. Requires UPDATE permission on the advertiser and MANAGE_DEMAND_TARGETING user 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
advertiserId integer required
Unique numeric ID of the advertiser
1234 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
Advertiser not found
500
Internal server error