Google Reviews are a great way to showcase your reputation and customer trust on your website. With this widget, you can integrate your company's reviews posted on Google My Business directly on your website. In this article, I will show you how to connect the Google My Business API to use the Google reviews widget.
Step 1: Access Google My Business
Before you start the API connection process, make sure you have access to Google My Business. If you don't have direct access, you can ask your company or primary account administrator to provide it to you.
Step 2: Create a project in Google Cloud Platform
In order to use the API functionality and obtain the necessary authorisation keys, you need to create a project in the Google Cloud Platform:
- Go to https://console.cloud.google.com/project and create a new project.

- Enter a project name and click Create.

- Copy the Project ID and Project Number and save them for later use.

Step 3: Request access to the API
Now that we have a project in the Google Cloud Platform, we need to request access to the Google My Business API:
- Go to https://docs.google.com/forms/d/1XTQc-QEjsE7YrgstyJxbFDnwmhUhBFFvpNJBw3VzuuE/viewform to fill out the request form.

- In the form, enter Project ID, Project Number and your corporate email.

- Confirm the submission of the form from the specified email.

- Wait for a response from Google - it may take a few days.

Step 4: Enable the Google My Business API
Once the access request is approved, we can enable the necessary APIs for the project:
- Go to the section "APIs & Services" -> "Library" in the system Google Cloud Platform.

- Find the following APIs and enable them:
- Google My Business API
- My Business Account Management API
- My Business Lodging API
- My Business Place Actions APICode here# Create a new client and credentials
Step 5: Set up OAuth authentication for the app
To work with the Google reviews widget, we need to create an OAuth client and get the necessary authorisation keys:
- Go to the section "APIs & Services" -> "Credentials" in the system Google Cloud Platform.

- Click the Create Credentials button and select the OAuth client type.

- Enter the project name, select the type of application (for example, web application), and enter all the necessary data.

- Add a redirect URI for your website or page with the Google reviews widget.

- Save Client ID and Client secret - we'll need them later.

Congratulations! Now you have connected the Google My Business API to your project and can use its functionality to display reviews on your website.
Step 6: Setting up the Google reviews widget
Finally, we can start setting up the Google reviews widget itself:
- Install the module ‘Google Reviews - reviews from Google Maps (Google Business)’ on your website or CMS.
- Enter the previously received Client ID, Client secret, and other necessary data in the module settings.
- Save your changes and check if the widget works.
Now you can show the latest reviews about your company from Google My Business right on your website using the Google reviews widget. This helps build customer trust and presents your company in the best possible light.
If you follow all these steps, you will be able to successfully connect the Google My Business API and use the Google reviews widget on your website. Good luck!