To answer your question, you need to redirect URI where the response is returned and has to be registered in the APIs console, and the error is indicating that you haven't done that, or haven't done it correctly. Go to the console for your project and look under API Access. You should see your client ID & client secret there, along with a list of redirect URIs. If the URI you want isn't listed, click edit settings and add the URI to the list.
Please Note that updating the google api console and that change being present can take some time. Generally only a few minutes but sometimes it seems longer.