Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Google Maps API key quota or billing error: how to fix it

OPS-221Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Many sites use Google Maps for store locators, contact pages, delivery-area checks and address fields. Each map load calls Google with an API key, a code that identifies your project and billing account. If the key is rejected, the map does not draw.

The rest of the page usually loads normally. The only sign is a grey box, a darkened map with a watermark, or an empty space where the map should be. That makes the problem easy to miss.

Common Google Maps errors and what they mean
Console errorMeaningUsual fix
BillingNotEnabledMapErrorNo active billing account linked to the projectLink or reactivate billing in Google Cloud
OverQuotaMapError / OVER_QUERY_LIMITDaily or per-minute quota used upRaise the quota or cut redundant loads
RefererNotAllowedMapErrorKey restricted to other domainsAdd your domain to HTTP referrer restrictions
ApiNotActivatedMapErrorMaps JavaScript API not enabledEnable the API in the Library
InvalidKeyMapError / MissingKeyMapErrorKey wrong, deleted or absentPaste a valid key into your site or plugin

Why it costs you leads or sales

A broken map hides the information people use to decide: where you are, whether you deliver to them, how to reach a branch. A store locator that does not load can end the visit. An address field that depends on Maps may stop visitors completing a form or checkout.

A watermarked or grey map also looks unprofessional and can reduce trust. Billing errors often appear without warning, for example when a card expires.

Where a Maps key error breaks the journey
  1. Visitor opens locator pagePage loads normally
  2. Map script calls GoogleKey rejected: billing, quota or referrer
  3. Visitor finds a branchNo map or pins to use
  4. Call, visit or orderVisitor leaves

The page loads, but the map call is refused, so later steps that need it are lost.

A map that fails quietly

The page looks fine until the map area stays grey.

How to check if your site has it

Check for the error yourself
  1. Open the page with the map

    Look for a grey box, a dark map with 'For development purposes only', or blank space.

  2. Open the browser console

    In Chrome, press F12 (or Cmd+Option+J on Mac) and choose the Console tab. Reload the page.

  3. Read the error

    Look for lines starting 'Google Maps JavaScript API error' followed by a name such as BillingNotEnabledMapError. Match it to the table above.

  4. Check Google Cloud Console

    Go to APIs & Services > Metrics and Quotas for the project, and Billing to see if the account is active.

  5. Test other pages and devices

    Maps may be on checkout, contact and landing pages. Check each one, and test on mobile.

How to fix it

First fix the cause in Google Cloud, then update the key on your site if needed.

Fix the key in Google Cloud Console
  1. Select the right project

    Use the project picker at the top and find the project that owns your key. Check the key value matches the one on your site.

  2. Restore billing

    Open Billing, link an active billing account to the project and update any expired card or unpaid balance.

  3. Enable the right APIs

    Under APIs & Services > Library, enable each API your site uses, such as Maps JavaScript API, Places API or Geocoding API.

  4. Review quotas

    Under APIs & Services > Quotas, check limits per day and per minute. Raise them or set sensible caps, and cut repeated map loads on high-traffic pages.

  5. Fix key restrictions

    Under Credentials, open the key. Set Application restrictions to HTTP referrers and add your domains, such as https://example.com/* and https://www.example.com/*. Under API restrictions, allow only the APIs you use.

Update the key on your site
  1. Find where the key is stored

    It is often in a plugin or theme setting, such as a store locator, contact form or page builder map settings. Search the plugin's settings for 'API key'.

  2. Paste the working key and save

    Clear any caching plugin and CDN cache, then reload the page.

Maps JavaScript API script taghtml
<script async defer
  src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap">
</script>
Map loads vs successful mapsExample numbers
Map loads vs successful maps (example)Before fix: 0 %; After fix: 100 %038770100Before fixAfter fix%

Example: share of visitors who see a working map before and after fixing billing.

How to confirm it's fixed

Confirmation checks
  • Reload the page in a private window; the map draws with no watermark
  • The console shows no 'Google Maps JavaScript API error' lines
  • Pins, search and address autocomplete work
  • The map loads on mobile and on every page that uses it
  • Google Cloud Metrics show successful requests, not errors
  • A budget alert is set in Billing

How to prevent it happening again

Prevention habits
  • Keep a current payment method on the billing account and add a second billing contact
  • Set budget alerts and quota alerts in Google Cloud
  • Use one key per site, restricted to its domains and APIs
  • Add new domains and staging URLs to referrer restrictions before launch
  • Load maps only where needed, and lazy-load them below the fold
  • Check map pages after any theme, plugin or domain change

How FunnelGuard handles this

FunnelGuard detects this issue only partly. When its robot visitor runs your journeys, it sees console errors on the pages it visits, so a Google Maps error written to the console can show up in a check. That is all it covers: a console error.

FunnelGuard does not check your Google Cloud billing status, your remaining quota, or your key restrictions, and it does not judge whether a map looks right. A map that fails without a console error, or on a page your journeys do not visit, can be missed.

The Free plan covers 1 site and 2 journeys with daily checks and no card. Paid plans include a 3-day free trial.

Questions people ask

Why does my Google Map say 'For development purposes only'?

Google shows this watermark when the API key has no active billing account, or billing is not linked to the project. Link or reactivate billing in Google Cloud Console and the watermark goes away after a reload.

Why is my Google Map grey or blank?

A grey map usually means Google rejected the API key. Open the browser console and read the error name, such as BillingNotEnabledMapError, RefererNotAllowedMapError or ApiNotActivatedMapError, to see which setting to fix.

How do I fix BillingNotEnabledMapError?

Open Google Cloud Console, select the project that owns your key and link an active billing account under Billing. Update any expired card or unpaid balance, then reload your page.

How do I fix RefererNotAllowedMapError?

Your key is restricted to HTTP referrers that do not include your domain. Under APIs & Services > Credentials, open the key and add your domain patterns, such as https://example.com/* and https://www.example.com/*.

What happens when the Google Maps API quota is exceeded?

Google refuses further requests until the quota resets or you raise it, and the map or autocomplete stops working. Check Quotas in Google Cloud, raise limits if needed and reduce repeated map loads.

Can I see Google Maps key errors without checking manually?

Only in part. A scheduled check that visits the page can pick up a console error, but it will not read your Google Cloud billing or quota. Budget and quota alerts in Google Cloud cover that side.

Is the Google Maps API free?

Google requires a billing account to use the Maps Platform, and pricing and any free usage depend on its current terms. Check the Google Maps Platform pricing page for the products you use.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: Console error only.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.