Reputation: 41
I have an Android app where I display nearby hospitals using Google Map. I am using Maps & Places API.
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=12.2649519,76.6208733&radius=10000&type=hospital&sensor=true&key=MY_API_KEY
I have enabled billing for my account. I have linked the account to my project. The app was working fine. However when I check it now, it gives me error
{ "error_message" : "You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable Learn more at https://developers.google.com/maps/gmp-get-started", "html_attributions" : [], "results" : [], "status" : "REQUEST_DENIED"}
My billing account is active. I have not done any changes to the code nor to my billing account. I have not set any application or API restrictions on my API key.
I created a new billing account and linked it to the project to check if there was any problem with my old billing account. I am getting the same error.
Upvotes: 3
Views: 4183
Reputation: 4461
Accordingly to the @Sahana Kamath comment this issue was solved by Google Maps Support team.
As I’ve checked here your billing account is in INR which the Maps project is linked with. Maps projects will only work in a USD billing account, so what you need to do is create a new billing account in USD currency. Just make sure that you select your country for the Country and also select google maps platform to make sure you create it right.
Also, accordingly to the documentation About currencies and Cloud Billing accounts:
Each Cloud Billing account operates in a single currency, which you cannot change after you create your Cloud Billing account. If you need a Cloud Billing account to operate in a currency different than the currency of your existing Cloud Billing account, you will need to set up a new Cloud Billing account.
In addition, please have a look at the documentation Getting started with Google Maps Platform and Google Maps Platform Billing.
Upvotes: 1