public class CreativePlaceholder extends Object implements Serializable
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.| Constructor and Description |
|---|
CreativePlaceholder() |
CreativePlaceholder(Size size,
Long creativeTemplateId,
CreativePlaceholder[] companions,
AppliedLabel[] appliedLabels,
AppliedLabel[] effectiveAppliedLabels,
Integer expectedCreativeCount,
CreativeSizeType creativeSizeType,
String targetingName,
Boolean isAmpOnly) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
AppliedLabel[] |
getAppliedLabels()
Gets the appliedLabels value for this CreativePlaceholder.
|
AppliedLabel |
getAppliedLabels(int i) |
CreativePlaceholder[] |
getCompanions()
Gets the companions value for this CreativePlaceholder.
|
CreativePlaceholder |
getCompanions(int i) |
CreativeSizeType |
getCreativeSizeType()
Gets the creativeSizeType value for this CreativePlaceholder.
|
Long |
getCreativeTemplateId()
Gets the creativeTemplateId value for this CreativePlaceholder.
|
static org.apache.axis.encoding.Deserializer |
getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Deserializer
|
AppliedLabel[] |
getEffectiveAppliedLabels()
Gets the effectiveAppliedLabels value for this CreativePlaceholder.
|
AppliedLabel |
getEffectiveAppliedLabels(int i) |
Integer |
getExpectedCreativeCount()
Gets the expectedCreativeCount value for this CreativePlaceholder.
|
Boolean |
getIsAmpOnly()
Gets the isAmpOnly value for this CreativePlaceholder.
|
static org.apache.axis.encoding.Serializer |
getSerializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Serializer
|
Size |
getSize()
Gets the size value for this CreativePlaceholder.
|
String |
getTargetingName()
Gets the targetingName value for this CreativePlaceholder.
|
static org.apache.axis.description.TypeDesc |
getTypeDesc()
Return type metadata object
|
int |
hashCode() |
void |
setAppliedLabels(AppliedLabel[] appliedLabels)
Sets the appliedLabels value for this CreativePlaceholder.
|
void |
setAppliedLabels(int i,
AppliedLabel _value) |
void |
setCompanions(CreativePlaceholder[] companions)
Sets the companions value for this CreativePlaceholder.
|
void |
setCompanions(int i,
CreativePlaceholder _value) |
void |
setCreativeSizeType(CreativeSizeType creativeSizeType)
Sets the creativeSizeType value for this CreativePlaceholder.
|
void |
setCreativeTemplateId(Long creativeTemplateId)
Sets the creativeTemplateId value for this CreativePlaceholder.
|
void |
setEffectiveAppliedLabels(AppliedLabel[] effectiveAppliedLabels)
Sets the effectiveAppliedLabels value for this CreativePlaceholder.
|
void |
setEffectiveAppliedLabels(int i,
AppliedLabel _value) |
void |
setExpectedCreativeCount(Integer expectedCreativeCount)
Sets the expectedCreativeCount value for this CreativePlaceholder.
|
void |
setIsAmpOnly(Boolean isAmpOnly)
Sets the isAmpOnly value for this CreativePlaceholder.
|
void |
setSize(Size size)
Sets the size value for this CreativePlaceholder.
|
void |
setTargetingName(String targetingName)
Sets the targetingName value for this CreativePlaceholder.
|
String |
toString() |
public CreativePlaceholder()
public CreativePlaceholder(Size size, Long creativeTemplateId, CreativePlaceholder[] companions, AppliedLabel[] appliedLabels, AppliedLabel[] effectiveAppliedLabels, Integer expectedCreativeCount, CreativeSizeType creativeSizeType, String targetingName, Boolean isAmpOnly)
public Size getSize()
public void setSize(Size size)
size - * The dimensions that the creative is expected to have. This
attribute is required.public Long getCreativeTemplateId()
This value is only required if creativeSizeType
is CreativeSizeType.NATIVE.
public void setCreativeTemplateId(Long creativeTemplateId)
creativeTemplateId - * The native creative template ID.
This value is only required if creativeSizeType
is CreativeSizeType.NATIVE.
public CreativePlaceholder[] getCompanions()
LineItemSummary.environmentType
of EnvironmentType.VIDEO_PLAYER or LineItemSummary.roadblockingType
of RoadblockingType.CREATIVE_SET.public void setCompanions(CreativePlaceholder[] companions)
companions - * The companions that the creative is expected to have. This
attribute can only be set if the
line item it belongs to has a LineItemSummary.environmentType
of EnvironmentType.VIDEO_PLAYER or LineItemSummary.roadblockingType
of RoadblockingType.CREATIVE_SET.public CreativePlaceholder getCompanions(int i)
public void setCompanions(int i,
CreativePlaceholder _value)
public AppliedLabel[] getAppliedLabels()
public void setAppliedLabels(AppliedLabel[] appliedLabels)
appliedLabels - * The set of label frequency caps applied directly to this creative
placeholder.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 this creative
placeholder as well as those
inherited from the creative template from which this
creative placeholder was instantiated.
This field is readonly and is assigned by Google.public AppliedLabel getEffectiveAppliedLabels(int i)
public void setEffectiveAppliedLabels(int i,
AppliedLabel _value)
public Integer getExpectedCreativeCount()
public void setExpectedCreativeCount(Integer expectedCreativeCount)
expectedCreativeCount - * Expected number of creatives that will be uploaded corresponding
to this creative placeholder.
This estimate is used to improve the accuracy of forecasting;
for example, if label frequency
capping limits the number of times a creative may
be served.public CreativeSizeType getCreativeSizeType()
CreativeSizeType.PIXEL, which is a dimension based
size (width-height pair).public void setCreativeSizeType(CreativeSizeType creativeSizeType)
creativeSizeType - * Describes the types of sizes a creative can be. By default,
the creative's size is CreativeSizeType.PIXEL, which is a dimension based
size (width-height pair).public String getTargetingName()
CreativeTargeting for creatives this
placeholder represents.
This attribute is optional. Specifying creative
targeting here is for forecasting purposes
only and has no effect on serving. The same creative
targeting should be specified on a LineItemCreativeAssociation when associating a Creative with the LineItem.
public void setTargetingName(String targetingName)
targetingName - * The name of the CreativeTargeting for creatives this
placeholder represents.
This attribute is optional. Specifying creative
targeting here is for forecasting purposes
only and has no effect on serving. The same creative
targeting should be specified on a LineItemCreativeAssociation when associating a Creative with the LineItem.
public Boolean getIsAmpOnly()
This attribute is optional. It is for forecasting purposes only and has no effect on serving.
public void setIsAmpOnly(Boolean isAmpOnly)
isAmpOnly - * Indicate if the expected creative of this placeholder has an
AMP only variant.
This attribute is optional. It is for forecasting purposes only and has no effect on serving.
public static org.apache.axis.description.TypeDesc getTypeDesc()
public static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
Copyright © 2024. All rights reserved.