Creates a date/time targeting rule for the specified advertiser.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/advertiser/{advertiserId}/targeting/date-time/create.do
Creates a date/time targeting rule for the specified advertiser. The rule restricts ad delivery to specific days of the week and time ranges. Times are in 24-hour hh:MM format and can optionally use the viewer's local timezone instead of UTC. Requires UPDATE permission on the advertiser and MANAGE_DEMAND_TARGETING user permission.
Path Params
advertiserIdintegerrequired
Unique numeric ID of the advertiser
1234
Form Params
rulestringrequired
Targeting rule type — INCLUDE for whitelist or EXCLUDE for blacklist
INCLUDE
timeFromstringrequired
Time range start in HH:mm format
09:00
timeTostringrequired
Time range end in HH:mm format
17:00
dayOfWeekarray<string>
Days of week to target; omitted, the rule applies on every day
MONDAY
clientLocalTimeboolean
When true, use client's local time zone for time range evaluation