Restez organisé à l'aide des collections Enregistrez et classez les contenus selon vos préférences.
Vous devez créer un projet Google Cloud pour utiliser les API Google Workspace et créer des applications ou des modules complémentaires Google Workspace. Un projet Cloud constitue la base pour créer, activer et utiliser tous les services Google Cloud, y compris gérer les API, activer la facturation, ajouter et supprimer des collaborateurs, et gérer les autorisations.
Pour en savoir plus sur les projets Cloud, consultez la section Créer et gérer des projets dans la documentation Google Cloud.
Facultatif: Activez la facturation pour votre projet Cloud
Selon les API et fonctionnalités Google Workspace que vous souhaitez utiliser, vous devrez peut-être également activer la facturation pour votre projet Cloud:
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/12/22 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2024/12/22 (UTC)."],[[["\u003cp\u003eA Google Cloud project is a prerequisite for utilizing Google Workspace APIs and developing Google Workspace add-ons or applications.\u003c/p\u003e\n"],["\u003cp\u003eYou can create a new Cloud project through the Google Cloud console or the gcloud command-line interface, providing a foundation for your Google Workspace integrations.\u003c/p\u003e\n"],["\u003cp\u003eDepending on your usage of Google Workspace APIs, enabling billing for your Cloud project might be necessary to access certain features and services.\u003c/p\u003e\n"],["\u003cp\u003eAfter creating your Cloud project, the next crucial step is to enable the specific Google Workspace APIs that your application or add-on will interact with.\u003c/p\u003e\n"]]],["A Google Cloud project is necessary for using Google Workspace APIs. To create one, use the Google Cloud console by navigating to **IAM & Admin** \u003e **Create a Project**, entering a project name and selecting a location. Alternatively, use the `gcloud projects create` command in the Cloud Shell or a local environment. Optionally, enable billing through the console by going to **Billing** and choosing a billing account or using the `gcloud billing projects link` command.\n"],null,["# Create a Google Cloud project\n\nA Google Cloud project is required to use Google Workspace APIs and build\nGoogle Workspace add-ons or apps. A Cloud project forms the\nbasis for creating, enabling, and using all Google Cloud services, including\nmanaging APIs, enabling billing, adding and removing collaborators, and managing\npermissions.\n\nCreate a Cloud project\n----------------------\n\n### Google Cloud console\n\n1. In the Google Cloud console, go to Menu menu \\\u003e **IAM \\& Admin** \\\u003e **Create a Project** .\n\n [Go to Create a Project](https://console.cloud.google.com/projectcreate)\n2. In the **Project Name** field, enter a descriptive name for your project.\n\n\n Optional: To edit the **Project ID** , click **Edit**. The project ID can't be changed\n after the project is created, so choose an ID that meets your needs for the lifetime of the\n project.\n3. In the **Location** field, click **Browse** to display potential locations for your project. Then, click **Select** . **Caution: Can't find your Google Workspace organization?** \n | This means you aren't signed in to a Google Workspace account. Some of the features described in Google Workspace developer documentation are only available to projects associated with an organization.\n4. Click **Create**. The Google Cloud console navigates to the Dashboard page and your project is created within a few minutes.\n\n### gcloud CLI\n\nIn one of the following development environments, access the Google Cloud\nCLI (`gcloud`):\n\n- **Cloud Shell** : To use an online terminal with the gcloud CLI already set up, activate Cloud Shell. \n [Activate Cloud Shell](https://console.cloud.google.com/?cloudshell=true)\n- **Local Shell** : To use a local development environment, [install](https://cloud.google.com/sdk/docs/install) and [initialize](https://cloud.google.com/sdk/docs/initializing) the gcloud CLI. \n To create a Cloud project, use the `gcloud projects create` command: \n\n gcloud projects create \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e\n\n Replace \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e by setting the ID for the project you want to create.\n\nFor further information on Cloud projects, refer to\n[Creating and managing projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects)\nin the Google Cloud documentation.\n\nOptional: Enable billing for your Cloud project\n-----------------------------------------------\n\nDepending on the Google Workspace APIs and features that you want to\nuse, you might also need to enable billing for your Cloud project:\n| If you're unable to link a billing account, you don't have the permissions needed to make this change. For more information, see [Permissions required to enable billing](https://cloud.google.com/billing/docs/how-to/modify-project#required-permissions-enable).\n\n### Google Cloud console\n\n1. In the Google Cloud console, go to **Billing** . Click **Menu** menu \\\u003e **Billing** \\\u003e **My Projects** .\n\n [Go to Billing for My Projects](https://console.cloud.google.com/billing/projects)\n2. In **Select an organization**, choose the organization associated with your Google Cloud project.\n3. In the project row, open the **Actions** menu (more_vert), click **Change billing**, and choose the Cloud Billing account.\n4. Click **Set account**.\n\n### gcloud CLI\n\n1. To list available billing accounts, run: \n\n gcloud billing accounts list\n\n2. Link a billing account with a Google Cloud project: \n\n gcloud billing projects link \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e --billing-account=\u003cvar translate=\"no\"\u003eBILLING_ACCOUNT_ID\u003c/var\u003e\n\n Replace the following:\n - \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e is the **Project ID** for the Cloud project for which you want to enable billing.\n - \u003cvar translate=\"no\"\u003eBILLING_ACCOUNT_ID\u003c/var\u003e is the **billing account ID** to link with the Google Cloud project.\n\nFor further information about billing, see\n[Enable, disable, or change billing for a project](https://cloud.google.com/billing/docs/how-to/modify-project)\nin the Google Cloud Billing documentation.\n\nNext step\n---------\n\n[Enable Google Workspace APIs](/workspace/guides/enable-apis)\nin your Cloud project."]]