# Getting Your Google API Key

*Skill Level: Intermediate*

## Before You Begin

* Ensure you have a Google account (Gmail is fine)
* Ensure you are logged into this account in your browser
* You will need a paid Adalo plan in order to use this feature.
* Note that each time your app uses a location feature, your Google plan will be charged.

## &#x20;Walkthrough

{% tabs %}
{% tab title="Simple" %}
**1.)**  Login to your Google account, if you have not already, create a new Google Cloud Console project by [clicking here](https://console.cloud.google.com/projectcreate), then give it a name, then click **Create**. If you have Google Workspace, you can also tie this project to an Organization, otherwise you can leave it on **No organization**.

![](https://3467607506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LhGHkPsv15svPIU5I7C%2Fuploads%2FVCcuWlwVXPD6LGTX4NdL%2FScreen%20Shot%202022-05-02%20at%2011.36.43%20AM.png?alt=media\&token=0c6314e2-5d15-414d-aed5-30a3be0210ea)

**2.)** Next we need to setup billing for our project. Click on the **Billing** tab in the left-hand menu.

![](https://3467607506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LhGHkPsv15svPIU5I7C%2Fuploads%2FsDfmqvUdjKWBe3iumsgm%2FScreen%20Shot%202022-05-02%20at%2011.38.23%20AM.png?alt=media\&token=9f12e942-ed01-4ce2-8769-988d42466003)

**3.)**  If you already have a billing account, you may link it here, otherwise click **Manage Billing Accounts**.

![](https://3467607506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LhGHkPsv15svPIU5I7C%2Fuploads%2FGt6WcHpbEoNFOU08e5zY%2FScreen%20Shot%202022-05-02%20at%2011.40.18%20AM.png?alt=media\&token=f342150a-59a9-4646-8e7c-52058b9a5c3d)

**4.)**  Click **Add Billing Account**

![](https://3467607506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LhGHkPsv15svPIU5I7C%2Fuploads%2FVwMAzBJBA2H63gH5RAA7%2FScreen%20Shot%202022-05-02%20at%2011.41.33%20AM.png?alt=media\&token=98eeb7d4-3459-4d77-b772-6be6c434d50d)

**5.)**  Provide some basic details about your account, verify a phone number, then input your card details and click **Start My Free Trial**. Google provides a $200/month credit for location and maps features in additional to a $300 of credit to start with. [Learn more](https://help.adalo.com/database/location/estimating-google-api-usage)

![](https://3467607506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LhGHkPsv15svPIU5I7C%2Fuploads%2Fjn0d1A5DAhNFemCzUgpf%2FScreen%20Shot%202022-05-02%20at%2011.43.48%20AM.png?alt=media\&token=9dacc6ee-68fc-4a3c-86ac-90d0b34282de)

**6.)**  Now go back to <https://console.cloud.google.com/>. Ensure your project name is selected in the top left. Click on the **Billing** tab again, then Link your new billing account to your project.

![](https://3467607506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LhGHkPsv15svPIU5I7C%2Fuploads%2FFiV1CUEogRUMfrY2P0Pu%2FScreen%20Shot%202022-05-02%20at%2012.27.42%20PM.png?alt=media\&token=826bf323-3cd0-4634-ad39-ed102a6fa0d0)

{% hint style="info" %}
**NOTE:** Google provides a free $200/month allowance for location/maps API usage in addition to the free trial. You will need upgrade your billing account once your free trial runs out of funds in order to keep using Google's services. You can either do this now or later when you launch your app. Do this in the **Billing** tab of your project. Learn more in our [estimating Google costs article](https://help.adalo.com/~/revisions/kmzOxqjy7C9sXGVjDKKb/database/location/estimating-google-api-usage).
{% endhint %}

**7.)**  Next we need to enable the APIs we're going to use. Click on each link below to open the APIs page, then click **Enable**. Ensure the correct project is selected in the upper left first.

* Geocoding API-<https://console.cloud.google.com/apis/library/geocoding-backend.googleapis.com>
* Maps JavaScript API-<https://console.cloud.google.com/apis/library/maps-backend.googleapis.com>
* Maps Static API-<https://console.cloud.google.com/apis/library/static-maps-backend.googleapis.com>
* Places API-<https://console.cloud.google.com/apis/library/places-backend.googleapis.com>

If you are planning on using the Maps component in your application, go ahead and enable these APIs as well:

* Maps SDK for Android-<https://console.cloud.google.com/apis/library/maps-android-backend.googleapis.com>
* Maps SDK for iOS-<https://console.cloud.google.com/apis/library/maps-ios-backend.googleapis.com>

\
**8.)**  Now let's get our Google API Key. Click on the menu icon in the top left, then hover over **API's and Services** and select **Credentials**.

![](https://3467607506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LhGHkPsv15svPIU5I7C%2Fuploads%2FLoubYHNPcniKnkmP3Ow9%2FScreen%20Shot%202022-05-02%20at%2012.05.45%20PM.png?alt=media\&token=0fb60302-e26c-41d9-8f57-11c1f323bc6d)

**9.)**  Click on **+Create Credentials** in the top left, then click **API Key.**&#x20;

![](https://3467607506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LhGHkPsv15svPIU5I7C%2Fuploads%2FJaPIeHfLYTOmW7PDtO6a%2FScreen%20Shot%202022-05-02%20at%2012.35.52%20PM.png?alt=media\&token=2edd679d-df9d-4e78-a2bf-bec080fa8a35)

**10.)** Your new API Key will be visible in the popup. Copy the key and save it in a safe location - treat it like a password\ <br>

![](https://3467607506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LhGHkPsv15svPIU5I7C%2Fuploads%2F093hWeyTFiqXJeHie80Z%2FScreen%20Shot%202022-05-02%20at%2012.37.20%20PM.png?alt=media\&token=19eb5fed-6e5c-439d-afc4-163a1c1f8395)

**11.)**  Once you've saved it, let's now paste it into our Adalo account for use with our Location property. In the Adalo Builder, (1) click on the **Gear icon** in the left menu, then (2) click **API Keys**, (3) paste your API Key into the text field, and (4) click **Save Key**.

![](https://3467607506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LhGHkPsv15svPIU5I7C%2Fuploads%2FgYtiLPTx2bzhYfY3y5xN%2FScreen%20Shot%202022-05-02%20at%2012.42.48%20PM.png?alt=media\&token=82c55102-79e3-4c07-b526-0c3c27d36378)
{% endtab %}

{% tab title="Video" %}
{% embed url="<https://www.youtube.com/watch?v=nBJpN9Q3vHM>" %}
{% endtab %}
{% endtabs %}

## Learn More

* Google provides free $200/month credit for the location and maps API usage.[ Learn more](https://help.adalo.com/~/revisions/kmzOxqjy7C9sXGVjDKKb/database/location/estimating-google-api-usage)
* If your Google Cloud Services trial runs out of funds without upgrading your account and you go over the $200/month allowance, your API key will cease working and so will your app's location features. [Learn More](https://help.adalo.com/~/revisions/kmzOxqjy7C9sXGVjDKKb/database/location/estimating-google-api-usage)
* You can use the same API key for both the Maps component and the Location property type.
* If you lose your API Key or it becomes compromised, you will have to create a new API Key using the steps above.
* You can also delete API keys in your **APIs and Services** > **Credentials** tab if you suspect the key has been compromised.
* You can track your billing usage in the **Billing** tab of your [Cloud Console Dashboard](https://console.cloud.google.com).

## Help

If you need additional help with this article, you can always ask in our [community forum](https://forum.adalo.com/)! Be sure to paste the link to this article in your post as well!
