Back to Skills

google-mobile-ads-rewarded

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.

18,550stars1,470forksUpdated 8/20/2026

Security Assessment

Safe(95/100)
Security Score95/100

About google-mobile-ads-rewarded

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.

FAQ

What are rewarded ads?

Full-screen ads that grant users in-app items after they explicitly opt in to watch them.

Can rewarded ads be shown automatically?

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.

What is required to grant the reward?

The show() method requires an OnUserEarnedRewardListener (or an Action<Reward> callback on Unity) to detect when the user has earned the reward.

Which platforms are covered?

Android, iOS, and Unity, each with a dedicated reference guide including imports, method signatures, and test ad unit IDs.

Does it cover rewarded interstitial ads?

No. It is scoped to standard rewarded ads and explicitly excludes rewarded interstitials.

All Files

4 files
references/android-rewarded.md2.4 KB
View
SKILL.md1.1 KB
View
references/unity-rewarded.md3.8 KB
View
references/ios-rewarded.md1.5 KB
View

Install google-mobile-ads-rewarded

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

google/skills