public class AdUnit extends Object
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.
Java class for AdUnit complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="AdUnit">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="id" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="parentId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="hasChildren" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
<element name="parentPath" type="{https://www.google.com/apis/ads/publisher/v201711}AdUnitParent" maxOccurs="unbounded" minOccurs="0"/>
<element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="targetWindow" type="{https://www.google.com/apis/ads/publisher/v201711}AdUnit.TargetWindow" minOccurs="0"/>
<element name="status" type="{https://www.google.com/apis/ads/publisher/v201711}InventoryStatus" minOccurs="0"/>
<element name="adUnitCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="adUnitSizes" type="{https://www.google.com/apis/ads/publisher/v201711}AdUnitSize" maxOccurs="unbounded" minOccurs="0"/>
<element name="isFluid" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
<element name="explicitlyTargeted" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
<element name="adSenseSettings" type="{https://www.google.com/apis/ads/publisher/v201711}AdSenseSettings" minOccurs="0"/>
<element name="adSenseSettingsSource" type="{https://www.google.com/apis/ads/publisher/v201711}ValueSourceType" minOccurs="0"/>
<element name="appliedLabelFrequencyCaps" type="{https://www.google.com/apis/ads/publisher/v201711}LabelFrequencyCap" maxOccurs="unbounded" minOccurs="0"/>
<element name="effectiveLabelFrequencyCaps" type="{https://www.google.com/apis/ads/publisher/v201711}LabelFrequencyCap" maxOccurs="unbounded" minOccurs="0"/>
<element name="appliedLabels" type="{https://www.google.com/apis/ads/publisher/v201711}AppliedLabel" maxOccurs="unbounded" minOccurs="0"/>
<element name="effectiveAppliedLabels" type="{https://www.google.com/apis/ads/publisher/v201711}AppliedLabel" maxOccurs="unbounded" minOccurs="0"/>
<element name="effectiveTeamIds" type="{http://www.w3.org/2001/XMLSchema}long" maxOccurs="unbounded" minOccurs="0"/>
<element name="appliedTeamIds" type="{http://www.w3.org/2001/XMLSchema}long" maxOccurs="unbounded" minOccurs="0"/>
<element name="lastModifiedDateTime" type="{https://www.google.com/apis/ads/publisher/v201711}DateTime" minOccurs="0"/>
<element name="smartSizeMode" type="{https://www.google.com/apis/ads/publisher/v201711}SmartSizeMode" minOccurs="0"/>
<element name="refreshRate" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
<element name="externalSetTopBoxChannelId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="isSetTopBoxEnabled" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected AdSenseSettings |
adSenseSettings |
protected ValueSourceType |
adSenseSettingsSource |
protected String |
adUnitCode |
protected List<AdUnitSize> |
adUnitSizes |
protected List<LabelFrequencyCap> |
appliedLabelFrequencyCaps |
protected List<AppliedLabel> |
appliedLabels |
protected List<Long> |
appliedTeamIds |
protected String |
description |
protected List<AppliedLabel> |
effectiveAppliedLabels |
protected List<LabelFrequencyCap> |
effectiveLabelFrequencyCaps |
protected List<Long> |
effectiveTeamIds |
protected Boolean |
explicitlyTargeted |
protected String |
externalSetTopBoxChannelId |
protected Boolean |
hasChildren |
protected String |
id |
protected Boolean |
isFluid |
protected Boolean |
isSetTopBoxEnabled |
protected DateTime |
lastModifiedDateTime |
protected String |
name |
protected String |
parentId |
protected List<AdUnitParent> |
parentPath |
protected Integer |
refreshRate |
protected SmartSizeMode |
smartSizeMode |
protected InventoryStatus |
status |
protected AdUnitTargetWindow |
targetWindow |
| Constructor and Description |
|---|
AdUnit() |
| Modifier and Type | Method and Description |
|---|---|
AdSenseSettings |
getAdSenseSettings()
Gets the value of the adSenseSettings property.
|
ValueSourceType |
getAdSenseSettingsSource()
Gets the value of the adSenseSettingsSource property.
|
String |
getAdUnitCode()
Gets the value of the adUnitCode property.
|
List<AdUnitSize> |
getAdUnitSizes()
Gets the value of the adUnitSizes property.
|
List<LabelFrequencyCap> |
getAppliedLabelFrequencyCaps()
Gets the value of the appliedLabelFrequencyCaps property.
|
List<AppliedLabel> |
getAppliedLabels()
Gets the value of the appliedLabels property.
|
List<Long> |
getAppliedTeamIds()
Gets the value of the appliedTeamIds property.
|
String |
getDescription()
Gets the value of the description property.
|
List<AppliedLabel> |
getEffectiveAppliedLabels()
Gets the value of the effectiveAppliedLabels property.
|
List<LabelFrequencyCap> |
getEffectiveLabelFrequencyCaps()
Gets the value of the effectiveLabelFrequencyCaps property.
|
List<Long> |
getEffectiveTeamIds()
Gets the value of the effectiveTeamIds property.
|
String |
getExternalSetTopBoxChannelId()
Gets the value of the externalSetTopBoxChannelId property.
|
String |
getId()
Gets the value of the id property.
|
DateTime |
getLastModifiedDateTime()
Gets the value of the lastModifiedDateTime property.
|
String |
getName()
Gets the value of the name property.
|
String |
getParentId()
Gets the value of the parentId property.
|
List<AdUnitParent> |
getParentPath()
Gets the value of the parentPath property.
|
Integer |
getRefreshRate()
Gets the value of the refreshRate property.
|
SmartSizeMode |
getSmartSizeMode()
Gets the value of the smartSizeMode property.
|
InventoryStatus |
getStatus()
Gets the value of the status property.
|
AdUnitTargetWindow |
getTargetWindow()
Gets the value of the targetWindow property.
|
Boolean |
isExplicitlyTargeted()
Gets the value of the explicitlyTargeted property.
|
Boolean |
isHasChildren()
Gets the value of the hasChildren property.
|
Boolean |
isIsFluid()
Gets the value of the isFluid property.
|
Boolean |
isIsSetTopBoxEnabled()
Gets the value of the isSetTopBoxEnabled property.
|
void |
setAdSenseSettings(AdSenseSettings value)
Sets the value of the adSenseSettings property.
|
void |
setAdSenseSettingsSource(ValueSourceType value)
Sets the value of the adSenseSettingsSource property.
|
void |
setAdUnitCode(String value)
Sets the value of the adUnitCode property.
|
void |
setDescription(String value)
Sets the value of the description property.
|
void |
setExplicitlyTargeted(Boolean value)
Sets the value of the explicitlyTargeted property.
|
void |
setExternalSetTopBoxChannelId(String value)
Sets the value of the externalSetTopBoxChannelId property.
|
void |
setHasChildren(Boolean value)
Sets the value of the hasChildren property.
|
void |
setId(String value)
Sets the value of the id property.
|
void |
setIsFluid(Boolean value)
Sets the value of the isFluid property.
|
void |
setIsSetTopBoxEnabled(Boolean value)
Sets the value of the isSetTopBoxEnabled property.
|
void |
setLastModifiedDateTime(DateTime value)
Sets the value of the lastModifiedDateTime property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setParentId(String value)
Sets the value of the parentId property.
|
void |
setRefreshRate(Integer value)
Sets the value of the refreshRate property.
|
void |
setSmartSizeMode(SmartSizeMode value)
Sets the value of the smartSizeMode property.
|
void |
setStatus(InventoryStatus value)
Sets the value of the status property.
|
void |
setTargetWindow(AdUnitTargetWindow value)
Sets the value of the targetWindow property.
|
protected String id
protected String parentId
protected Boolean hasChildren
protected List<AdUnitParent> parentPath
protected String name
protected String description
protected AdUnitTargetWindow targetWindow
protected InventoryStatus status
protected String adUnitCode
protected List<AdUnitSize> adUnitSizes
protected Boolean isFluid
protected Boolean explicitlyTargeted
protected AdSenseSettings adSenseSettings
protected ValueSourceType adSenseSettingsSource
protected List<LabelFrequencyCap> appliedLabelFrequencyCaps
protected List<LabelFrequencyCap> effectiveLabelFrequencyCaps
protected List<AppliedLabel> appliedLabels
protected List<AppliedLabel> effectiveAppliedLabels
protected DateTime lastModifiedDateTime
protected SmartSizeMode smartSizeMode
protected Integer refreshRate
protected String externalSetTopBoxChannelId
protected Boolean isSetTopBoxEnabled
public void setId(String value)
value - allowed object is
Stringpublic String getParentId()
Stringpublic void setParentId(String value)
value - allowed object is
Stringpublic Boolean isHasChildren()
Booleanpublic void setHasChildren(Boolean value)
value - allowed object is
Booleanpublic List<AdUnitParent> getParentPath()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the parentPath property.
For example, to add a new item, do as follows:
getParentPath().add(newItem);
Objects of the following type(s) are allowed in the list
AdUnitParent
public String getName()
Stringpublic void setName(String value)
value - allowed object is
Stringpublic String getDescription()
Stringpublic void setDescription(String value)
value - allowed object is
Stringpublic AdUnitTargetWindow getTargetWindow()
AdUnitTargetWindowpublic void setTargetWindow(AdUnitTargetWindow value)
value - allowed object is
AdUnitTargetWindowpublic InventoryStatus getStatus()
InventoryStatuspublic void setStatus(InventoryStatus value)
value - allowed object is
InventoryStatuspublic String getAdUnitCode()
Stringpublic void setAdUnitCode(String value)
value - allowed object is
Stringpublic List<AdUnitSize> getAdUnitSizes()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the adUnitSizes property.
For example, to add a new item, do as follows:
getAdUnitSizes().add(newItem);
Objects of the following type(s) are allowed in the list
AdUnitSize
public Boolean isIsFluid()
Booleanpublic void setIsFluid(Boolean value)
value - allowed object is
Booleanpublic Boolean isExplicitlyTargeted()
Booleanpublic void setExplicitlyTargeted(Boolean value)
value - allowed object is
Booleanpublic AdSenseSettings getAdSenseSettings()
AdSenseSettingspublic void setAdSenseSettings(AdSenseSettings value)
value - allowed object is
AdSenseSettingspublic ValueSourceType getAdSenseSettingsSource()
ValueSourceTypepublic void setAdSenseSettingsSource(ValueSourceType value)
value - allowed object is
ValueSourceTypepublic List<LabelFrequencyCap> getAppliedLabelFrequencyCaps()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the appliedLabelFrequencyCaps property.
For example, to add a new item, do as follows:
getAppliedLabelFrequencyCaps().add(newItem);
Objects of the following type(s) are allowed in the list
LabelFrequencyCap
public List<LabelFrequencyCap> getEffectiveLabelFrequencyCaps()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the effectiveLabelFrequencyCaps property.
For example, to add a new item, do as follows:
getEffectiveLabelFrequencyCaps().add(newItem);
Objects of the following type(s) are allowed in the list
LabelFrequencyCap
public List<AppliedLabel> getAppliedLabels()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the appliedLabels property.
For example, to add a new item, do as follows:
getAppliedLabels().add(newItem);
Objects of the following type(s) are allowed in the list
AppliedLabel
public List<AppliedLabel> getEffectiveAppliedLabels()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the effectiveAppliedLabels property.
For example, to add a new item, do as follows:
getEffectiveAppliedLabels().add(newItem);
Objects of the following type(s) are allowed in the list
AppliedLabel
public List<Long> getEffectiveTeamIds()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the effectiveTeamIds property.
For example, to add a new item, do as follows:
getEffectiveTeamIds().add(newItem);
Objects of the following type(s) are allowed in the list
Long
public List<Long> getAppliedTeamIds()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the appliedTeamIds property.
For example, to add a new item, do as follows:
getAppliedTeamIds().add(newItem);
Objects of the following type(s) are allowed in the list
Long
public DateTime getLastModifiedDateTime()
DateTimepublic void setLastModifiedDateTime(DateTime value)
value - allowed object is
DateTimepublic SmartSizeMode getSmartSizeMode()
SmartSizeModepublic void setSmartSizeMode(SmartSizeMode value)
value - allowed object is
SmartSizeModepublic Integer getRefreshRate()
Integerpublic void setRefreshRate(Integer value)
value - allowed object is
Integerpublic String getExternalSetTopBoxChannelId()
Stringpublic void setExternalSetTopBoxChannelId(String value)
value - allowed object is
Stringpublic Boolean isIsSetTopBoxEnabled()
BooleanCopyright © 2018. All Rights Reserved.