Package com.pubmatic.sdk.common
Class POBAdSize
-
- All Implemented Interfaces:
public class POBAdSizeDefines size of a banner ad.
-
-
Field Summary
Fields Modifier and Type Field Description public final static POBAdSizeBANNER_SIZE_320x50public final static POBAdSizeBANNER_SIZE_320x100public final static POBAdSizeBANNER_SIZE_300x250public final static POBAdSizeBANNER_SIZE_300x300public final static POBAdSizeBANNER_SIZE_250x250public final static POBAdSizeBANNER_SIZE_468x60public final static POBAdSizeBANNER_SIZE_728x90public final static POBAdSizeBANNER_SIZE_120x600public final static POBAdSizeINTERSTITIAL_320x480public final static POBAdSizeINTERSTITIAL_480x320public final static POBAdSizeINTERSTITIAL_768x1024public final static POBAdSizeINTERSTITIAL_1024x768public intadWidthpublic intadHeight
-
Constructor Summary
Constructors Constructor Description POBAdSize(int adWidth, int adHeight)Parameterised constructor for defining the custom ad size
-
Method Summary
Modifier and Type Method Description intgetAdWidth()Returns the width of an ad intgetAdHeight()Returns the height of an ad booleanisMREC()Function to check if the ad size is MREC inthashCode()booleanequals(@Nullable() Object obj)StringtoString()-
-
Method Detail
-
getAdWidth
int getAdWidth()
Returns the width of an ad
- Returns:
the adWidth
-
getAdHeight
int getAdHeight()
Returns the height of an ad
- Returns:
the adHeight
-
isMREC
boolean isMREC()
Function to check if the ad size is MREC
- Returns:
true if ad size is MREC else false
-
hashCode
int hashCode()
-
-
-
-