com.google.api.ads.dfp.axis.v201208
Class AspectRatioImageCreative

java.lang.Object
  extended by com.google.api.ads.dfp.axis.v201208.Creative
      extended by com.google.api.ads.dfp.axis.v201208.HasDestinationUrlCreative
          extended by com.google.api.ads.dfp.axis.v201208.AspectRatioImageCreative
All Implemented Interfaces:
Serializable

public class AspectRatioImageCreative
extends HasDestinationUrlCreative
implements Serializable

A Creative intended for mobile platforms that displays an image, whose size is defined as an aspect ratio, i.e. Size.isAspectRatio. It can have multiple images whose dimensions conform to that aspect ratio.

See Also:
Serialized Form

Constructor Summary
AspectRatioImageCreative()
           
AspectRatioImageCreative(Long advertiserId, Long id, String name, Size size, String previewUrl, AppliedLabel[] appliedLabels, DateTime lastModifiedDateTime, BaseCustomFieldValue[] customFieldValues, String creativeType, String destinationUrl, CreativeAsset[] imageAssets, String fallbackText)
           
 
Method Summary
 boolean equals(Object obj)
           
static org.apache.axis.encoding.Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Deserializer
 String getFallbackText()
          Gets the fallbackText value for this AspectRatioImageCreative.
 CreativeAsset[] getImageAssets()
          Gets the imageAssets value for this AspectRatioImageCreative.
 CreativeAsset getImageAssets(int i)
           
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 setFallbackText(String fallbackText)
          Sets the fallbackText value for this AspectRatioImageCreative.
 void setImageAssets(CreativeAsset[] imageAssets)
          Sets the imageAssets value for this AspectRatioImageCreative.
 void setImageAssets(int i, CreativeAsset _value)
           
 
Methods inherited from class com.google.api.ads.dfp.axis.v201208.HasDestinationUrlCreative
getDestinationUrl, setDestinationUrl
 
Methods inherited from class com.google.api.ads.dfp.axis.v201208.Creative
getAdvertiserId, getAppliedLabels, getAppliedLabels, getCreativeType, getCustomFieldValues, getCustomFieldValues, getId, getLastModifiedDateTime, getName, getPreviewUrl, getSize, setAdvertiserId, setAppliedLabels, setAppliedLabels, setCreativeType, setCustomFieldValues, setCustomFieldValues, setId, setLastModifiedDateTime, setName, setPreviewUrl, setSize
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AspectRatioImageCreative

public AspectRatioImageCreative()

AspectRatioImageCreative

public AspectRatioImageCreative(Long advertiserId,
                                Long id,
                                String name,
                                Size size,
                                String previewUrl,
                                AppliedLabel[] appliedLabels,
                                DateTime lastModifiedDateTime,
                                BaseCustomFieldValue[] customFieldValues,
                                String creativeType,
                                String destinationUrl,
                                CreativeAsset[] imageAssets,
                                String fallbackText)
Method Detail

getImageAssets

public CreativeAsset[] getImageAssets()
Gets the imageAssets value for this AspectRatioImageCreative.

Returns:
imageAssets * The images associated with this creative. The ad server will choose one based on the capabilities of the device. Each asset should have a size which is of the same aspect ratio as the Creative.size. This attribute is required and must have at least one asset.

setImageAssets

public void setImageAssets(CreativeAsset[] imageAssets)
Sets the imageAssets value for this AspectRatioImageCreative.

Parameters:
imageAssets - * The images associated with this creative. The ad server will choose one based on the capabilities of the device. Each asset should have a size which is of the same aspect ratio as the Creative.size. This attribute is required and must have at least one asset.

getImageAssets

public CreativeAsset getImageAssets(int i)

setImageAssets

public void setImageAssets(int i,
                           CreativeAsset _value)

getFallbackText

public String getFallbackText()
Gets the fallbackText value for this AspectRatioImageCreative.

Returns:
fallbackText * The text that is served along with the image creative, primarily for accessibility. If no suitable image size is available for the device, this text replaces the image completely. This field is optional and has a maximum length of 500 characters.

setFallbackText

public void setFallbackText(String fallbackText)
Sets the fallbackText value for this AspectRatioImageCreative.

Parameters:
fallbackText - * The text that is served along with the image creative, primarily for accessibility. If no suitable image size is available for the device, this text replaces the image completely. This field is optional and has a maximum length of 500 characters.

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class HasDestinationUrlCreative

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.