Google Business Performance API has a
NEW API method that allows fetching multiple `DailyMetrics` in a single API request. Review the
deprecation schedule and instructions to migrate over from v4 reportInsights API method to Google Business Profile Performance API.
ErrorCode
Stay organized with collections
Save and categorize content based on your preferences.
Error codes for ErrorDetail
:
- 1 to 199: common error codes that apply to all fields.
- 1000 to 1099: photos-related error codes.
- 1100 to 1199: address- and latitude/longitude-related error codes.
- 1200 to 1299: category-related error codes.
- 1300 to 1399: operation related error codes.
Enums |
ERROR_CODE_UNSPECIFIED |
Catch-all error code. |
MISSING_VALUE |
A required value was not provided. |
INVALID_VALUE |
An invalid value was provided. |
INVALID_CHARACTERS |
Invalid characters were found. |
TOO_MANY_ITEMS |
More than the maximum number of items was provided in a repeated field. |
READ_ONLY |
Read-only field cannot be modified. |
OVERLAPPING_RANGES |
Items in a repeated field are ranges that overlap with one another. |
INVERTED_RANGE |
The range provided is inverted. This also includes the case of an empty range. |
VALUE_OUTSIDE_ALLOWED_RANGE |
The value provided is outside of its allowed range. |
MISSING_DEPENDENT_FIELD |
Required dependent field not present. |
FIELD_HAS_DEPENDENCIES |
Field required by dependent field and cannot be removed. |
UNSUPPORTED_VALUE |
The provided value, although possibly valid, is unsupported due to other constraints. |
EXPIRED_VALUE |
The provided value has expired and is no longer valid. |
PHOTO_FETCH_FAILED |
Fetch photo from the specified URL failed. |
PHOTO_UPLOAD_FAILED |
Upload photo from the specified URL failed. |
GEOCODE_ERROR |
There was an error automatically determining latitude/longitude. |
LAT_LNG_OUTSIDE_COUNTRY |
The latitude/longitude provided does not lie in the country provided. |
LAT_LNG_REQUIRED |
Latitude and Longitude must be provided. |
LAT_LNG_TOO_FAR_FROM_ADDRESS |
The latitude/longitude and address pair are too far apart. |
CATEGORY_NOT_VERIFIED |
Category provided is not verified. |
OPERATION_EXECUTION_ERROR |
Generic operation execution error. |
OPERATION_UNSUPPORTED_UNDER_ACCOUNT_CONDITION |
Operation is not supported due to account condition. |
LOCATION_DISABLED_FOR_LOCAL_POST_API |
Location Disabled for Local Post API. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-16 UTC.
[null,null,["Last updated 2024-10-16 UTC."],[[["\u003cp\u003e\u003ccode\u003eErrorDetail\u003c/code\u003e codes are categorized: 1-199 (general), 1000-1099 (photos), 1100-1199 (address/location), 1200-1299 (category), and 1300-1399 (operation).\u003c/p\u003e\n"],["\u003cp\u003eCommon error codes include unspecified errors, missing or invalid values, invalid characters, and exceeding item limits.\u003c/p\u003e\n"],["\u003cp\u003eLocation-specific errors address issues with geocoding, latitude/longitude accuracy, and location restrictions.\u003c/p\u003e\n"],["\u003cp\u003ePhoto errors indicate failures in fetching or uploading images from provided URLs.\u003c/p\u003e\n"],["\u003cp\u003eOperational and categorical errors cover unsupported values, verification issues, and account-related limitations.\u003c/p\u003e\n"]]],[],null,["# ErrorCode\n\nError codes for `ErrorDetail`:\n\n- 1 to 199: common error codes that apply to all fields.\n- 1000 to 1099: photos-related error codes.\n- 1100 to 1199: address- and latitude/longitude-related error codes.\n- 1200 to 1299: category-related error codes.\n- 1300 to 1399: operation related error codes.\n\n\u003cbr /\u003e\n\n| Enums ||\n|-------------------------------------------------|---------------------------------------------------------------------------------------|\n| `ERROR_CODE_UNSPECIFIED` | Catch-all error code. |\n| `MISSING_VALUE` | A required value was not provided. |\n| `INVALID_VALUE` | An invalid value was provided. |\n| `INVALID_CHARACTERS` | Invalid characters were found. |\n| `TOO_MANY_ITEMS` | More than the maximum number of items was provided in a repeated field. |\n| `READ_ONLY` | Read-only field cannot be modified. |\n| `OVERLAPPING_RANGES` | Items in a repeated field are ranges that overlap with one another. |\n| `INVERTED_RANGE` | The range provided is inverted. This also includes the case of an empty range. |\n| `VALUE_OUTSIDE_ALLOWED_RANGE` | The value provided is outside of its allowed range. |\n| `MISSING_DEPENDENT_FIELD` | Required dependent field not present. |\n| `FIELD_HAS_DEPENDENCIES` | Field required by dependent field and cannot be removed. |\n| `UNSUPPORTED_VALUE` | The provided value, although possibly valid, is unsupported due to other constraints. |\n| `EXPIRED_VALUE` | The provided value has expired and is no longer valid. |\n| `PHOTO_FETCH_FAILED` | Fetch photo from the specified URL failed. |\n| `PHOTO_UPLOAD_FAILED` | Upload photo from the specified URL failed. |\n| `GEOCODE_ERROR` | There was an error automatically determining latitude/longitude. |\n| `LAT_LNG_OUTSIDE_COUNTRY` | The latitude/longitude provided does not lie in the country provided. |\n| `LAT_LNG_REQUIRED` | Latitude and Longitude must be provided. |\n| `LAT_LNG_TOO_FAR_FROM_ADDRESS` | The latitude/longitude and address pair are too far apart. |\n| `CATEGORY_NOT_VERIFIED` | Category provided is not verified. |\n| `OPERATION_EXECUTION_ERROR` | Generic operation execution error. |\n| `OPERATION_UNSUPPORTED_UNDER_ACCOUNT_CONDITION` | Operation is not supported due to account condition. |\n| `LOCATION_DISABLED_FOR_LOCAL_POST_API` | Location Disabled for Local Post API. |"]]