Bhushan Shenvi
Bhushan Shenvi

Reputation: 333

Google Maps API Billing not Enabled Error - Billing not open

I am adding a Google Map to a client's site. The problem is that I am getting the "Development Use Only" overlay on the map, although the billing is enabled for the said project. The Google Maps API checker shows successful API requests. But the browser console gives Billing not enabled error. One thing peculiar I found was that in Google Maps API overview it shows that Billing Account is not open. I think the error is because of this, but I am unable to figure out why it is not open. I am not getting any errors with payment, the project is associated with a Billing account, I even verified the respective domain, but still, the error.

Google Billing Summary

Project Associated with Billing Account

Google Maps API Checker

Browser Console

Google Maps Overview

The code is similar to:

<script>
    function myMap() {
      var mapProp= {
        center:new google.maps.LatLng(51.508742,-0.120850),
        zoom:5,
      };
      var map = new google.maps.Map(document.getElementById("map"),mapProp);
      }
    </script>

   <script async defer src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY&callback=myMap"></script>

Upvotes: 1

Views: 23192

Answers (1)

Gersey
Gersey

Reputation: 26

You need to check if you are using an INR billing account. if you do, then you need to use/create a new one for USD to make it work.

Check the following documentation to learn more:

https://developers.google.com/maps/gmp-india-migration#same

https://developers.google.com/maps/gmp-india-faq#overview

Upvotes: 1

Related Questions