Browse the help center

Create advertiser time range targeting

Creates a time range targeting rule for the specified advertiser and enables targeting if it was previously disabled.

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

Creates a time range targeting rule for the specified advertiser and enables targeting if it was previously disabled. Allows restricting ad delivery to a specific time window. If clientLocalTime is true, the time range is evaluated in the viewer's local timezone; otherwise UTC is used. Returns the created targeting rule as JSON. Requires TIME_RANGE targeting permission and UPDATE permission on the advertiser.

Path Params

advertiserId integer required

Unique numeric ID of the advertiser

1234

Form Params

rule string required

Targeting rule type: INCLUDE or EXCLUDE

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, the time range is evaluated in the client's local timezone; if false, UTC is used

false

Responses

200

Success

400

Invalid targeting value

401

Unauthorized

403

Forbidden

404

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