Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ServicesBenchmarksLocation

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 location that supports benchmarks data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23ServicesBenchmarksLocation

Returns a new instance of GoogleAdsSearchads360V23ServicesBenchmarksLocation.



37494
37495
37496
# File 'lib/google/apis/searchads360_v23/classes.rb', line 37494

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

Instance Attribute Details

#location_infoGoogle::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonLocationInfo

A location criterion. Corresponds to the JSON property locationInfo



37481
37482
37483
# File 'lib/google/apis/searchads360_v23/classes.rb', line 37481

def location_info
  @location_info
end

#location_nameString

The unique location name in English. Corresponds to the JSON property locationName

Returns:

  • (String)


37486
37487
37488
# File 'lib/google/apis/searchads360_v23/classes.rb', line 37486

def location_name
  @location_name
end

#location_typeString

The location's type. Location types correspond to target_type returned by searching location type in GoogleAdsService.Search/SearchStream. Corresponds to the JSON property locationType

Returns:

  • (String)


37492
37493
37494
# File 'lib/google/apis/searchads360_v23/classes.rb', line 37492

def location_type
  @location_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



37499
37500
37501
37502
37503
# File 'lib/google/apis/searchads360_v23/classes.rb', line 37499

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