> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# GetGoogleLocation

# Package: googleBusinessProfile

# Namespace: GbpLocationsService

# Method link: https://dev.wix.com/docs/api-reference/business-management/google-business-profile/gbplocation-v1/get-google-location.md

## Permission Scopes:
View SEO Settings: SCOPE.PROMOTE.VIEW-SEO

## Introduction

Retrieves a GBP location with its current Google data.

The single-location counterpart of Query Google Locations, with the same
behavior: if the profile data can't be retrieved from Google, the location is
still returned and the reason is in `googleError`.

If the location isn't found, the call fails and Google isn't contacted.

---

## REST API

### Schema

```
 Method: getGoogleLocation
 Description: Retrieves a GBP location with its current Google data.  The single-location counterpart of Query Google Locations, with the same behavior: if the profile data can't be retrieved from Google, the location is still returned and the reason is in `googleError`.  If the location isn't found, the call fails and Google isn't contacted.
 URL: https://www.wixapis.com/gbp/v1/locations/google/{locationId}
 Method: GET
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  locationId
 Method parameters: 
   param name: locationId | type:   none | required: true 
 Return type: GetGoogleLocationResponse
  - name: location | type: LocationWithGoogle | description: The location, with its Google profile data or the reason that couldn't be retrieved.  
     - ONE-OF: 
        - name: googleLocation | type: GoogleLocation | description: The location's current profile data from Google.  
           - name: name | type: string | description: Google resource name, e.g. "locations/12345678901234567890". Empty on create request; populated on response.  | validation: maxLength 200
           - name: title | type: string | description: Business name shown on the listing (Google's "title"). Required when creating a location, and when `title` is in an update's `fieldMask`. An update that doesn't mask `title` can leave it empty.  | validation: maxLength 300
           - name: languageCode | type: string | description: BCP-47 language tag, e.g. "en-US". Required when creating a location and immutable afterwards. Not used by SearchGoogleLocations.  | validation: format LANGUAGE_TAG, immutable
           - name: primaryCategory | type: Category | description: Primary business category. Required by Google.  
              - name: id | type: string | description: Google's category identifier, such as `categories/gcid:restaurant`.  The `categories/` prefix is optional when you send it. A bare `gcid:...` is accepted and prefixed for you.  | validation: minLength 1, maxLength 200
              - name: displayName | type: string | description: Display name of the category. Returned by Google, and ignored if you send it.  | read-only: true | validation: maxLength 200
           - name: additionalCategories | type: array<Category> | description: Additional categories. Google caps at 9.  | validation: maxItems 9
           - name: profile | type: Profile | description: Optional. Google asks for a description for every category except lodging but doesn't enforce it, so neither does this API. Both an absent profile and one with an empty description are accepted.  
              - name: description | type: string | description: Description of the location in the site owner's own words. Optional, and an empty value clears it on the listing. Google allows up to 750 characters.  | validation: maxLength 750
           - name: storefrontAddress | type: PostalAddress | description: Storefront postal address. Required for a business that serves customers at its premises, and allowed alongside `serviceArea` when that field's `businessType` is `CUSTOMER_AND_BUSINESS_LOCATION`.  
              - name: countryCode | type: string | description: ISO 3166-1 alpha-2 country code (e.g. "US", "GB").  | validation: format COUNTRY
              - name: postalCode | type: string | description: Postal/ZIP code.  | validation: maxLength 20
              - name: administrativeArea | type: string | description: Administrative area (state, province, region).  | validation: maxLength 100
              - name: locality | type: string | description: City or locality.  | validation: maxLength 100
              - name: addressLines | type: array<string> | description: Street address lines. Up to 5 lines.  | validation: maxItems 5, maxLength 255
           - name: serviceArea | type: ServiceArea | description: Service-area definition (for businesses that serve customers at the customer's location, exclusively or in addition to their storefront).  
              - name: businessType | type: BusinessType | description: Type of service-area business.  
                     - enum: CUSTOMER_LOCATION_ONLY, CUSTOMER_AND_BUSINESS_LOCATION
              - name: places | type: array<PlaceInfo> | description: Places served. Google caps at 20.  | validation: maxItems 20
                 - name: placeName | type: string | description: Human-readable place name (e.g. "Brooklyn, NY").  | validation: maxLength 200
                 - name: placeId | type: string | description: Google Place GUID (opaque).  | validation: maxLength 200
              - name: regionCode | type: string | description: ISO 3166-1 alpha-2 country code. Required by Google for CUSTOMER_LOCATION_ONLY businesses; ignored otherwise.  | validation: format COUNTRY
           - name: primaryPhone | type: string | description: Primary business phone.  | validation: maxLength 50
           - name: additionalPhones | type: array<string> | description: Additional phones. Google caps at 2.  | validation: maxItems 2, maxLength 50
           - name: websiteUri | type: string | description: Business website.  Clear it by masking `websiteUri` on Update Google Location and sending `null`. Sending an empty string is rejected.  | validation: maxLength 1000, format WEB_URL
           - name: storeCode | type: string | description: Merchant-defined store code (free-form identifier shown only to the merchant).  | validation: maxLength 64
           - name: regularHours | type: array<BusinessHours> | description: Regular weekly business hours.  | validation: maxItems 14
              - name: openDay | type: DayOfWeek | description: Day of the week when this open/close window starts.  
                     - enum: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY
              - name: openTime | type: TimeOfDay | description: Wall-clock time the business opens on `openDay`.  
                 - name: hours | type: integer | description: Hour of day, from 0 to 24. `24` means midnight at the end of the day, and is valid only with `minutes` 0. Google's TimePeriod admits 00:00-24:00, and a close at midnight set in Google's own UI comes back as `24:00`, so a value read from Google must be accepted back unchanged on an update.  | validation: minimum 0, maximum 24
                 - name: minutes | type: integer | description: Minute of the hour, from 0 to 59.  | validation: minimum 0, maximum 59
              - name: closeDay | type: DayOfWeek | description: Day of the week when this open/close window ends.  
              - name: closeTime | type: TimeOfDay | description: Wall-clock time the business closes on `closeDay`.  
           - name: specialHours | type: array<SpecialHourPeriod> | description: Hours for specific dates that override `regularHours`, such as holidays or one-off closures. Each entry covers one date.  Google accepts special hours only on a location that has `regularHours`. Update Google Location refuses 7 or more consecutive closed dates with `SPECIAL_HOURS_CLOSURE_TOO_LONG`. For a closure that long, set `openInfo.status` to `CLOSED_TEMPORARILY` instead, and back to `OPEN` when the business reopens. To clear every special hour, mask `specialHours` on Update Google Location and send none: Google replaces the whole list with what you send.  | validation: maxItems 500
              - name: startDate | type: Date | description: Date the special hours apply to. Required.  
                 - name: year | type: integer | description: Year, from 1 to 9999.  | validation: minimum 1, maximum 9999
                 - name: month | type: integer | description: Month, from 1 to 12.  | validation: minimum 1, maximum 12
                 - name: day | type: integer | description: Day of the month, from 1 to 31.  | validation: minimum 1, maximum 31
              - name: openTime | type: TimeOfDay | description: Time the business opens on `startDate`. Required unless `closed` is `true`.  
              - name: endDate | type: Date | description: Date the business closes, when it closes after midnight. Must be the same as `startDate` or the day after it. Defaults to `startDate`.  
              - name: closeTime | type: TimeOfDay | description: Time the business closes on `endDate`. Required unless `closed` is `true`. `24:00` means midnight at the end of `endDate`.  
              - name: closed | type: boolean | description: Whether the business is closed all day on `startDate`. When `true`, leave `openTime`, `closeTime` and `endDate` out.  
           - name: latLng | type: LatLng | description: Geographic coordinates of the storefront.  
              - name: latitude | type: number | description: Latitude in degrees. Must be in [-90, 90].  
              - name: longitude | type: number | description: Longitude in degrees. Must be in [-180, 180].  
           - name: openInfo | type: OpenInfo | description: Open/closed state of the listing.  
              - name: status | type: Status | description: Current listing status.  
                     - enum: OPEN, CLOSED_PERMANENTLY, CLOSED_TEMPORARILY
              - name: canReopen | type: boolean | description: Whether the listing can be reopened (only relevant for CLOSED_PERMANENTLY).  
           - name: metadata | type: Metadata | description: Read-only signals Google reports about the listing.  Only populated on the read paths (Query Google Locations, Get Google Location) and on the Update Google Location response. Search Google Locations reads Google's catalog rather than the merchant's own listing, so it leaves this unset — don't read a default there as a "no".  | read-only: true 
              - name: canOperateLodgingData | type: boolean | description: Whether this location can carry lodging (hotel) data — that is, whether Get/Update Google Location Lodging are usable for it. Google derives it from the primary category, so it flips when the category changes.  
              - name: mapsUri | type: string | description: Link to the location's page on Google Maps. Google returns it only once the listing is on Maps, so it stays empty for a listing that is still unverified or suspended.  | validation: maxLength 1000, format WEB_URL
              - name: canHaveFoodMenus | type: boolean | description: Whether this location is eligible for food menus. Callers must check this flag before using Update Location Food Menus.  | read-only: true 
              - name: newReviewUri | type: string | description: Link to the page on Google Search where a customer can leave a review for this location: the one a business sends customers when it asks for a review. Output only on Google's side. Google does not document when it is filled, so an empty value means there is no link to send yet.  | read-only: true | validation: maxLength 1000, format WEB_URL
        - name: googleError | type: ApplicationError | description: Why the profile data couldn't be retrieved for this location. See the description of this object for the error codes.  
           - name: code | type: string | description: Error code.  
           - name: description | type: string | description: Description of the error.  
           - name: data | type: object | description: Data related to the error.  
     - ONE-OF: 
        - name: voiceOfMerchant | type: VoiceOfMerchantState | description: Whether Google considers this location's profile trusted and live.  
           - name: hasVoiceOfMerchant | type: boolean | description: Whether the location is ready to be acted on by the merchant.  
           - name: hasBusinessAuthority | type: boolean | description: Whether the merchant has business-authority (claim) for the location.  
           - name: state | type: State | description: The action (if any) Google recommends the merchant take to obtain or restore voice-of-merchant. `STATE_NONE` means no action is required at this time.  
                 - enum:
                 -     WAIT_FOR_VOICE_OF_MERCHANT: Google is still assessing the location. Nothing to do but wait.
                 -     RESOLVE_OWNERSHIP_CONFLICT: Someone else claims this location. The site owner has to resolve it with Google directly.
                 -     COMPLY_WITH_GUIDELINES: The location needs to comply with Google's guidelines. Check `recommendationReason` for what Google flagged.
                 -     VERIFY: The location needs to be verified. Check `hasPendingVerification` to see whether one is already under way before starting another.
           - name: recommendationReason | type: RecommendationReason | description: Set when `state == COMPLY_WITH_GUIDELINES`: why Google is asking the merchant to review the guidelines.  
                 - enum:
                 -     BUSINESS_LOCATION_SUSPENDED: Listing has been suspended for guideline violations.
                 -     BUSINESS_LOCATION_DISABLED: Listing has been disabled.
           - name: hasPendingVerification | type: boolean | description: Set when `state == VERIFY`: true when a Verification resource is already in flight for the location (StartVerification was already called and the PIN is in transit).  
        - name: voiceOfMerchantError | type: ApplicationError | description: Why the Voice of Merchant state couldn't be retrieved for this location. Same error codes as `googleError`.  
     - name: location | type: GBPLocation | description: The location as it's stored for the site, including its `id` and `accountId`.  
        - name: id | type: string | description: Google's opaque location identifier on the public API.  | validation: minLength 1, maxLength 255, immutable
        - name: accountId | type: string | description: GUID of the Google Business Profile account that holds this location, what Google calls a location group.  One site can have locations in more than one account, because a single Google login can own several.  | validation: maxLength 255, immutable
        - name: serviceAreaPostalAddress | type: PostalAddress | description: Saved postal address for service-area businesses. Used as the `context` parameter in Google's FetchVerificationOptions call for service-area verification flows. Null for storefront businesses.  
        - name: createdDate | type: string | description: Date and time the location was imported into Wix.  | read-only: true | validation: format date-time
        - name: updatedDate | type: string | description: Date and time the location was last updated.  | read-only: true | validation: format date-time
        - name: revision | type: string | description: Revision number, incremented on every update. Used for optimistic locking.  | read-only: true 
        - name: googleLocationId | type: string | description: Google's location identifier for this location, the same value as `id`. Filter and sort on this field in Query GBP Locations.  | read-only: true | validation: maxLength 255, immutable
        - name: feedEntityId | type: string | description: Identity this location is published under in Google partner feeds, used as the entity GUID, merchant GUID or parent entity GUID across Reserve with Google, Order with Google and Dine with Google.  Can be set once. A location that already has a value keeps it, and a request that tries to change it is rejected: Google has already ingested the value as the merchant's identity, so changing it withdraws the business from those feeds and can remove its booking and ordering buttons. Setting it on a location that doesn't have one yet is allowed.  Locations created through this API are given a value automatically, so you usually don't need to set it. Specify it only when migrating a location whose identity Google already knows.  | validation: maxLength 288


```

### Examples

### Get a location with its live Google data
```curl
curl -X GET \
'https://www.wixapis.com/gbp/v1/locations/google/8034569321457853640' \
-H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.gbp.locations.getGoogleLocation(locationId)
 Description: Retrieves a GBP location with its current Google data.  The single-location counterpart of Query Google Locations, with the same behavior: if the profile data can't be retrieved from Google, the location is still returned and the reason is in `googleError`.  If the location isn't found, the call fails and Google isn't contacted.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  locationId
 Method parameters: 
   param name: locationId | type: string | description: GUID of the location to retrieve. This is Google's location identifier. | required: true | validation: minLength 1, maxLength 255
 Return type: PROMISE<GetGoogleLocationResponse>
  - name: location | type: LocationWithGoogle | description: The location, with its Google profile data or the reason that couldn't be retrieved.  
     - ONE-OF: 
        - name: googleLocation | type: GoogleLocation | description: The location's current profile data from Google.  
           - name: name | type: string | description: Google resource name, e.g. "locations/12345678901234567890". Empty on create request; populated on response.  | validation: maxLength 200
           - name: title | type: string | description: Business name shown on the listing (Google's "title"). Required when creating a location, and when `title` is in an update's `fieldMask`. An update that doesn't mask `title` can leave it empty.  | validation: maxLength 300
           - name: languageCode | type: string | description: BCP-47 language tag, e.g. "en-US". Required when creating a location and immutable afterwards. Not used by SearchGoogleLocations.  | validation: format LANGUAGE_TAG, immutable
           - name: primaryCategory | type: Category | description: Primary business category. Required by Google.  
              - name: _id | type: string | description: Google's category identifier, such as `categories/gcid:restaurant`.  The `categories/` prefix is optional when you send it. A bare `gcid:...` is accepted and prefixed for you.  | validation: minLength 1, maxLength 200
              - name: displayName | type: string | description: Display name of the category. Returned by Google, and ignored if you send it.  | read-only: true | validation: maxLength 200
           - name: additionalCategories | type: array<Category> | description: Additional categories. Google caps at 9.  | validation: maxItems 9
           - name: profile | type: Profile | description: Optional. Google asks for a description for every category except lodging but doesn't enforce it, so neither does this API. Both an absent profile and one with an empty description are accepted.  
              - name: description | type: string | description: Description of the location in the site owner's own words. Optional, and an empty value clears it on the listing. Google allows up to 750 characters.  | validation: maxLength 750
           - name: storefrontAddress | type: PostalAddress | description: Storefront postal address. Required for a business that serves customers at its premises, and allowed alongside `serviceArea` when that field's `businessType` is `CUSTOMER_AND_BUSINESS_LOCATION`.  
              - name: countryCode | type: string | description: ISO 3166-1 alpha-2 country code (e.g. "US", "GB").  | validation: format COUNTRY
              - name: postalCode | type: string | description: Postal/ZIP code.  | validation: maxLength 20
              - name: administrativeArea | type: string | description: Administrative area (state, province, region).  | validation: maxLength 100
              - name: locality | type: string | description: City or locality.  | validation: maxLength 100
              - name: addressLines | type: array<string> | description: Street address lines. Up to 5 lines.  | validation: maxItems 5, maxLength 255
           - name: serviceArea | type: ServiceArea | description: Service-area definition (for businesses that serve customers at the customer's location, exclusively or in addition to their storefront).  
              - name: businessType | type: BusinessType | description: Type of service-area business.  
                     - enum: CUSTOMER_LOCATION_ONLY, CUSTOMER_AND_BUSINESS_LOCATION
              - name: places | type: array<PlaceInfo> | description: Places served. Google caps at 20.  | validation: maxItems 20
                 - name: placeName | type: string | description: Human-readable place name (e.g. "Brooklyn, NY").  | validation: maxLength 200
                 - name: placeId | type: string | description: Google Place GUID (opaque).  | validation: maxLength 200
              - name: regionCode | type: string | description: ISO 3166-1 alpha-2 country code. Required by Google for CUSTOMER_LOCATION_ONLY businesses; ignored otherwise.  | validation: format COUNTRY
           - name: primaryPhone | type: string | description: Primary business phone.  | validation: maxLength 50
           - name: additionalPhones | type: array<string> | description: Additional phones. Google caps at 2.  | validation: maxItems 2, maxLength 50
           - name: websiteUri | type: string | description: Business website.  Clear it by masking `websiteUri` on Update Google Location and sending `null`. Sending an empty string is rejected.  | validation: maxLength 1000, format WEB_URL
           - name: storeCode | type: string | description: Merchant-defined store code (free-form identifier shown only to the merchant).  | validation: maxLength 64
           - name: regularHours | type: array<BusinessHours> | description: Regular weekly business hours.  | validation: maxItems 14
              - name: openDay | type: DayOfWeek | description: Day of the week when this open/close window starts.  
                     - enum: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY
              - name: openTime | type: TimeOfDay | description: Wall-clock time the business opens on `openDay`.  
                 - name: hours | type: integer | description: Hour of day, from 0 to 24. `24` means midnight at the end of the day, and is valid only with `minutes` 0. Google's TimePeriod admits 00:00-24:00, and a close at midnight set in Google's own UI comes back as `24:00`, so a value read from Google must be accepted back unchanged on an update.  | validation: minimum 0, maximum 24
                 - name: minutes | type: integer | description: Minute of the hour, from 0 to 59.  | validation: minimum 0, maximum 59
              - name: closeDay | type: DayOfWeek | description: Day of the week when this open/close window ends.  
              - name: closeTime | type: TimeOfDay | description: Wall-clock time the business closes on `closeDay`.  
           - name: specialHours | type: array<SpecialHourPeriod> | description: Hours for specific dates that override `regularHours`, such as holidays or one-off closures. Each entry covers one date.  Google accepts special hours only on a location that has `regularHours`. Update Google Location refuses 7 or more consecutive closed dates with `SPECIAL_HOURS_CLOSURE_TOO_LONG`. For a closure that long, set `openInfo.status` to `CLOSED_TEMPORARILY` instead, and back to `OPEN` when the business reopens. To clear every special hour, mask `specialHours` on Update Google Location and send none: Google replaces the whole list with what you send.  | validation: maxItems 500
              - name: startDate | type: Date | description: Date the special hours apply to. Required.  
                 - name: year | type: integer | description: Year, from 1 to 9999.  | validation: minimum 1, maximum 9999
                 - name: month | type: integer | description: Month, from 1 to 12.  | validation: minimum 1, maximum 12
                 - name: day | type: integer | description: Day of the month, from 1 to 31.  | validation: minimum 1, maximum 31
              - name: openTime | type: TimeOfDay | description: Time the business opens on `startDate`. Required unless `closed` is `true`.  
              - name: endDate | type: Date | description: Date the business closes, when it closes after midnight. Must be the same as `startDate` or the day after it. Defaults to `startDate`.  
              - name: closeTime | type: TimeOfDay | description: Time the business closes on `endDate`. Required unless `closed` is `true`. `24:00` means midnight at the end of `endDate`.  
              - name: closed | type: boolean | description: Whether the business is closed all day on `startDate`. When `true`, leave `openTime`, `closeTime` and `endDate` out.  
           - name: latLng | type: LatLng | description: Geographic coordinates of the storefront.  
              - name: latitude | type: number | description: Latitude in degrees. Must be in [-90, 90].  
              - name: longitude | type: number | description: Longitude in degrees. Must be in [-180, 180].  
           - name: openInfo | type: OpenInfo | description: Open/closed state of the listing.  
              - name: status | type: Status | description: Current listing status.  
                     - enum: OPEN, CLOSED_PERMANENTLY, CLOSED_TEMPORARILY
              - name: canReopen | type: boolean | description: Whether the listing can be reopened (only relevant for CLOSED_PERMANENTLY).  
           - name: metadata | type: Metadata | description: Read-only signals Google reports about the listing.  Only populated on the read paths (Query Google Locations, Get Google Location) and on the Update Google Location response. Search Google Locations reads Google's catalog rather than the merchant's own listing, so it leaves this unset — don't read a default there as a "no".  | read-only: true 
              - name: canOperateLodgingData | type: boolean | description: Whether this location can carry lodging (hotel) data — that is, whether Get/Update Google Location Lodging are usable for it. Google derives it from the primary category, so it flips when the category changes.  
              - name: mapsUri | type: string | description: Link to the location's page on Google Maps. Google returns it only once the listing is on Maps, so it stays empty for a listing that is still unverified or suspended.  | validation: maxLength 1000, format WEB_URL
              - name: canHaveFoodMenus | type: boolean | description: Whether this location is eligible for food menus. Callers must check this flag before using Update Location Food Menus.  | read-only: true 
              - name: newReviewUri | type: string | description: Link to the page on Google Search where a customer can leave a review for this location: the one a business sends customers when it asks for a review. Output only on Google's side. Google does not document when it is filled, so an empty value means there is no link to send yet.  | read-only: true | validation: maxLength 1000, format WEB_URL
        - name: googleError | type: ApplicationError | description: Why the profile data couldn't be retrieved for this location. See the description of this object for the error codes.  
           - name: code | type: string | description: Error code.  
           - name: description | type: string | description: Description of the error.  
           - name: data | type: object | description: Data related to the error.  
     - ONE-OF: 
        - name: voiceOfMerchant | type: VoiceOfMerchantState | description: Whether Google considers this location's profile trusted and live.  
           - name: hasVoiceOfMerchant | type: boolean | description: Whether the location is ready to be acted on by the merchant.  
           - name: hasBusinessAuthority | type: boolean | description: Whether the merchant has business-authority (claim) for the location.  
           - name: state | type: State | description: The action (if any) Google recommends the merchant take to obtain or restore voice-of-merchant. `STATE_NONE` means no action is required at this time.  
                 - enum:
                 -     WAIT_FOR_VOICE_OF_MERCHANT: Google is still assessing the location. Nothing to do but wait.
                 -     RESOLVE_OWNERSHIP_CONFLICT: Someone else claims this location. The site owner has to resolve it with Google directly.
                 -     COMPLY_WITH_GUIDELINES: The location needs to comply with Google's guidelines. Check `recommendationReason` for what Google flagged.
                 -     VERIFY: The location needs to be verified. Check `hasPendingVerification` to see whether one is already under way before starting another.
           - name: recommendationReason | type: RecommendationReason | description: Set when `state == COMPLY_WITH_GUIDELINES`: why Google is asking the merchant to review the guidelines.  
                 - enum:
                 -     BUSINESS_LOCATION_SUSPENDED: Listing has been suspended for guideline violations.
                 -     BUSINESS_LOCATION_DISABLED: Listing has been disabled.
           - name: hasPendingVerification | type: boolean | description: Set when `state == VERIFY`: true when a Verification resource is already in flight for the location (StartVerification was already called and the PIN is in transit).  
        - name: voiceOfMerchantError | type: ApplicationError | description: Why the Voice of Merchant state couldn't be retrieved for this location. Same error codes as `googleError`.  
     - name: location | type: GBPLocation | description: The location as it's stored for the site, including its `id` and `accountId`.  
        - name: _id | type: string | description: Google's opaque location identifier on the public API.  | validation: minLength 1, maxLength 255, immutable
        - name: accountId | type: string | description: GUID of the Google Business Profile account that holds this location, what Google calls a location group.  One site can have locations in more than one account, because a single Google login can own several.  | validation: maxLength 255, immutable
        - name: serviceAreaPostalAddress | type: PostalAddress | description: Saved postal address for service-area businesses. Used as the `context` parameter in Google's FetchVerificationOptions call for service-area verification flows. Null for storefront businesses.  
        - name: _createdDate | type: Date | description: Date and time the location was imported into Wix.  | read-only: true 
        - name: _updatedDate | type: Date | description: Date and time the location was last updated.  | read-only: true 
        - name: revision | type: string | description: Revision number, incremented on every update. Used for optimistic locking.  | read-only: true 
        - name: googleLocationId | type: string | description: Google's location identifier for this location, the same value as `id`. Filter and sort on this field in Query GBP Locations.  | read-only: true | validation: maxLength 255, immutable
        - name: feedEntityId | type: string | description: Identity this location is published under in Google partner feeds, used as the entity GUID, merchant GUID or parent entity GUID across Reserve with Google, Order with Google and Dine with Google.  Can be set once. A location that already has a value keeps it, and a request that tries to change it is rejected: Google has already ingested the value as the merchant's identity, so changing it withdraws the business from those feeds and can remove its booking and ordering buttons. Setting it on a location that doesn't have one yet is allowed.  Locations created through this API are given a value automatically, so you usually don't need to set it. Specify it only when migrating a location whose identity Google already knows.  | validation: maxLength 288


```

### Examples

### Get a location with its live Google data
Retrieve one location together with its current Google profile and Voice of Merchant state.

```javascript
import { locations } from "@wix/gbp";

async function getGoogleLocation() {
  const response = await locations.getGoogleLocation("8034569321457853640");

  console.log(response.location);
}

/* Promise resolves to:
 * {
 *   "location": {
 *     "location": {
 *       "_id": "8034569321457853640",
 *       "accountId": "104312867792031877552",
 *       "_createdDate": "2026-06-02T11:38:54.207Z",
 *       "_updatedDate": "2026-06-02T11:38:54.207Z",
 *       "revision": "1",
 *       "googleLocationId": "8034569321457853640"
 *     },
 *     "googleLocation": {
 *       "name": "locations/8034569321457853640",
 *       "title": "Sunset Coffee Roasters",
 *       "languageCode": "en-US",
 *       "primaryCategory": {
 *         "_id": "categories/gcid:coffee_shop",
 *         "displayName": "Coffee shop"
 *       },
 *       "storefrontAddress": {
 *         "countryCode": "US",
 *         "postalCode": "94110",
 *         "administrativeArea": "CA",
 *         "locality": "San Francisco",
 *         "addressLines": ["2436 Mission St"]
 *       },
 *       "primaryPhone": "+1 415-555-0129",
 *       "websiteUri": "https://www.sunsetcoffeeroasters.com",
 *       "openInfo": {
 *         "status": "OPEN",
 *         "canReopen": true
 *       }
 *     },
 *     "voiceOfMerchant": {
 *       "hasVoiceOfMerchant": true,
 *       "hasBusinessAuthority": true,
 *       "state": "STATE_NONE"
 *     }
 *   }
 * }
 */

```

### getGoogleLocation (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { locations } from '@wix/gbp';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { locations },
  // Include the auth strategy and host as relevant
});


async function getGoogleLocation(locationId) {
  const response = await myWixClient.locations.getGoogleLocation(locationId);
};
```

---