|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.api.ads.dfp.axis.v201206.AdUnitSize
public class AdUnitSize
An AdUnitSize represents the size of an ad in an ad unit.
Starting
with v201108 this also represents the environment, and
companions of a
particular ad in an ad unit. In most cases, it is a simple
size with just a
width and a height (sometimes representing an aspect ratio).
| Constructor Summary | |
|---|---|
AdUnitSize()
|
|
AdUnitSize(Size size,
EnvironmentType environmentType,
AdUnitSize[] companions)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
AdUnitSize[] |
getCompanions()
Gets the companions value for this AdUnitSize. |
AdUnitSize |
getCompanions(int i)
|
static org.apache.axis.encoding.Deserializer |
getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Deserializer |
EnvironmentType |
getEnvironmentType()
Gets the environmentType value for this AdUnitSize. |
static org.apache.axis.encoding.Serializer |
getSerializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Serializer |
Size |
getSize()
Gets the size value for this AdUnitSize. |
static org.apache.axis.description.TypeDesc |
getTypeDesc()
Return type metadata object |
int |
hashCode()
|
void |
setCompanions(AdUnitSize[] companions)
Sets the companions value for this AdUnitSize. |
void |
setCompanions(int i,
AdUnitSize _value)
|
void |
setEnvironmentType(EnvironmentType environmentType)
Sets the environmentType value for this AdUnitSize. |
void |
setSize(Size size)
Sets the size value for this AdUnitSize. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AdUnitSize()
public AdUnitSize(Size size,
EnvironmentType environmentType,
AdUnitSize[] companions)
| Method Detail |
|---|
public Size getSize()
public void setSize(Size size)
size - * The permissible creative size that can be served inside this
ad unit.public EnvironmentType getEnvironmentType()
EnvironmentType.BROWSER.public void setEnvironmentType(EnvironmentType environmentType)
environmentType - * The environment type of the ad unit size. The default value
is
EnvironmentType.BROWSER.public AdUnitSize[] getCompanions()
EnvironmentType.VIDEO_PLAYER.
If the environment is EnvironmentType.BROWSER
including companions
results in an error.public void setCompanions(AdUnitSize[] companions)
companions - * The companions for this ad unit size.
Companions are only valid if the environment is EnvironmentType.VIDEO_PLAYER.
If the environment is EnvironmentType.BROWSER
including companions
results in an error.public AdUnitSize getCompanions(int i)
public void setCompanions(int i,
AdUnitSize _value)
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic static org.apache.axis.description.TypeDesc getTypeDesc()
public static org.apache.axis.encoding.Serializer getSerializer(String mechType,
Class _javaType,
QName _xmlType)
public static org.apache.axis.encoding.Deserializer getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||