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

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

There is a newer version: 5.8.0
Show newest version
/**
 * LineItemCreativeAssociation.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 LineItemCreativeAssociation} associates a {@link Creative}
 * or {@link CreativeSet} with a
 *             {@link LineItem} so that the creative can be served in
 * ad units targeted by the line item.
 */
public class LineItemCreativeAssociation  implements java.io.Serializable {
    /* The ID of the {@link LineItem} to which the {@link Creative}
     * should be
     *                 associated. This attribute is required. */
    private java.lang.Long lineItemId;

    /* The ID of the {@link Creative} being associated with a {@link
     * LineItem}.
     *                 

* This attribute is required if this is an association * between a line item and a creative. *
* This attribute is ignored if this is an association * between a line item and a creative set. *

* If this is an association between a line item and * a creative, when retrieving the * line item creative association, the {@link #creativeId] * will be the creative's ID. *
* If this is an association between a line item and * a creative set, when retrieving the * line item creative association, the {@link #creativeId} * will be the ID of the * {@link CreativeSet#masterCreativeId master creative}. */ private java.lang.Long creativeId; /* The ID of the {@link CreativeSet} being associated with a {@link * LineItem}. * This attribute is required if this is an association * between a line item and a creative set. *

* This field will be {@code null} when retrieving associations * between line items and * creatives not belonging to a set. */ private java.lang.Long creativeSetId; /* The weight of the {@link Creative}. This value is only used * if the line * item's {@code creativeRotationType} is set to * {@link CreativeRotationType#MANUAL}. This attribute * is optional and * defaults to 10. */ private java.lang.Double manualCreativeRotationWeight; /* The sequential rotation index of the {@link Creative}. * This value is used only if * the associated line item's {@link LineItem#creativeRotationType} * is set to * {@link CreativeRotationType#SEQUENTIAL}. This attribute * is optional and * defaults to 1. */ private java.lang.Integer sequentialCreativeRotationIndex; /* Overrides the value set for {@link LineItem#startDateTime}. * This value is * optional and is only valid for DFP premium networks. */ private com.google.api.ads.dfp.axis.v201505.DateTime startDateTime; /* Specifies whether to start serving to the * {@code LineItemCreativeAssociation} right away, in * an hour, etc. This * attribute is optional and defaults to * {@link StartDateTimeType#USE_START_DATE_TIME}. */ private com.google.api.ads.dfp.axis.v201505.StartDateTimeType startDateTimeType; /* Overrides {@link LineItem#endDateTime}. This value is optional * and is only * valid for DFP premium networks. */ private com.google.api.ads.dfp.axis.v201505.DateTime endDateTime; /* Overrides the value set for * {@link HasDestinationUrlCreative#destinationUrl}. * This value is optional * and is only valid for DFP premium networks. */ private java.lang.String destinationUrl; /* Overrides the value set for {@link Creative#size}, which allows * the * creative to be served to ad units that would otherwise * not be compatible * for its actual size. This value is optional. */ private com.google.api.ads.dfp.axis.v201505.Size[] sizes; /* The status of the association. This attribute is read-only. */ private com.google.api.ads.dfp.axis.v201505.LineItemCreativeAssociationStatus status; /* Contains trafficking statistics for the association. This attribute * is * readonly and is populated by Google. This will be * {@code null} in case * there are no statistics for the association yet. */ private com.google.api.ads.dfp.axis.v201505.LineItemCreativeAssociationStats stats; /* The date and time this association was last modified. */ private com.google.api.ads.dfp.axis.v201505.DateTime lastModifiedDateTime; public LineItemCreativeAssociation() { } public LineItemCreativeAssociation( java.lang.Long lineItemId, java.lang.Long creativeId, java.lang.Long creativeSetId, java.lang.Double manualCreativeRotationWeight, java.lang.Integer sequentialCreativeRotationIndex, com.google.api.ads.dfp.axis.v201505.DateTime startDateTime, com.google.api.ads.dfp.axis.v201505.StartDateTimeType startDateTimeType, com.google.api.ads.dfp.axis.v201505.DateTime endDateTime, java.lang.String destinationUrl, com.google.api.ads.dfp.axis.v201505.Size[] sizes, com.google.api.ads.dfp.axis.v201505.LineItemCreativeAssociationStatus status, com.google.api.ads.dfp.axis.v201505.LineItemCreativeAssociationStats stats, com.google.api.ads.dfp.axis.v201505.DateTime lastModifiedDateTime) { this.lineItemId = lineItemId; this.creativeId = creativeId; this.creativeSetId = creativeSetId; this.manualCreativeRotationWeight = manualCreativeRotationWeight; this.sequentialCreativeRotationIndex = sequentialCreativeRotationIndex; this.startDateTime = startDateTime; this.startDateTimeType = startDateTimeType; this.endDateTime = endDateTime; this.destinationUrl = destinationUrl; this.sizes = sizes; this.status = status; this.stats = stats; this.lastModifiedDateTime = lastModifiedDateTime; } /** * Gets the lineItemId value for this LineItemCreativeAssociation. * * @return lineItemId * The ID of the {@link LineItem} to which the {@link Creative} * should be * associated. This attribute is required. */ public java.lang.Long getLineItemId() { return lineItemId; } /** * Sets the lineItemId value for this LineItemCreativeAssociation. * * @param lineItemId * The ID of the {@link LineItem} to which the {@link Creative} * should be * associated. This attribute is required. */ public void setLineItemId(java.lang.Long lineItemId) { this.lineItemId = lineItemId; } /** * Gets the creativeId value for this LineItemCreativeAssociation. * * @return creativeId * The ID of the {@link Creative} being associated with a {@link * LineItem}. *

* This attribute is required if this is an association * between a line item and a creative. *
* This attribute is ignored if this is an association * between a line item and a creative set. *

* If this is an association between a line item and * a creative, when retrieving the * line item creative association, the {@link #creativeId] * will be the creative's ID. *
* If this is an association between a line item and * a creative set, when retrieving the * line item creative association, the {@link #creativeId} * will be the ID of the * {@link CreativeSet#masterCreativeId master creative}. */ public java.lang.Long getCreativeId() { return creativeId; } /** * Sets the creativeId value for this LineItemCreativeAssociation. * * @param creativeId * The ID of the {@link Creative} being associated with a {@link * LineItem}. *

* This attribute is required if this is an association * between a line item and a creative. *
* This attribute is ignored if this is an association * between a line item and a creative set. *

* If this is an association between a line item and * a creative, when retrieving the * line item creative association, the {@link #creativeId] * will be the creative's ID. *
* If this is an association between a line item and * a creative set, when retrieving the * line item creative association, the {@link #creativeId} * will be the ID of the * {@link CreativeSet#masterCreativeId master creative}. */ public void setCreativeId(java.lang.Long creativeId) { this.creativeId = creativeId; } /** * Gets the creativeSetId value for this LineItemCreativeAssociation. * * @return creativeSetId * The ID of the {@link CreativeSet} being associated with a {@link * LineItem}. * This attribute is required if this is an association * between a line item and a creative set. *

* This field will be {@code null} when retrieving associations * between line items and * creatives not belonging to a set. */ public java.lang.Long getCreativeSetId() { return creativeSetId; } /** * Sets the creativeSetId value for this LineItemCreativeAssociation. * * @param creativeSetId * The ID of the {@link CreativeSet} being associated with a {@link * LineItem}. * This attribute is required if this is an association * between a line item and a creative set. *

* This field will be {@code null} when retrieving associations * between line items and * creatives not belonging to a set. */ public void setCreativeSetId(java.lang.Long creativeSetId) { this.creativeSetId = creativeSetId; } /** * Gets the manualCreativeRotationWeight value for this LineItemCreativeAssociation. * * @return manualCreativeRotationWeight * The weight of the {@link Creative}. This value is only used * if the line * item's {@code creativeRotationType} is set to * {@link CreativeRotationType#MANUAL}. This attribute * is optional and * defaults to 10. */ public java.lang.Double getManualCreativeRotationWeight() { return manualCreativeRotationWeight; } /** * Sets the manualCreativeRotationWeight value for this LineItemCreativeAssociation. * * @param manualCreativeRotationWeight * The weight of the {@link Creative}. This value is only used * if the line * item's {@code creativeRotationType} is set to * {@link CreativeRotationType#MANUAL}. This attribute * is optional and * defaults to 10. */ public void setManualCreativeRotationWeight(java.lang.Double manualCreativeRotationWeight) { this.manualCreativeRotationWeight = manualCreativeRotationWeight; } /** * Gets the sequentialCreativeRotationIndex value for this LineItemCreativeAssociation. * * @return sequentialCreativeRotationIndex * The sequential rotation index of the {@link Creative}. * This value is used only if * the associated line item's {@link LineItem#creativeRotationType} * is set to * {@link CreativeRotationType#SEQUENTIAL}. This attribute * is optional and * defaults to 1. */ public java.lang.Integer getSequentialCreativeRotationIndex() { return sequentialCreativeRotationIndex; } /** * Sets the sequentialCreativeRotationIndex value for this LineItemCreativeAssociation. * * @param sequentialCreativeRotationIndex * The sequential rotation index of the {@link Creative}. * This value is used only if * the associated line item's {@link LineItem#creativeRotationType} * is set to * {@link CreativeRotationType#SEQUENTIAL}. This attribute * is optional and * defaults to 1. */ public void setSequentialCreativeRotationIndex(java.lang.Integer sequentialCreativeRotationIndex) { this.sequentialCreativeRotationIndex = sequentialCreativeRotationIndex; } /** * Gets the startDateTime value for this LineItemCreativeAssociation. * * @return startDateTime * Overrides the value set for {@link LineItem#startDateTime}. * This value is * optional and is only valid for DFP premium networks. */ public com.google.api.ads.dfp.axis.v201505.DateTime getStartDateTime() { return startDateTime; } /** * Sets the startDateTime value for this LineItemCreativeAssociation. * * @param startDateTime * Overrides the value set for {@link LineItem#startDateTime}. * This value is * optional and is only valid for DFP premium networks. */ public void setStartDateTime(com.google.api.ads.dfp.axis.v201505.DateTime startDateTime) { this.startDateTime = startDateTime; } /** * Gets the startDateTimeType value for this LineItemCreativeAssociation. * * @return startDateTimeType * Specifies whether to start serving to the * {@code LineItemCreativeAssociation} right away, in * an hour, etc. This * attribute is optional and defaults to * {@link StartDateTimeType#USE_START_DATE_TIME}. */ public com.google.api.ads.dfp.axis.v201505.StartDateTimeType getStartDateTimeType() { return startDateTimeType; } /** * Sets the startDateTimeType value for this LineItemCreativeAssociation. * * @param startDateTimeType * Specifies whether to start serving to the * {@code LineItemCreativeAssociation} right away, in * an hour, etc. This * attribute is optional and defaults to * {@link StartDateTimeType#USE_START_DATE_TIME}. */ public void setStartDateTimeType(com.google.api.ads.dfp.axis.v201505.StartDateTimeType startDateTimeType) { this.startDateTimeType = startDateTimeType; } /** * Gets the endDateTime value for this LineItemCreativeAssociation. * * @return endDateTime * Overrides {@link LineItem#endDateTime}. This value is optional * and is only * valid for DFP premium networks. */ public com.google.api.ads.dfp.axis.v201505.DateTime getEndDateTime() { return endDateTime; } /** * Sets the endDateTime value for this LineItemCreativeAssociation. * * @param endDateTime * Overrides {@link LineItem#endDateTime}. This value is optional * and is only * valid for DFP premium networks. */ public void setEndDateTime(com.google.api.ads.dfp.axis.v201505.DateTime endDateTime) { this.endDateTime = endDateTime; } /** * Gets the destinationUrl value for this LineItemCreativeAssociation. * * @return destinationUrl * Overrides the value set for * {@link HasDestinationUrlCreative#destinationUrl}. * This value is optional * and is only valid for DFP premium networks. */ public java.lang.String getDestinationUrl() { return destinationUrl; } /** * Sets the destinationUrl value for this LineItemCreativeAssociation. * * @param destinationUrl * Overrides the value set for * {@link HasDestinationUrlCreative#destinationUrl}. * This value is optional * and is only valid for DFP premium networks. */ public void setDestinationUrl(java.lang.String destinationUrl) { this.destinationUrl = destinationUrl; } /** * Gets the sizes value for this LineItemCreativeAssociation. * * @return sizes * Overrides the value set for {@link Creative#size}, which allows * the * creative to be served to ad units that would otherwise * not be compatible * for its actual size. This value is optional. */ public com.google.api.ads.dfp.axis.v201505.Size[] getSizes() { return sizes; } /** * Sets the sizes value for this LineItemCreativeAssociation. * * @param sizes * Overrides the value set for {@link Creative#size}, which allows * the * creative to be served to ad units that would otherwise * not be compatible * for its actual size. This value is optional. */ public void setSizes(com.google.api.ads.dfp.axis.v201505.Size[] sizes) { this.sizes = sizes; } public com.google.api.ads.dfp.axis.v201505.Size getSizes(int i) { return this.sizes[i]; } public void setSizes(int i, com.google.api.ads.dfp.axis.v201505.Size _value) { this.sizes[i] = _value; } /** * Gets the status value for this LineItemCreativeAssociation. * * @return status * The status of the association. This attribute is read-only. */ public com.google.api.ads.dfp.axis.v201505.LineItemCreativeAssociationStatus getStatus() { return status; } /** * Sets the status value for this LineItemCreativeAssociation. * * @param status * The status of the association. This attribute is read-only. */ public void setStatus(com.google.api.ads.dfp.axis.v201505.LineItemCreativeAssociationStatus status) { this.status = status; } /** * Gets the stats value for this LineItemCreativeAssociation. * * @return stats * Contains trafficking statistics for the association. This attribute * is * readonly and is populated by Google. This will be * {@code null} in case * there are no statistics for the association yet. */ public com.google.api.ads.dfp.axis.v201505.LineItemCreativeAssociationStats getStats() { return stats; } /** * Sets the stats value for this LineItemCreativeAssociation. * * @param stats * Contains trafficking statistics for the association. This attribute * is * readonly and is populated by Google. This will be * {@code null} in case * there are no statistics for the association yet. */ public void setStats(com.google.api.ads.dfp.axis.v201505.LineItemCreativeAssociationStats stats) { this.stats = stats; } /** * Gets the lastModifiedDateTime value for this LineItemCreativeAssociation. * * @return lastModifiedDateTime * The date and time this association was last modified. */ public com.google.api.ads.dfp.axis.v201505.DateTime getLastModifiedDateTime() { return lastModifiedDateTime; } /** * Sets the lastModifiedDateTime value for this LineItemCreativeAssociation. * * @param lastModifiedDateTime * The date and time this association 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 LineItemCreativeAssociation)) return false; LineItemCreativeAssociation other = (LineItemCreativeAssociation) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.lineItemId==null && other.getLineItemId()==null) || (this.lineItemId!=null && this.lineItemId.equals(other.getLineItemId()))) && ((this.creativeId==null && other.getCreativeId()==null) || (this.creativeId!=null && this.creativeId.equals(other.getCreativeId()))) && ((this.creativeSetId==null && other.getCreativeSetId()==null) || (this.creativeSetId!=null && this.creativeSetId.equals(other.getCreativeSetId()))) && ((this.manualCreativeRotationWeight==null && other.getManualCreativeRotationWeight()==null) || (this.manualCreativeRotationWeight!=null && this.manualCreativeRotationWeight.equals(other.getManualCreativeRotationWeight()))) && ((this.sequentialCreativeRotationIndex==null && other.getSequentialCreativeRotationIndex()==null) || (this.sequentialCreativeRotationIndex!=null && this.sequentialCreativeRotationIndex.equals(other.getSequentialCreativeRotationIndex()))) && ((this.startDateTime==null && other.getStartDateTime()==null) || (this.startDateTime!=null && this.startDateTime.equals(other.getStartDateTime()))) && ((this.startDateTimeType==null && other.getStartDateTimeType()==null) || (this.startDateTimeType!=null && this.startDateTimeType.equals(other.getStartDateTimeType()))) && ((this.endDateTime==null && other.getEndDateTime()==null) || (this.endDateTime!=null && this.endDateTime.equals(other.getEndDateTime()))) && ((this.destinationUrl==null && other.getDestinationUrl()==null) || (this.destinationUrl!=null && this.destinationUrl.equals(other.getDestinationUrl()))) && ((this.sizes==null && other.getSizes()==null) || (this.sizes!=null && java.util.Arrays.equals(this.sizes, other.getSizes()))) && ((this.status==null && other.getStatus()==null) || (this.status!=null && this.status.equals(other.getStatus()))) && ((this.stats==null && other.getStats()==null) || (this.stats!=null && this.stats.equals(other.getStats()))) && ((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 = 1; if (getLineItemId() != null) { _hashCode += getLineItemId().hashCode(); } if (getCreativeId() != null) { _hashCode += getCreativeId().hashCode(); } if (getCreativeSetId() != null) { _hashCode += getCreativeSetId().hashCode(); } if (getManualCreativeRotationWeight() != null) { _hashCode += getManualCreativeRotationWeight().hashCode(); } if (getSequentialCreativeRotationIndex() != null) { _hashCode += getSequentialCreativeRotationIndex().hashCode(); } if (getStartDateTime() != null) { _hashCode += getStartDateTime().hashCode(); } if (getStartDateTimeType() != null) { _hashCode += getStartDateTimeType().hashCode(); } if (getEndDateTime() != null) { _hashCode += getEndDateTime().hashCode(); } if (getDestinationUrl() != null) { _hashCode += getDestinationUrl().hashCode(); } if (getSizes() != null) { for (int i=0; i





© 2015 - 2025 Weber Informatics LLC | Privacy Policy