Class Location
A location. See the [help center article] (https://support.google.com/business/answer/3038177) for a detailed description of these fields, or the category endpoint for a list of valid business categories.
Implements
Inherited Members
Namespace: Google.Apis.MyBusinessBusinessInformation.v1.Data
Assembly: Google.Apis.MyBusinessBusinessInformation.v1.dll
Syntax
public class Location : IDirectResponseSchema
Properties
AdWordsLocationExtensions
Optional. Additional information that is surfaced in AdWords.
Declaration
[JsonProperty("adWordsLocationExtensions")]
public virtual AdWordsLocationExtensions AdWordsLocationExtensions { get; set; }
Property Value
Type | Description |
---|---|
AdWordsLocationExtensions |
Categories
Optional. The different categories that describe the business.
Declaration
[JsonProperty("categories")]
public virtual Categories Categories { get; set; }
Property Value
Type | Description |
---|---|
Categories |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Labels
Optional. A collection of free-form strings to allow you to tag your business. These labels are NOT user facing; only you can see them. Must be between 1-255 characters per label.
Declaration
[JsonProperty("labels")]
public virtual IList<string> Labels { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
LanguageCode
Immutable. The language of the location. Set during creation and not updateable.
Declaration
[JsonProperty("languageCode")]
public virtual string LanguageCode { get; set; }
Property Value
Type | Description |
---|---|
string |
Latlng
Optional. User-provided latitude and longitude. When creating a location, this field is ignored if the
provided address geocodes successfully. This field is only returned on get requests if the user-provided
latlng
value was accepted during create, or the latlng
value was updated through the Google Business
Profile website. This field can only be updated by approved clients.
Declaration
[JsonProperty("latlng")]
public virtual LatLng Latlng { get; set; }
Property Value
Type | Description |
---|---|
LatLng |
Metadata
Output only. Additional non-user-editable information.
Declaration
[JsonProperty("metadata")]
public virtual Metadata Metadata { get; set; }
Property Value
Type | Description |
---|---|
Metadata |
MoreHours
Optional. More hours for a business's different departments or specific customers.
Declaration
[JsonProperty("moreHours")]
public virtual IList<MoreHours> MoreHours { get; set; }
Property Value
Type | Description |
---|---|
IList<MoreHours> |
Name
Google identifier for this location in the form: locations/{location_id}
.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
OpenInfo
Optional. A flag that indicates whether the location is currently open for business.
Declaration
[JsonProperty("openInfo")]
public virtual OpenInfo OpenInfo { get; set; }
Property Value
Type | Description |
---|---|
OpenInfo |
PhoneNumbers
Optional. The different phone numbers that customers can use to get in touch with the business.
Declaration
[JsonProperty("phoneNumbers")]
public virtual PhoneNumbers PhoneNumbers { get; set; }
Property Value
Type | Description |
---|---|
PhoneNumbers |
Profile
Optional. Describes your business in your own voice and shares with users the unique story of your business and offerings. This field is required for all categories except lodging categories (e.g. hotels, motels, inns).
Declaration
[JsonProperty("profile")]
public virtual Profile Profile { get; set; }
Property Value
Type | Description |
---|---|
Profile |
RegularHours
Optional. Operating hours for the business.
Declaration
[JsonProperty("regularHours")]
public virtual BusinessHours RegularHours { get; set; }
Property Value
Type | Description |
---|---|
BusinessHours |
RelationshipData
Optional. All locations and chain related to this one.
Declaration
[JsonProperty("relationshipData")]
public virtual RelationshipData RelationshipData { get; set; }
Property Value
Type | Description |
---|---|
RelationshipData |
ServiceArea
Optional. Service area businesses provide their service at the customer's location. If this business is a service area business, this field describes the area(s) serviced by the business.
Declaration
[JsonProperty("serviceArea")]
public virtual ServiceAreaBusiness ServiceArea { get; set; }
Property Value
Type | Description |
---|---|
ServiceAreaBusiness |
ServiceItems
Optional. List of services supported by merchants. A service can be haircut, install water heater, etc. Duplicated service items will be removed automatically.
Declaration
[JsonProperty("serviceItems")]
public virtual IList<ServiceItem> ServiceItems { get; set; }
Property Value
Type | Description |
---|---|
IList<ServiceItem> |
SpecialHours
Optional. Special hours for the business. This typically includes holiday hours, and other times outside of regular operating hours. These override regular business hours. This field cannot be set without regular hours.
Declaration
[JsonProperty("specialHours")]
public virtual SpecialHours SpecialHours { get; set; }
Property Value
Type | Description |
---|---|
SpecialHours |
StoreCode
Optional. External identifier for this location, which must be unique within a given account. This is a means of associating the location with your own records.
Declaration
[JsonProperty("storeCode")]
public virtual string StoreCode { get; set; }
Property Value
Type | Description |
---|---|
string |
StorefrontAddress
Optional. A precise, accurate address to describe your business location. PO boxes or mailboxes located at
remote locations are not acceptable. At this time, you can specify a maximum of five address_lines
values
in the address. This field should only be set for businesses that have a storefront. This field should not
be set for locations of type CUSTOMER_LOCATION_ONLY
but if set, any value provided will be discarded.
Declaration
[JsonProperty("storefrontAddress")]
public virtual PostalAddress StorefrontAddress { get; set; }
Property Value
Type | Description |
---|---|
PostalAddress |
Title
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").
Declaration
[JsonProperty("title")]
public virtual string Title { get; set; }
Property Value
Type | Description |
---|---|
string |
WebsiteUri
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.
Declaration
[JsonProperty("websiteUri")]
public virtual string WebsiteUri { get; set; }
Property Value
Type | Description |
---|---|
string |