Google Mobile Ads Banner

作者 google55b4e13eba6d无许可证21K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

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.

精选仅含说明Software Development
AI 生成的概览

指导在 Android、iOS 或 Unity 应用中集成 Google Mobile Ads 横幅广告。

功能
该技能提供在移动应用中集成 Google Mobile Ads 横幅广告的分步说明。它会根据平台引导代理查阅 Android、iOS 或 Unity 的对应参考文档,并依次完成定义广告视图、设置广告尺寸、注册加载事件、加载广告以及验证实现。它还会建议默认使用大型锚定自适应横幅,并提醒用户替换测试广告单元 ID。
适用场景
当任务涉及在移动应用中设置、集成或配置横幅广告时使用。不适用于插屏广告或激励广告等其他广告形式。
运行要求
不包含脚本,仅提供说明文档和三份平台参考文档。目标项目需为使用 Google Mobile Ads SDK 的 Android、iOS 或 Unity 移动应用,正式发布还需要 Google AdMob 账号及广告单元 ID。

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.

来源与署名

来源:google/skills位于skills/ads/google-mobile-ads-banner提交55b4e13

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架

更多来自 google/skills 的技能