First time asking on stackoverflow, so be patient if I break some rule, tried my best to solve by myself searching for a solution, but had no luck.
I used a tool to
In my case, it was a restriction related issue. I had used wildcards as suggested by the example in the "Website restrictions" in the Google console
*example.com/*
the wildcard did not work! I had to use the complete address of the page on which the API was implemented.
mysite.com/contact-page/
I hope this is of help for someone.