## Prerequisites

Because this product is in Preview (pre-GA), the following requirements differ
from the standard Google Cloud setup described later on this page.

### Required permissions

The Map Management API requires that you enable both the Map Management API and
[cloud-based maps styling](https://developers.google.com/maps/documentation/javascript/cloud-customization/setup-leg)
for your projects. Both products share the same permission requirements, which
the `MapsAdmin.owner` and `MapsAdmin.editor` roles include by default.

This guide shows how to set up your Google Cloud project before using
the Google Maps Platform APIs. Although you might have completed some of
these steps in the [Getting started with Google Maps Platform](https://developers.google.com/maps/get-started.md.txt)
guide, this document provides additional instructions for managing your
projects.

## Create a project

To use Google Maps Platform, you must have a project to manage services,
credentials, billing, APIs, and SDKs.

Each project requires [billing setup](https://developers.google.com/maps/documentation/mapmanagement/cloud-setup.md.txt#billing), but Google charges you only if
a project exceeds its
[quota](https://developers.google.com/maps/billing-and-pricing/billing#monthly-credit) of no-charge
services.

To create a Cloud project with billing enabled,
complete the following steps:

### Console

1. Create a new Google Cloud project in the
   Cloud console.


   [Create new project](https://console.cloud.google.com/projectcreate?utm_source=Docs_NewProject&utm_content=Docs_mapmanagement)
2. On the **New Project** page, fill in the required
   information:

   - **Project name**: accept the default or enter a
     custom name.

     You can change the project name at any time. For more
     information, see
     [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects).
   - **Project ID** : accept the default or click
     **Edit** to enter a custom ID that Google APIs use
     as a unique identifier for your project.

     After you create the project, you *can't* change
     the project ID, so choose an ID that meets your needs for the
     lifetime of the project. Don't include any sensitive
     information in your project ID.
   - **Billing account**: select a billing account for
     the project. If you haven't set up a billing account or
     have only one billing account, you don't see this option.

     You must be a Billing Account Administrator or Project Billing
     Manager to associate a project with a billing account. For more
     information, see
     [Overview of Cloud Billing roles in IAM](https://cloud.google.com/billing/docs/how-to/billing-access#overview_of_billing_roles_in).
   - **Location** : if you have an organization that
     you want to link your project to, click
     **Browse** and select it; otherwise, choose
     **No organization**.

     For more information, see
     [Creating and managing folders](https://cloud.google.com/resource-manager/docs/creating-managing-folders)
     and
     [Relationships between organizations, projects, and billing accounts](https://cloud.google.com/billing/docs/how-to/billing-access#relationships-between-resources).
3. Click **Create**.

### gcloud

```bash
gcloud projects create "PROJECT"
```

Read more about the [Google Cloud SDK](https://cloud.google.com/sdk), [Cloud SDK installation](https://cloud.google.com/sdk/docs/install), and the following commands:

- [`gcloud projects create`](https://cloud.google.com/sdk/gcloud/reference/projects/create)

## Enable billing

To deploy your apps, you must enable billing. Google doesn't charge your
account if you stay within your
[monthly quota](https://developers.google.com/maps/billing-and-pricing/billing#monthly-credit). If your
application uses resources that exceed the monthly quota, Google charges you for
the additional usage.

If you have a billing account when you create a Cloud
project, Google Cloud automatically enables billing on that project.

To enable billing on a Cloud project, complete the
following steps:

1. In the Cloud console, go to the
   **Billing** page:


   [Go to the Billing page](https://console.cloud.google.com/projectselector/billing?utm_source=Docs_Billing&utm_content=Docs_mapmanagement)
2. Select or create a Cloud project.
3. Depending on whether a billing account exists or whether the selected
   Cloud project is associated with an account, the
   **Billing** page displays one of the following options:

   - If billing is already enabled for the selected Cloud project, the page lists the details about your billing account.
   - If no billing account exists, the console prompts you to create a billing account and associate it with the selected Cloud project.
   - If a billing account exists and the selected Cloud project isn't already associated with a billing account, the console prompts you to enable billing. You can also click **Cancel** , and then click **Create
     account** to create and associate a new billing account.

After you enable billing, there's no limit to the amount that Google might
charge you. To gain more control over your costs, you can
[create a budget and set alerts](https://developers.google.com/maps/billing-and-pricing/billing#creating-budgets-and-set-alerts).
For more information, see
[Google Maps Platform billing](https://developers.google.com/maps/billing-and-pricing/billing).

## Enable APIs

To use Google Maps Platform, you must enable the APIs or SDKs you plan to use with your project.

### Console


[Enable the Map Management API](https://console.cloud.google.com/apis/library/mapmanagement.googleapis.com?utm_source=Docs_EnableAPIs&utm_content=Docs_mapmanagement)

### Cloud SDK

```bash
gcloud services enable \
    --project "PROJECT" \
    "mapmanagement.googleapis.com"
```

Read more about the [Google Cloud SDK](https://cloud.google.com/sdk), [Cloud SDK installation](https://cloud.google.com/sdk/docs/install), and the following commands:

- [`gcloud services enable`](https://cloud.google.com/sdk/gcloud/reference/services/enable)
- [`gcloud services disable`](https://cloud.google.com/sdk/gcloud/reference/services/disable)

## View enabled APIs

### Console

To view the APIs or SDKs that you've enabled, go to the
Google Maps Platform **APIs \& Services** page
in the Cloud console.


[Go to the Google Maps Platform page](https://console.cloud.google.com/project/_/google/maps-apis/api-list?utm_source=Docs_ProjectViewAPI&utm_content=Docs_mapmanagement)

- **Additional APIs**: these APIs or SDKs aren't enabled.
- If the page displays cards for individual Maps APIs and services, you haven't enabled any APIs or SDKs yet.

### gcloud

```bash
gcloud services list --project "PROJECT"
```

Read more about the [Google Cloud SDK](https://cloud.google.com/sdk), [Cloud SDK installation](https://cloud.google.com/sdk/docs/install), and the following commands:

- [`gcloud services list`](https://cloud.google.com/sdk/gcloud/reference/services/list)

## Shut down a project

To disable billing and release all the Cloud resources
that your Cloud project uses, shut down the project:

### Console

1. Go to the **Manage resources** page in the
   Cloud console.


   [Go to the Projects page](https://console.cloud.google.com/iam-admin/projects?utm_source=Docs_ProjectShutdown&utm_content=Docs_mapmanagement)
2. Select the Cloud project that you want to
   shut down, and then click **Delete**.

For more information about managing your
Cloud projects, see
[Creating and managing projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects).

### gcloud

```bash
gcloud projects delete "PROJECT"
```

Read more about the [Google Cloud SDK](https://cloud.google.com/sdk), [Cloud SDK installation](https://cloud.google.com/sdk/docs/install), and the following commands:

- [`gcloud projects delete`](https://cloud.google.com/sdk/gcloud/reference/projects/delete)

## What's next

After you set up your Google Cloud project, create and secure your API
key to use the Map Management API:

[Use API keys](https://developers.google.com/maps/documentation/mapmanagement/get-api-key)