You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

关于Rewarded Ads用户奖励查询及相关问题的技术咨询

Answers to Your Questions

1. Retrieving reward records across app reinstalls/device switches

Unfortunately, AdMob doesn't offer a built-in API to fetch a user's cumulative reward history that persists through app uninstalls or device changes. The official examples only show local storage via reward callbacks, which gets lost when the app is removed or the user switches devices.

To fill this gap, you’ll need to build a cloud-based solution:

  • Tie reward records to a unique, persistent user identifier (like a Firebase Auth UID, Google Play Games account ID, or your own custom user system).
  • Use a cloud database (Firebase Firestore/Realtime Database, Google Cloud SQL, etc.) to store each reward event with the user’s ID, timestamp, reward amount, and relevant details.
  • When the user reinstalls the app or switches devices, have them sign in with their identifier, then fetch their full reward history from your cloud database.

Google doesn’t provide a pre-built service for this specific use case, but Firebase integrates seamlessly with AdMob and is a low-effort, common way to add this functionality.

2. Querying the actual monetary value of rewards

AdMob doesn’t have an API to directly get the monetary value of the rewards you offer users. Here’s why:

  • The "reward" (e.g., in-app coins, premium features) is defined entirely by you as the developer—AdMob only handles triggering the reward when the ad is completed.
  • While you can view ad performance metrics like eCPM in the AdMob dashboard, this reflects the revenue you earn per thousand ad impressions, not the monetary value you assign to user rewards.

If you need to tie rewards to real currency (e.g., cashback), you’ll have to handle this logic on your backend, linking reward amounts to your own pricing structure and payment processing system.

3. Alternative rewarded video services with reward history APIs

Most major ad networks (like Unity Ads, AppLovin, IronSource, or Meta Audience Network) follow a similar model to AdMob: they provide local callbacks for reward events but don’t natively store or expose user reward history via an API.

Some ad mediation platforms might offer optional tools to help track rewards, but the most reliable approach across any service is still to build your own cloud-based reward tracking system. This gives you full control over the data and ensures consistency regardless of the ad network you use.

内容的提问来源于stack exchange,提问作者android developer

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.28 09:28:32