Android - 应用内结算

发布于 2024-12-17 04:46:45 字数 151 浏览 3 评论 0原文

我找不到任何好的教程/网站来说明如何进行应用内计费以从应用程序中删除 admob 广告。

所以这是我的问题:我的应用程序包含 Admob 的广告。我想建立应用内计费系统,允许用户支付 1 美元,付款后不应该有任何广告。

我怎样才能做到这一点?有什么想法吗?

I can't find any good tutorial/sites which tell how to make in-app billing to remove admob ads from application.

So here is my problem: I have app what include Admob's ads. And I want to build in-app billing system which allow user to pay $1 and after payment there should not be any ads.

How I can make this? Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

奈何桥上唱咆哮 2024-12-24 04:46:45

在你的 ad mob 显示代码周围添加一个条件检查,其实质上是这样说的:

if (!payed)
{
    displaySomeAds();

}

我确信它会比这更复杂一点,因为你可能必须检查 Google 许可服务器,但你明白了。

Add a conditional check around your ad mob display code that essentially says:

if (!payed)
{
    displaySomeAds();

}

I'm sure it will be a little more complex than that, as you may have to check the Google licensing server, but you get the point.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文