Class AdSize

  • All Implemented Interfaces:

    
    public class AdSize
    
                        

    AdSize class defines the size of the ad slot to be made available for auction.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public int width
      public int height
    • Constructor Summary

      Constructors 
      Constructor Description
      AdSize(int width, int height) Creates an ad size object with width and height as specified
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      int getWidth() Returns the width of the ad container
      int getHeight() Returns the height of the ad container
      boolean equals(Object o)
      int hashCode()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AdSize

        AdSize(int width, int height)

        Creates an ad size object with width and height as specified

        Parameters:
        width - width of the ad container
        height - height of the ad container
    • Method Detail

      • getWidth

         int getWidth()

        Returns the width of the ad container

        Returns:

        width

      • getHeight

         int getHeight()

        Returns the height of the ad container

        Returns:

        height