class Google::Apis::DfareportingV3_5::DayPartTargeting

Day Part Targeting.

Attributes

days_of_week[RW]

Days of the week when the ad will serve. Acceptable values are: - “SUNDAY” - “ MONDAY” - “TUESDAY” - “WEDNESDAY” - “THURSDAY” - “FRIDAY” - “SATURDAY” Corresponds to the JSON property `daysOfWeek` @return [Array<String>]

hours_of_day[RW]

Hours of the day when the ad will serve, where 0 is midnight to 1 AM and 23 is 11 PM to midnight. Can be specified with days of week, in which case the ad would serve during these hours on the specified days. For example if Monday, Wednesday, Friday are the days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is specified, the ad would serve Monday, Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive. Corresponds to the JSON property `hoursOfDay` @return [Array<Fixnum>]

user_local_time[RW]

Whether or not to use the user's local time. If false, the America/New York time zone applies. Corresponds to the JSON property `userLocalTime` @return [Boolean]

user_local_time?[RW]

Whether or not to use the user's local time. If false, the America/New York time zone applies. Corresponds to the JSON property `userLocalTime` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dfareporting_v3_5/classes.rb, line 4779
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dfareporting_v3_5/classes.rb, line 4784
def update!(**args)
  @days_of_week = args[:days_of_week] if args.key?(:days_of_week)
  @hours_of_day = args[:hours_of_day] if args.key?(:hours_of_day)
  @user_local_time = args[:user_local_time] if args.key?(:user_local_time)
end