Get google api key

In this tutorial, we will guide you step by step to learn how to obtain the Google API key and activate geolocation services.

step 1 : Access Google Maps Platform at:

Step 2 : Scroll down until you find the section "Create API keys".

Step 3: Click on the blue button "Go to the Credentials page".

Step 4: Sometimes, you will be asked to select the account you want to use to sign in. Choose the account with which you want to obtain your API key.

Step 5 : Enter your password and click on "Next".

Step 6 : If your account is new, you will be shown a welcome screen asking you to select your country, accept the terms and conditions, and choose whether you want to receive updates or information to your email.

Step 5: This will take you to your dashboard in the APIs section. If it's your first time accessing it, you'll be asked to select a project. If you already have projects created in Firebase, you'll be prompted to choose one. Otherwise, you'll be asked to create a new one.

Step 7: We will create a new project by clicking on the "Create Project" option on the top right-hand side. If you already have a project, you can skip to step 10.

Step 8 : To create a new project, you will be asked to provide the following information: If you already have projects created previously, you will be asked to assign a billing account to it, as shown in image (A). If you don't have any previous projects, it will only ask you for the information shown in image (B). Here's what to enter in each option:

  • Project name: Enter the name you want to assign to your project to identify it more easily in the future.

  • Billing account: Select a payment account. If you don't have one, you will need to create it.

  • Organization: Enter your organization's domain. If you don't have one, don't worry, it's not mandatory. Google will assign a default one for you.

Step 9: If we don't have billing associated with our project, it is mandatory to have a payment method assigned, as Google provides a free tier of $200 per month, which is sufficient for your development environment and for the launch once in production. However, when exceeding this free tier, charges will be incurred. Therefore, we will navigate to the top-left menu icon and select the billing option.

Step 10: Go to the Link a Billing Account option and click.

Step 11: If you don't have a billing account, you will see an alert indicating that you need to create one to associate it with your project. Click on "Create billing account".

Step 12: You will be asked for the following information: country, what best describes your organization or needs, and to accept the terms of service.

Step 13: In the next step, you will be asked for your user information, requesting the following information: account type (business or individual). We recommend selecting business. Then, they will ask you for information such as the name of your business, your name, and address if you selected business. Otherwise, if you selected individual, they will only ask for your name and address.

Step 14: At the bottom of the form, you will be asked to enter your contact information, such as your name, phone number (optional), and email. They will show you the payment schedule, in this case, the charges are on the first of each month if you have exceeded the free tier. Finally, they will ask for your payment information where you must enter your payment details.

Step 15: At the end, you will be asked to complete a short survey about your interests in the platform with 3 questions. After filling it out, click on "Done".

Step 16: Once again, we go to the top left menu icon and navigate to the option "APIs & Services." A small menu will appear, and we will select "Credentials."

Step 17: Once inside, we will select the "+ CREATE CREDENTIALS" option located in the top bar of our screen below the search bar.

Step 18: Select the "API key" option.

Step 19: Our API key will be generated and we must copy it to later paste it in our Apphive app dashboard.

Step 20: Now, we navigate to the left-hand side menu and select the "Library" option.

Step 21: Once inside, navigate to the Maps section and select Maps SDK for Android.

Step 22: The service details will be displayed, here we need to activate it by clicking on the "Enable" button.

Step 23: On the screen, you will see two sections: "Enabled APIs" (your active services) and "Additional APIs" (other services you can activate). In the first section, you can see your active services, such as the Maps SDK for Android that we activated in the previous step. Now, you must select each of the additional services and activate them by clicking on each one of them, repeating step 22, to have all the functionalities active.

Última actualización