Google Mobile Ads Rewarded
Developmentgoogle-mobile-ads-rewardedGoogle Mobile Ads Rewarded is an Agent Skill for development published in the google/skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Provides instructions for implementing, integrating, or configuring Google Mobile Ads (GMA) SDK rewarded ads in Android or iOS mobile applications. Use this skill when the task involves setting up rewarded ads. Don't use for "rewarded interstitial" ads.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/google/skills/blob/HEAD/skills/ads/google-mobile-ads-rewarded/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/google-mobile-ads-rewarded, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
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.
Ad Placement Guidelines
CRITICAL: You MUST evaluate and apply the following Ad Placement Guidelines before proceeding with any rewarded ad implementation.
- Determine Ad Placement:
- Identify the target file where the ad should be placed. Ask if unsure.
Workflow
-
Determine the user's platform: Identify if the project is Android or iOS. If unclear, ask before proceeding.
-
Read the platform guide for implementation details:
- Android:
references/android-rewarded.md - iOS:
references/ios-rewarded.md
- Android:
-
Follow these steps in order:
- Load the ad
- Register for ad event callbacks
- Add an opt-in UI element
- Show the ad
- Verify the implementation