You must configure an OAuth consent screen before using an OAuth 2.0 client ID. However, if setting up your OAuth consent screen does not solve the problem, try it again after a day or two, as it has worked for some users based on this related thread. Additionally, I suggest reviewing again the OAuth 2.0 setup documentation from Google Cloud Platform Console Help, as you might have missed something.