Authenticating with Maps Booking API

In order to make real-time updates, you need to make requests to the Maps Booking API. The Maps Booking API requires that you authenticate your requests using OAuth 2.0, and use a whitelisted Google Cloud Platform service account with the proper authorization. This guide will walk you through the steps to:

  1. Set up your Google Cloud project
  2. Create a service account
  3. Whitelist your account for the Maps Booking API
  4. Debug common issues

For information on how to make requests to the API, see our real-time API updates section of the end-to-end guide.

Setting up your Google Cloud project with Reserve with Google.

  1. Log in to your Google Cloud Platform account.
  2. You can create a new project or use an existing project for this purpose.
    • Please note down the cloud project number as you will require it in the next steps. Your cloud project number can also be found on Google Cloud Platform Home Page. The cloud project number is always numeric only.
  3. Log in to the Partner Portal.
  4. Complete step 1 on the Onboarding Tasks page of the Partner Portal by submitting the cloud project number and the cloud project email address (the email addressed used to administer the cloud project).

Creating a Service Account and OAuth credentials

  1. Log back into your Google Cloud Platform account.
  2. Navigate to IAM & admin > Service accounts.
  3. Search for your existing or newly created cloud project id.
  4. Create a service account.
  5. Fill out the service account details.
  6. Set the service account permissions to an “owner” role.
  7. After clicking “continue” in step (6), you will be given an option to create JSON keys.
  8. Save the json credentials. Make sure to store these in a safe place, as you will not be able to retrieve them at a later time.
  9. Log back into Partner Portal and complete step 2 on the Onboarding Tasks page of the Partner Portal.

Enable the MapsBooking API

  1. Log in to your Google Cloud Platform account.
  2. Navigate to API & Services > Dashboard.
  3. Click on 'Enable APIs and Services' and search for ‘Google Maps Booking API'.
  4. Enable the following APIs:
    • Google Maps Booking API
    • Google Maps Booking API (Dev)

Common Errors

There are a variety of reasons that you may experience authorization issues when making real-time Update requests. If you need general guidance on how to make Real-Time Updates requests, see our real-time API updates section of the end-to-end guide.

If you are encountering 403 errors, check that you are following all of the following requirements:

  1. Use a Google Client Library
  2. Create OAuth Credentials using Service Account Auth.
  3. Authorize against the appropriate scope
  4. Make calls to the appropriate endpoint
    • Google Maps Booking API calls should be made to the Production Endpoint (https://mapsbooking.googleapis.com/)
    • Google Maps Booking API(Dev) calls should be made to the Sandbox Endpoint (https://partnerdev-mapsbooking.googleapis.com/)
  5. The service account must be created by the Google Account that was entered into the Onboarding Tasks page of the Partner Portal

Ensure you are authorizing your OAuth credentials requests properly:

  1. You are authorizing against the scope "https://www.googleapis.com/auth/mapsbooking".
  2. You are using the service account key from (2.1).

Ensure you are making calls to the correct endpoint:

  1. Sandbox: https://partnerdev-mapsbooking.googleapis.com/v1alpha/...
  2. Production: https://mapsbooking.googleapis.com/v1alpha/...

Still seeing errors?

If you are still receiving a 403 response after following these steps, reach out to your Reserve with Google contact with the following information:

  • Cloud project id with a screenshot
  • Service account id
  • Email used to create the service account
  • End-point details attempted to make requests to
  • Time of request attempts
  • Full request and error messages received when making requests.