com.google.api.ads.dfp.v201111
Class Creative

java.lang.Object
  extended by com.google.api.ads.dfp.v201111.Creative
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ClickTrackingCreative, HasDestinationUrlCreative, InternalRedirectCreative, TemplateCreative, ThirdPartyCreative

public abstract class Creative
extends Object
implements Serializable

A Creative represents the media for the ad being served.

See Also:
Serialized Form

Constructor Summary
Creative()
           
Creative(Long advertiserId, Long id, String name, Size size, String previewUrl, AppliedLabel[] appliedLabels, String creativeType)
           
 
Method Summary
 boolean equals(Object obj)
           
 Long getAdvertiserId()
          Gets the advertiserId value for this Creative.
 AppliedLabel[] getAppliedLabels()
          Gets the appliedLabels value for this Creative.
 AppliedLabel getAppliedLabels(int i)
           
 String getCreativeType()
          Gets the creativeType value for this Creative.
static org.apache.axis.encoding.Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Deserializer
 Long getId()
          Gets the id value for this Creative.
 String getName()
          Gets the name value for this Creative.
 String getPreviewUrl()
          Gets the previewUrl value for this Creative.
static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Serializer
 Size getSize()
          Gets the size value for this Creative.
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return type metadata object
 int hashCode()
           
 void setAdvertiserId(Long advertiserId)
          Sets the advertiserId value for this Creative.
 void setAppliedLabels(AppliedLabel[] appliedLabels)
          Sets the appliedLabels value for this Creative.
 void setAppliedLabels(int i, AppliedLabel _value)
           
 void setCreativeType(String creativeType)
          Sets the creativeType value for this Creative.
 void setId(Long id)
          Sets the id value for this Creative.
 void setName(String name)
          Sets the name value for this Creative.
 void setPreviewUrl(String previewUrl)
          Sets the previewUrl value for this Creative.
 void setSize(Size size)
          Sets the size value for this Creative.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Creative

public Creative()

Creative

public Creative(Long advertiserId,
                Long id,
                String name,
                Size size,
                String previewUrl,
                AppliedLabel[] appliedLabels,
                String creativeType)
Method Detail

getAdvertiserId

public Long getAdvertiserId()
Gets the advertiserId value for this Creative.

Returns:
advertiserId * The ID of the advertiser that owns the creative. This attribute is required.

setAdvertiserId

public void setAdvertiserId(Long advertiserId)
Sets the advertiserId value for this Creative.

Parameters:
advertiserId - * The ID of the advertiser that owns the creative. This attribute is required.

getId

public Long getId()
Gets the id value for this Creative.

Returns:
id * Uniquely identifies the Creative. This value is read-only and is assigned by Google when the creative is created. This attribute is required for updates.

setId

public void setId(Long id)
Sets the id value for this Creative.

Parameters:
id - * Uniquely identifies the Creative. This value is read-only and is assigned by Google when the creative is created. This attribute is required for updates.

getName

public String getName()
Gets the name value for this Creative.

Returns:
name * The name of the creative. This attribute is required and has a maximum length of 255 characters.

setName

public void setName(String name)
Sets the name value for this Creative.

Parameters:
name - * The name of the creative. This attribute is required and has a maximum length of 255 characters.

getSize

public Size getSize()
Gets the size value for this Creative.

Returns:
size * The Size of the creative. This attribute is required.

setSize

public void setSize(Size size)
Sets the size value for this Creative.

Parameters:
size - * The Size of the creative. This attribute is required.

getPreviewUrl

public String getPreviewUrl()
Gets the previewUrl value for this Creative.

Returns:
previewUrl * The URL of the creative for previewing the media. This attribute is read-only and is assigned by Google when a creative is created.

setPreviewUrl

public void setPreviewUrl(String previewUrl)
Sets the previewUrl value for this Creative.

Parameters:
previewUrl - * The URL of the creative for previewing the media. This attribute is read-only and is assigned by Google when a creative is created.

getAppliedLabels

public AppliedLabel[] getAppliedLabels()
Gets the appliedLabels value for this Creative.

Returns:
appliedLabels

setAppliedLabels

public void setAppliedLabels(AppliedLabel[] appliedLabels)
Sets the appliedLabels value for this Creative.

Parameters:
appliedLabels -

getAppliedLabels

public AppliedLabel getAppliedLabels(int i)

setAppliedLabels

public void setAppliedLabels(int i,
                             AppliedLabel _value)

getCreativeType

public String getCreativeType()
Gets the creativeType value for this Creative.

Returns:
creativeType * Indicates that this instance is a subtype of Creative. Although this field is returned in the response, it is ignored on input and cannot be selected. Specify xsi:type instead.

setCreativeType

public void setCreativeType(String creativeType)
Sets the creativeType value for this Creative.

Parameters:
creativeType - * Indicates that this instance is a subtype of Creative. Although this field is returned in the response, it is ignored on input and cannot be selected. Specify xsi:type instead.

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 © 2011. All Rights Reserved.