Causes of the billingnotenabledmaperror:
- The API key being used is not associated with a project that has billing enabled. In order to use a Google Maps API, you must have a billing account associated with the project that the API key is associated with.
- The API key being used is associated with a project that has a spending limit that has been exceeded. If the usage of the API has exceeded the spending limit for the project, the BillingNotEnabledMapError will be triggered.
- There is an issue with the billing account associated with the project. If the billing account is not in good standing or there are other issues with it, the BillingNotEnabledMapError may be triggered.
- There is an issue with the API key being used. If the API key is invalid or does not have the necessary permissions to use the API, the BillingNotEnabledMapError may be triggered
Steps to fix the BillingNotEnabledMapError
- Click on the project that is associated with the API key that is causing the error > Click on the hamburger menu in the top left corner and select “Billing.”
- Click on the “Link billing account” button.
- Follow the prompts to add a billing account to the project.
- Once billing has been enabled for the project, try using the API again. The error should no longer occur.
“BillingNotEnabledMapError” error occurs when you try to use the Google Maps Platform API without enabling billing for your project. To resolve this error, you need to enable billing for your Google Cloud project and enable the Google Maps Platform API