All skills
google avatar

/google-mobile-ads-rewarded

@329fa26
by googlegoogle/skills21k stars
1,698

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.

Use this Skill: https://skilld.dev/gh/google/skills/google-mobile-ads-rewarded

This session only. Nothing lands on disk.

referencesios-rewarded.md

≈396 tokens on demand. Your agent reads this file only when SKILL.md points to it.

AI Integration Agent Instructions for Rewarded Ads

Gotchas

Google Mobile Ads SDK uses NS_SWIFT_NAME macros to provide idiomatic Swift names.

Rewarded ad workflow

  1. Load the ad

    • For Swift code, use async/await instead of a completion handler.
  2. Register for ad event callbacks

    • Set the fullScreenContentDelegate on the RewardedAd object.
      • Drop the reference to the rewarded ad when the ad is dismissed or fails to show.
  3. Add a UI element to view the ad for a reward

    • Rewarded ads must never be shown automatically. Users must explicitly opt in.
    • Add a UI element, such as a button, that shows the ad upon user interaction.
  4. Show the ad

    • ViewController Parameter: The rootViewController parameter in the present(from:) method is an optional parameter and can be set to nil.
    • The present(from:) method requires a UserDidEarnRewardHandler object.
  5. Verify the implementation: Verify the build to ensure there are no compile errors:

    • If xcodebuild is available: Run xcodebuild to programmatically verify that the iOS project compiles properly with the GMA SDK. Resolve any GMA-SDK related compile errors.
    • If xcodebuild is NOT available: Output instructions directing the user to build the project in Xcode and manually verify there are no compile errors.

Links

Additional documentation:

Source: SKILL.md on GitHub

No alerts8d3 checks · Risk SAFE
  • Gen Agent Trust Hub8d

    This skill provides standard implementation guidelines for integrating the Google Mobile Ads (GMA) SDK rewarded ads across Android, iOS, and Unity platforms. It uses official Google documentation links and follows best practices for ad implementation, such as thread safety and user opt-in requirements. No security issues were detected.

  • Socket8d

    No alerts

  • Snyk8d

    Risk: LOW · No issues

Signed by skilld at 329fa26. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last week
metadata
{
  "version": "1.1.0",
  "category": "GoogleAds"
}

README badge

README badge for google/skills/google-mobile-ads-rewarded