Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonAddressInfo
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonAddressInfo
- 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
Address for proximity criterion.
Instance Attribute Summary collapse
-
#city_name ⇒ String
Name of the city.
-
#country_code ⇒ String
Country code.
-
#postal_code ⇒ String
Postal code.
-
#province_code ⇒ String
Province or state code.
-
#province_name ⇒ String
Province or state name.
-
#street_address ⇒ String
Street address line 1.
-
#street_address2 ⇒ String
Street address line 2.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonAddressInfo
constructor
A new instance of GoogleAdsSearchads360V23CommonAddressInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonAddressInfo
Returns a new instance of GoogleAdsSearchads360V23CommonAddressInfo.
1046 1047 1048 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1046 def initialize(**args) update!(**args) end |
Instance Attribute Details
#city_name ⇒ String
Name of the city.
Corresponds to the JSON property cityName
1013 1014 1015 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1013 def city_name @city_name end |
#country_code ⇒ String
Country code.
Corresponds to the JSON property countryCode
1018 1019 1020 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1018 def country_code @country_code end |
#postal_code ⇒ String
Postal code.
Corresponds to the JSON property postalCode
1023 1024 1025 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1023 def postal_code @postal_code end |
#province_code ⇒ String
Province or state code.
Corresponds to the JSON property provinceCode
1028 1029 1030 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1028 def province_code @province_code end |
#province_name ⇒ String
Province or state name.
Corresponds to the JSON property provinceName
1033 1034 1035 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1033 def province_name @province_name end |
#street_address ⇒ String
Street address line 1.
Corresponds to the JSON property streetAddress
1038 1039 1040 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1038 def street_address @street_address end |
#street_address2 ⇒ String
Street address line 2. This field is write-only. It is only used for
calculating the longitude and latitude of an address when geo_point is empty.
Corresponds to the JSON property streetAddress2
1044 1045 1046 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1044 def street_address2 @street_address2 end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1051 1052 1053 1054 1055 1056 1057 1058 1059 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1051 def update!(**args) @city_name = args[:city_name] if args.key?(:city_name) @country_code = args[:country_code] if args.key?(:country_code) @postal_code = args[:postal_code] if args.key?(:postal_code) @province_code = args[:province_code] if args.key?(:province_code) @province_name = args[:province_name] if args.key?(:province_name) @street_address = args[:street_address] if args.key?(:street_address) @street_address2 = args[:street_address2] if args.key?(:street_address2) end |