Class: Google::Apis::DoubleclicksearchV2::ReportRequest::TimeRange

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

Overview

If metrics are requested in a report, this argument will be used to restrict the metrics to a specific time range.

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) ⇒ TimeRange

Returns a new instance of TimeRange



848
849
850
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 848

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

Instance Attribute Details

#changed_attributes_since_timestampDateTime

Inclusive UTC timestamp in RFC format, e.g., 2013-07-16T10:16:23.555Z. See additional references on how changed attribute reports work. Corresponds to the JSON property changedAttributesSinceTimestamp

Returns:

  • (DateTime)


830
831
832
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 830

def changed_attributes_since_timestamp
  @changed_attributes_since_timestamp
end

#changed_metrics_since_timestampDateTime

Inclusive UTC timestamp in RFC format, e.g., 2013-07-16T10:16:23.555Z. See additional references on how changed metrics reports work. Corresponds to the JSON property changedMetricsSinceTimestamp

Returns:

  • (DateTime)


836
837
838
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 836

def changed_metrics_since_timestamp
  @changed_metrics_since_timestamp
end

#end_dateString

Inclusive date in YYYY-MM-DD format. Corresponds to the JSON property endDate

Returns:

  • (String)


841
842
843
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 841

def end_date
  @end_date
end

#start_dateString

Inclusive date in YYYY-MM-DD format. Corresponds to the JSON property startDate

Returns:

  • (String)


846
847
848
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 846

def start_date
  @start_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



853
854
855
856
857
858
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 853

def update!(**args)
  @changed_attributes_since_timestamp = args[:changed_attributes_since_timestamp] if args.key?(:changed_attributes_since_timestamp)
  @changed_metrics_since_timestamp = args[:changed_metrics_since_timestamp] if args.key?(:changed_metrics_since_timestamp)
  @end_date = args[:end_date] if args.key?(:end_date)
  @start_date = args[:start_date] if args.key?(:start_date)
end