mcpField
G
google-mobile-ads-banner

google-mobile-ads-banner

github.com/googleDevelopment21.6k6.1k installsUpdated today
Repository

About google-mobile-ads-banner

A banner-ad implementation skill for developers using Google Mobile Ads SDK in Android, iOS, or Unity apps. It covers banner choices and the ordered steps for defining, sizing, loading, and verifying an ad view.

Key features

  1. 01Banner type guidance
  2. 02Android、iOS、Unity platform identification
  3. 03Platform-specific implementation guide selection
  4. 04Ad view, size, events, and loading steps
  5. 05Implementation verification

Use cases

  1. 01Adding a banner ad to an app
  2. 02Selecting an adaptive banner type
  3. 03Checking banner setup before replacing the test ad unit ID

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/google/skills --skill google-mobile-ads-banner

After installing, type/google-mobile-ads-bannerin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
android-banner.md
ios-banner.md
unity-banner.md

Details

From the project README

Google Mobile Ads SDK - Banner Ads

Banner ads are rectangular image or text ads that occupy a spot within an app's layout. They remain on screen during user interaction and can refresh automatically.

Banner Ad Types

Default to Large Anchored Adaptive Banner if the user says "banner" without defining a type. If the user suggests or asks about other banner ad types, recommend large anchored adaptive banners.

Banner TypeDescription
Large Anchored AdaptiveDefault. Can be anchored to the top or bottom of the screen.
Anchored AdaptiveCan be anchored to the top or bottom of the screen.
Inline AdaptiveONLY available to use for Android and iOS. Placed within content.

Workflow

  1. Determine the user's platform: Identify if the project is Android, iOS, or Unity. If unclear, ask before proceeding.

  2. Read the platform guide for implementation details:

    • Android: references/android-banner.md
    • iOS: references/ios-banner.md
    • Unity: references/unity-banner.md
  3. Follow these steps in order:

    • Define the ad view
    • Set the ad size
    • Register for ad load events
    • Load the banner ad
    • Verify the implementation
  4. After the banner ad is successfully implemented, remind the user to replace the test ad unit ID with their own.

Comments

Markdown supported