Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonAddressInfo

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

Address for proximity criterion.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameString

Name of the city. Corresponds to the JSON property cityName

Returns:

  • (String)


1073
1074
1075
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1073

def city_name
  @city_name
end

#country_codeString

Country code. Corresponds to the JSON property countryCode

Returns:

  • (String)


1078
1079
1080
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1078

def country_code
  @country_code
end

#postal_codeString

Postal code. Corresponds to the JSON property postalCode

Returns:

  • (String)


1083
1084
1085
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1083

def postal_code
  @postal_code
end

#province_codeString

Province or state code. Corresponds to the JSON property provinceCode

Returns:

  • (String)


1088
1089
1090
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1088

def province_code
  @province_code
end

#province_nameString

Province or state name. Corresponds to the JSON property provinceName

Returns:

  • (String)


1093
1094
1095
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1093

def province_name
  @province_name
end

#street_addressString

Street address line 1. Corresponds to the JSON property streetAddress

Returns:

  • (String)


1098
1099
1100
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1098

def street_address
  @street_address
end

#street_address2String

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

Returns:

  • (String)


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