Download

Get Client ID, Client Secret and Developer API Key for Google Developers Console Application

UPDATE: Here is a video guide specially made for Analytify WordPress Plugin users.

 

 

Following are the simple steps which can help you to get your Client ID, Client Secret and Developer API Key for your Web Apps or WordPress plugins from Google Developers Console. I wrote this tutorial for Analytify users but It can be beneficial for everyone.

  1. You need to create a Project in Google Developer Console. Click here to go to Console page. It will ask you to login with your Google Account if you are not logged in already. If you have created Projects in Google Developers Console before you will see the list of already created projects. If not, below screen will appear.

    Start - Create Project in Google Developers Console
    Start – Create Project in Google Developers Console
  2. In both scenarios, Click on ‘Create Project' button.
  3. A popup will appear, where you will enter ‘Project Name' and ‘Project ID' which will help you to recognize your project in the console.

    Enter Project Name - Google Developers Console
    Enter Project Name – Google Developers Console
  4. By clicking on Create button, Your project will be created and redirects you to your projects list in Console.
  5. Clicking on the project name which you have recently created will take you to your Project Dashboard.
  6. See left side navigation menu. Go to Overview, here you can see the list of popular Google APIs.  Select ‘Analytics API' and Enable it.

    Enable Analytics API in Google Developers Console
    Enable Analytics API in Google Developers Console
  7. Next, Go to Credentials -> OAuth Consent Screen, Check your Email address and Enter your Product name “Analytify Project” and Save it.

    Enter Product Name - Google Developers Console
    Enter Product Name – Google Developers Console
  8. Go to Credentials tab. Click on OAuth 2.0 Client ID at the dropdown like below.

    Get OAuth 2.0 Client ID - Google Developers Console
    Get OAuth 2.0 Client ID – Google Developers Console
  9. You will select your Application Type ‘Web Application' and Add the Redirect URI. Redirect URI should be same of your application installation URL. For Analytify WordPress plugin, It should be the settings page URL like in the screenshot below.

    Application Type and Redirect URIs - Google Developers Console
    Application Type and Redirect URIs – GoogleDevelopers Console
  10. Click on Create button. It will start creating Keys. You will see a popup containing Client ID and Client Secret. Copy that and paste it in Plugin.

    Get your Client ID and Client Secret - Google Developers Console.
    Get your Client ID and Client Secret – Google Developers Console.
  11. Now, you need to get Public API Key. Click on API key at the dropdown like below.

    Create Public API Key - Google Developers Console
    Create Public API Key – Google Developers Console
  12. Click the Browser Key and press ‘Create‘ button.

    Select Browser Key - Google Developers Console
    Select Browser Key – Google Developers Console
  13. If you have done all the above steps correctly, the popup will open and you should see you API key.

    Get your API keys - Google Developers Console.
    Get your API keys – Google Developers Console.

23 thoughts on “Get Client ID, Client Secret and Developer API Key for Google Developers Console Application

  1. Hi,

    I just installed the plugin and it looks really great. But I miss the click route people have. Where can I see on a page where people came from and what page they went to after this particular page or post? I can’t find it in the overview.

    Thanks for your reply in advance.

  2. You should update this tutorial. Google has changed its layout and your instructions do not reflect the actual page.

    I am getting a 401 error when requesting “Get your access code”.

  3. Hi,,
    I created oauth for installed application i.e., android correctly, but when i downloaded json file in that client secret key is missing.How do i find it, is google changed their policy? Pls help me to find client secret key.

    1. In recent update to WP Analytify, You don’t need access code. Simply login with your Google account and you will be connect.

      Update your WP Analytify please.

      1. Ok, thanks. How do I update it Adnan!

        Just to let you know, that when I t to get short url from inside my blog, it went error, and then I couldn’t access my pages, so had to deactivate the plugin! So hope the updated version works.

        🙂

        1. This what I get. Please advise. Thanks!

          Fatal error: Uncaught exception ‘Shortify_WP_Google_Service_Exception’ with message ‘Error calling POST https://www.googleapis.com/urlshortener/v1/url: (403) Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.’ in /home3/becomey1/public_html/wp-content/plugins/wp-shortify/src/Google/Http/REST.php:79 Stack trace: #0 /home3/becomey1/public_html/wp-content/plugins/wp-shortify/src/Google/Http/REST.php(44): Shortify_WP_Google_Http_REST::decodeHttpResponse(Object(Shortify_WP_Google_Http_Request)) #1 /home3/becomey1/public_html/wp-content/plugins/wp-shortify/src/Google/Client.php(503): Shortify_WP_Google_Http_REST::execute(Object(Shortify_WP_Google_Client), Object(Shortify_WP_Google_Http_Request)) #2 /home3/becomey1/public_html/wp-content/plugins/wp-shortify/src/Google/Service/Resource.php(195): Shortify_WP_Google_Client->execute(Object(Shortify_WP_Google_Http_Request)) #3 /home3/becomey1/public_html/wp-content/plugins/wp-shortify/src/Google/Service/Urlshortener.php(136): Shortify_WP_Google_Service_Resou in /home3/becomey1/public_html/wp-content/plugins/wp-shortify/src/Google/Http/REST.php on line 79

  4. Help me please. I used gdata.youtube.service to upload video on youtube channel – i have YOUTUBE_DEVELOPER_KEY
    gdata sends me error now. As a solve of this problem i wanted to go for API3 but it tells me to use
    CLIENT_SECRETS_FILE = “client_secrets.json”
    What is it? A once more new KEY? Or I cen gen it from
    YOUTUBE_DEVELOPER_KEY ?

Leave a Reply

Your email address will not be published. Required fields are marked *