- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- MonthlyRange
- SearchKeywordCount
- InsightsValue
Returns the search keywords used to find a business in search or maps. Each search keyword is accompanied by impressions which are aggregated on a monthly basis.
Example request: GET
https://businessprofileperformance.googleapis.com/v1/locations/12345/searchkeywords/impressions/monthly?monthlyRange.start_month.year=2022&monthlyRange.start_month.month=1&monthlyRange.end_month.year=2022&monthlyRange.end_month.month=3
HTTP request
GET https://businessprofileperformance.googleapis.com/v1/{parent=locations/*}/searchkeywords/impressions/monthly
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The location for which the time series should be fetched. Format: locations/{locationId} where locationId is an unobfuscated listing id. |
Query parameters
Parameters | |
---|---|
monthlyRange |
Required. The range in months to aggregate the search keywords impressions over. |
pageSize |
Optional. The number of results requested. The default page size is 100. Page size can be set to a maximum of 100. |
pageToken |
Optional. A token indicating the next paginated result to be returned. A base64-encoded string. |
Request body
The request body must be empty.
Response body
Represents the response for monthly.list.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"searchKeywordsCounts": [
{
object ( |
Fields | |
---|---|
searchKeywordsCounts[] |
Search terms which have been used to find a business. |
nextPageToken |
A token indicating the last paginated result returned. This can be used by succeeding requests to get the next "page" of keywords. It will only be present when there are more results to be returned. A base64-encoded string. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/business.manage
For more information, see the OAuth 2.0 Overview.
MonthlyRange
Time range indicating a month range (both inclusive).
JSON representation |
---|
{ "startMonth": { object ( |
Fields | |
---|---|
startMonth |
Required. Inclusive - Only the year and months fields will be considered |
endMonth |
Required. Inclusive - Only the year and months fields will be considered |
SearchKeywordCount
Represents a single search keyword and its value.
JSON representation |
---|
{
"searchKeyword": string,
"insightsValue": {
object ( |
Fields | |
---|---|
searchKeyword |
The lower-cased string that the user entered. |
insightsValue |
One of either: 1) The sum of the number of unique users that used the keyword in a month, aggregated for each month requested. 2) A threshold that indicates that the actual value is below this threshold. |
InsightsValue
Represents an insights value.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field InsightsValue . Represents that only one of the following proto fields must be present. InsightsValue can be only one of the following: |
|
value |
Represents the actual value. |
threshold |
Represents the threshold below which the actual value falls. |