public class CreativePlaceholder extends Object
CreativePlaceholder describes a slot that a creative is expected to
fill. This is used primarily to help in forecasting, and also to validate
that the correct creatives are associated with the line item. A
CreativePlaceholder must contain a size, and it can optionally
contain companions. Companions are only valid if the line item's environment
type is EnvironmentType.VIDEO_PLAYER.
Java class for CreativePlaceholder complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CreativePlaceholder">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="size" type="{https://www.google.com/apis/ads/publisher/v201805}Size" minOccurs="0"/>
<element name="creativeTemplateId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
<element name="companions" type="{https://www.google.com/apis/ads/publisher/v201805}CreativePlaceholder" maxOccurs="unbounded" minOccurs="0"/>
<element name="appliedLabels" type="{https://www.google.com/apis/ads/publisher/v201805}AppliedLabel" maxOccurs="unbounded" minOccurs="0"/>
<element name="effectiveAppliedLabels" type="{https://www.google.com/apis/ads/publisher/v201805}AppliedLabel" maxOccurs="unbounded" minOccurs="0"/>
<element name="expectedCreativeCount" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
<element name="creativeSizeType" type="{https://www.google.com/apis/ads/publisher/v201805}CreativeSizeType" minOccurs="0"/>
<element name="targetingName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected List<AppliedLabel> |
appliedLabels |
protected List<CreativePlaceholder> |
companions |
protected CreativeSizeType |
creativeSizeType |
protected Long |
creativeTemplateId |
protected List<AppliedLabel> |
effectiveAppliedLabels |
protected Integer |
expectedCreativeCount |
protected Size |
size |
protected String |
targetingName |
| Constructor and Description |
|---|
CreativePlaceholder() |
| Modifier and Type | Method and Description |
|---|---|
List<AppliedLabel> |
getAppliedLabels()
Gets the value of the appliedLabels property.
|
List<CreativePlaceholder> |
getCompanions()
Gets the value of the companions property.
|
CreativeSizeType |
getCreativeSizeType()
Gets the value of the creativeSizeType property.
|
Long |
getCreativeTemplateId()
Gets the value of the creativeTemplateId property.
|
List<AppliedLabel> |
getEffectiveAppliedLabels()
Gets the value of the effectiveAppliedLabels property.
|
Integer |
getExpectedCreativeCount()
Gets the value of the expectedCreativeCount property.
|
Size |
getSize()
Gets the value of the size property.
|
String |
getTargetingName()
Gets the value of the targetingName property.
|
void |
setCreativeSizeType(CreativeSizeType value)
Sets the value of the creativeSizeType property.
|
void |
setCreativeTemplateId(Long value)
Sets the value of the creativeTemplateId property.
|
void |
setExpectedCreativeCount(Integer value)
Sets the value of the expectedCreativeCount property.
|
void |
setSize(Size value)
Sets the value of the size property.
|
void |
setTargetingName(String value)
Sets the value of the targetingName property.
|
protected Size size
protected Long creativeTemplateId
protected List<CreativePlaceholder> companions
protected List<AppliedLabel> appliedLabels
protected List<AppliedLabel> effectiveAppliedLabels
protected Integer expectedCreativeCount
protected CreativeSizeType creativeSizeType
protected String targetingName
public void setSize(Size value)
value - allowed object is
Sizepublic Long getCreativeTemplateId()
Longpublic void setCreativeTemplateId(Long value)
value - allowed object is
Longpublic List<CreativePlaceholder> getCompanions()
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 companions property.
For example, to add a new item, do as follows:
getCompanions().add(newItem);
Objects of the following type(s) are allowed in the list
CreativePlaceholder
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 Integer getExpectedCreativeCount()
Integerpublic void setExpectedCreativeCount(Integer value)
value - allowed object is
Integerpublic CreativeSizeType getCreativeSizeType()
CreativeSizeTypepublic void setCreativeSizeType(CreativeSizeType value)
value - allowed object is
CreativeSizeTypepublic String getTargetingName()
StringCopyright © 2018. All Rights Reserved.