public class AdUnitSize extends Object implements Serializable
AdUnitSize represents the size of an ad in an ad unit.
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,
Boolean isAudio) |
| 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.
|
Boolean |
getIsAudio()
Gets the isAudio 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 |
setIsAudio(Boolean isAudio)
Sets the isAudio value for this AdUnitSize.
|
void |
setSize(Size size)
Sets the size value for this AdUnitSize.
|
String |
toString() |
public AdUnitSize()
public AdUnitSize(Size size, EnvironmentType environmentType, AdUnitSize[] companions, String fullDisplayString, Boolean isAudio)
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 Boolean getIsAudio()
Size will be set to "1x1"
and EnvironmentType will be set to EnvironmentType.VIDEO_PLAYER regardless of
user input.public void setIsAudio(Boolean isAudio)
isAudio - * Whether the inventory size is audio. If set to true, Size will be set to "1x1"
and EnvironmentType will be set to EnvironmentType.VIDEO_PLAYER regardless of
user input.public static org.apache.axis.description.TypeDesc getTypeDesc()
public static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
Copyright © 2022. All rights reserved.