简体   繁体   English

在 Google Cloud 项目上启用结算功能

[英]Enable Billing on the Google Cloud Project

I want to retrieve address from lat long coords.我想从 lat long coords 中检索地址。 I have created project in google console.我在谷歌控制台中创建了项目。 Added Billing information and enabled the geocoding api services.添加了计费信息并启用了地理编码 api 服务。 But still when i make this request i am getting the below error但是当我提出这个请求时,我仍然收到以下错误

https://maps.googleapis.com/maps/api/geocode/json?latlng=41.89,12.49&key=xxxx https://maps.googleapis.com/maps/api/geocode/json?latlng=41.89,12.49&key=xxxx

You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable您必须在https://console.cloud.google.com/project/_/billing/enable上启用 Google Cloud 项目的计费

I was also Facing the same issue, Billing is enabled and is linked to the project but I was getting the same Error.我也面临同样的问题,计费已启用并链接到项目,但我得到了同样的错误。

After Spending enough time on this issue, I understood that the type of my billing account is "Google Cloud Platform" , but it should be of type: "Google Maps Platform"在这个问题上花了足够的时间后,我了解到我的计费帐户的类型是“Google Cloud Platform” ,但它应该是类型: “Google Maps Platform”

You can see the type of your billing account on the right side of Billing Overview as in the image:您可以在结算概览右侧看到您的结算帐户类型,如图所示:

在此处输入图像描述

So please check if your Billing type is "Google Maps Platform" , if not create a new Billing Account with "Google Maps Platform" as type and link your project to this Billing Account.因此,请检查您的计费类型是否为“Google Maps Platform” ,如果不是,请创建一个以“Google Maps Platform”为类型的新计费帐户并将您的项目链接到此计费帐户。

Most of us are getting this response/error我们大多数人都收到此响应/错误

{
   "error_message" : "You must enable Billing on the Google Cloud Project at <br>https://console.cloud.google.com/project/_/billing/enable Learn more at https://developers.google.com/maps/gmp-get-started",
   "predictions" : [],
   "status" : "REQUEST_DENIED"
}

If you will read this answer throughly you'll be able to sort out this issue.如果您通读此答案,您将能够解决此问题。

As mentioned in this answer .正如这个答案中提到的。
You'd have to create a separate billing account in order to use Google Map APIs because google map bills in USD currency instead of your native currency.您必须创建一个单独的结算帐户才能使用 Google Map API,因为 google map 以美元而不是您的本国货币计费。

Solution(3 step)解决方案(3步)

  1. create a new billing account.创建一个新的结算帐户。
  2. create a new project and associate it with above billing.创建一个新项目并将其与上述计费相关联。
  3. enable Map API and create a new API key.启用 Map API 并创建一个新的 API 密钥。 that's it.而已。

Step1 : create a new billing account, you can use this link https://console.cloud.google.com/billing/create and Choose Google Map Platform from the dropdown.步骤1:创建一个新的计费帐户,您可以使用此链接https://console.cloud.google.com/billing/create并从下拉列表中选择Google Map 平台

在此处输入图像描述

Step2: create a new project using this link https://console.cloud.google.com/projectcreate and use billing account created above.步骤 2:使用此链接https://console.cloud.google.com/projectcreate创建一个新项目并使用上面创建的计费帐户。

在此处输入图像描述

Step3: Now you can enable particular API and you're good to go.步骤 3:现在您可以启用特定的 API 并且您对 go 很好。 That's it.而已。

Make sure that the API key you are using to authenticate the request is from a project that has an active billing account.确保您用于验证请求的 API 密钥来自具有活动计费帐户的项目。 If not, your requests will fail and if you are using Javascript API, your map will get the " Degraded experience ".如果没有,您的请求将失败,如果您使用 Javascript API,您的 map 将获得“降级体验”。

Below are some of the links we have that could be helpful in your use case.以下是我们拥有的一些链接,它们可能对您的用例有所帮助。

Once everything is set up, you can always file a support case via https://console.cloud.google.com/google/maps-apis/support in order to open personalized communication channel whenever you are encountering issues with our product.一切设置好后,您可以随时通过https://console.cloud.google.com/google/maps-apis/support 提交支持案例,以便在您遇到我们的产品问题时打开个性化的沟通渠道。

Thank you and hope this helps!谢谢你,希望这会有所帮助!

  1. Go back to the billing account and see if something went wrong with your credit card. Go 返回计费帐户,查看您的信用卡是否出现问题。 Credit cards are validated asynchronously.信用卡是异步验证的。
  2. Go to the GCP Console and verify that your billing account is assigned to the project. Go 到 GCP Console 并验证您的结算帐号是否已分配给项目。
  3. In the GCP Console check for past due amounts.在 GCP Console 中检查逾期金额。

After you assign/modify a credit card, wait.分配/修改信用卡后,等待。 The process is not instant in (re)authorizing billing for your account.该过程在(重新)授权您的帐户计费时不是即时的。

I had the same issue.我遇到过同样的问题。 I was doing everything correct.我做的一切都是正确的。 then I found this link然后我找到了这个链接

Gmp india faq Gmp 印度常见问题

The problem was Google maps billing doesn't support INR Currency.问题是谷歌地图计费不支持印度卢比货币。

Please check if your currency compatible with Google Maps billing platform otherwise create new billing account with USD currency.请检查您的货币是否与谷歌地图计费平台兼容,否则使用美元货币创建新的计费帐户。

Thanks!谢谢!

You may find this link helpful您可能会发现此链接有帮助

Modify a project billing settings 修改项目计费设置

I have had similar problem, when I have created a free tire payment account and I was not able to create a Windows VM as thesse are paid.我有类似的问题,当我创建了一个免费的轮胎支付账户时,我无法创建一个 Windows 虚拟机,因为这些都是支付的。 To fix I have "upgraded" the free tier payment account.为了解决这个问题,我已经“升级”了免费套餐支付账户。 It was confusing because the payment account has had enabled a valid payment method and linked to the project but it was not working.令人困惑的是,付款帐户已启用有效的付款方式并链接到该项目,但它无法正常工作。

There is a button to upgrade the free tier payment account, on the account dashboard page.在账户仪表板页面上有一个升级免费套餐支付账户的按钮。

For those of you who enabled their billing account through the link in the error message but still get the error, or can't find "Enabled google service" as someone else suggested, simply just delete your browsers cache and try again.对于那些通过错误消息中的链接启用了他们的结算帐户但仍然收到错误,或者像其他人建议的那样找不到“启用的谷歌服务”的人,只需删除浏览器缓存并重试即可。

For anyone still struggling, my case was that i have reached a maximum of projects for the same billing account and for some reason i couldnt create a new one as mentioned above, for that after a lot of reasearch i found that i could disable billing for some project so i can use it in new ones: 1- go to the link https://console.cloud.google.com/billing/projects 2- click on the three dots for the first projects (the billing is enbale for those projects).对于仍在苦苦挣扎的任何人,我的情况是我已经为同一个计费帐户达到了最多的项目,并且由于某种原因我无法如上所述创建一个新的,因为经过大量研究后我发现我可以禁用计费一些项目,所以我可以在新项目中使用它: 1- go 到链接https://console.cloud.google.com/billing/projects 2- 单击第一个项目的三个点(计费对那些项目)。 3-disable one of them 3-禁用其中之一
4- enable the billing for your new project and you are good to go ! 4-为您的新项目启用计费,您对 go 很好!

however still not sure why i could only enable this for just 3 project, i think it is not a lot !但是仍然不确定为什么我只能为 3 个项目启用此功能,我认为这不是很多!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 谷歌云结算信息验证? - Google Cloud billing information verify? 为 Google Cloud Billing 帐号付款 - Payment for Google Cloud Billing Account Google Cloud 403 错误拥有项目的计费帐户在状态不存在时被禁用 - Google Cloud 403 Error The billing account for the owning project is disabled in state absent 使用 Cloud Functions 停止对特定服务的 Google Cloud 计费 - Stop Google Cloud billing for specific services using Cloud Functions 谷歌云功能启用 CORS? - Google Cloud Functions enable CORS? 没有组织的 Google Cloud:如何为另一个用户授予计费帐户的计费帐户管理员角色 - Google Cloud, without organization: How to give another user Billing Account Administrator role for a billing account 为什么我的 Firebase 结算报告的数字与非 Firebase 服务的 Google Cloud 结算报告的数字不同? - Why is my Firebase billing reporting a different number than Google Cloud billing for non-firebase services? 如何在 Google Cloud Platform 上为我的组织禁用结算帐户创建? - How do I disable Billing Account Creation for my organization on Google Cloud Platform? 与 AWS 中的 Google Cloud 项目有什么相似之处? - What is the analogous of a Google Cloud Project in AWS? Firebase 和 Google Cloud 免费使用配额是否与不同的事物相关联? 项目或计费帐户? - Are Firebase and Google Cloud free-usage quotas tied to different things? Projects or billing accounts?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM