public class AdUnitSize extends Object implements Serializable
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 and Description |
|---|
AdUnitSize() |
AdUnitSize(Size size,
EnvironmentType environmentType,
AdUnitSize[] companions,
String fullDisplayString) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
getFullDisplayString()
Gets the fullDisplayString 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 |
setFullDisplayString(String fullDisplayString)
Sets the fullDisplayString value for this AdUnitSize.
|
void |
setSize(Size size)
Sets the size value for this AdUnitSize.
|
public AdUnitSize()
public AdUnitSize(Size size, EnvironmentType environmentType, AdUnitSize[] companions, String fullDisplayString)
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 String getFullDisplayString()
"300x250" or "300x250v (180x150)"public void setFullDisplayString(String fullDisplayString)
fullDisplayString - * The full (including companion sizes, if applicable) display
string of the size,
e.g. "300x250" or "300x250v (180x150)"public static org.apache.axis.description.TypeDesc getTypeDesc()
public static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
Copyright © 2014. All Rights Reserved.