Fix ProjectDeniedMapError on Google Maps
Google denied the request at the level of the Cloud project that owns your API key. Key restrictions, referrers and enabled APIs don't matter while that is in place. Google publishes very little about this error, so the reason you need is in Cloud Console and in the project owners' email.
How to tell this is your problem
- The console shows ProjectDeniedMapError, on every page and in every browser.
- Changing the key's restrictions or creating a new key in the same project makes no difference.
- Other Google Cloud services in the same project may also be failing or show warnings.
- Project owners may have received an email from Google Cloud about the project, its billing account or a policy issue.
This is what the console shows:
Why it happens
Google's error reference only says the request has not been completed and that you may find more details in the Cloud console. It doesn't list causes. In practice, a project-level denial usually traces back to one of these. Check them in this order:
- A billing problem on the project's billing account. A closed or suspended billing account, or an unpaid balance. If the console instead shows BillingNotEnabledMapError, follow the billing guide.
- A project suspension. Google Cloud can suspend a project it believes is compromised or in breach of its terms, for example after unusual activity on leaked credentials.
- A Maps Platform terms issue. Some policy enforcement affects the whole project. Related errors such as TOSViolationMapError and RefererDeniedMapError have their own guides.
- The project is being shut down. A project an owner has shut down stops serving while it waits to be deleted. For a deleted project Google documents a separate code, DeletedApiProjectMapError.
Because the cause sits above the key, creating a new key in the same project won't help. Find the notice first.
The fix, step by step
- 01Confirm which project owns the key. In Cloud Console, open APIs & Services → Credentials and find the key your page sends. The project picker at the top shows which project you're in. If you can't find the key in any project you can see, you may not have access to the right one.
- 02Open that project's dashboard and look for notices. Suspensions, policy flags and billing holds are normally shown as a banner or notification. Read the full text: it usually names the reason and the next step.
- 03Check the project owners' email. Google Cloud sends notices to project owners and billing contacts. Search for messages from Google Cloud or Google Maps Platform around the date the map broke, including spam folders.
- 04Check billing. Open the project's billing page. Make sure it is linked to an open billing account in good standing, and settle any overdue balance.
- 05Check for compromise. If the notice mentions abuse or unusual activity, review IAM for members you don't recognise and look at which APIs show unexpected traffic. Rotate any key that may have leaked. See rotating a leaked key.
- 06Follow the instructions in the notice. That may be an appeal, a form or a reply to the email. Include the project ID and number, the website URLs that use the key and what you have changed.
- 07Contact Google Cloud support if you can't find any notice. A denial with no visible reason needs Google to look it up, and they will ask for the project number.
Creating a fresh project and key can bring the map back if the problem was isolated to the old project, such as one that was compromised. If the denial was for a terms or billing reason, the same issue follows you. Resolve the cause first, then decide whether a new project makes sense.
While you wait
Restoring a project can take time. If the map is critical, you have a few options:
- Hide the interactive map and show your address, opening hours and a plain link to the location on Google Maps. A normal link needs no API key.
- If the site only needs to show one location, the embed code from Share → Embed a map on Google Maps doesn't use your Cloud project. It is a reasonable stopgap. See working with iframe embeds.
- Tell customers in a short note if the map is part of booking or ordering.
Confirm it is fixed
Once Google confirms the project is restored, load the page in a private window with the console open. The error should be gone. If another error appears, such as ApiNotActivatedMapError or RefererNotAllowedMapError, the project is serving again and you're down to a normal configuration fix.
Run a scan to confirm from a clean session, and set up monitoring for the page. Project-level problems often come back if the underlying billing or security issue isn't fully fixed, and monitoring tells you before a customer does.
Common questions
What does ProjectDeniedMapError mean?
Google refused the request for the Cloud project that owns your API key. Google's documentation only says to look in the Cloud console for details, where the project's notices explain the reason.
Will a new API key fix ProjectDeniedMapError?
Not if it's in the same project. The denial applies to the whole project, so every key in it is affected.
How long does it take to get a project restored?
It depends on the cause. Billing fixes can apply within minutes. Suspensions and policy reviews depend on Google's response, so start the process as soon as you see the error.
Is this the same as BillingNotEnabledMapError?
No. BillingNotEnabledMapError specifically means no billing is enabled. ProjectDeniedMapError is a broader project-level refusal, which may or may not be about billing.
A scan tells you in about twelve seconds, from a clean session.