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.
This skill guides an AI agent through implementing Google Mobile Ads (GMA) SDK rewarded ads — full-screen ads that grant in-app rewards after a user explicitly opts in — in Android, iOS, or Unity applications. It solves the problem of correctly loading rewarded ads, wiring event callbacks, gating display behind explicit user opt-in, and handling the reward callback and threading rules on each platform.
The SKILL.md defines an ordered workflow: load the ad, register for ad event callbacks, add a UI element (such as a button) that lets the user opt in to view the ad, show the ad, and verify the implementation. Platform detail lives in android-rewarded.md, ios-rewarded.md, and unity-rewarded.md, which supply the required imports, method signatures (AdRequest.Builder, RewardedAd.load with AdLoadCallback, show() requiring an OnUserEarnedRewardListener), and per-platform test ad unit IDs. A recurring mandatory rule is that rewarded ads must never be shown automatically — an interactive UI element is required — and that GMA callbacks run on a background thread so UI operations must be scheduled on the main thread (via runOnUiThread, Dispatchers.Main, or MobileAdsEventExecutor.ExecuteInUpdate on Unity). The Unity guide also shows checking CanShowAd() with a null check before displaying.
Target users are mobile developers and AI agents adding opt-in reward mechanics — such as granting coins or lives for watching an ad — to Android, iOS, or Unity apps. The skill is scoped to standard rewarded ads and excludes 'rewarded interstitial' ads.
Full-screen ads that grant users in-app items after they explicitly opt in to watch them.
No. The skill mandates that rewarded ads never show automatically; an interactive UI element such as a button must trigger the display after user opt-in.
The show() method requires an OnUserEarnedRewardListener (or an Action<Reward> callback on Unity) to detect when the user has earned the reward.
Android, iOS, and Unity, each with a dedicated reference guide including imports, method signatures, and test ad unit IDs.
No. It is scoped to standard rewarded ads and explicitly excludes rewarded interstitials.
Quick Setup:
.claude/skills/Repository
google/skills