getCurrentOrientationInlineAdaptiveBannerAdSize static method

InlineAdaptiveSize getCurrentOrientationInlineAdaptiveBannerAdSize(
  1. int width
)

Gets an AdSize with the given width and height that is always 0.

This ad size allows Google servers to choose an optimal ad size with a height less than or equal to the height of the screen in the current orientation. After the ad is loaded, you should update the height of the ad container by calling BannerAd.getPlatformAdSize or AdManagerBannerAd.getPlatformAdSize from the ad load callback. This ad size is most suitable for ads intended to be displayed inside scrollable content.

Implementation

static InlineAdaptiveSize getCurrentOrientationInlineAdaptiveBannerAdSize(
    int width) {
  return InlineAdaptiveSize._(width: width);
}