public class Product extends Object implements Serializable
Proposal line items are created from products,
from which their properties are copied.| Constructor and Description |
|---|
Product() |
Product(String name,
ProductStatus status,
ProductType productType,
Long productTemplateId,
String id,
String notes,
String productTemplateDescription,
DateTime lastModifiedDateTime,
RateType rateType,
RoadblockingType roadblockingType,
CreativePlaceholder[] creativePlaceholders,
LineItemType lineItemType,
Integer priority,
FrequencyCap[] frequencyCaps,
Boolean allowFrequencyCapsCustomization,
ProductTemplateTargeting targeting,
BaseCustomFieldValue[] customFieldValues) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Boolean |
getAllowFrequencyCapsCustomization()
Gets the allowFrequencyCapsCustomization value for this Product.
|
CreativePlaceholder[] |
getCreativePlaceholders()
Gets the creativePlaceholders value for this Product.
|
CreativePlaceholder |
getCreativePlaceholders(int i) |
BaseCustomFieldValue[] |
getCustomFieldValues()
Gets the customFieldValues value for this Product.
|
BaseCustomFieldValue |
getCustomFieldValues(int i) |
static org.apache.axis.encoding.Deserializer |
getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Deserializer
|
FrequencyCap[] |
getFrequencyCaps()
Gets the frequencyCaps value for this Product.
|
FrequencyCap |
getFrequencyCaps(int i) |
String |
getId()
Gets the id value for this Product.
|
DateTime |
getLastModifiedDateTime()
Gets the lastModifiedDateTime value for this Product.
|
LineItemType |
getLineItemType()
Gets the lineItemType value for this Product.
|
String |
getName()
Gets the name value for this Product.
|
String |
getNotes()
Gets the notes value for this Product.
|
Integer |
getPriority()
Gets the priority value for this Product.
|
String |
getProductTemplateDescription()
Gets the productTemplateDescription value for this Product.
|
Long |
getProductTemplateId()
Gets the productTemplateId value for this Product.
|
ProductType |
getProductType()
Gets the productType value for this Product.
|
RateType |
getRateType()
Gets the rateType value for this Product.
|
RoadblockingType |
getRoadblockingType()
Gets the roadblockingType value for this Product.
|
static org.apache.axis.encoding.Serializer |
getSerializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Serializer
|
ProductStatus |
getStatus()
Gets the status value for this Product.
|
ProductTemplateTargeting |
getTargeting()
Gets the targeting value for this Product.
|
static org.apache.axis.description.TypeDesc |
getTypeDesc()
Return type metadata object
|
int |
hashCode() |
void |
setAllowFrequencyCapsCustomization(Boolean allowFrequencyCapsCustomization)
Sets the allowFrequencyCapsCustomization value for this Product.
|
void |
setCreativePlaceholders(CreativePlaceholder[] creativePlaceholders)
Sets the creativePlaceholders value for this Product.
|
void |
setCreativePlaceholders(int i,
CreativePlaceholder _value) |
void |
setCustomFieldValues(BaseCustomFieldValue[] customFieldValues)
Sets the customFieldValues value for this Product.
|
void |
setCustomFieldValues(int i,
BaseCustomFieldValue _value) |
void |
setFrequencyCaps(FrequencyCap[] frequencyCaps)
Sets the frequencyCaps value for this Product.
|
void |
setFrequencyCaps(int i,
FrequencyCap _value) |
void |
setId(String id)
Sets the id value for this Product.
|
void |
setLastModifiedDateTime(DateTime lastModifiedDateTime)
Sets the lastModifiedDateTime value for this Product.
|
void |
setLineItemType(LineItemType lineItemType)
Sets the lineItemType value for this Product.
|
void |
setName(String name)
Sets the name value for this Product.
|
void |
setNotes(String notes)
Sets the notes value for this Product.
|
void |
setPriority(Integer priority)
Sets the priority value for this Product.
|
void |
setProductTemplateDescription(String productTemplateDescription)
Sets the productTemplateDescription value for this Product.
|
void |
setProductTemplateId(Long productTemplateId)
Sets the productTemplateId value for this Product.
|
void |
setProductType(ProductType productType)
Sets the productType value for this Product.
|
void |
setRateType(RateType rateType)
Sets the rateType value for this Product.
|
void |
setRoadblockingType(RoadblockingType roadblockingType)
Sets the roadblockingType value for this Product.
|
void |
setStatus(ProductStatus status)
Sets the status value for this Product.
|
void |
setTargeting(ProductTemplateTargeting targeting)
Sets the targeting value for this Product.
|
public Product()
public Product(String name, ProductStatus status, ProductType productType, Long productTemplateId, String id, String notes, String productTemplateDescription, DateTime lastModifiedDateTime, RateType rateType, RoadblockingType roadblockingType, CreativePlaceholder[] creativePlaceholders, LineItemType lineItemType, Integer priority, FrequencyCap[] frequencyCaps, Boolean allowFrequencyCapsCustomization, ProductTemplateTargeting targeting, BaseCustomFieldValue[] customFieldValues)
public String getName()
Product. This attribute is populated
by Google, but can be updated.
It has maximum length of 255 characters if overridden
via update.
This attribute is required.public void setName(String name)
name - * The name of the Product. This attribute is populated
by Google, but can be updated.
It has maximum length of 255 characters if overridden
via update.
This attribute is required.public ProductStatus getStatus()
Product.
This attribute is read-only.public void setStatus(ProductStatus status)
status - * The status of the Product.
This attribute is read-only.public ProductType getProductType()
Product.
The attribute is read-only.public void setProductType(ProductType productType)
productType - * The type of Product.
The attribute is read-only.public Long getProductTemplateId()
ProductTemplate from which this product
is generated.
This attribute is read-only and is assigned by Google
when a product is created.public void setProductTemplateId(Long productTemplateId)
productTemplateId - * The ID of the ProductTemplate from which this product
is generated.
This attribute is read-only and is assigned by Google
when a product is created.public String getId()
Product.
This attribute is read-only, with a maximum length
of 1023 characters,
and is assigned by Google when a product is created.public void setId(String id)
id - * Uniquely identifies the Product.
This attribute is read-only, with a maximum length
of 1023 characters,
and is assigned by Google when a product is created.public String getNotes()
public void setNotes(String notes)
notes - * The notes of this product.
This attribute is optional, with a maximum length
of 511 characters.public String getProductTemplateDescription()
ProductTemplate from which this
product is generated.
This attribute is read-only and is assigned by Google
when a product is created.public void setProductTemplateDescription(String productTemplateDescription)
productTemplateDescription - * The description of the ProductTemplate from which this
product is generated.
This attribute is read-only and is assigned by Google
when a product is created.public DateTime getLastModifiedDateTime()
public void setLastModifiedDateTime(DateTime lastModifiedDateTime)
lastModifiedDateTime - * The date and time this product was last modified.
This attribute is read-only and is assigned by Google
when a product is updated.public RateType getRateType()
ProposalLineItem.
This attribute is read-only.public void setRateType(RateType rateType)
rateType - * The method used for billing the created ProposalLineItem.
This attribute is read-only.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 read-only.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 read-only.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 read-only.
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 read-only.
public CreativePlaceholder getCreativePlaceholders(int i)
public void setCreativePlaceholders(int i,
CreativePlaceholder _value)
public LineItemType getLineItemType()
ProposalLineItem.
This attribute is read-only.public void setLineItemType(LineItemType lineItemType)
lineItemType - * Indicates the line item type for the created ProposalLineItem.
This attribute is read-only.public Integer getPriority()
ProposalLineItem. The
priority is a value
between 1 and 16.
This attribute is read-only.public void setPriority(Integer priority)
priority - * The priority for the created ProposalLineItem. The
priority is a value
between 1 and 16.
This attribute is read-only.public FrequencyCap[] getFrequencyCaps()
ProposalLineItem.
Each frequency cap in the list must have unique TimeUnit.
This attribute is read-only.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 read-only.public FrequencyCap getFrequencyCaps(int i)
public void setFrequencyCaps(int i,
FrequencyCap _value)
public Boolean getAllowFrequencyCapsCustomization()
public void setAllowFrequencyCapsCustomization(Boolean allowFrequencyCapsCustomization)
allowFrequencyCapsCustomization - * Allows customization by salespeople of frequency caps when
creating
proposal line items.
This attribute is required.public ProductTemplateTargeting getTargeting()
ProposalLineItem. It's
combination of
ProductTemplate#productTemplateSegment and
ProductTemplate#productTemplateTargeting. See detail in ProductTemplate.
This attribute is read-only.public void setTargeting(ProductTemplateTargeting targeting)
targeting - * The targeting for the created ProposalLineItem. It's
combination of
ProductTemplate#productTemplateSegment and
ProductTemplate#productTemplateTargeting. See detail in ProductTemplate.
This attribute is read-only.public BaseCustomFieldValue[] getCustomFieldValues()
Product.
This attribute is optional.public void setCustomFieldValues(BaseCustomFieldValue[] customFieldValues)
customFieldValues - * The values of the custom fields associated with this Product.
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.