On the website https://code.google.com/apis/console I have registered my application, set up generated Client ID: and Client Secret to my a
In my case I had to check the Client ID type for web applications/installed applications.
installed applications: http://localhost [Redirect URIs] In this case localhost simply works
web applications: You need valid domain name [Redirect URIs:]