| name | google-mobile-ads-banner |
| description | Provides instructions to implement, integrate, or configure Google Mobile Ads (GMA) banner ads in Android and iOS mobile applications. Use when the task involves setting up banner ads in a mobile application. |
| metadata | {"version":"1.0.0","category":"GoogleAds"} |
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.
Ad Placement Guidelines
CRITICAL: You MUST evaluate and apply the following guidelines before
proceeding with any banner ad implementation.
Workflow
-
Determine the user's platform: Identify if the project is Android or
iOS. If unclear, ask before proceeding.
-
Read the platform guide for implementation details:
- Android:
references/android-banner.md
- iOS:
references/ios-banner.md
-
Follow these steps in order:
-
After the banner ad is successfully implemented, remind the user to replace
the test ad unit ID with their own.