Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonYearMonthRange

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

The year month range inclusive of the start and end months. Eg: A year month range to represent Jan 2020 would be: (Jan 2020, Jan 2020).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonYearMonthRange

Returns a new instance of GoogleAdsSearchads360V23CommonYearMonthRange.



13227
13228
13229
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13227

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

Instance Attribute Details

#endGoogle::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonYearMonth

Year month. Corresponds to the JSON property end



13220
13221
13222
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13220

def end
  @end
end

#startGoogle::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonYearMonth

Year month. Corresponds to the JSON property start



13225
13226
13227
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13225

def start
  @start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13232
13233
13234
13235
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13232

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