If you haven't created a project yet, click on the project drop-down menu at the top of the page and select "New Project." Follow the prompts to create a new project.
Enable the API:
In the Google Cloud Console, navigate to the "APIs & Services" > "Dashboard" section.
Click on the "+ ENABLE APIS AND SERVICES" button.
Search for and enable the API you need (e.g., Google+ API, YouTube Data API).
Create OAuth 2.0 Credentials:
In the "APIs & Services" menu, click on "Credentials."
Click on "Create Credentials" and select "OAuth client ID."
Choose the application type based on your use case (e.g., Web application, Android app, iOS app).
Fill in the required information, such as the name of the client ID, authorized redirect URIs, etc.
Click "Create."
Retrieve Your Client Secret:
After creating the OAuth 2.0 client ID, you'll be redirected to the "Credentials" page.
Find your newly created credentials in the list.
Click on the pencil/edit icon next to your client ID to view the details.
Your "Client Secret" should be visible.
Note: Keep Your Client Secret Secure:
The client secret is a sensitive piece of information. Make sure to keep it secure and do not expose it in public places like client-side code.