Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonDateRange

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

Overview

A date range.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonDateRange

Returns a new instance of GoogleAdsSearchads360V23CommonDateRange.



3534
3535
3536
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3534

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

Instance Attribute Details

#end_dateString

The end date, in yyyy-mm-dd format. This date is inclusive. Corresponds to the JSON property endDate

Returns:

  • (String)


3527
3528
3529
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3527

def end_date
  @end_date
end

#start_dateString

The start date, in yyyy-mm-dd format. This date is inclusive. Corresponds to the JSON property startDate

Returns:

  • (String)


3532
3533
3534
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3532

def start_date
  @start_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3539
3540
3541
3542
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3539

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