Browse the help center

Create placement time range targeting

Creates a time range targeting rule for the specified placement.

Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/placement/{placementId}/targeting/time-range/create.do

Creates a time range targeting rule for the specified placement. The time values must be in 24-hour format (HH:MM). Set clientLocalTime to true to evaluate the rule against the viewer's local time zone instead of UTC. Requires UPDATE permission on the placement and MANAGE_SUPPLY_PRE_TARGETING user permission.

Path Params

placementId integer required

Unique numeric ID of the placement

4001

Form Params

rule string required

Targeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist

INCLUDE

timeFrom string required

Start time in 24-hour format HH:MM (e.g., '09:00')

09:00

timeTo string required

End time in 24-hour format HH:MM (e.g., '18:00')

18:00

clientLocalTime boolean

If true, evaluate against viewer's local time; if false, use UTC

false

Responses

200

Success

400

Invalid targeting value

401

Unauthorized

403

Forbidden

404

Placement 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.