public class ProductTemplate extends Object implements Serializable
ProductTemplate is used to generate products. All generated
products will
inherit all attributes from their ProductTemplate,
except for segmentation,
which will be included in the Product.targeting.
The generated products in turn will be
used to create proposal line items
so that almost all attributes
in the product template are properties of the proposal
line item.| Constructor and Description |
|---|
ProductTemplate() |
ProductTemplate(Long id,
String name,
DateTime creationDateTime,
DateTime lastModifiedDateTime,
String description,
String nameMacro,
ProductTemplateStatus status,
ProductType productType,
Long creatorId,
RateType rateType,
RoadblockingType roadblockingType,
CreativePlaceholder[] creativePlaceholders,
LineItemType lineItemType,
Integer priority,
FrequencyCap[] frequencyCaps,
Boolean allowFrequencyCapsCustomization,
ProductSegmentation productSegmentation,
ProductTemplateTargeting targeting,
BaseCustomFieldValue[] customFieldValues) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Boolean |
getAllowFrequencyCapsCustomization()
Gets the allowFrequencyCapsCustomization value for this ProductTemplate.
|
DateTime |
getCreationDateTime()
Gets the creationDateTime value for this ProductTemplate.
|
CreativePlaceholder[] |
getCreativePlaceholders()
Gets the creativePlaceholders value for this ProductTemplate.
|
CreativePlaceholder |
getCreativePlaceholders(int i) |
Long |
getCreatorId()
Gets the creatorId value for this ProductTemplate.
|
BaseCustomFieldValue[] |
getCustomFieldValues()
Gets the customFieldValues value for this ProductTemplate.
|
BaseCustomFieldValue |
getCustomFieldValues(int i) |
String |
getDescription()
Gets the description value for this ProductTemplate.
|
static org.apache.axis.encoding.Deserializer |
getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Deserializer
|
FrequencyCap[] |
getFrequencyCaps()
Gets the frequencyCaps value for this ProductTemplate.
|
FrequencyCap |
getFrequencyCaps(int i) |
Long |
getId()
Gets the id value for this ProductTemplate.
|
DateTime |
getLastModifiedDateTime()
Gets the lastModifiedDateTime value for this ProductTemplate.
|
LineItemType |
getLineItemType()
Gets the lineItemType value for this ProductTemplate.
|
String |
getName()
Gets the name value for this ProductTemplate.
|
String |
getNameMacro()
Gets the nameMacro value for this ProductTemplate.
|
Integer |
getPriority()
Gets the priority value for this ProductTemplate.
|
ProductSegmentation |
getProductSegmentation()
Gets the productSegmentation value for this ProductTemplate.
|
ProductType |
getProductType()
Gets the productType value for this ProductTemplate.
|
RateType |
getRateType()
Gets the rateType value for this ProductTemplate.
|
RoadblockingType |
getRoadblockingType()
Gets the roadblockingType value for this ProductTemplate.
|
static org.apache.axis.encoding.Serializer |
getSerializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Serializer
|
ProductTemplateStatus |
getStatus()
Gets the status value for this ProductTemplate.
|
ProductTemplateTargeting |
getTargeting()
Gets the targeting value for this ProductTemplate.
|
static org.apache.axis.description.TypeDesc |
getTypeDesc()
Return type metadata object
|
int |
hashCode() |
void |
setAllowFrequencyCapsCustomization(Boolean allowFrequencyCapsCustomization)
Sets the allowFrequencyCapsCustomization value for this ProductTemplate.
|
void |
setCreationDateTime(DateTime creationDateTime)
Sets the creationDateTime value for this ProductTemplate.
|
void |
setCreativePlaceholders(CreativePlaceholder[] creativePlaceholders)
Sets the creativePlaceholders value for this ProductTemplate.
|
void |
setCreativePlaceholders(int i,
CreativePlaceholder _value) |
void |
setCreatorId(Long creatorId)
Sets the creatorId value for this ProductTemplate.
|
void |
setCustomFieldValues(BaseCustomFieldValue[] customFieldValues)
Sets the customFieldValues value for this ProductTemplate.
|
void |
setCustomFieldValues(int i,
BaseCustomFieldValue _value) |
void |
setDescription(String description)
Sets the description value for this ProductTemplate.
|
void |
setFrequencyCaps(FrequencyCap[] frequencyCaps)
Sets the frequencyCaps value for this ProductTemplate.
|
void |
setFrequencyCaps(int i,
FrequencyCap _value) |
void |
setId(Long id)
Sets the id value for this ProductTemplate.
|
void |
setLastModifiedDateTime(DateTime lastModifiedDateTime)
Sets the lastModifiedDateTime value for this ProductTemplate.
|
void |
setLineItemType(LineItemType lineItemType)
Sets the lineItemType value for this ProductTemplate.
|
void |
setName(String name)
Sets the name value for this ProductTemplate.
|
void |
setNameMacro(String nameMacro)
Sets the nameMacro value for this ProductTemplate.
|
void |
setPriority(Integer priority)
Sets the priority value for this ProductTemplate.
|
void |
setProductSegmentation(ProductSegmentation productSegmentation)
Sets the productSegmentation value for this ProductTemplate.
|
void |
setProductType(ProductType productType)
Sets the productType value for this ProductTemplate.
|
void |
setRateType(RateType rateType)
Sets the rateType value for this ProductTemplate.
|
void |
setRoadblockingType(RoadblockingType roadblockingType)
Sets the roadblockingType value for this ProductTemplate.
|
void |
setStatus(ProductTemplateStatus status)
Sets the status value for this ProductTemplate.
|
void |
setTargeting(ProductTemplateTargeting targeting)
Sets the targeting value for this ProductTemplate.
|
public ProductTemplate()
public ProductTemplate(Long id, String name, DateTime creationDateTime, DateTime lastModifiedDateTime, String description, String nameMacro, ProductTemplateStatus status, ProductType productType, Long creatorId, RateType rateType, RoadblockingType roadblockingType, CreativePlaceholder[] creativePlaceholders, LineItemType lineItemType, Integer priority, FrequencyCap[] frequencyCaps, Boolean allowFrequencyCapsCustomization, ProductSegmentation productSegmentation, ProductTemplateTargeting targeting, BaseCustomFieldValue[] customFieldValues)
public Long getId()
ProductTemplate.
This attribute is read-only and is assigned by Google
when a ProductTemplate
is created.public void setId(Long id)
id - * Uniquely identifies the ProductTemplate.
This attribute is read-only and is assigned by Google
when a ProductTemplate
is created.public String getName()
ProductTemplate.
This attribute is required and has maximum length
of 255 characters.public void setName(String name)
name - * The name of the ProductTemplate.
This attribute is required and has maximum length
of 255 characters.public DateTime getCreationDateTime()
ProductTemplate.
This attribute is read-only and is assigned by Google
when a ProductTemplate
is created.public void setCreationDateTime(DateTime creationDateTime)
creationDateTime - * The creation time of the ProductTemplate.
This attribute is read-only and is assigned by Google
when a ProductTemplate
is created.public DateTime getLastModifiedDateTime()
ProductTemplate was last modified.
This attribute is read-only and is assigned by Google
when a ProductTemplate
is updated.public void setLastModifiedDateTime(DateTime lastModifiedDateTime)
lastModifiedDateTime - * The date and time this ProductTemplate was last modified.
This attribute is read-only and is assigned by Google
when a ProductTemplate
is updated.public String getDescription()
ProductTemplate.
This attribute has maximum length of 511 characters.
This attribute is optional.public void setDescription(String description)
description - * The description of the ProductTemplate.
This attribute has maximum length of 511 characters.
This attribute is optional.public String getNameMacro()
ProductTemplate. The name macro
is used to generate the Product.name. This attribute is required and has
maximum length of 1023 characters.
The name macro can contain plain text and several
placeholders that will be replaced with
values specified in the ProductTemplate when
generating product names.
Allowed placeholders are:
| Placeholder | Segmentation |
|---|---|
<ad-unit> |
ProductSegmentation.adUnitSegments |
<placement> |
ProductSegmentation.placementSegment |
<location> |
ProductSegmentation.geoSegment |
<user-domain> |
ProductSegmentation.userDomainSegment |
<bandwidth-group> |
ProductSegmentation.bandwidthSegment |
<browser> |
ProductSegmentation.browserSegment |
<browser-language> |
ProductSegmentation.browserLanguageSegment |
<operating-system> |
ProductSegmentation.operatingSystemSegment |
<frequency-cap> |
frequencyCaps |
<rate-type> |
rateType |
<creative-placeholder-size> |
creativePlaceholders |
<line-item-type> |
lineItemType |
<line-item-priority> |
priority |
<template-name> |
name |
public void setNameMacro(String nameMacro)
nameMacro - * The name macro of the ProductTemplate. The name macro
is used to generate the Product.name. This attribute is required and has
maximum length of 1023 characters.
The name macro can contain plain text and several
placeholders that will be replaced with
values specified in the ProductTemplate when
generating product names.
Allowed placeholders are:
| Placeholder | Segmentation |
|---|---|
<ad-unit> |
ProductSegmentation.adUnitSegments |
<placement> |
ProductSegmentation.placementSegment |
<location> |
ProductSegmentation.geoSegment |
<user-domain> |
ProductSegmentation.userDomainSegment |
<bandwidth-group> |
ProductSegmentation.bandwidthSegment |
<browser> |
ProductSegmentation.browserSegment |
<browser-language> |
ProductSegmentation.browserLanguageSegment |
<operating-system> |
ProductSegmentation.operatingSystemSegment |
<frequency-cap> |
frequencyCaps |
<rate-type> |
rateType |
<creative-placeholder-size> |
creativePlaceholders |
<line-item-type> |
lineItemType |
<line-item-priority> |
priority |
<template-name> |
name |
public ProductTemplateStatus getStatus()
ProductTemplate.
This attribute is read-only and is assigned by Google.public void setStatus(ProductTemplateStatus status)
status - * The status of the ProductTemplate.
This attribute is read-only and is assigned by Google.public ProductType getProductType()
Product.
Note: if the type is ProductType.OFFLINE,
then the following fields must be
null or empty:
roadblockingType, lineItemType,
frequencyCaps,
productSegmentation and targeting.
This attribute is required.public void setProductType(ProductType productType)
productType - * The type of generated Product.
Note: if the type is ProductType.OFFLINE,
then the following fields must be
null or empty:
roadblockingType, lineItemType,
frequencyCaps,
productSegmentation and targeting.
This attribute is required.public Long getCreatorId()
id of the user who created the ProductTemplate.
This attribute is read-only and is assigned by Google.public void setCreatorId(Long creatorId)
creatorId - * The id of the user who created the ProductTemplate.
This attribute is read-only and is assigned by Google.public RateType getRateType()
ProposalLineItem.
This attribute is required.public void setRateType(RateType rateType)
rateType - * The method used for billing the created ProposalLineItem.
This attribute is required.public RoadblockingType getRoadblockingType()
ProposalLineItem.
Only RoadblockingType.ONE_OR_MORE and RoadblockingType.CREATIVE_SET are
supported. RoadblockingType.CREATIVE_SET can
be used to serve multiple creatives
on a single web page.
This attribute is optional and defaults to RoadblockingType.ONE_OR_MORE
when productType is ProductType.DFP.public void setRoadblockingType(RoadblockingType roadblockingType)
roadblockingType - * The strategy for serving roadblocked creatives (i.e. instances
where multiple creatives
must be served together on a single web page) for
the created ProposalLineItem.
Only RoadblockingType.ONE_OR_MORE and RoadblockingType.CREATIVE_SET are
supported. RoadblockingType.CREATIVE_SET can
be used to serve multiple creatives
on a single web page.
This attribute is optional and defaults to RoadblockingType.ONE_OR_MORE
when productType is ProductType.DFP.public CreativePlaceholder[] getCreativePlaceholders()
ProposalLineItem.
For a roadblockingType of RoadblockingType.CREATIVE_SET,
all
creative placeholders must have a master and at least
one companion size.
This attribute is required when productType
is ProductType.DFP.
public void setCreativePlaceholders(CreativePlaceholder[] creativePlaceholders)
creativePlaceholders - * Details about the creatives that are expected to serve for
the created ProposalLineItem.
For a roadblockingType of RoadblockingType.CREATIVE_SET,
all
creative placeholders must have a master and at least
one companion size.
This attribute is required when productType
is ProductType.DFP.
public CreativePlaceholder getCreativePlaceholders(int i)
public void setCreativePlaceholders(int i,
CreativePlaceholder _value)
public LineItemType getLineItemType()
ProposalLineItem.
This attribute is required when productType
is ProductType.DFP.public void setLineItemType(LineItemType lineItemType)
lineItemType - * Indicates the line item type for the created ProposalLineItem.
This attribute is required when productType
is ProductType.DFP.public Integer getPriority()
ProposalLineItem. The priority is a value
between 1 and 16. If not specified, the default priority of the
LineItemType will be assigned. The following
default, minimum and
maximum priority values is allowed for each line item
type:
| LineItemType | Default Priority | Minimum Priority | Maximum priority |
|---|---|---|---|
LineItemType.SPONSORSHIP |
4 | 2 | 5 |
LineItemType.STANDARD |
8 | 6 | 10 |
LineItemType.NETWORK |
12 | 11 | 14 |
LineItemType.BULK |
12 | 11 | 14 |
LineItemType.PRICE_PRIORITY |
12 | 11 | 14 |
LineItemType.HOUSE |
16 | 15 | 16 |
productType is ProductType.OFFLINE.public void setPriority(Integer priority)
priority - * Priority of ProposalLineItem. The priority is a value
between 1 and 16. If not specified, the default priority of the
LineItemType will be assigned. The following
default, minimum and
maximum priority values is allowed for each line item
type:
| LineItemType | Default Priority | Minimum Priority | Maximum priority |
|---|---|---|---|
LineItemType.SPONSORSHIP |
4 | 2 | 5 |
LineItemType.STANDARD |
8 | 6 | 10 |
LineItemType.NETWORK |
12 | 11 | 14 |
LineItemType.BULK |
12 | 11 | 14 |
LineItemType.PRICE_PRIORITY |
12 | 11 | 14 |
LineItemType.HOUSE |
16 | 15 | 16 |
productType is ProductType.OFFLINE.public FrequencyCap[] getFrequencyCaps()
ProposalLineItem.
Each frequency cap in the list must have unique TimeUnit.
This attribute is optional.public void setFrequencyCaps(FrequencyCap[] frequencyCaps)
frequencyCaps - * The set of frequency capping units for the created ProposalLineItem.
Each frequency cap in the list must have unique TimeUnit.
This attribute is optional.public FrequencyCap getFrequencyCaps(int i)
public void setFrequencyCaps(int i,
FrequencyCap _value)
public Boolean getAllowFrequencyCapsCustomization()
productType is
ProductType.DFP.public void setAllowFrequencyCapsCustomization(Boolean allowFrequencyCapsCustomization)
allowFrequencyCapsCustomization - * Allows customization by salespeople of frequency caps when
creating
proposal line items.
This attribute is optional and defaults to false when
productType is
ProductType.DFP.public ProductSegmentation getProductSegmentation()
targeting will
produce the targeting on the resulting ProposalLineItem.
Any type of segmentation cannot also be used for targeting.
This attribute is optional.
Note: if you specify ProducSegmentation#geoSegment,
then
ProductTemplateTargeting.geoTargeting must
be null or empty, vice versa. This also
applies to other targeting and segmentation.public void setProductSegmentation(ProductSegmentation productSegmentation)
productSegmentation - * The product segmentation. The combination from the segments
and the targeting will
produce the targeting on the resulting ProposalLineItem.
Any type of segmentation cannot also be used for targeting.
This attribute is optional.
Note: if you specify ProducSegmentation#geoSegment,
then
ProductTemplateTargeting.geoTargeting must
be null or empty, vice versa. This also
applies to other targeting and segmentation.public ProductTemplateTargeting getTargeting()
ProposalLineItem.
Any type targeted cannot also be used for segmentation.
If this attribute is not specified, then all targeting
is not customizable.
This attribute is optional.
Note: if productType is ProductType.DFP
and productSegmentation is
not specified, this attribute is required.public void setTargeting(ProductTemplateTargeting targeting)
targeting - * Targeting to be included in the created ProposalLineItem.
Any type targeted cannot also be used for segmentation.
If this attribute is not specified, then all targeting
is not customizable.
This attribute is optional.
Note: if productType is ProductType.DFP
and productSegmentation is
not specified, this attribute is required.public BaseCustomFieldValue[] getCustomFieldValues()
ProductTemplate.
This attribute is optional.public void setCustomFieldValues(BaseCustomFieldValue[] customFieldValues)
customFieldValues - * The values of the custom fields associated with this ProductTemplate.
This attribute is optional.public BaseCustomFieldValue getCustomFieldValues(int i)
public void setCustomFieldValues(int i,
BaseCustomFieldValue _value)
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.