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.



3474
3475
3476
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3474

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)


3467
3468
3469
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3467

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)


3472
3473
3474
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3472

def start_date
  @start_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3479
3480
3481
3482
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3479

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