Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Les demandes envoyées à l'API Bid Manager doivent utiliser le protocole OAuth 2.0 pour l'authentification.
Cette page explique comment générer les identifiants OAuth 2.0 et les utiliser pour
à authentifier vos utilisateurs.
Vous pouvez créer un projet ou utiliser un projet existant.
Créer un projet
Pour créer un projet et activer l'API Bid Manager, suivez les étapes décrites dans l'article
Console Google Cloud
Utiliser un projet existant
Pour activer l'API Bid Manager pour un projet existant, procédez comme suit :
étapes:
Ouvrez la bibliothèque d'API dans la console Google Cloud. Si vous y êtes invité,
sélectionnez un projet ou créez-en un. La bibliothèque d'API répertorie toutes les API
des API, regroupées par famille de produits et par popularité. L'API Bid Manager est associée à un libellé
API DoubleClick Bid Manager.
Si l'API que vous souhaitez activer ne figure pas dans la liste, utilisez la barre de recherche.
pour le trouver.
Sélectionnez l'API que vous souhaitez activer, puis cliquez sur Activer.
Activez la facturation si vous y êtes invité.
Si vous y êtes invité, acceptez les conditions d'utilisation de l'API.
Générer des identifiants
Cette section explique comment générer un ID client OAuth 2.0 pour l'authentification
vos demandes API Bid Manager, après avoir choisi un projet.
Ouvrez la page Identifiants dans la console Google Cloud.
Cliquez sur Create Credentials (Créer des identifiants) > ID client OAuth :
Sélectionnez un type d'application approprié lorsque vous y êtes invité. Les bases de données Java et Python
des extraits de code figurant dans les guides du développeur de l'API Bid Manager sont destinés
Application de bureau : Les extraits de code PHP sont destinés à une application Web.
Saisissez toute information supplémentaire requise. Si c'est la première fois
créant un ID client, vous pouvez configurer votre écran de consentement en cliquant sur
Configurer l'écran de consentement Vous ne recevrez pas d'invite vous invitant à configurer votre consentement
l'écran une fois que vous l'avez fait pour la première fois, mais vous pouvez modifier
à tout moment.
Cliquez sur Créer.
Lorsque vous avez terminé, vous obtenez un identifiant et un code secret du client OAuth 2.0, que vous
peuvent être téléchargés au format JSON et enregistrés pour une utilisation ultérieure.
Configurer l'écran de consentement de l'utilisateur
Lorsque vous utilisez OAuth 2.0 pour l'authentification, vos utilisateurs sont authentifiés après
il accepte les conditions d'utilisation
sur un écran de consentement de l'utilisateur.
Pour configurer l'écran de consentement de votre projet, procédez comme suit:
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 2025/08/31 (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 2025/08/31 (UTC)."],[[["\u003cp\u003eThe Bid Manager API requires OAuth 2.0 for authentication, and this page guides you through generating and using necessary credentials.\u003c/p\u003e\n"],["\u003cp\u003eYou'll need to select or create a Google Cloud project and enable the Bid Manager API before generating credentials.\u003c/p\u003e\n"],["\u003cp\u003eGenerating credentials involves creating an OAuth 2.0 client ID through the Google Cloud console after selecting your project.\u003c/p\u003e\n"],["\u003cp\u003eEnsure you configure the user consent screen, where users will agree to terms before authentication is granted.\u003c/p\u003e\n"],["\u003cp\u003eOAuth 2.0 credentials are sensitive and should be downloaded directly from Google Cloud console and kept secure.\u003c/p\u003e\n"]]],[],null,["# Generate credentials\n\nRequests to the Bid Manager API must use [OAuth 2.0](/identity/protocols/oauth2) for authentication.\nThis page explains how to generate the OAuth 2.0 credentials and use them to\nauthenticate your users.\n\nChoose a project\n----------------\n\nOAuth 2.0 credentials are generated by a Google Cloud project. You need\nto [create or select a project in the Google Cloud console and enable the\nAPI](//console.cloud.google.com/start/api?id=doubleclickbidmanager.googleapis.com&credential=client_key).\n\nYou can create a new project, or use an existing one.\n\n### Create a new project\n\nTo create a project and activate the Bid Manager API, follow the steps in the\n[Google Cloud console](//console.cloud.google.com/start/api?id=doubleclickbidmanager.googleapis.com&credential=client_key).\n\n### Use an existing project\n\nTo activate the Bid Manager API for an existing project, complete the following\nsteps:\n\n1. [Open the API Library](//console.cloud.google.com/apis/library) in the Google Cloud console. If prompted, select a project or create a new one. The API Library lists all available APIs, grouped by product family and popularity. The Bid Manager API is labeled **DoubleClick Bid Manager API**.\n2. If you don't see the API you want to activate in the list, use the search bar to find it.\n3. Select the API you want to activate, then click **Enable**.\n4. If prompted, activate billing.\n5. If prompted, accept the Terms of Service for the API.\n\nGenerate credentials\n--------------------\n\nThis section explains how to generate an OAuth 2.0 client ID to authenticate\nyour Bid Manager API requests, after you've [chosen a project](#choose_a_project).\n\nTo create an OAuth 2.0 client ID to use with the [installed application\nflow](/identity/protocols/OAuth2InstalledApp), complete the following steps:\n\n1. Configure a [Google Cloud console project](#choose_a_project).\n2. Open the **Credentials** page in the Google Cloud console.\n3. Click **Create Credentials** \\\u003e **OAuth client ID**.\n4. Select an appropriate application type when prompted. The Java and Python code snippets in the Bid Manager API developer guides are for a **Desktop app** . The PHP code snippets are for a **Web application**.\n5. Enter any additional required information. If this is your first time creating a client ID, you can configure your consent screen by clicking **Configure consent screen**. You won't get a prompt to configure your consent screen again after you do it the first time, but you can update this information at any time.\n6. Click **Create**.\n\nWhen you're done, you get an OAuth 2.0 client ID and client secret, which you\ncan download in JSON format and save for later use.\n| **Warning:** OAuth credentials are sensitive information. You should download them directly from the Google Cloud console, and shouldn't share them.\n\nConfigure the user consent screen\n---------------------------------\n\nWhen you use OAuth 2.0 for authentication, your users are authenticated after\nthey agree to terms on a user consent screen.\n\nTo set up your project's consent screen, complete the following steps:\n\n1. Open the [OAuth consent screen page](//console.cloud.google.com/apis/credentials/consent) in the Google Cloud console. If prompted, [select a project or create a new one](#choose_a_project).\n2. Fill out the form, then click **Save**."]]