Attention: v4.7 of the API has released! See change log. Posts related to COVID-19 are still temporarily permitted for chains.

REST Resource: categories

Resource: Category

A category describing what this business is (not what it does). For a list of valid category IDs, and the mappings to their human-readable names, see categories.list.

JSON representation
{
  "displayName": string,
  "categoryId": string,
  "serviceTypes": [
    {
      object (ServiceType)
    }
  ]
}
Fields
displayName

string

. The human-readable name of the category. This is set when reading the location. When modifying the location, categoryId must be set.

Note: This field is used in responses only. Any value specified here in a request is ignored.

categoryId

string

. A stable ID (provided by Google) for this category. The categoryId must be specified when modifying the category (when creating or updating a location).

Note: This field is used in responses only. Any value specified here in a request is ignored.

serviceTypes[]

object (ServiceType)

. It provides a list of all the service types that are available for this business category.

Note: This field is used in responses only. Any value specified here in a request is ignored.

ServiceType

A message describing a service type that the business offers.

JSON representation
{
  "serviceTypeId": string,
  "displayName": string
}
Fields
serviceTypeId

string

. A stable ID (provided by Google) for this service type.

Note: This field is used in responses only. Any value specified here in a request is ignored.

displayName

string

The human-readable display name for the service type.

Note: This field is used in responses only. Any value specified here in a request is ignored.

Methods

batchGet

Returns a list of business categories for the provided language and GConcept ids.

list

Returns a list of business categories.