Browse the help center

Create campaign screen resolution targeting

Creates a screen resolution targeting rule.

Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/campaign/{campaignId}/targeting/screen-resolution/create.do

Creates a screen resolution targeting rule. Requires UPDATE permission on the campaign 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

campaignId integer required

Unique numeric ID of the campaign

1234

Form Params

rule string required

Targeting rule type

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

Campaign not found

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.