All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.ads.dfp.axis.v201508.ImageCreative Maven / Gradle / Ivy

There is a newer version: 5.8.0
Show newest version
/**
 * ImageCreative.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
 */

package com.google.api.ads.dfp.axis.v201508;


/**
 * A {@code Creative} that displays an image.
 */
public class ImageCreative  extends com.google.api.ads.dfp.axis.v201508.BaseImageCreative  implements java.io.Serializable {
    /* Alternative text to be rendered along with the creative used
     * mainly for accessibility.
     *                     This field is optional and has a maximum length
     * of 500 characters. */
    private java.lang.String altText;

    /* An impression tracking URL to ping when this creative is displayed.
     * This field is optional has
     *                     a maximum length of 1024 characters. */
    private java.lang.String thirdPartyImpressionUrl;

    /* The list of secondary image assets associated with this creative.
     * This attribute is optional.
     *                     
     *                     

Secondary image assets can be used to store * different resolution versions of the * primary asset for use on non-standard density * screens. */ private com.google.api.ads.dfp.axis.v201508.CreativeAsset[] secondaryImageAssets; /* A locked orientation for this creative to be displayed in. */ private com.google.api.ads.dfp.axis.v201508.LockedOrientation lockedOrientation; public ImageCreative() { } public ImageCreative( java.lang.Long advertiserId, java.lang.Long id, java.lang.String name, com.google.api.ads.dfp.axis.v201508.Size size, java.lang.String previewUrl, com.google.api.ads.dfp.axis.v201508.CreativePolicyViolation[] policyViolations, com.google.api.ads.dfp.axis.v201508.AppliedLabel[] appliedLabels, com.google.api.ads.dfp.axis.v201508.DateTime lastModifiedDateTime, com.google.api.ads.dfp.axis.v201508.BaseCustomFieldValue[] customFieldValues, java.lang.String destinationUrl, com.google.api.ads.dfp.axis.v201508.DestinationUrlType destinationUrlType, java.lang.Boolean overrideSize, com.google.api.ads.dfp.axis.v201508.CreativeAsset primaryImageAsset, java.lang.String altText, java.lang.String thirdPartyImpressionUrl, com.google.api.ads.dfp.axis.v201508.CreativeAsset[] secondaryImageAssets, com.google.api.ads.dfp.axis.v201508.LockedOrientation lockedOrientation) { super( advertiserId, id, name, size, previewUrl, policyViolations, appliedLabels, lastModifiedDateTime, customFieldValues, destinationUrl, destinationUrlType, overrideSize, primaryImageAsset); this.altText = altText; this.thirdPartyImpressionUrl = thirdPartyImpressionUrl; this.secondaryImageAssets = secondaryImageAssets; this.lockedOrientation = lockedOrientation; } /** * Gets the altText value for this ImageCreative. * * @return altText * Alternative text to be rendered along with the creative used * mainly for accessibility. * This field is optional and has a maximum length * of 500 characters. */ public java.lang.String getAltText() { return altText; } /** * Sets the altText value for this ImageCreative. * * @param altText * Alternative text to be rendered along with the creative used * mainly for accessibility. * This field is optional and has a maximum length * of 500 characters. */ public void setAltText(java.lang.String altText) { this.altText = altText; } /** * Gets the thirdPartyImpressionUrl value for this ImageCreative. * * @return thirdPartyImpressionUrl * An impression tracking URL to ping when this creative is displayed. * This field is optional has * a maximum length of 1024 characters. */ public java.lang.String getThirdPartyImpressionUrl() { return thirdPartyImpressionUrl; } /** * Sets the thirdPartyImpressionUrl value for this ImageCreative. * * @param thirdPartyImpressionUrl * An impression tracking URL to ping when this creative is displayed. * This field is optional has * a maximum length of 1024 characters. */ public void setThirdPartyImpressionUrl(java.lang.String thirdPartyImpressionUrl) { this.thirdPartyImpressionUrl = thirdPartyImpressionUrl; } /** * Gets the secondaryImageAssets value for this ImageCreative. * * @return secondaryImageAssets * The list of secondary image assets associated with this creative. * This attribute is optional. * *

Secondary image assets can be used to store * different resolution versions of the * primary asset for use on non-standard density * screens. */ public com.google.api.ads.dfp.axis.v201508.CreativeAsset[] getSecondaryImageAssets() { return secondaryImageAssets; } /** * Sets the secondaryImageAssets value for this ImageCreative. * * @param secondaryImageAssets * The list of secondary image assets associated with this creative. * This attribute is optional. * *

Secondary image assets can be used to store * different resolution versions of the * primary asset for use on non-standard density * screens. */ public void setSecondaryImageAssets(com.google.api.ads.dfp.axis.v201508.CreativeAsset[] secondaryImageAssets) { this.secondaryImageAssets = secondaryImageAssets; } public com.google.api.ads.dfp.axis.v201508.CreativeAsset getSecondaryImageAssets(int i) { return this.secondaryImageAssets[i]; } public void setSecondaryImageAssets(int i, com.google.api.ads.dfp.axis.v201508.CreativeAsset _value) { this.secondaryImageAssets[i] = _value; } /** * Gets the lockedOrientation value for this ImageCreative. * * @return lockedOrientation * A locked orientation for this creative to be displayed in. */ public com.google.api.ads.dfp.axis.v201508.LockedOrientation getLockedOrientation() { return lockedOrientation; } /** * Sets the lockedOrientation value for this ImageCreative. * * @param lockedOrientation * A locked orientation for this creative to be displayed in. */ public void setLockedOrientation(com.google.api.ads.dfp.axis.v201508.LockedOrientation lockedOrientation) { this.lockedOrientation = lockedOrientation; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof ImageCreative)) return false; ImageCreative other = (ImageCreative) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = super.equals(obj) && ((this.altText==null && other.getAltText()==null) || (this.altText!=null && this.altText.equals(other.getAltText()))) && ((this.thirdPartyImpressionUrl==null && other.getThirdPartyImpressionUrl()==null) || (this.thirdPartyImpressionUrl!=null && this.thirdPartyImpressionUrl.equals(other.getThirdPartyImpressionUrl()))) && ((this.secondaryImageAssets==null && other.getSecondaryImageAssets()==null) || (this.secondaryImageAssets!=null && java.util.Arrays.equals(this.secondaryImageAssets, other.getSecondaryImageAssets()))) && ((this.lockedOrientation==null && other.getLockedOrientation()==null) || (this.lockedOrientation!=null && this.lockedOrientation.equals(other.getLockedOrientation()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = super.hashCode(); if (getAltText() != null) { _hashCode += getAltText().hashCode(); } if (getThirdPartyImpressionUrl() != null) { _hashCode += getThirdPartyImpressionUrl().hashCode(); } if (getSecondaryImageAssets() != null) { for (int i=0; i





© 2015 - 2025 Weber Informatics LLC | Privacy Policy