Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ServicesPlannableLocation
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ServicesPlannableLocation
- 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 plannable location: country, metro region, province, etc.
Instance Attribute Summary collapse
-
#country_code ⇒ String
The ISO-3166-1 alpha-2 country code that is associated with the location.
-
#id ⇒ String
The location identifier.
-
#location_type ⇒ String
The location's type.
-
#name ⇒ String
The unique location name in English.
-
#parent_country_id ⇒ Fixnum
The parent country (not present if location is a country).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V23ServicesPlannableLocation
constructor
A new instance of GoogleAdsSearchads360V23ServicesPlannableLocation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V23ServicesPlannableLocation
Returns a new instance of GoogleAdsSearchads360V23ServicesPlannableLocation.
51405 51406 51407 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 51405 def initialize(**args) update!(**args) end |
Instance Attribute Details
#country_code ⇒ String
The ISO-3166-1 alpha-2 country code that is associated with the location.
Corresponds to the JSON property countryCode
51381 51382 51383 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 51381 def country_code @country_code end |
#id ⇒ String
The location identifier.
Corresponds to the JSON property id
51386 51387 51388 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 51386 def id @id end |
#location_type ⇒ String
The location's type. Location types correspond to target_type returned by .
Corresponds to the JSON property locationType
51391 51392 51393 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 51391 def location_type @location_type end |
#name ⇒ String
The unique location name in English.
Corresponds to the JSON property name
51396 51397 51398 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 51396 def name @name end |
#parent_country_id ⇒ Fixnum
The parent country (not present if location is a country). If present, will
always be a GeoTargetConstant ID. Additional information such as country name
is provided by ReachPlanService.ListPlannableLocations or
Corresponds to the JSON property parentCountryId
51403 51404 51405 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 51403 def parent_country_id @parent_country_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
51410 51411 51412 51413 51414 51415 51416 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 51410 def update!(**args) @country_code = args[:country_code] if args.key?(:country_code) @id = args[:id] if args.key?(:id) @location_type = args[:location_type] if args.key?(:location_type) @name = args[:name] if args.key?(:name) @parent_country_id = args[:parent_country_id] if args.key?(:parent_country_id) end |