public class CreativeAsset extends Object implements Serializable
CreativeAsset is an asset that can be used in creatives.| Constructor and Description |
|---|
CreativeAsset() |
CreativeAsset(Long assetId,
byte[] assetByteArray,
String fileName,
Long fileSize,
String assetUrl,
Size size,
ClickTag[] clickTags,
ImageDensity imageDensity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
byte[] |
getAssetByteArray()
Gets the assetByteArray value for this CreativeAsset.
|
Long |
getAssetId()
Gets the assetId value for this CreativeAsset.
|
String |
getAssetUrl()
Gets the assetUrl value for this CreativeAsset.
|
ClickTag[] |
getClickTags()
Gets the clickTags value for this CreativeAsset.
|
ClickTag |
getClickTags(int i) |
static org.apache.axis.encoding.Deserializer |
getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Deserializer
|
String |
getFileName()
Gets the fileName value for this CreativeAsset.
|
Long |
getFileSize()
Gets the fileSize value for this CreativeAsset.
|
ImageDensity |
getImageDensity()
Gets the imageDensity value for this CreativeAsset.
|
static org.apache.axis.encoding.Serializer |
getSerializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Serializer
|
Size |
getSize()
Gets the size value for this CreativeAsset.
|
static org.apache.axis.description.TypeDesc |
getTypeDesc()
Return type metadata object
|
int |
hashCode() |
void |
setAssetByteArray(byte[] assetByteArray)
Sets the assetByteArray value for this CreativeAsset.
|
void |
setAssetId(Long assetId)
Sets the assetId value for this CreativeAsset.
|
void |
setAssetUrl(String assetUrl)
Sets the assetUrl value for this CreativeAsset.
|
void |
setClickTags(ClickTag[] clickTags)
Sets the clickTags value for this CreativeAsset.
|
void |
setClickTags(int i,
ClickTag _value) |
void |
setFileName(String fileName)
Sets the fileName value for this CreativeAsset.
|
void |
setFileSize(Long fileSize)
Sets the fileSize value for this CreativeAsset.
|
void |
setImageDensity(ImageDensity imageDensity)
Sets the imageDensity value for this CreativeAsset.
|
void |
setSize(Size size)
Sets the size value for this CreativeAsset.
|
String |
toString() |
public Long getAssetId()
public void setAssetId(Long assetId)
assetId - * The ID of the asset. This attribute is generated by Google
upon creation.public byte[] getAssetByteArray()
assetId is not provided.
When updating the content, pass a new byte array,
and set assetId to null.
Otherwise, this field can be null.
The assetByteArray will be null when
the creative is
retrieved.public void setAssetByteArray(byte[] assetByteArray)
assetByteArray - * The content of the asset as a byte array. This attribute is
required when
creating the creative that contains this asset if
an assetId is not provided.
When updating the content, pass a new byte array,
and set assetId to null.
Otherwise, this field can be null.
The assetByteArray will be null when
the creative is
retrieved.public String getFileName()
assetByteArray is not null).public void setFileName(String fileName)
fileName - * The file name of the asset. This attribute is required when
creating a new asset (e.g. when assetByteArray is not null).public Long getFileSize()
public void setFileSize(Long fileSize)
fileSize - * The file size of the asset in bytes. This attribute is read-only.public String getAssetUrl()
public void setAssetUrl(String assetUrl)
assetUrl - * A URL where the asset can be previewed at. This field is read-only
and
set by Google.public Size getSize()
public void setSize(Size size)
size - * The size of the asset. Note that this may not always reflect
the actual physical
size of the asset, but may reflect the expected size.
This attribute is read-only and is
populated by Google.public ClickTag[] getClickTags()
public void setClickTags(ClickTag[] clickTags)
clickTags - * The click tags of the asset. This field is read-only.public ClickTag getClickTags(int i)
public void setClickTags(int i,
ClickTag _value)
public ImageDensity getImageDensity()
public void setImageDensity(ImageDensity imageDensity)
imageDensity - * The display density of the image. This is the ratio between
a dimension in pixels
of the image and the dimension in pixels that it should
occupy in device-independent pixels
when displayed. This attribute is optional and defaults
to ONE_TO_ONE.public static org.apache.axis.description.TypeDesc getTypeDesc()
public static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
Copyright © 2020. All rights reserved.