本文へスキップ
Skillpedia
モバイルアプリ22k · #10189

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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/google/skills/blob/main/skills/ads/google-mobile-ads-banner/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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

  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.

よくある質問

既定のバナーの種類は?

別の種類を依頼しない限り、画面の端に固定される大きなアダプティブバナーです。

ほかの広告の形式も扱いますか?

いいえ。インタースティシャルとリワード広告は、ほかのスキルで扱われます。

テスト用の広告ユニットは変更が必要ですか?

はい。リリース前にテスト用の広告ユニット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

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル