Class: Google::Apis::DfareportingV2_1::DayPartTargeting

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable
Defined in:
generated/google/apis/dfareporting_v2_1/classes.rb,
generated/google/apis/dfareporting_v2_1/representations.rb,
generated/google/apis/dfareporting_v2_1/representations.rb

Overview

Day Part Targeting.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DayPartTargeting

Returns a new instance of DayPartTargeting.


3964
3965
3966
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3964

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#days_of_weekArray<String>

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

Returns:

  • (Array<String>)

3945
3946
3947
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3945

def days_of_week
  @days_of_week
end

#hours_of_dayArray<Fixnum>

Hours of the day when the ad will serve. Must be an integer between 0 and 23 ( inclusive), 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. Corresponds to the JSON property hoursOfDay

Returns:

  • (Array<Fixnum>)

3955
3956
3957
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3955

def hours_of_day
  @hours_of_day
end

#user_local_timeBoolean Also known as: user_local_time?

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

Returns:

  • (Boolean)

3961
3962
3963
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3961

def user_local_time
  @user_local_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


3969
3970
3971
3972
3973
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3969

def update!(**args)
  @days_of_week = args[:days_of_week] unless args[:days_of_week].nil?
  @hours_of_day = args[:hours_of_day] unless args[:hours_of_day].nil?
  @user_local_time = args[:user_local_time] unless args[:user_local_time].nil?
end