google-mobile-ads-rewarded
它能做什么
它会说明如何加载激励广告、添加让用户自愿选择的按钮,并展示广告以发放奖励。适合为观看广告的用户提供应用内奖励的开发者。
适用场景
- ✓当你希望用户通过观看广告获得应用内道具时。
- ✓当你需要一个通过按钮提供观看广告奖励的功能时。
- ✓当你想验证激励广告在你的应用中能否正常工作时。
技能链接
https://github.com/google/skills/blob/main/skills/ads/google-mobile-ads-rewarded/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请让我的 Android 应用用户观看一段短广告,以获得额外的金币。”
每周 5 个新技能,1 分钟读完。
工作原理
它会确定你的平台,阅读平台指南,加载广告,注册事件回调,添加奖励按钮,展示广告,并检查结果。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Google Mobile Ads SDK - Rewarded Ads
Rewarded ads reward users with in-app items for interacting with full-screen ads. Rewarded ads are served after a user explicitly opts in to view a rewarded ad.
Workflow
Determine the user's platform: Identify if the project is Android, iOS, or Unity. If unclear, ask before proceeding.
Read the platform guide for implementation details:
- Android:
references/android-rewarded.md - iOS:
references/ios-rewarded.md - Unity:
references/unity-rewarded.md
- Android:
Follow these steps in order:
- Load the ad
- Register for ad event callbacks
- Add a UI element to view the ad for a reward
- Show the ad
- Verify the implementation
常见问题
用户不选择的情况下,广告会展示吗?
不会。激励广告只有在用户明确选择后才会展示。
它涵盖激励插页广告吗?
不涵盖。这些不在本技能范围内。
它支持哪些平台?
Android、iOS 和 Unity。
详情
作者的原始描述
Provides instructions for implementing, integrating, or configuring Google Mobile Ads (GMA) SDK rewarded ads in Android, iOS, or Unity mobile applications. Use when the task involves setting up rewarded ads. Don't use for "rewarded interstitial" ads.
repo: google/skills
热度
- GitHub 星标
- 22k
- 排名
- #10192
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
finding-google-skills
22k帮你的智能体为某项设置任务找到合适的 Google 指南,例如托管、数据库、存储、登录或 AI 模型服务。
gcloud
22k帮你的智能体编写并检查 Google Cloud gcloud 命令,在运行任何内容之前查阅准确的语法,避免猜测参数。
google-cloud-recipe-auth
22k引导你的智能体了解 Google Cloud 的身份与访问管理,包括人员和服务如何登录,以及它们各自获得哪些权限。
google-cloud-recipe-onboarding
22k带领新开发者完成在 Google Cloud 上的第一步,包括选择项目、关联计费,以及部署第一个资源。