Class: Google::Apis::Adexchangebuyer2V2beta1::DayPart

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

Overview

Daypart targeting message that specifies if the ad can be shown only during certain parts of a day/week.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DayPart

Returns a new instance of DayPart.



1148
1149
1150
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1148

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

Instance Attribute Details

#day_of_weekString

The day of the week to target. If unspecified, applicable to all days. Corresponds to the JSON property dayOfWeek

Returns:

  • (String)


1132
1133
1134
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1132

def day_of_week
  @day_of_week
end

#end_timeGoogle::Apis::Adexchangebuyer2V2beta1::TimeOfDay

Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and google.protobuf.Timestamp. Corresponds to the JSON property endTime



1139
1140
1141
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1139

def end_time
  @end_time
end

#start_timeGoogle::Apis::Adexchangebuyer2V2beta1::TimeOfDay

Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and google.protobuf.Timestamp. Corresponds to the JSON property startTime



1146
1147
1148
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1146

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1153
1154
1155
1156
1157
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1153

def update!(**args)
  @day_of_week = args[:day_of_week] if args.key?(:day_of_week)
  @end_time = args[:end_time] if args.key?(:end_time)
  @start_time = args[:start_time] if args.key?(:start_time)
end