loadBanner static method

Future<void> loadBanner({
  1. required String placementId,
  2. required GeemeeBannerSize adSize,
})

================= BANNER ================= Loads a banner ad with the specified placement ID and ad size. The placementId is used to identify the specific banner ad configuration. The adSize specifies the size of the banner ad to be loaded. Supported sizes are defined in the GeemeeBannerSize enum.

Implementation

static Future<void> loadBanner({
  required String placementId,
  required GeemeeBannerSize adSize,
}) async {
  try {
    await _channel.invokeMethod('loadBanner', {
      'placementId': placementId,
      'adSize': adSize.value,
    });
  } catch (e) {
    debugPrint('Error loading banner: $e');
  }
}