public class CreativeAsset extends Object
CreativeAsset is an asset that can be used in creatives.
Java class for CreativeAsset complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CreativeAsset">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="assetId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
<element name="assetByteArray" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/>
<element name="fileName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="fileSize" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
<element name="assetUrl" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="size" type="{https://www.google.com/apis/ads/publisher/v201805}Size" minOccurs="0"/>
<element name="clickTags" type="{https://www.google.com/apis/ads/publisher/v201805}ClickTag" maxOccurs="unbounded" minOccurs="0"/>
<element name="imageDensity" type="{https://www.google.com/apis/ads/publisher/v201805}ImageDensity" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
assetByteArray |
protected Long |
assetId |
protected String |
assetUrl |
protected List<ClickTag> |
clickTags |
protected String |
fileName |
protected Long |
fileSize |
protected ImageDensity |
imageDensity |
protected Size |
size |
| Constructor and Description |
|---|
CreativeAsset() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getAssetByteArray()
Gets the value of the assetByteArray property.
|
Long |
getAssetId()
Gets the value of the assetId property.
|
String |
getAssetUrl()
Gets the value of the assetUrl property.
|
List<ClickTag> |
getClickTags()
Gets the value of the clickTags property.
|
String |
getFileName()
Gets the value of the fileName property.
|
Long |
getFileSize()
Gets the value of the fileSize property.
|
ImageDensity |
getImageDensity()
Gets the value of the imageDensity property.
|
Size |
getSize()
Gets the value of the size property.
|
void |
setAssetByteArray(byte[] value)
Sets the value of the assetByteArray property.
|
void |
setAssetId(Long value)
Sets the value of the assetId property.
|
void |
setAssetUrl(String value)
Sets the value of the assetUrl property.
|
void |
setFileName(String value)
Sets the value of the fileName property.
|
void |
setFileSize(Long value)
Sets the value of the fileSize property.
|
void |
setImageDensity(ImageDensity value)
Sets the value of the imageDensity property.
|
void |
setSize(Size value)
Sets the value of the size property.
|
protected Long assetId
protected byte[] assetByteArray
protected String fileName
protected Long fileSize
protected String assetUrl
protected Size size
protected ImageDensity imageDensity
public Long getAssetId()
Longpublic void setAssetId(Long value)
value - allowed object is
Longpublic byte[] getAssetByteArray()
public void setAssetByteArray(byte[] value)
value - allowed object is
byte[]public String getFileName()
Stringpublic void setFileName(String value)
value - allowed object is
Stringpublic Long getFileSize()
Longpublic void setFileSize(Long value)
value - allowed object is
Longpublic String getAssetUrl()
Stringpublic void setAssetUrl(String value)
value - allowed object is
Stringpublic void setSize(Size value)
value - allowed object is
Sizepublic List<ClickTag> getClickTags()
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 clickTags property.
For example, to add a new item, do as follows:
getClickTags().add(newItem);
Objects of the following type(s) are allowed in the list
ClickTag
public ImageDensity getImageDensity()
ImageDensitypublic void setImageDensity(ImageDensity value)
value - allowed object is
ImageDensityCopyright © 2018. All Rights Reserved.