com.google.api.ads.dfp.axis.v201204
Class Size

java.lang.Object
  extended by com.google.api.ads.dfp.axis.v201204.Size
All Implemented Interfaces:
Serializable

public class Size
extends Object
implements Serializable

Represents the dimensions of AdUnits, LineItems and Creatives.

For interstitial size (out-of-page), Size must be 1x1.

See Also:
Serialized Form

Constructor Summary
Size()
           
Size(Integer width, Integer height, Boolean isAspectRatio)
           
 
Method Summary
 boolean equals(Object obj)
           
static org.apache.axis.encoding.Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Deserializer
 Integer getHeight()
          Gets the height value for this Size.
 Boolean getIsAspectRatio()
          Gets the isAspectRatio value for this Size.
static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Serializer
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return type metadata object
 Integer getWidth()
          Gets the width value for this Size.
 int hashCode()
           
 void setHeight(Integer height)
          Sets the height value for this Size.
 void setIsAspectRatio(Boolean isAspectRatio)
          Sets the isAspectRatio value for this Size.
 void setWidth(Integer width)
          Sets the width value for this Size.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Size

public Size()

Size

public Size(Integer width,
            Integer height,
            Boolean isAspectRatio)
Method Detail

getWidth

public Integer getWidth()
Gets the width value for this Size.

Returns:
width * The width of the AdUnit, LineItem or Creative.

setWidth

public void setWidth(Integer width)
Sets the width value for this Size.

Parameters:
width - * The width of the AdUnit, LineItem or Creative.

getHeight

public Integer getHeight()
Gets the height value for this Size.

Returns:
height * The height of the AdUnit, LineItem or Creative.

setHeight

public void setHeight(Integer height)
Sets the height value for this Size.

Parameters:
height - * The height of the AdUnit, LineItem or Creative.

getIsAspectRatio

public Boolean getIsAspectRatio()
Gets the isAspectRatio value for this Size.

Returns:
isAspectRatio * True if this size represents an aspect ratio, false otherwise.

setIsAspectRatio

public void setIsAspectRatio(Boolean isAspectRatio)
Sets the isAspectRatio value for this Size.

Parameters:
isAspectRatio - * True if this size represents an aspect ratio, false otherwise.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getTypeDesc

public static org.apache.axis.description.TypeDesc getTypeDesc()
Return type metadata object


getSerializer

public static org.apache.axis.encoding.Serializer getSerializer(String mechType,
                                                                Class _javaType,
                                                                QName _xmlType)
Get Custom Serializer


getDeserializer

public static org.apache.axis.encoding.Deserializer getDeserializer(String mechType,
                                                                    Class _javaType,
                                                                    QName _xmlType)
Get Custom Deserializer



Copyright © 2012. All Rights Reserved.