public class AdUnit extends Object implements Serializable
AdUnit represents a chunk of identified inventory for
the
publisher. It contains all the settings that need to be
associated with
inventory in order to serve ads to it. An AdUnit
can also be the
parent of other ad units in the inventory hierarchy.| Constructor and Description |
|---|
AdUnit() |
AdUnit(String id,
String parentId,
Boolean hasChildren,
AdUnitParent[] parentPath,
String name,
String description,
AdUnitTargetWindow targetWindow,
InventoryStatus status,
String adUnitCode,
AdUnitSize[] adUnitSizes,
TargetPlatform targetPlatform,
MobilePlatform mobilePlatform,
Boolean explicitlyTargeted,
AdSenseSettingsInheritedProperty inheritedAdSenseSettings,
LabelFrequencyCap[] appliedLabelFrequencyCaps,
LabelFrequencyCap[] effectiveLabelFrequencyCaps,
AppliedLabel[] appliedLabels,
AppliedLabel[] effectiveAppliedLabels,
long[] effectiveTeamIds,
long[] appliedTeamIds,
DateTime lastModifiedDateTime) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAdUnitCode()
Gets the adUnitCode value for this AdUnit.
|
AdUnitSize[] |
getAdUnitSizes()
Gets the adUnitSizes value for this AdUnit.
|
AdUnitSize |
getAdUnitSizes(int i) |
LabelFrequencyCap[] |
getAppliedLabelFrequencyCaps()
Gets the appliedLabelFrequencyCaps value for this AdUnit.
|
LabelFrequencyCap |
getAppliedLabelFrequencyCaps(int i) |
AppliedLabel[] |
getAppliedLabels()
Gets the appliedLabels value for this AdUnit.
|
AppliedLabel |
getAppliedLabels(int i) |
long[] |
getAppliedTeamIds()
Gets the appliedTeamIds value for this AdUnit.
|
long |
getAppliedTeamIds(int i) |
String |
getDescription()
Gets the description value for this AdUnit.
|
static org.apache.axis.encoding.Deserializer |
getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Deserializer
|
AppliedLabel[] |
getEffectiveAppliedLabels()
Gets the effectiveAppliedLabels value for this AdUnit.
|
AppliedLabel |
getEffectiveAppliedLabels(int i) |
LabelFrequencyCap[] |
getEffectiveLabelFrequencyCaps()
Gets the effectiveLabelFrequencyCaps value for this AdUnit.
|
LabelFrequencyCap |
getEffectiveLabelFrequencyCaps(int i) |
long[] |
getEffectiveTeamIds()
Gets the effectiveTeamIds value for this AdUnit.
|
long |
getEffectiveTeamIds(int i) |
Boolean |
getExplicitlyTargeted()
Gets the explicitlyTargeted value for this AdUnit.
|
Boolean |
getHasChildren()
Gets the hasChildren value for this AdUnit.
|
String |
getId()
Gets the id value for this AdUnit.
|
AdSenseSettingsInheritedProperty |
getInheritedAdSenseSettings()
Gets the inheritedAdSenseSettings value for this AdUnit.
|
DateTime |
getLastModifiedDateTime()
Gets the lastModifiedDateTime value for this AdUnit.
|
MobilePlatform |
getMobilePlatform()
Gets the mobilePlatform value for this AdUnit.
|
String |
getName()
Gets the name value for this AdUnit.
|
String |
getParentId()
Gets the parentId value for this AdUnit.
|
AdUnitParent[] |
getParentPath()
Gets the parentPath value for this AdUnit.
|
AdUnitParent |
getParentPath(int i) |
static org.apache.axis.encoding.Serializer |
getSerializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Serializer
|
InventoryStatus |
getStatus()
Gets the status value for this AdUnit.
|
TargetPlatform |
getTargetPlatform()
Gets the targetPlatform value for this AdUnit.
|
AdUnitTargetWindow |
getTargetWindow()
Gets the targetWindow value for this AdUnit.
|
static org.apache.axis.description.TypeDesc |
getTypeDesc()
Return type metadata object
|
int |
hashCode() |
void |
setAdUnitCode(String adUnitCode)
Sets the adUnitCode value for this AdUnit.
|
void |
setAdUnitSizes(AdUnitSize[] adUnitSizes)
Sets the adUnitSizes value for this AdUnit.
|
void |
setAdUnitSizes(int i,
AdUnitSize _value) |
void |
setAppliedLabelFrequencyCaps(int i,
LabelFrequencyCap _value) |
void |
setAppliedLabelFrequencyCaps(LabelFrequencyCap[] appliedLabelFrequencyCaps)
Sets the appliedLabelFrequencyCaps value for this AdUnit.
|
void |
setAppliedLabels(AppliedLabel[] appliedLabels)
Sets the appliedLabels value for this AdUnit.
|
void |
setAppliedLabels(int i,
AppliedLabel _value) |
void |
setAppliedTeamIds(int i,
long _value) |
void |
setAppliedTeamIds(long[] appliedTeamIds)
Sets the appliedTeamIds value for this AdUnit.
|
void |
setDescription(String description)
Sets the description value for this AdUnit.
|
void |
setEffectiveAppliedLabels(AppliedLabel[] effectiveAppliedLabels)
Sets the effectiveAppliedLabels value for this AdUnit.
|
void |
setEffectiveAppliedLabels(int i,
AppliedLabel _value) |
void |
setEffectiveLabelFrequencyCaps(int i,
LabelFrequencyCap _value) |
void |
setEffectiveLabelFrequencyCaps(LabelFrequencyCap[] effectiveLabelFrequencyCaps)
Sets the effectiveLabelFrequencyCaps value for this AdUnit.
|
void |
setEffectiveTeamIds(int i,
long _value) |
void |
setEffectiveTeamIds(long[] effectiveTeamIds)
Sets the effectiveTeamIds value for this AdUnit.
|
void |
setExplicitlyTargeted(Boolean explicitlyTargeted)
Sets the explicitlyTargeted value for this AdUnit.
|
void |
setHasChildren(Boolean hasChildren)
Sets the hasChildren value for this AdUnit.
|
void |
setId(String id)
Sets the id value for this AdUnit.
|
void |
setInheritedAdSenseSettings(AdSenseSettingsInheritedProperty inheritedAdSenseSettings)
Sets the inheritedAdSenseSettings value for this AdUnit.
|
void |
setLastModifiedDateTime(DateTime lastModifiedDateTime)
Sets the lastModifiedDateTime value for this AdUnit.
|
void |
setMobilePlatform(MobilePlatform mobilePlatform)
Sets the mobilePlatform value for this AdUnit.
|
void |
setName(String name)
Sets the name value for this AdUnit.
|
void |
setParentId(String parentId)
Sets the parentId value for this AdUnit.
|
void |
setParentPath(AdUnitParent[] parentPath)
Sets the parentPath value for this AdUnit.
|
void |
setParentPath(int i,
AdUnitParent _value) |
void |
setStatus(InventoryStatus status)
Sets the status value for this AdUnit.
|
void |
setTargetPlatform(TargetPlatform targetPlatform)
Sets the targetPlatform value for this AdUnit.
|
void |
setTargetWindow(AdUnitTargetWindow targetWindow)
Sets the targetWindow value for this AdUnit.
|
public AdUnit()
public AdUnit(String id, String parentId, Boolean hasChildren, AdUnitParent[] parentPath, String name, String description, AdUnitTargetWindow targetWindow, InventoryStatus status, String adUnitCode, AdUnitSize[] adUnitSizes, TargetPlatform targetPlatform, MobilePlatform mobilePlatform, Boolean explicitlyTargeted, AdSenseSettingsInheritedProperty inheritedAdSenseSettings, LabelFrequencyCap[] appliedLabelFrequencyCaps, LabelFrequencyCap[] effectiveLabelFrequencyCaps, AppliedLabel[] appliedLabels, AppliedLabel[] effectiveAppliedLabels, long[] effectiveTeamIds, long[] appliedTeamIds, DateTime lastModifiedDateTime)
public String getId()
AdUnit. This value is read-only
and is
assigned by Google when an ad unit is created. This
attribute is required
for updates.public void setId(String id)
id - * Uniquely identifies the AdUnit. This value is read-only
and is
assigned by Google when an ad unit is created. This
attribute is required
for updates.public String getParentId()
public void setParentId(String parentId)
parentId - * The ID of the ad unit's parent. Every ad unit has a parent
except for the
root ad unit, which is created by Google. This attribute
is required.public Boolean getHasChildren()
true if the ad unit has any children.
This attribute is read-only
and is populated by Google.public void setHasChildren(Boolean hasChildren)
hasChildren - * This field is set to true if the ad unit has any children.
This attribute is read-only
and is populated by Google.public AdUnitParent[] getParentPath()
public void setParentPath(AdUnitParent[] parentPath)
parentPath - * The path to this ad unit in the ad unit hierarchy represented
as a list from the root to this
ad unit's parent. For root ad units, this list is
empty. This attribute is read-only and is
populated by Google.public AdUnitParent getParentPath(int i)
public void setParentPath(int i,
AdUnitParent _value)
public String getName()
public void setName(String name)
name - * The name of the ad unit. This attribute is required and its
maximum length
is 255 characters. This attribute must also be case-insensitive
unique.
Beginning in V201311, this attribute can be updated.
In versions before v201311, this attribute is read-only after creation.public String getDescription()
public void setDescription(String description)
description - * A description of the ad unit. This value is optional and its
maximum length
is 65,535 characters.public AdUnitTargetWindow getTargetWindow()
target attribute.
This value
is optional and will be interpreted as TargetWindow.TOP
if left
blank.public void setTargetWindow(AdUnitTargetWindow targetWindow)
targetWindow - * The value to use for the HTML link's target attribute.
This value
is optional and will be interpreted as TargetWindow.TOP
if left
blank.public InventoryStatus getStatus()
InventoryStatus.ACTIVE.
This value cannot be updated directly using InventoryService#updateAdUnit.
It can only be modified by performing actions via
InventoryService#performAdUnitAction.public void setStatus(InventoryStatus status)
status - * The status of this ad unit. It defaults to InventoryStatus.ACTIVE.
This value cannot be updated directly using InventoryService#updateAdUnit.
It can only be modified by performing actions via
InventoryService#performAdUnitAction.public String getAdUnitCode()
adUnitCode
cannot be changed.public void setAdUnitCode(String adUnitCode)
adUnitCode - * A string used to uniquely identify the ad unit for the purposes
of serving
the ad.
Beginning in V201311, this attribute is optional and
can be set during ad unit creation.
Before V201311, this attribute is read-only and assigned
by Google.
Once an ad unit is created, its adUnitCode
cannot be changed.public AdUnitSize[] getAdUnitSizes()
sizes
attribute.public void setAdUnitSizes(AdUnitSize[] adUnitSizes)
adUnitSizes - * The permissible creative sizes that can be served inside this
ad unit. This
attribute is optional. This attribute replaces the
sizes
attribute.public AdUnitSize getAdUnitSizes(int i)
public void setAdUnitSizes(int i,
AdUnitSize _value)
public TargetPlatform getTargetPlatform()
AdUnit is serving, the default
value is
TargetPlatform.WEB. Line items will only serve
to ad units that have the same
LineItemSummary.targetPlatform.public void setTargetPlatform(TargetPlatform targetPlatform)
targetPlatform - * The platform that the AdUnit is serving, the default
value is
TargetPlatform.WEB. Line items will only serve
to ad units that have the same
LineItemSummary.targetPlatform.public MobilePlatform getMobilePlatform()
AdUnit, i.e.
whether this ad unit
appears in a mobile application or in a mobile web
site. This attribute can
only be used with TargetPlatform.MOBILE ad
units. This attribute is
optional and defaults to MobilePlatform.SITE.public void setMobilePlatform(MobilePlatform mobilePlatform)
mobilePlatform - * The platform associated with a mobile AdUnit, i.e.
whether this ad unit
appears in a mobile application or in a mobile web
site. This attribute can
only be used with TargetPlatform.MOBILE ad
units. This attribute is
optional and defaults to MobilePlatform.SITE.public Boolean getExplicitlyTargeted()
true, then the AdUnit
will not be
implicitly targeted when its parent is. Traffickers
must explicitly
target such an ad unit or else no line items will
serve to it. This
feature is only available for DFP Premium accounts.public void setExplicitlyTargeted(Boolean explicitlyTargeted)
explicitlyTargeted - * If this field is set to true, then the AdUnit
will not be
implicitly targeted when its parent is. Traffickers
must explicitly
target such an ad unit or else no line items will
serve to it. This
feature is only available for DFP Premium accounts.public AdSenseSettingsInheritedProperty getInheritedAdSenseSettings()
public void setInheritedAdSenseSettings(AdSenseSettingsInheritedProperty inheritedAdSenseSettings)
inheritedAdSenseSettings - * AdSense specific settings. This value is optional and if left
blank will be
inherited from the parent ad unit.public LabelFrequencyCap[] getAppliedLabelFrequencyCaps()
public void setAppliedLabelFrequencyCaps(LabelFrequencyCap[] appliedLabelFrequencyCaps)
appliedLabelFrequencyCaps - * The set of label frequency caps applied directly to this ad
unit. There
is a limit of 10 label frequency caps per ad unit.public LabelFrequencyCap getAppliedLabelFrequencyCaps(int i)
public void setAppliedLabelFrequencyCaps(int i,
LabelFrequencyCap _value)
public LabelFrequencyCap[] getEffectiveLabelFrequencyCaps()
public void setEffectiveLabelFrequencyCaps(LabelFrequencyCap[] effectiveLabelFrequencyCaps)
effectiveLabelFrequencyCaps - * Contains the set of labels applied directly to the ad unit
as well as
those inherited from parent ad units. This field
is readonly and is
assigned by Google.public LabelFrequencyCap getEffectiveLabelFrequencyCaps(int i)
public void setEffectiveLabelFrequencyCaps(int i,
LabelFrequencyCap _value)
public AppliedLabel[] getAppliedLabels()
public void setAppliedLabels(AppliedLabel[] appliedLabels)
appliedLabels - * The set of labels applied directly to this ad unit.public AppliedLabel getAppliedLabels(int i)
public void setAppliedLabels(int i,
AppliedLabel _value)
public AppliedLabel[] getEffectiveAppliedLabels()
public void setEffectiveAppliedLabels(AppliedLabel[] effectiveAppliedLabels)
effectiveAppliedLabels - * Contains the set of labels applied directly to the ad unit
as well as
those inherited from the parent ad units. If a label
has been negated, only the
negated label is returned. This field is readonly
and is assigned by
Google.public AppliedLabel getEffectiveAppliedLabels(int i)
public void setEffectiveAppliedLabels(int i,
AppliedLabel _value)
public long[] getEffectiveTeamIds()
public void setEffectiveTeamIds(long[] effectiveTeamIds)
effectiveTeamIds - * The IDs of all teams that this ad unit is on as well as those
inherited
from parent ad units. This value is read-only and
is set by Google.public long getEffectiveTeamIds(int i)
public void setEffectiveTeamIds(int i,
long _value)
public long[] getAppliedTeamIds()
public void setAppliedTeamIds(long[] appliedTeamIds)
appliedTeamIds - * The IDs of all teams that this ad unit is on directly.public long getAppliedTeamIds(int i)
public void setAppliedTeamIds(int i,
long _value)
public DateTime getLastModifiedDateTime()
public void setLastModifiedDateTime(DateTime lastModifiedDateTime)
lastModifiedDateTime - * The date and time this ad unit was last modified.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.