Method: accounts.locations.followers.getMetadata

  • Retrieve follower settings for a specified location using a GET request to the provided endpoint.

  • The request requires a location resource name as a path parameter and an empty request body.

  • The response includes the location's follower metadata, such as resource name and total follower count, if successful.

  • Potential errors include NOT_FOUND if the account or location is missing, and PRECONDITION_FAILED if the location isn't verified or connected to Google Maps.

  • Authorization necessitates using either the https://www.googleapis.com/auth/plus.business.manage or https://www.googleapis.com/auth/business.manage OAuth scope.

Get the followers settings for a location.

NOT_FOUND is returned if either the account or the location doesn't exist. PRECONDITION_FAILED is returned if the location is not verified nor connected to Maps.

HTTP request

GET https://mybusiness.googleapis.com/v4/{name=accounts/*/locations/*/followers/metadata}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

The resource name of the location's followers metadata. accounts/{accountId}/locations/{locationId}/followers/metadata

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

Follower metadata for a location.

JSON representation
{
  "name": string,
  "count": string
}
Fields
name

string

The resource name for this. accounts/{accountId}/locations/{locationId}/followers/metadata

count

string

Total number of followers for the location.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/plus.business.manage
  • https://www.googleapis.com/auth/business.manage

For more information, see the OAuth 2.0 Overview.