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

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

public class AssetCreativeTemplateVariableValue
extends BaseCreativeTemplateVariableValue
implements Serializable

Stores values of CreativeTemplateVariable of VariableType#ASSET.

See Also:
Serialized Form

Constructor Summary
AssetCreativeTemplateVariableValue()
           
AssetCreativeTemplateVariableValue(String uniqueName, String baseCreativeTemplateVariableValueType, Long assetId, byte[] assetByteArray, String fileName)
           
 
Method Summary
 boolean equals(Object obj)
           
 byte[] getAssetByteArray()
          Gets the assetByteArray value for this AssetCreativeTemplateVariableValue.
 Long getAssetId()
          Gets the assetId value for this AssetCreativeTemplateVariableValue.
static org.apache.axis.encoding.Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Deserializer
 String getFileName()
          Gets the fileName value for this AssetCreativeTemplateVariableValue.
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 AssetCreativeTemplateVariableValue.
 void setAssetId(Long assetId)
          Sets the assetId value for this AssetCreativeTemplateVariableValue.
 void setFileName(String fileName)
          Sets the fileName value for this AssetCreativeTemplateVariableValue.
 
Methods inherited from class com.google.api.ads.dfp.axis.v201111.BaseCreativeTemplateVariableValue
getBaseCreativeTemplateVariableValueType, getUniqueName, setBaseCreativeTemplateVariableValueType, setUniqueName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetCreativeTemplateVariableValue

public AssetCreativeTemplateVariableValue()

AssetCreativeTemplateVariableValue

public AssetCreativeTemplateVariableValue(String uniqueName,
                                          String baseCreativeTemplateVariableValueType,
                                          Long assetId,
                                          byte[] assetByteArray,
                                          String fileName)
Method Detail

getAssetId

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

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 AssetCreativeTemplateVariableValue.

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 AssetCreativeTemplateVariableValue.

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

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


setAssetByteArray

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

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

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


getFileName

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

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 AssetCreativeTemplateVariableValue.

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

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class BaseCreativeTemplateVariableValue

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.