google-mobile-ads-banner
できること
モバイルアプリにバナー広告を配置し、そのサイズを選び、読み込む方法を示します。既定はアダプティブバナーです。モバイルアプリに広告を追加する開発者向けです。
使う場面
- ✓Android、iOS、またはUnityのアプリの上部または下部に、バナー広告がほしいとき。
- ✓アプリのコンテンツの中に、インラインのバナーを配置したいとき。
- ✓セットアップが終わり、テスト用の広告ユニットIDを本番のIDに差し替えたいとき。
スキルのリンク
https://github.com/google/skills/blob/main/skills/ads/google-mobile-ads-banner/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のAndroidアプリの画面の下部に、アダプティブバナー広告を追加してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、プラットフォームを確認し、対応するガイドを読んでから、広告のビューを定義し、サイズを設定し、読み込みイベントに登録して、広告を読み込み、結果を確認します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
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 Type | Description |
|---|---|
| Large Anchored Adaptive | Default. Can be anchored to the top or bottom of the screen. |
| Anchored Adaptive | Can be anchored to the top or bottom of the screen. |
| Inline Adaptive | ONLY available to use for Android and iOS. Placed within content. |
Workflow
Determine the user's platform: Identify if the project is Android, iOS, or Unity. If unclear, ask before proceeding.
Read the platform guide for implementation details:
- Android:
references/android-banner.md - iOS:
references/ios-banner.md - Unity:
references/unity-banner.md
- Android:
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
After the banner ad is successfully implemented, remind the user to replace the test ad unit ID with their own.
よくある質問
既定のバナーの種類は?
別の種類を依頼しない限り、画面の端に固定される大きなアダプティブバナーです。
ほかの広告の形式も扱いますか?
いいえ。インタースティシャルとリワード広告は、ほかのスキルで扱われます。
テスト用の広告ユニットは変更が必要ですか?
はい。リリース前にテスト用の広告ユニットIDを置き換えるよう、スキルが注意を促します。
詳細
作者による元の説明
Provides instructions to implement, integrate, or configure Google Mobile Ads (GMA) banner ads in Android, iOS, or Unity mobile applications. Use when the task involves setting up banner ads in a mobile application. Don't use for other ad formats like interstitial or rewarded ads.
repo: google/skills
人気
- GitHubのスター
- 22k
- ランキング
- #10189
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
finding-google-skills
22kセットアップ作業に合うGoogleの公式ガイドを探すようエージェントを支援します。ホスティング、データベース、ストレージ、サインイン、AIモデルの提供などが対象です。
gcloud
22kエージェントが、Google CloudのgcloudコマンドについてWeb検索に頼らず、正確な構文を確かめてから書いたり確認したりできるよう支援します。
google-cloud-recipe-auth
22kエージェントが、Google Cloudのアイデンティティとアクセス(人やサービスがどうサインインし、どの権限を得るか)について、手順を案内できるよう支援します。
google-cloud-recipe-onboarding
22k新しい開発者が、プロジェクトの選択、請求の設定、最初のリソースのデプロイなど、Google Cloudの最初の手順を進められるよう案内します。
似ているスキル
android-clean-architecture
280kエージェントがAndroidプロジェクトを効率よく整理できるようにします。コードを構造化して、保守や新機能の開発をしやすくします。
compose-multiplatform-patterns
280kエージェントがKMPプロジェクトでCompose MultiplatformとJetpack Composeのパターンを使えるようにします。状態管理、ナビゲーション、テーマ設定、パフォーマンスを扱います。
dart-flutter-patterns
280kエージェントがDartとFlutterのアプリ向けのコードを書けるようにします。最新のパターンを使い、堅牢で管理しやすいアプリを作ります。