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
advertiserIdintegerrequired
Unique numeric ID of the advertiser
1234
Form Params
rulestringrequired
Targeting rule type: INCLUDE or EXCLUDE
INCLUDE
timeFromstringrequired
Start time in 24-hour format hh:MM (e.g., '09:00')
09:00
timeTostringrequired
End time in 24-hour format hh:MM (e.g., '18:00')
18:00
clientLocalTimeboolean
If true, the time range is evaluated in the client's local timezone; if false, UTC is used