Terminal
Terminal/Skill
Shows how to add a banner ad to an Android, iOS or Unity app with the Google Mobile Ads SDK, including adaptive banner sizing.
By Google
Works with
npx skills add google/skills --skill google-mobile-ads-bannerBanner 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.
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. |
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:
references/android-banner.mdreferences/ios-banner.mdreferences/unity-banner.mdFollow these steps in order:
After the banner ad is successfully implemented, remind the user to replace the test ad unit ID with their own.