Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ServicesPlannableLocation

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 plannable location: country, metro region, province, etc.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23ServicesPlannableLocation

Returns a new instance of GoogleAdsSearchads360V23ServicesPlannableLocation.



52164
52165
52166
# File 'lib/google/apis/searchads360_v23/classes.rb', line 52164

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

Instance Attribute Details

#country_codeString

The ISO-3166-1 alpha-2 country code that is associated with the location. Corresponds to the JSON property countryCode

Returns:

  • (String)


52140
52141
52142
# File 'lib/google/apis/searchads360_v23/classes.rb', line 52140

def country_code
  @country_code
end

#idString

The location identifier. Corresponds to the JSON property id

Returns:

  • (String)


52145
52146
52147
# File 'lib/google/apis/searchads360_v23/classes.rb', line 52145

def id
  @id
end

#location_typeString

The location's type. Location types correspond to target_type returned by . Corresponds to the JSON property locationType

Returns:

  • (String)


52150
52151
52152
# File 'lib/google/apis/searchads360_v23/classes.rb', line 52150

def location_type
  @location_type
end

#nameString

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

Returns:

  • (String)


52155
52156
52157
# File 'lib/google/apis/searchads360_v23/classes.rb', line 52155

def name
  @name
end

#parent_country_idFixnum

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

Returns:

  • (Fixnum)


52162
52163
52164
# File 'lib/google/apis/searchads360_v23/classes.rb', line 52162

def parent_country_id
  @parent_country_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



52169
52170
52171
52172
52173
52174
52175
# File 'lib/google/apis/searchads360_v23/classes.rb', line 52169

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