Browse the help center

Save advertiser screen-size ranges in one call

Saves one to 20 screen-size ranges as INCLUDE or EXCLUDE rules of the specified advertiser 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 advertiser, or a permission is missing, no

Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/advertiser/{advertiserId}/targeting/screen-resolution/save-ranges.do

Saves one to 20 screen-size ranges as INCLUDE or EXCLUDE rules of the specified advertiser 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 advertiser, 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 advertiser'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 advertiser, MANAGE_DEMAND_TARGETING user permission and TARGETING_RESOLUTION.

Path Params

advertiserId integer required

Unique numeric ID of the advertiser

1234

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

Advertiser not found, or a replaceIds entry is not one of its screen-resolution rules — nothing changed

500

Internal server error

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.