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

com.google.api.ads.dfp.axis.v201505.Placement Maven / Gradle / Ivy

There is a newer version: 5.8.0
Show newest version
/**
 * Placement.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.v201505;


/**
 * A {@code Placement} groups related {@code AdUnit} objects.
 */
public class Placement  extends com.google.api.ads.dfp.axis.v201505.SiteTargetingInfo  implements java.io.Serializable {
    /* Uniquely identifies the {@code Placement}. This attribute is
     * read-only and
     *                     is assigned by Google when a placement is created. */
    private java.lang.Long id;

    /* The name of the {@code Placement}. This value is required and
     * has a maximum
     *                     length of 255 characters. */
    private java.lang.String name;

    /* A description of the {@code Placement}. This value is optional
     * and its
     *                     maximum length is 65,535 characters. */
    private java.lang.String description;

    /* A string used to uniquely identify the {@code Placement} for
     * purposes of
     *                     serving the ad. This attribute is read-only and
     * is assigned by Google when
     *                     a placement is created. */
    private java.lang.String placementCode;

    /* The status of the {@code Placement}. This attribute is read-only. */
    private com.google.api.ads.dfp.axis.v201505.InventoryStatus status;

    /* Describes whether the {@code Placement} is available for site
     * targeting by
     *                     AdWords advertisers. */
    private java.lang.Boolean isAdSenseTargetingEnabled;

    /* If {@code isAdSenseTargetingEnabled} is true, restricts AdWords
     * ads to those only in the placement's language. */
    private java.lang.String adSenseTargetingLocale;

    /* The collection of {@code AdUnit} object IDs that constitute
     * the {@code
     *                     Placement}. */
    private java.lang.String[] targetedAdUnitIds;

    /* The date and time this placement was last modified. */
    private com.google.api.ads.dfp.axis.v201505.DateTime lastModifiedDateTime;

    public Placement() {
    }

    public Placement(
           java.lang.String targetingDescription,
           java.lang.String targetingSiteName,
           java.lang.String targetingAdLocation,
           java.lang.Long id,
           java.lang.String name,
           java.lang.String description,
           java.lang.String placementCode,
           com.google.api.ads.dfp.axis.v201505.InventoryStatus status,
           java.lang.Boolean isAdSenseTargetingEnabled,
           java.lang.String adSenseTargetingLocale,
           java.lang.String[] targetedAdUnitIds,
           com.google.api.ads.dfp.axis.v201505.DateTime lastModifiedDateTime) {
        super(
            targetingDescription,
            targetingSiteName,
            targetingAdLocation);
        this.id = id;
        this.name = name;
        this.description = description;
        this.placementCode = placementCode;
        this.status = status;
        this.isAdSenseTargetingEnabled = isAdSenseTargetingEnabled;
        this.adSenseTargetingLocale = adSenseTargetingLocale;
        this.targetedAdUnitIds = targetedAdUnitIds;
        this.lastModifiedDateTime = lastModifiedDateTime;
    }


    /**
     * Gets the id value for this Placement.
     * 
     * @return id   * Uniquely identifies the {@code Placement}. This attribute is
     * read-only and
     *                     is assigned by Google when a placement is created.
     */
    public java.lang.Long getId() {
        return id;
    }


    /**
     * Sets the id value for this Placement.
     * 
     * @param id   * Uniquely identifies the {@code Placement}. This attribute is
     * read-only and
     *                     is assigned by Google when a placement is created.
     */
    public void setId(java.lang.Long id) {
        this.id = id;
    }


    /**
     * Gets the name value for this Placement.
     * 
     * @return name   * The name of the {@code Placement}. This value is required and
     * has a maximum
     *                     length of 255 characters.
     */
    public java.lang.String getName() {
        return name;
    }


    /**
     * Sets the name value for this Placement.
     * 
     * @param name   * The name of the {@code Placement}. This value is required and
     * has a maximum
     *                     length of 255 characters.
     */
    public void setName(java.lang.String name) {
        this.name = name;
    }


    /**
     * Gets the description value for this Placement.
     * 
     * @return description   * A description of the {@code Placement}. This value is optional
     * and its
     *                     maximum length is 65,535 characters.
     */
    public java.lang.String getDescription() {
        return description;
    }


    /**
     * Sets the description value for this Placement.
     * 
     * @param description   * A description of the {@code Placement}. This value is optional
     * and its
     *                     maximum length is 65,535 characters.
     */
    public void setDescription(java.lang.String description) {
        this.description = description;
    }


    /**
     * Gets the placementCode value for this Placement.
     * 
     * @return placementCode   * A string used to uniquely identify the {@code Placement} for
     * purposes of
     *                     serving the ad. This attribute is read-only and
     * is assigned by Google when
     *                     a placement is created.
     */
    public java.lang.String getPlacementCode() {
        return placementCode;
    }


    /**
     * Sets the placementCode value for this Placement.
     * 
     * @param placementCode   * A string used to uniquely identify the {@code Placement} for
     * purposes of
     *                     serving the ad. This attribute is read-only and
     * is assigned by Google when
     *                     a placement is created.
     */
    public void setPlacementCode(java.lang.String placementCode) {
        this.placementCode = placementCode;
    }


    /**
     * Gets the status value for this Placement.
     * 
     * @return status   * The status of the {@code Placement}. This attribute is read-only.
     */
    public com.google.api.ads.dfp.axis.v201505.InventoryStatus getStatus() {
        return status;
    }


    /**
     * Sets the status value for this Placement.
     * 
     * @param status   * The status of the {@code Placement}. This attribute is read-only.
     */
    public void setStatus(com.google.api.ads.dfp.axis.v201505.InventoryStatus status) {
        this.status = status;
    }


    /**
     * Gets the isAdSenseTargetingEnabled value for this Placement.
     * 
     * @return isAdSenseTargetingEnabled   * Describes whether the {@code Placement} is available for site
     * targeting by
     *                     AdWords advertisers.
     */
    public java.lang.Boolean getIsAdSenseTargetingEnabled() {
        return isAdSenseTargetingEnabled;
    }


    /**
     * Sets the isAdSenseTargetingEnabled value for this Placement.
     * 
     * @param isAdSenseTargetingEnabled   * Describes whether the {@code Placement} is available for site
     * targeting by
     *                     AdWords advertisers.
     */
    public void setIsAdSenseTargetingEnabled(java.lang.Boolean isAdSenseTargetingEnabled) {
        this.isAdSenseTargetingEnabled = isAdSenseTargetingEnabled;
    }


    /**
     * Gets the adSenseTargetingLocale value for this Placement.
     * 
     * @return adSenseTargetingLocale   * If {@code isAdSenseTargetingEnabled} is true, restricts AdWords
     * ads to those only in the placement's language.
     */
    public java.lang.String getAdSenseTargetingLocale() {
        return adSenseTargetingLocale;
    }


    /**
     * Sets the adSenseTargetingLocale value for this Placement.
     * 
     * @param adSenseTargetingLocale   * If {@code isAdSenseTargetingEnabled} is true, restricts AdWords
     * ads to those only in the placement's language.
     */
    public void setAdSenseTargetingLocale(java.lang.String adSenseTargetingLocale) {
        this.adSenseTargetingLocale = adSenseTargetingLocale;
    }


    /**
     * Gets the targetedAdUnitIds value for this Placement.
     * 
     * @return targetedAdUnitIds   * The collection of {@code AdUnit} object IDs that constitute
     * the {@code
     *                     Placement}.
     */
    public java.lang.String[] getTargetedAdUnitIds() {
        return targetedAdUnitIds;
    }


    /**
     * Sets the targetedAdUnitIds value for this Placement.
     * 
     * @param targetedAdUnitIds   * The collection of {@code AdUnit} object IDs that constitute
     * the {@code
     *                     Placement}.
     */
    public void setTargetedAdUnitIds(java.lang.String[] targetedAdUnitIds) {
        this.targetedAdUnitIds = targetedAdUnitIds;
    }

    public java.lang.String getTargetedAdUnitIds(int i) {
        return this.targetedAdUnitIds[i];
    }

    public void setTargetedAdUnitIds(int i, java.lang.String _value) {
        this.targetedAdUnitIds[i] = _value;
    }


    /**
     * Gets the lastModifiedDateTime value for this Placement.
     * 
     * @return lastModifiedDateTime   * The date and time this placement was last modified.
     */
    public com.google.api.ads.dfp.axis.v201505.DateTime getLastModifiedDateTime() {
        return lastModifiedDateTime;
    }


    /**
     * Sets the lastModifiedDateTime value for this Placement.
     * 
     * @param lastModifiedDateTime   * The date and time this placement was last modified.
     */
    public void setLastModifiedDateTime(com.google.api.ads.dfp.axis.v201505.DateTime lastModifiedDateTime) {
        this.lastModifiedDateTime = lastModifiedDateTime;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof Placement)) return false;
        Placement other = (Placement) 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.id==null && other.getId()==null) || 
             (this.id!=null &&
              this.id.equals(other.getId()))) &&
            ((this.name==null && other.getName()==null) || 
             (this.name!=null &&
              this.name.equals(other.getName()))) &&
            ((this.description==null && other.getDescription()==null) || 
             (this.description!=null &&
              this.description.equals(other.getDescription()))) &&
            ((this.placementCode==null && other.getPlacementCode()==null) || 
             (this.placementCode!=null &&
              this.placementCode.equals(other.getPlacementCode()))) &&
            ((this.status==null && other.getStatus()==null) || 
             (this.status!=null &&
              this.status.equals(other.getStatus()))) &&
            ((this.isAdSenseTargetingEnabled==null && other.getIsAdSenseTargetingEnabled()==null) || 
             (this.isAdSenseTargetingEnabled!=null &&
              this.isAdSenseTargetingEnabled.equals(other.getIsAdSenseTargetingEnabled()))) &&
            ((this.adSenseTargetingLocale==null && other.getAdSenseTargetingLocale()==null) || 
             (this.adSenseTargetingLocale!=null &&
              this.adSenseTargetingLocale.equals(other.getAdSenseTargetingLocale()))) &&
            ((this.targetedAdUnitIds==null && other.getTargetedAdUnitIds()==null) || 
             (this.targetedAdUnitIds!=null &&
              java.util.Arrays.equals(this.targetedAdUnitIds, other.getTargetedAdUnitIds()))) &&
            ((this.lastModifiedDateTime==null && other.getLastModifiedDateTime()==null) || 
             (this.lastModifiedDateTime!=null &&
              this.lastModifiedDateTime.equals(other.getLastModifiedDateTime())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = super.hashCode();
        if (getId() != null) {
            _hashCode += getId().hashCode();
        }
        if (getName() != null) {
            _hashCode += getName().hashCode();
        }
        if (getDescription() != null) {
            _hashCode += getDescription().hashCode();
        }
        if (getPlacementCode() != null) {
            _hashCode += getPlacementCode().hashCode();
        }
        if (getStatus() != null) {
            _hashCode += getStatus().hashCode();
        }
        if (getIsAdSenseTargetingEnabled() != null) {
            _hashCode += getIsAdSenseTargetingEnabled().hashCode();
        }
        if (getAdSenseTargetingLocale() != null) {
            _hashCode += getAdSenseTargetingLocale().hashCode();
        }
        if (getTargetedAdUnitIds() != null) {
            for (int i=0;
                 i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy