public abstract class Creative extends Object
Creative represents the media for the ad being served.
Read more about creatives on the DFP Help Center.
Java class for Creative complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Creative">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="advertiserId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
<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="size" type="{https://www.google.com/apis/ads/publisher/v201802}Size" minOccurs="0"/>
<element name="previewUrl" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="policyViolations" type="{https://www.google.com/apis/ads/publisher/v201802}CreativePolicyViolation" maxOccurs="unbounded" minOccurs="0"/>
<element name="appliedLabels" type="{https://www.google.com/apis/ads/publisher/v201802}AppliedLabel" maxOccurs="unbounded" minOccurs="0"/>
<element name="lastModifiedDateTime" type="{https://www.google.com/apis/ads/publisher/v201802}DateTime" minOccurs="0"/>
<element name="customFieldValues" type="{https://www.google.com/apis/ads/publisher/v201802}BaseCustomFieldValue" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected Long |
advertiserId |
protected List<AppliedLabel> |
appliedLabels |
protected List<BaseCustomFieldValue> |
customFieldValues |
protected Long |
id |
protected DateTime |
lastModifiedDateTime |
protected String |
name |
protected List<CreativePolicyViolation> |
policyViolations |
protected String |
previewUrl |
protected Size |
size |
| Constructor and Description |
|---|
Creative() |
| Modifier and Type | Method and Description |
|---|---|
Long |
getAdvertiserId()
Gets the value of the advertiserId property.
|
List<AppliedLabel> |
getAppliedLabels()
Gets the value of the appliedLabels property.
|
List<BaseCustomFieldValue> |
getCustomFieldValues()
Gets the value of the customFieldValues property.
|
Long |
getId()
Gets the value of the id property.
|
DateTime |
getLastModifiedDateTime()
Gets the value of the lastModifiedDateTime property.
|
String |
getName()
Gets the value of the name property.
|
List<CreativePolicyViolation> |
getPolicyViolations()
Gets the value of the policyViolations property.
|
String |
getPreviewUrl()
Gets the value of the previewUrl property.
|
Size |
getSize()
Gets the value of the size property.
|
void |
setAdvertiserId(Long value)
Sets the value of the advertiserId property.
|
void |
setId(Long value)
Sets the value of the id property.
|
void |
setLastModifiedDateTime(DateTime value)
Sets the value of the lastModifiedDateTime property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setPreviewUrl(String value)
Sets the value of the previewUrl property.
|
void |
setSize(Size value)
Sets the value of the size property.
|
protected Long advertiserId
protected Long id
protected String name
protected Size size
protected String previewUrl
protected List<CreativePolicyViolation> policyViolations
protected List<AppliedLabel> appliedLabels
protected DateTime lastModifiedDateTime
protected List<BaseCustomFieldValue> customFieldValues
public Long getAdvertiserId()
Longpublic void setAdvertiserId(Long value)
value - allowed object is
Longpublic void setId(Long value)
value - allowed object is
Longpublic String getName()
Stringpublic void setName(String value)
value - allowed object is
Stringpublic void setSize(Size value)
value - allowed object is
Sizepublic String getPreviewUrl()
Stringpublic void setPreviewUrl(String value)
value - allowed object is
Stringpublic List<CreativePolicyViolation> getPolicyViolations()
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 policyViolations property.
For example, to add a new item, do as follows:
getPolicyViolations().add(newItem);
Objects of the following type(s) are allowed in the list
CreativePolicyViolation
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 DateTime getLastModifiedDateTime()
DateTimepublic void setLastModifiedDateTime(DateTime value)
value - allowed object is
DateTimepublic 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
Copyright © 2018. All Rights Reserved.