public class ImageCreative extends BaseImageCreative
Creative that displays an image.
Java class for ImageCreative complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="ImageCreative">
<complexContent>
<extension base="{https://www.google.com/apis/ads/publisher/v201708}BaseImageCreative">
<sequence>
<element name="altText" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="thirdPartyImpressionUrl" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="secondaryImageAssets" type="{https://www.google.com/apis/ads/publisher/v201708}CreativeAsset" maxOccurs="unbounded" minOccurs="0"/>
<element name="lockedOrientation" type="{https://www.google.com/apis/ads/publisher/v201708}LockedOrientation" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
altText |
protected LockedOrientation |
lockedOrientation |
protected List<CreativeAsset> |
secondaryImageAssets |
protected String |
thirdPartyImpressionUrl |
overrideSize, primaryImageAssetdestinationUrl, destinationUrlTypeadvertiserId, appliedLabels, customFieldValues, id, lastModifiedDateTime, name, policyViolations, previewUrl, size| Constructor and Description |
|---|
ImageCreative() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAltText()
Gets the value of the altText property.
|
LockedOrientation |
getLockedOrientation()
Gets the value of the lockedOrientation property.
|
List<CreativeAsset> |
getSecondaryImageAssets()
Gets the value of the secondaryImageAssets property.
|
String |
getThirdPartyImpressionUrl()
Gets the value of the thirdPartyImpressionUrl property.
|
void |
setAltText(String value)
Sets the value of the altText property.
|
void |
setLockedOrientation(LockedOrientation value)
Sets the value of the lockedOrientation property.
|
void |
setThirdPartyImpressionUrl(String value)
Sets the value of the thirdPartyImpressionUrl property.
|
getPrimaryImageAsset, isOverrideSize, setOverrideSize, setPrimaryImageAssetgetDestinationUrl, getDestinationUrlType, setDestinationUrl, setDestinationUrlTypegetAdvertiserId, getAppliedLabels, getCustomFieldValues, getId, getLastModifiedDateTime, getName, getPolicyViolations, getPreviewUrl, getSize, setAdvertiserId, setId, setLastModifiedDateTime, setName, setPreviewUrl, setSizeprotected String altText
protected String thirdPartyImpressionUrl
protected List<CreativeAsset> secondaryImageAssets
protected LockedOrientation lockedOrientation
public String getAltText()
Stringpublic void setAltText(String value)
value - allowed object is
Stringpublic String getThirdPartyImpressionUrl()
Stringpublic void setThirdPartyImpressionUrl(String value)
value - allowed object is
Stringpublic List<CreativeAsset> getSecondaryImageAssets()
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 secondaryImageAssets property.
For example, to add a new item, do as follows:
getSecondaryImageAssets().add(newItem);
Objects of the following type(s) are allowed in the list
CreativeAsset
public LockedOrientation getLockedOrientation()
LockedOrientationpublic void setLockedOrientation(LockedOrientation value)
value - allowed object is
LockedOrientationCopyright © 2018. All Rights Reserved.