I have logged in to google api cloud platform, created a project, created a billing account, enabled it , generated credentials, generated api key, used the api key in the code. But still I am facing problem and the code is not working as it should perform.