public class ProductTemplate extends Object
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.
Java class for ProductTemplate complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="ProductTemplate">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="id" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
<element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="creationDateTime" type="{https://www.google.com/apis/ads/publisher/v201711}DateTime" minOccurs="0"/>
<element name="lastModifiedDateTime" type="{https://www.google.com/apis/ads/publisher/v201711}DateTime" minOccurs="0"/>
<element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="nameMacro" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="status" type="{https://www.google.com/apis/ads/publisher/v201711}ProductTemplateStatus" minOccurs="0"/>
<element name="productType" type="{https://www.google.com/apis/ads/publisher/v201711}ProductType" minOccurs="0"/>
<element name="creatorId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
<element name="rateType" type="{https://www.google.com/apis/ads/publisher/v201711}RateType" minOccurs="0"/>
<element name="roadblockingType" type="{https://www.google.com/apis/ads/publisher/v201711}RoadblockingType" minOccurs="0"/>
<element name="deliveryRateType" type="{https://www.google.com/apis/ads/publisher/v201711}DeliveryRateType" minOccurs="0"/>
<element name="creativeRotationType" type="{https://www.google.com/apis/ads/publisher/v201711}CreativeRotationType" minOccurs="0"/>
<element name="companionDeliveryOption" type="{https://www.google.com/apis/ads/publisher/v201711}CompanionDeliveryOption" minOccurs="0"/>
<element name="creativePlaceholders" type="{https://www.google.com/apis/ads/publisher/v201711}CreativePlaceholder" maxOccurs="unbounded" minOccurs="0"/>
<element name="lineItemType" type="{https://www.google.com/apis/ads/publisher/v201711}LineItemType" minOccurs="0"/>
<element name="priority" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
<element name="frequencyCaps" type="{https://www.google.com/apis/ads/publisher/v201711}FrequencyCap" maxOccurs="unbounded" minOccurs="0"/>
<element name="productSegmentation" type="{https://www.google.com/apis/ads/publisher/v201711}ProductSegmentation" minOccurs="0"/>
<element name="builtInTargeting" type="{https://www.google.com/apis/ads/publisher/v201711}Targeting" minOccurs="0"/>
<element name="customizableAttributes" type="{https://www.google.com/apis/ads/publisher/v201711}CustomizableAttributes" minOccurs="0"/>
<element name="customFieldValues" type="{https://www.google.com/apis/ads/publisher/v201711}BaseCustomFieldValue" maxOccurs="unbounded" minOccurs="0"/>
<element name="environmentType" type="{https://www.google.com/apis/ads/publisher/v201711}EnvironmentType" minOccurs="0"/>
<element name="videoMaxDuration" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
<element name="productTemplateMarketplaceInfo" type="{https://www.google.com/apis/ads/publisher/v201711}ProductTemplateMarketplaceInfo" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Constructor and Description |
|---|
ProductTemplate() |
| Modifier and Type | Method and Description |
|---|---|
Targeting |
getBuiltInTargeting()
Gets the value of the builtInTargeting property.
|
CompanionDeliveryOption |
getCompanionDeliveryOption()
Gets the value of the companionDeliveryOption property.
|
DateTime |
getCreationDateTime()
Gets the value of the creationDateTime property.
|
List<CreativePlaceholder> |
getCreativePlaceholders()
Gets the value of the creativePlaceholders property.
|
CreativeRotationType |
getCreativeRotationType()
Gets the value of the creativeRotationType property.
|
Long |
getCreatorId()
Gets the value of the creatorId property.
|
List<BaseCustomFieldValue> |
getCustomFieldValues()
Gets the value of the customFieldValues property.
|
CustomizableAttributes |
getCustomizableAttributes()
Gets the value of the customizableAttributes property.
|
DeliveryRateType |
getDeliveryRateType()
Gets the value of the deliveryRateType property.
|
String |
getDescription()
Gets the value of the description property.
|
EnvironmentType |
getEnvironmentType()
Gets the value of the environmentType property.
|
List<FrequencyCap> |
getFrequencyCaps()
Gets the value of the frequencyCaps property.
|
Long |
getId()
Gets the value of the id property.
|
DateTime |
getLastModifiedDateTime()
Gets the value of the lastModifiedDateTime property.
|
LineItemType |
getLineItemType()
Gets the value of the lineItemType property.
|
String |
getName()
Gets the value of the name property.
|
String |
getNameMacro()
Gets the value of the nameMacro property.
|
Integer |
getPriority()
Gets the value of the priority property.
|
ProductSegmentation |
getProductSegmentation()
Gets the value of the productSegmentation property.
|
ProductTemplateMarketplaceInfo |
getProductTemplateMarketplaceInfo()
Gets the value of the productTemplateMarketplaceInfo property.
|
ProductType |
getProductType()
Gets the value of the productType property.
|
RateType |
getRateType()
Gets the value of the rateType property.
|
RoadblockingType |
getRoadblockingType()
Gets the value of the roadblockingType property.
|
ProductTemplateStatus |
getStatus()
Gets the value of the status property.
|
Long |
getVideoMaxDuration()
Gets the value of the videoMaxDuration property.
|
void |
setBuiltInTargeting(Targeting value)
Sets the value of the builtInTargeting property.
|
void |
setCompanionDeliveryOption(CompanionDeliveryOption value)
Sets the value of the companionDeliveryOption property.
|
void |
setCreationDateTime(DateTime value)
Sets the value of the creationDateTime property.
|
void |
setCreativeRotationType(CreativeRotationType value)
Sets the value of the creativeRotationType property.
|
void |
setCreatorId(Long value)
Sets the value of the creatorId property.
|
void |
setCustomizableAttributes(CustomizableAttributes value)
Sets the value of the customizableAttributes property.
|
void |
setDeliveryRateType(DeliveryRateType value)
Sets the value of the deliveryRateType property.
|
void |
setDescription(String value)
Sets the value of the description property.
|
void |
setEnvironmentType(EnvironmentType value)
Sets the value of the environmentType property.
|
void |
setId(Long value)
Sets the value of the id property.
|
void |
setLastModifiedDateTime(DateTime value)
Sets the value of the lastModifiedDateTime property.
|
void |
setLineItemType(LineItemType value)
Sets the value of the lineItemType property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setNameMacro(String value)
Sets the value of the nameMacro property.
|
void |
setPriority(Integer value)
Sets the value of the priority property.
|
void |
setProductSegmentation(ProductSegmentation value)
Sets the value of the productSegmentation property.
|
void |
setProductTemplateMarketplaceInfo(ProductTemplateMarketplaceInfo value)
Sets the value of the productTemplateMarketplaceInfo property.
|
void |
setProductType(ProductType value)
Sets the value of the productType property.
|
void |
setRateType(RateType value)
Sets the value of the rateType property.
|
void |
setRoadblockingType(RoadblockingType value)
Sets the value of the roadblockingType property.
|
void |
setStatus(ProductTemplateStatus value)
Sets the value of the status property.
|
void |
setVideoMaxDuration(Long value)
Sets the value of the videoMaxDuration property.
|
protected Long id
protected String name
protected DateTime creationDateTime
protected DateTime lastModifiedDateTime
protected String description
protected String nameMacro
protected ProductTemplateStatus status
protected ProductType productType
protected Long creatorId
protected RateType rateType
protected RoadblockingType roadblockingType
protected DeliveryRateType deliveryRateType
protected CreativeRotationType creativeRotationType
protected CompanionDeliveryOption companionDeliveryOption
protected List<CreativePlaceholder> creativePlaceholders
protected LineItemType lineItemType
protected Integer priority
protected List<FrequencyCap> frequencyCaps
protected ProductSegmentation productSegmentation
protected Targeting builtInTargeting
protected CustomizableAttributes customizableAttributes
protected List<BaseCustomFieldValue> customFieldValues
protected EnvironmentType environmentType
protected Long videoMaxDuration
protected ProductTemplateMarketplaceInfo productTemplateMarketplaceInfo
public void setId(Long value)
value - allowed object is
Longpublic String getName()
Stringpublic void setName(String value)
value - allowed object is
Stringpublic DateTime getCreationDateTime()
DateTimepublic void setCreationDateTime(DateTime value)
value - allowed object is
DateTimepublic DateTime getLastModifiedDateTime()
DateTimepublic void setLastModifiedDateTime(DateTime value)
value - allowed object is
DateTimepublic String getDescription()
Stringpublic void setDescription(String value)
value - allowed object is
Stringpublic String getNameMacro()
Stringpublic void setNameMacro(String value)
value - allowed object is
Stringpublic ProductTemplateStatus getStatus()
ProductTemplateStatuspublic void setStatus(ProductTemplateStatus value)
value - allowed object is
ProductTemplateStatuspublic ProductType getProductType()
ProductTypepublic void setProductType(ProductType value)
value - allowed object is
ProductTypepublic Long getCreatorId()
Longpublic void setCreatorId(Long value)
value - allowed object is
Longpublic RateType getRateType()
RateTypepublic void setRateType(RateType value)
value - allowed object is
RateTypepublic RoadblockingType getRoadblockingType()
RoadblockingTypepublic void setRoadblockingType(RoadblockingType value)
value - allowed object is
RoadblockingTypepublic DeliveryRateType getDeliveryRateType()
DeliveryRateTypepublic void setDeliveryRateType(DeliveryRateType value)
value - allowed object is
DeliveryRateTypepublic CreativeRotationType getCreativeRotationType()
CreativeRotationTypepublic void setCreativeRotationType(CreativeRotationType value)
value - allowed object is
CreativeRotationTypepublic CompanionDeliveryOption getCompanionDeliveryOption()
CompanionDeliveryOptionpublic void setCompanionDeliveryOption(CompanionDeliveryOption value)
value - allowed object is
CompanionDeliveryOptionpublic List<CreativePlaceholder> getCreativePlaceholders()
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 creativePlaceholders property.
For example, to add a new item, do as follows:
getCreativePlaceholders().add(newItem);
Objects of the following type(s) are allowed in the list
CreativePlaceholder
public LineItemType getLineItemType()
LineItemTypepublic void setLineItemType(LineItemType value)
value - allowed object is
LineItemTypepublic Integer getPriority()
Integerpublic void setPriority(Integer value)
value - allowed object is
Integerpublic List<FrequencyCap> getFrequencyCaps()
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 frequencyCaps property.
For example, to add a new item, do as follows:
getFrequencyCaps().add(newItem);
Objects of the following type(s) are allowed in the list
FrequencyCap
public ProductSegmentation getProductSegmentation()
ProductSegmentationpublic void setProductSegmentation(ProductSegmentation value)
value - allowed object is
ProductSegmentationpublic Targeting getBuiltInTargeting()
Targetingpublic void setBuiltInTargeting(Targeting value)
value - allowed object is
Targetingpublic CustomizableAttributes getCustomizableAttributes()
CustomizableAttributespublic void setCustomizableAttributes(CustomizableAttributes value)
value - allowed object is
CustomizableAttributespublic List<BaseCustomFieldValue> getCustomFieldValues()
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 customFieldValues property.
For example, to add a new item, do as follows:
getCustomFieldValues().add(newItem);
Objects of the following type(s) are allowed in the list
BaseCustomFieldValue
public EnvironmentType getEnvironmentType()
EnvironmentTypepublic void setEnvironmentType(EnvironmentType value)
value - allowed object is
EnvironmentTypepublic Long getVideoMaxDuration()
Longpublic void setVideoMaxDuration(Long value)
value - allowed object is
Longpublic ProductTemplateMarketplaceInfo getProductTemplateMarketplaceInfo()
ProductTemplateMarketplaceInfopublic void setProductTemplateMarketplaceInfo(ProductTemplateMarketplaceInfo value)
value - allowed object is
ProductTemplateMarketplaceInfoCopyright © 2018. All Rights Reserved.