13

This is my first time diving into Google API's. I'm trying to get a simple test working following the Google instructions. At this point, I've created the project and set up credentials. Following Google's instructions here, I have created a test page and copied the page code exactly as stated on the above link.

When I run the page, I initially see an authorize button, which asks me to log into my account. Everything up to this point is fine. However, once I log in to Google, I receive the following error:

"{"error": {"code": 400,
            "message": "Client project not found. Please pass a valid project.",
            "status": "INVALID_ARGUMENT",
            "details": [{"@type": "type.googleapis.com/google.rpc.Help",
                         "links": [{"description": "Google developers console",
                                    "url": "https://console.developers.google.com"
                                  }]
                       }]
 }}"

I've read what little I can find, and nothing mentions this specific error.

Anyone encounter this error, or have any ideas?

Thanks!

1
  • you missed something in step 1 or you have not copied your credentials correctly Google cant find your project. May 27, 2016 at 8:33

1 Answer 1

37

Ah, solved it!

For the new Google API's, you need to enable the API in the developer console.

Go to: https://console.developers.google.com

In the list, find the API you want to use (for me it was Sheets API), click on it and Enable it.

It now works like a charm :-)

3
  • Needed this for knowledge api. Why this isn't listed in the docs is beyond me. Thanks so much!
    – Bahrom
    Jan 13, 2017 at 20:49
  • 2
    I needed to enable the Google+ API as part of authentication. Thanks! Mar 28, 2017 at 17:18
  • At least now the error is more helpful: 'Project 999999999 is not found and cannot be used for API calls. If it is recently created, enable Google+ API by visiting console.developers.google.com/apis/api/plus.googleapis.com/… then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.'
    – eflat
    Oct 14, 2017 at 23:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.