Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable Billing on the Google Cloud Project

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

like image 313
Trinu Avatar asked Oct 07 '19 11:10

Trinu


People also ask

How do I access Google Cloud Billing?

Sign in to the Google Cloud console. Open the console Navigation menu menu, and then select Billing. If you have more than one Cloud Billing account, do one of the following: To manage Cloud Billing for the current project, select Go to linked billing account.

Who can change the billing account linked to a project in GCP?

To move your project to a different billing account, you must be a billing administrator and the project owner.


2 Answers

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.

like image 120
Shiva Nayak Dharavath Avatar answered Sep 29 '22 06:09

Shiva Nayak Dharavath


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.

like image 29
Rishabh Agrawal Avatar answered Sep 29 '22 06:09

Rishabh Agrawal