class Google::Apis::MybusinessverificationsV1::Location
A subset of location info. See the [help center article] (support. google.com/business/answer/3038177) for a detailed description of these fields, or the [category endpoint](/my-business/reference/rest/v4/categories) for a list of valid business categories.
Attributes
Represents a postal address, e.g. for postal delivery or payments addresses. Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage an address would be created via user input or from importing existing data, depending on the type of process. Advice on address input / editing: - Use an i18n-ready address widget such as https:// github.com/google/libaddressinput) - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, please see: support. google.com/business/answer/6397478 Corresponds to the JSON property `address` @return [Google::Apis::MybusinessverificationsV1::PostalAddress]
Required. Location
name should reflect your business's real-world name, as used consistently on your storefront, website, and stationery, and as known to customers. Any additional information, when relevant, can be included in other fields of the resource (for example, `Address`, `Categories`). Don't add unnecessary information to your name (for example, prefer “Google” over “ Google
Inc. - Mountain View Corporate Headquarters”). Don't include marketing taglines, store codes, special characters, hours or closed/open status, phone numbers, website URLs, service/product information, location/address or directions, or containment information (for example, “Chase ATM in Duane Reade” ). Corresponds to the JSON property `name` @return [String]
Required. Id of the category that best describes the core business this location engages in. Corresponds to the JSON property `primaryCategoryId` @return [String]
Optional. A phone number that connects to your individual business location as directly as possible. Use a local phone number instead of a central, call center helpline number whenever possible. Corresponds to the JSON property `primaryPhone` @return [String]
Optional. A URL for this business. If possible, use a URL that represents this individual business location instead of a generic website/URL that represents all locations, or the brand. Corresponds to the JSON property `websiteUri` @return [String]
Public Class Methods
# File lib/google/apis/mybusinessverifications_v1/classes.rb, line 320 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/mybusinessverifications_v1/classes.rb, line 325 def update!(**args) @address = args[:address] if args.key?(:address) @name = args[:name] if args.key?(:name) @primary_category_id = args[:primary_category_id] if args.key?(:primary_category_id) @primary_phone = args[:primary_phone] if args.key?(:primary_phone) @website_uri = args[:website_uri] if args.key?(:website_uri) end