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.



1046
1047
1048
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1046

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

Instance Attribute Details

#city_nameString

Name of the city. Corresponds to the JSON property cityName

Returns:

  • (String)


1013
1014
1015
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1013

def city_name
  @city_name
end

#country_codeString

Country code. Corresponds to the JSON property countryCode

Returns:

  • (String)


1018
1019
1020
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1018

def country_code
  @country_code
end

#postal_codeString

Postal code. Corresponds to the JSON property postalCode

Returns:

  • (String)


1023
1024
1025
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1023

def postal_code
  @postal_code
end

#province_codeString

Province or state code. Corresponds to the JSON property provinceCode

Returns:

  • (String)


1028
1029
1030
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1028

def province_code
  @province_code
end

#province_nameString

Province or state name. Corresponds to the JSON property provinceName

Returns:

  • (String)


1033
1034
1035
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1033

def province_name
  @province_name
end

#street_addressString

Street address line 1. Corresponds to the JSON property streetAddress

Returns:

  • (String)


1038
1039
1040
# File 'lib/google/apis/searchads360_v23/classes.rb', line 1038

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)


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