public class Size extends Object
AdUnit, LineItem or Creative.
For interstitial size (out-of-page), native, ignored and fluid size, Size must be 1x1.
Java class for Size complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Size">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="width" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
<element name="height" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
<element name="isAspectRatio" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
height |
protected Boolean |
isAspectRatio |
protected Integer |
width |
| Constructor and Description |
|---|
Size() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getHeight()
Gets the value of the height property.
|
Integer |
getWidth()
Gets the value of the width property.
|
Boolean |
isIsAspectRatio()
Gets the value of the isAspectRatio property.
|
void |
setHeight(Integer value)
Sets the value of the height property.
|
void |
setIsAspectRatio(Boolean value)
Sets the value of the isAspectRatio property.
|
void |
setWidth(Integer value)
Sets the value of the width property.
|
protected Integer width
protected Integer height
protected Boolean isAspectRatio
public Integer getWidth()
Integerpublic void setWidth(Integer value)
value - allowed object is
Integerpublic Integer getHeight()
Integerpublic void setHeight(Integer value)
value - allowed object is
Integerpublic Boolean isIsAspectRatio()
BooleanCopyright © 2018. All Rights Reserved.