Package 

Object BannerAdSize.a

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • fixedSize

         final BannerAdSize fixedSize(Context context, Integer width, Integer height)

        Returns fixed banner size.

        Parameters:
        context - The Context.
        width - The width of the ad container in density-independent pixels (dp).
        height - The height of the ad container in density-independent pixels (dp).
      • stickySize

         final BannerAdSize stickySize(Context context, Integer width)

        Returns sticky banner size with the given width.

        Parameters:
        context - The Context.
        width - The width of the ad container in density-independent pixels (dp).
      • inlineSize

         final BannerAdSize inlineSize(Context context, Integer width, Integer maxHeight)

        Returns inline adaptive banner size. Banners with inline sizes stretch to container width and height when possible.

        Parameters:
        width - The width of the ad container in density-independent pixels (dp).
        maxHeight - The maximum height of the ad container in density-independent pixels (dp).