L'API
Google Business Performance propose une
NOUVELLE méthode qui permet d'extraire plusieurs `DailyMetrics` avec une seule requête API.
Consultez le
planning d'abandon et les instructions pour migrer de la méthode API reportInsights v4 à l'API Google Business Profile Performance.
REST Resource: accounts.locations.verifications
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Ressource: Verification
Une validation correspond à une tentative de validation d'un établissement.
Champs |
name |
string
Nom de ressource de la validation.
|
method |
enum (VerificationMethod )
Méthode de vérification.
|
state |
enum (VerificationState )
État de la validation.
|
createTime |
string (Timestamp format)
Code temporel du moment où la demande de validation est demandée. Horodatage au format RFC3339 UTC "Zulu", avec une résolution de l'ordre de la nanoseconde et jusqu'à neuf chiffres décimaux. Exemples : "2014-10-02T15:01:23Z" et "2014-10-02T15:01:23.045123456Z" .
|
VerificationMethod
Spécifie les processus utilisés par Google pour valider un établissement.
Enums |
VERIFICATION_METHOD_UNSPECIFIED |
Valeur par défaut, entraînera des erreurs. |
ADDRESS |
Envoyez un courrier contenant un code de validation à une adresse postale spécifique. Ce code permet de valider votre identité auprès de Google. |
EMAIL |
Envoyez un e-mail contenant un code de validation à une adresse e-mail spécifique. Ce code permet de valider votre identité auprès de Google. |
PHONE_CALL |
Passez un appel téléphonique avec un code de validation vers un numéro de téléphone spécifique. Ce code permet de valider votre identité auprès de Google. |
SMS |
Envoyer un code d'accès de validation par SMS à un numéro de téléphone spécifique Ce code permet de valider votre identité auprès de Google. |
AUTO |
Faire valider l'établissement sans autre action de la part de l'utilisateur Il est possible que cette option ne soit pas disponible pour toutes les zones géographiques. |
VerificationState
Tous les états de validation possibles.
Enums |
VERIFICATION_STATE_UNSPECIFIED |
Valeur par défaut, entraînera des erreurs. |
PENDING |
La validation est en attente. |
COMPLETED |
La validation est terminée. |
FAILED |
Échec de la validation. |
Méthodes |
|
Effectue une validation de PENDING . |
|
Lister les validations d'un établissement, classées par heure de création |
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[null,null,["Dernière mise à jour le 2025/07/25 (UTC)."],[[["\u003cp\u003eA verification in Google My Business represents an attempt to verify a location using various methods like address, email, phone, or SMS.\u003c/p\u003e\n"],["\u003cp\u003eVerification resources contain details like the method used, the verification state (pending, completed, or failed), and a timestamp indicating when the verification was initiated.\u003c/p\u003e\n"],["\u003cp\u003eBusinesses can utilize the Google My Business API to manage verifications, including completing pending verifications and retrieving a list of past verifications for a specific location.\u003c/p\u003e\n"],["\u003cp\u003eDifferent verification methods are available, including postcard mailing, email, phone call, SMS, or automatic verification if eligible.\u003c/p\u003e\n"]]],["A verification tracks an attempt to verify a location, represented by a name, method, state, and creation timestamp. Verification methods include `ADDRESS` (postcard), `EMAIL`, `PHONE_CALL`, `SMS`, and `AUTO`. Verification states can be `PENDING`, `COMPLETED`, or `FAILED`. Key actions involve completing a pending verification and listing verifications for a location ordered by their creation date.\n"],null,["# REST Resource: accounts.locations.verifications\n\n- [Resource: Verification](#Verification)\n - [JSON representation](#Verification.SCHEMA_REPRESENTATION)\n- [VerificationMethod](#VerificationMethod)\n- [VerificationState](#VerificationState)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Verification\n----------------------\n\nA verification represents a verification attempt on a location.\n\n| JSON representation ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"name\": string, \"method\": enum (/my-business/reference/rest/v4/accounts.locations.verifications#VerificationMethod), \"state\": enum (/my-business/reference/rest/v4/accounts.locations.verifications#VerificationState), \"createTime\": string } ``` |\n\n| Fields ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Resource name of the verification. |\n| `method` | `enum (`[VerificationMethod](/my-business/reference/rest/v4/accounts.locations.verifications#VerificationMethod)`)` The method of the verification. |\n| `state` | `enum (`[VerificationState](/my-business/reference/rest/v4/accounts.locations.verifications#VerificationState)`)` The state of the verification. |\n| `createTime` | `string (`[Timestamp](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp)` format)` The timestamp when the verification is requested. A timestamp in RFC3339 UTC \"Zulu\" format, with nanosecond resolution and up to nine fractional digits. Examples: `\"2014-10-02T15:01:23Z\"` and `\"2014-10-02T15:01:23.045123456Z\"`. |\n\nVerificationMethod\n------------------\n\nSpecifies the processes used by Google to verify a location.\n\n| Enums ||\n|-----------------------------------|------------------------------------------------------------------------------------------------------------------------------|\n| `VERIFICATION_METHOD_UNSPECIFIED` | Default value, will result in errors. |\n| `ADDRESS` | Send a postcard with a verification PIN to a specific mailing address. The PIN is used to complete verification with Google. |\n| `EMAIL` | Send an email with a verification PIN to a specific email address. The PIN is used to complete verification with Google. |\n| `PHONE_CALL` | Make a phone call with a verification PIN to a specific phone number. The PIN is used to complete verification with Google. |\n| `SMS` | Send an SMS with a verification PIN to a specific phone number. The PIN is used to complete verification with Google. |\n| `AUTO` | Verify the location without additional user action. This option may not be available for all locations. |\n\nVerificationState\n-----------------\n\nAll possible verification states.\n\n| Enums ||\n|----------------------------------|---------------------------------------|\n| `VERIFICATION_STATE_UNSPECIFIED` | Default value, will result in errors. |\n| `PENDING` | The verification is pending. |\n| `COMPLETED` | The verification is completed. |\n| `FAILED` | The verification is failed. |\n\n| Methods ------- ||\n|------------------------------------------------------------------------------------------|-----------------------------------------------------------|\n| ### [complete](/my-business/reference/rest/v4/accounts.locations.verifications/complete) | Completes a `PENDING` verification. |\n| ### [list](/my-business/reference/rest/v4/accounts.locations.verifications/list) | List verifications of a location, ordered by create time. |"]]