Just a small addition to @ IcanDivideBy0 answer - you need to add BOTH to the Google search console and to the list of allowed domains in your project (in the Google cloud console). I added the domain to the search console, and it did not work even then, while I had no reason to add it to my GCP console
Nishant
source share