public class AspectRatioImageCreative extends HasDestinationUrlCreative
Creative intended for mobile platforms that displays an image,
whose size is defined as an
aspect ratio, i.e.
Size.isAspectRatio. It can have multiple images whose dimensions
conform to that aspect ratio.
Java class for AspectRatioImageCreative complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="AspectRatioImageCreative">
<complexContent>
<extension base="{https://www.google.com/apis/ads/publisher/v201805}HasDestinationUrlCreative">
<sequence>
<element name="imageAssets" type="{https://www.google.com/apis/ads/publisher/v201805}CreativeAsset" maxOccurs="unbounded" minOccurs="0"/>
<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="overrideSize" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
altText |
protected List<CreativeAsset> |
imageAssets |
protected Boolean |
overrideSize |
protected String |
thirdPartyImpressionUrl |
destinationUrl, destinationUrlTypeadvertiserId, appliedLabels, customFieldValues, id, lastModifiedDateTime, name, policyViolations, previewUrl, size| Constructor and Description |
|---|
AspectRatioImageCreative() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAltText()
Gets the value of the altText property.
|
List<CreativeAsset> |
getImageAssets()
Gets the value of the imageAssets property.
|
String |
getThirdPartyImpressionUrl()
Gets the value of the thirdPartyImpressionUrl property.
|
Boolean |
isOverrideSize()
Gets the value of the overrideSize property.
|
void |
setAltText(String value)
Sets the value of the altText property.
|
void |
setOverrideSize(Boolean value)
Sets the value of the overrideSize property.
|
void |
setThirdPartyImpressionUrl(String value)
Sets the value of the thirdPartyImpressionUrl property.
|
getDestinationUrl, getDestinationUrlType, setDestinationUrl, setDestinationUrlTypegetAdvertiserId, getAppliedLabels, getCustomFieldValues, getId, getLastModifiedDateTime, getName, getPolicyViolations, getPreviewUrl, getSize, setAdvertiserId, setId, setLastModifiedDateTime, setName, setPreviewUrl, setSizeprotected List<CreativeAsset> imageAssets
protected String altText
protected String thirdPartyImpressionUrl
protected Boolean overrideSize
public List<CreativeAsset> getImageAssets()
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 imageAssets property.
For example, to add a new item, do as follows:
getImageAssets().add(newItem);
Objects of the following type(s) are allowed in the list
CreativeAsset
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 Boolean isOverrideSize()
BooleanCopyright © 2018. All Rights Reserved.