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.
1106 1107 1108 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1106 def initialize(**args) update!(**args) end |
Instance Attribute Details
#city_name ⇒ String
Name of the city.
Corresponds to the JSON property cityName
1073 1074 1075 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1073 def city_name @city_name end |
#country_code ⇒ String
Country code.
Corresponds to the JSON property countryCode
1078 1079 1080 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1078 def country_code @country_code end |
#postal_code ⇒ String
Postal code.
Corresponds to the JSON property postalCode
1083 1084 1085 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1083 def postal_code @postal_code end |
#province_code ⇒ String
Province or state code.
Corresponds to the JSON property provinceCode
1088 1089 1090 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1088 def province_code @province_code end |
#province_name ⇒ String
Province or state name.
Corresponds to the JSON property provinceName
1093 1094 1095 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1093 def province_name @province_name end |
#street_address ⇒ String
Street address line 1.
Corresponds to the JSON property streetAddress
1098 1099 1100 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1098 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
1104 1105 1106 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1104 def street_address2 @street_address2 end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1111 1112 1113 1114 1115 1116 1117 1118 1119 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1111 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 |