Class: Google::Apis::DoubleclickbidmanagerV2::DataRange

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

Overview

Report data range.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DataRange

Returns a new instance of DataRange.



92
93
94
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 92

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

Instance Attribute Details

#custom_end_dateGoogle::Apis::DoubleclickbidmanagerV2::Date

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type. TimeOfDay * google.type.DateTime * google.protobuf.Timestamp Corresponds to the JSON property customEndDate



73
74
75
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 73

def custom_end_date
  @custom_end_date
end

#custom_start_dateGoogle::Apis::DoubleclickbidmanagerV2::Date

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type. TimeOfDay * google.type.DateTime * google.protobuf.Timestamp Corresponds to the JSON property customStartDate



85
86
87
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 85

def custom_start_date
  @custom_start_date
end

#rangeString

Report data range used to generate the report. Corresponds to the JSON property range

Returns:

  • (String)


90
91
92
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 90

def range
  @range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



97
98
99
100
101
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 97

def update!(**args)
  @custom_end_date = args[:custom_end_date] if args.key?(:custom_end_date)
  @custom_start_date = args[:custom_start_date] if args.key?(:custom_start_date)
  @range = args[:range] if args.key?(:range)
end