Save placement screen-size ranges in one call
Saves one to 20 screen-size ranges as INCLUDE or EXCLUDE rules of the specified placement and deletes the screen-resolution rules listed in replaceIds, in one transaction: when a range is unusable, a replaceIds entry is not a screen-resolution rule of this placement, or a permission is missing, noth
https://YOUR-NETWORK-DOMAIN/rest-api/placement/{placementId}/targeting/screen-resolution/save-ranges.do Saves one to 20 screen-size ranges as INCLUDE or EXCLUDE rules of the specified placement and deletes the screen-resolution rules listed in replaceIds, in one transaction: when a range is unusable, a replaceIds entry is not a screen-resolution rule of this placement, or a permission is missing, nothing is saved and nothing is deleted. Each range is one rule; its limits are inclusive whole pixels from 1 to 9999 and a limit left out is open, so {"rule":"INCLUDE","ranges":[{"maxWidth":767},{"minWidth":1440}]} targets screens up to 767 or from 1440 px wide. A range equal to a stored rule keeps that rule, including a replaced one. Switches the placement's targeting on if it was off. The answer lists the saved rules in targets and the deleted rule ids in replaced, with a warning when a saved rule is now targeted both ways. Requires UPDATE permission on the placement, MANAGE_SUPPLY_PRE_TARGETING user permission and PRETARGETING_RESOLUTION.
Path Params
placementId integer required
Unique numeric ID of the placement
4001 Body
A JSON body. An example, built from the field definitions:
{
"rule": "INCLUDE"
} Responses
200
Success — the answer carries targets and replaced
400
rule or ranges missing, or a range unusable — nothing changed
401
Unauthorized
403
Forbidden — nothing changed
404
Placement not found, or a replaceIds entry is not one of its screen-resolution rules — nothing changed
500
Internal server error