53

I want to retrieve address from lat long coords. I have created project in google console. Added Billing information and enabled the geocoding api services. But still when i make this request i am getting the below error

https://maps.googleapis.com/maps/api/geocode/json?latlng=41.89,12.49&key=xxxx

You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable

John Hanley
  • 74,467
  • 6
  • 95
  • 159
Trinu
  • 1,721
  • 3
  • 21
  • 41

10 Answers10

65

I was also Facing the same issue, Billing is enabled and is linked to the project but I was getting the same Error.

After Spending enough time on this issue, I understood that the type of my billing account is "Google Cloud Platform", but it should be of type : "Google Maps Platform"

You can see the type of your billing account on the right side of Billing Overview as in the image:

enter image description here

So please check if your Billing type is "Google Maps Platform", if not create a new Billing Account with "Google Maps Platform" as type and link your project to this Billing Account.

Dharman
  • 30,962
  • 25
  • 85
  • 135
Shiva Nayak Dharavath
  • 3,082
  • 1
  • 14
  • 19
34

Most of us are getting this response/error

{
   "error_message" : "You must enable Billing on the Google Cloud Project at <br>https://console.cloud.google.com/project/_/billing/enable Learn more at https://developers.google.com/maps/gmp-get-started",
   "predictions" : [],
   "status" : "REQUEST_DENIED"
}

If you will read this answer throughly you'll be able to sort out this issue.

As mentioned in this answer.
You'd have to create a separate billing account in order to use Google Map APIs because google map bills in USD currency instead of your native currency.

Solution(3 step)

  1. create a new billing account.
  2. create a new project and associate it with above billing.
  3. enable Map API and create a new API key. that's it.

Step1: create a new billing account, you can use this link https://console.cloud.google.com/billing/create and Choose Google Map Platform from the dropdown.

enter image description here

Step2: create a new project using this link https://console.cloud.google.com/projectcreate and use billing account created above.

enter image description here

Step3: Now you can enable particular API and you're good to go. That's it.

Rishabh Agrawal
  • 1,998
  • 2
  • 25
  • 40
7

Make sure that the API key you are using to authenticate the request is from a project that has an active billing account. If not, your requests will fail and if you are using Javascript API, your map will get the "Degraded experience".

Below are some of the links we have that could be helpful in your use case.

Once everything is set up, you can always file a support case via https://console.cloud.google.com/google/maps-apis/support in order to open personalized communication channel whenever you are encountering issues with our product.

Thank you and hope this helps!

rafon
  • 1,469
  • 11
  • 21
4
  1. Go back to the billing account and see if something went wrong with your credit card. Credit cards are validated asynchronously.
  2. Go to the GCP Console and verify that your billing account is assigned to the project.
  3. In the GCP Console check for past due amounts.

After you assign/modify a credit card, wait. The process is not instant in (re)authorizing billing for your account.

John Hanley
  • 74,467
  • 6
  • 95
  • 159
  • 3
    I'm just testing so don't care about the 'development purposes only' overlay. I don't want to set up a billing account (yet at least) so how to disable the popup warning? – Symo Jul 07 '20 at 15:21
  • 1
    it doesn't work man. The Google Maps Platform is no longer there and I'm still having the issue. Any ideas? – crasholino Jan 25 '21 at 02:04
  • We were able to find the issues with our CC and updated the CC to pay, again. How long do we have to wait until the process will work again? – Martin Braun Jun 06 '21 at 11:06
4

I had the same issue. I was doing everything correct. then I found this link

Gmp india faq

The problem was Google maps billing doesn't support INR Currency.

Please check if your currency compatible with Google Maps billing platform otherwise create new billing account with USD currency.

Thanks!

You may find this link helpful

Modify a project billing settings

3

I have had similar problem, when I have created a free tire payment account and I was not able to create a Windows VM as thesse are paid. To fix I have "upgraded" the free tier payment account. It was confusing because the payment account has had enabled a valid payment method and linked to the project but it was not working.

There is a button to upgrade the free tier payment account, on the account dashboard page.

Tomasz Swider
  • 2,314
  • 18
  • 22
1

For anyone still struggling , my case was that i have reached a maximum of projects for the same billing account and for some reason i couldnt create a new one as mentioned above , for that after a lot of reasearch i found that i could disable billing for some project so i can use it in new ones : 1- go to the link https://console.cloud.google.com/billing/projects 2- click on the three dots for the first projects (the billing is enbale for those projects). 3-disable one of them
4- enable the billing for your new project and you are good to go !

however still not sure why i could only enable this for just 3 project , i think it is not a lot !

MALIK forz
  • 66
  • 6
0

For those of you who enabled their billing account through the link in the error message but still get the error, or can't find "Enabled google service" as someone else suggested, simply just delete your browsers cache and try again.

0

Use:

gcloud alpha billing accounts list --format json
# ^^ find an active billing account then
ACCOUNT_ID='0XYXYX-XYXYXY-XYXYXY'
gcloud beta billing projects link $PROJECTNAME --billing-account $ACCOUNT_ID
# ensure it says "billingEnabled: true"
masterxilo
  • 2,503
  • 1
  • 30
  • 35
0

I think you are missing one more step. You also need to add that billing account to that project to gain access.

NOTE: Do not disable and reenable your project it will have some side effect in your project and some stuff are not recoverable. It is mention in documentation.

Here the official doc.

enter image description here

Arpit Patel
  • 7,212
  • 5
  • 56
  • 67