com.google.api.ads.dfp.axis.v201111
Class CustomCreativeAsset

java.lang.Object
  extended by com.google.api.ads.dfp.axis.v201111.CustomCreativeAsset
All Implemented Interfaces:
Serializable

public class CustomCreativeAsset
extends Object
implements Serializable

A CustomCreativeAsset is an association between a CustomCreative and an asset. Any assets that are associated with a creative can be inserted into its HTML snippet.

See Also:
Serialized Form

Constructor Summary
CustomCreativeAsset()
           
CustomCreativeAsset(String macroName, Long assetId, byte[] assetByteArray, String fileName, Long fileSize)
           
 
Method Summary
 boolean equals(Object obj)
           
 byte[] getAssetByteArray()
          Gets the assetByteArray value for this CustomCreativeAsset.
 Long getAssetId()
          Gets the assetId value for this CustomCreativeAsset.
static org.apache.axis.encoding.Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Deserializer
 String getFileName()
          Gets the fileName value for this CustomCreativeAsset.
 Long getFileSize()
          Gets the fileSize value for this CustomCreativeAsset.
 String getMacroName()
          Gets the macroName value for this CustomCreativeAsset.
static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Serializer
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return type metadata object
 int hashCode()
           
 void setAssetByteArray(byte[] assetByteArray)
          Sets the assetByteArray value for this CustomCreativeAsset.
 void setAssetId(Long assetId)
          Sets the assetId value for this CustomCreativeAsset.
 void setFileName(String fileName)
          Sets the fileName value for this CustomCreativeAsset.
 void setFileSize(Long fileSize)
          Sets the fileSize value for this CustomCreativeAsset.
 void setMacroName(String macroName)
          Sets the macroName value for this CustomCreativeAsset.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomCreativeAsset

public CustomCreativeAsset()

CustomCreativeAsset

public CustomCreativeAsset(String macroName,
                           Long assetId,
                           byte[] assetByteArray,
                           String fileName,
                           Long fileSize)
Method Detail

getMacroName

public String getMacroName()
Gets the macroName value for this CustomCreativeAsset.

Returns:
macroName * The name by which the associated asset will be referenced. For example, if the value is "foo", then the asset can be inserted into an HTML snippet using the macro: "%%FILE:foo%%".

setMacroName

public void setMacroName(String macroName)
Sets the macroName value for this CustomCreativeAsset.

Parameters:
macroName - * The name by which the associated asset will be referenced. For example, if the value is "foo", then the asset can be inserted into an HTML snippet using the macro: "%%FILE:foo%%".

getAssetId

public Long getAssetId()
Gets the assetId value for this CustomCreativeAsset.

Returns:
assetId * The ID of the associated asset. This attribute is read-only and is populated by Google.

setAssetId

public void setAssetId(Long assetId)
Sets the assetId value for this CustomCreativeAsset.

Parameters:
assetId - * The ID of the associated asset. This attribute is read-only and is populated by Google.

getAssetByteArray

public byte[] getAssetByteArray()
Gets the assetByteArray value for this CustomCreativeAsset.

Returns:
assetByteArray * The content of the asset as a byte array. This attribute is required when creating a new CustomCreativeAsset.

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 CustomCreativeAsset is retrieved.


setAssetByteArray

public void setAssetByteArray(byte[] assetByteArray)
Sets the assetByteArray value for this CustomCreativeAsset.

Parameters:
assetByteArray - * The content of the asset as a byte array. This attribute is required when creating a new CustomCreativeAsset.

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 CustomCreativeAsset is retrieved.


getFileName

public String getFileName()
Gets the fileName value for this CustomCreativeAsset.

Returns:
fileName * The file name of the asset. This attribute is required when creating a new asset (e.g. when assetByteArray is not null).

setFileName

public void setFileName(String fileName)
Sets the fileName value for this CustomCreativeAsset.

Parameters:
fileName - * The file name of the asset. This attribute is required when creating a new asset (e.g. when assetByteArray is not null).

getFileSize

public Long getFileSize()
Gets the fileSize value for this CustomCreativeAsset.

Returns:
fileSize * The file size of the asset, in bytes. This attribute is read-only.

setFileSize

public void setFileSize(Long fileSize)
Sets the fileSize value for this CustomCreativeAsset.

Parameters:
fileSize - * The file size of the asset, in bytes. This attribute is read-only.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getTypeDesc

public static org.apache.axis.description.TypeDesc getTypeDesc()
Return type metadata object


getSerializer

public static org.apache.axis.encoding.Serializer getSerializer(String mechType,
                                                                Class _javaType,
                                                                QName _xmlType)
Get Custom Serializer


getDeserializer

public static org.apache.axis.encoding.Deserializer getDeserializer(String mechType,
                                                                    Class _javaType,
                                                                    QName _xmlType)
Get Custom Deserializer



Copyright © 2012. All Rights Reserved.