Skip to content

Smart Banner ⚠️ (deprecated)

This document is based on:

Note

Try the newer adaptive banners instead.

To use Smart Banners, use the AdSize.get_smart_banner_ad_size() function for the ad size when creating a AdView. For example:

# Create a Smart Banner at the top of the screen.
var ad_view := AdView.new(unit_id, AdSize.get_smart_banner_ad_size(), AdPosition.Values.TOP)
1
2
3
4
5
using PoingStudios.AdMob.Api;
using PoingStudios.AdMob.Api.Core;

// Create a Smart Banner at the top of the screen.
var adView = new AdView(unitId, AdSize.GetSmartBannerAdSize(), AdPosition.Top);