
com.google.api.ads.dfp.axis.v201511.LineItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dfp-axis Show documentation
Show all versions of dfp-axis Show documentation
Ad Manager specific Axis components.
/**
* LineItem.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.v201511;
/**
* {@code LineItem} is an advertiser's commitment to purchase a specific
* number
* of ad impressions, clicks, or time.
*/
public class LineItem extends com.google.api.ads.dfp.axis.v201511.LineItemSummary implements java.io.Serializable {
/* Contains the targeting criteria for the ad campaign. This attribute
* is
* required. */
private com.google.api.ads.dfp.axis.v201511.Targeting targeting;
/* A list of {@link CreativeTargeting} objects that can be used
* to specify creative level
* targeting for this line item. Creative level targeting
* is specified in a creative placeholder's
* {@link CreativePlaceholder#targetingName} field
* by referencing the creative targeting's
* {@link CreativeTargeting#name name}. It also needs
* to be re-specified in the
* {@link LineItemCreativeAssociation#targetingName}
* field when associating a line item with a
* creative that fits into that placeholder. */
private com.google.api.ads.dfp.axis.v201511.CreativeTargeting[] creativeTargetings;
public LineItem() {
}
public LineItem(
java.lang.Long orderId,
java.lang.Long id,
java.lang.String name,
java.lang.String externalId,
java.lang.String orderName,
com.google.api.ads.dfp.axis.v201511.DateTime startDateTime,
com.google.api.ads.dfp.axis.v201511.StartDateTimeType startDateTimeType,
com.google.api.ads.dfp.axis.v201511.DateTime endDateTime,
java.lang.Integer autoExtensionDays,
java.lang.Boolean unlimitedEndDateTime,
com.google.api.ads.dfp.axis.v201511.CreativeRotationType creativeRotationType,
com.google.api.ads.dfp.axis.v201511.DeliveryRateType deliveryRateType,
com.google.api.ads.dfp.axis.v201511.RoadblockingType roadblockingType,
com.google.api.ads.dfp.axis.v201511.FrequencyCap[] frequencyCaps,
com.google.api.ads.dfp.axis.v201511.LineItemType lineItemType,
java.lang.Integer priority,
com.google.api.ads.dfp.axis.v201511.Money costPerUnit,
com.google.api.ads.dfp.axis.v201511.Money valueCostPerUnit,
com.google.api.ads.dfp.axis.v201511.CostType costType,
com.google.api.ads.dfp.axis.v201511.LineItemDiscountType discountType,
java.lang.Double discount,
java.lang.Long contractedUnitsBought,
com.google.api.ads.dfp.axis.v201511.CreativePlaceholder[] creativePlaceholders,
com.google.api.ads.dfp.axis.v201511.LineItemActivityAssociation[] activityAssociations,
com.google.api.ads.dfp.axis.v201511.EnvironmentType environmentType,
com.google.api.ads.dfp.axis.v201511.CompanionDeliveryOption companionDeliveryOption,
com.google.api.ads.dfp.axis.v201511.CreativePersistenceType creativePersistenceType,
java.lang.Boolean allowOverbook,
java.lang.Boolean skipInventoryCheck,
java.lang.Boolean skipCrossSellingRuleWarningChecks,
java.lang.Boolean reserveAtCreation,
com.google.api.ads.dfp.axis.v201511.Stats stats,
com.google.api.ads.dfp.axis.v201511.DeliveryIndicator deliveryIndicator,
com.google.api.ads.dfp.axis.v201511.DeliveryData deliveryData,
com.google.api.ads.dfp.axis.v201511.Money budget,
com.google.api.ads.dfp.axis.v201511.ComputedStatus status,
com.google.api.ads.dfp.axis.v201511.LineItemSummaryReservationStatus reservationStatus,
java.lang.Boolean isArchived,
java.lang.String webPropertyCode,
com.google.api.ads.dfp.axis.v201511.AppliedLabel[] appliedLabels,
com.google.api.ads.dfp.axis.v201511.AppliedLabel[] effectiveAppliedLabels,
java.lang.Boolean disableSameAdvertiserCompetitiveExclusion,
java.lang.String lastModifiedByApp,
java.lang.String notes,
com.google.api.ads.dfp.axis.v201511.DateTime lastModifiedDateTime,
com.google.api.ads.dfp.axis.v201511.DateTime creationDateTime,
java.lang.Boolean isPrioritizedPreferredDealsEnabled,
java.lang.Integer adExchangeAuctionOpeningPriority,
com.google.api.ads.dfp.axis.v201511.BaseCustomFieldValue[] customFieldValues,
java.lang.Boolean isSetTopBoxEnabled,
java.lang.Boolean isMissingCreatives,
com.google.api.ads.dfp.axis.v201511.SetTopBoxInfo setTopBoxDisplayInfo,
java.lang.Long videoMaxDuration,
com.google.api.ads.dfp.axis.v201511.Goal primaryGoal,
com.google.api.ads.dfp.axis.v201511.Goal[] secondaryGoals,
com.google.api.ads.dfp.axis.v201511.GrpSettings grpSettings,
com.google.api.ads.dfp.axis.v201511.Targeting targeting,
com.google.api.ads.dfp.axis.v201511.CreativeTargeting[] creativeTargetings) {
super(
orderId,
id,
name,
externalId,
orderName,
startDateTime,
startDateTimeType,
endDateTime,
autoExtensionDays,
unlimitedEndDateTime,
creativeRotationType,
deliveryRateType,
roadblockingType,
frequencyCaps,
lineItemType,
priority,
costPerUnit,
valueCostPerUnit,
costType,
discountType,
discount,
contractedUnitsBought,
creativePlaceholders,
activityAssociations,
environmentType,
companionDeliveryOption,
creativePersistenceType,
allowOverbook,
skipInventoryCheck,
skipCrossSellingRuleWarningChecks,
reserveAtCreation,
stats,
deliveryIndicator,
deliveryData,
budget,
status,
reservationStatus,
isArchived,
webPropertyCode,
appliedLabels,
effectiveAppliedLabels,
disableSameAdvertiserCompetitiveExclusion,
lastModifiedByApp,
notes,
lastModifiedDateTime,
creationDateTime,
isPrioritizedPreferredDealsEnabled,
adExchangeAuctionOpeningPriority,
customFieldValues,
isSetTopBoxEnabled,
isMissingCreatives,
setTopBoxDisplayInfo,
videoMaxDuration,
primaryGoal,
secondaryGoals,
grpSettings);
this.targeting = targeting;
this.creativeTargetings = creativeTargetings;
}
/**
* Gets the targeting value for this LineItem.
*
* @return targeting * Contains the targeting criteria for the ad campaign. This attribute
* is
* required.
*/
public com.google.api.ads.dfp.axis.v201511.Targeting getTargeting() {
return targeting;
}
/**
* Sets the targeting value for this LineItem.
*
* @param targeting * Contains the targeting criteria for the ad campaign. This attribute
* is
* required.
*/
public void setTargeting(com.google.api.ads.dfp.axis.v201511.Targeting targeting) {
this.targeting = targeting;
}
/**
* Gets the creativeTargetings value for this LineItem.
*
* @return creativeTargetings * A list of {@link CreativeTargeting} objects that can be used
* to specify creative level
* targeting for this line item. Creative level targeting
* is specified in a creative placeholder's
* {@link CreativePlaceholder#targetingName} field
* by referencing the creative targeting's
* {@link CreativeTargeting#name name}. It also needs
* to be re-specified in the
* {@link LineItemCreativeAssociation#targetingName}
* field when associating a line item with a
* creative that fits into that placeholder.
*/
public com.google.api.ads.dfp.axis.v201511.CreativeTargeting[] getCreativeTargetings() {
return creativeTargetings;
}
/**
* Sets the creativeTargetings value for this LineItem.
*
* @param creativeTargetings * A list of {@link CreativeTargeting} objects that can be used
* to specify creative level
* targeting for this line item. Creative level targeting
* is specified in a creative placeholder's
* {@link CreativePlaceholder#targetingName} field
* by referencing the creative targeting's
* {@link CreativeTargeting#name name}. It also needs
* to be re-specified in the
* {@link LineItemCreativeAssociation#targetingName}
* field when associating a line item with a
* creative that fits into that placeholder.
*/
public void setCreativeTargetings(com.google.api.ads.dfp.axis.v201511.CreativeTargeting[] creativeTargetings) {
this.creativeTargetings = creativeTargetings;
}
public com.google.api.ads.dfp.axis.v201511.CreativeTargeting getCreativeTargetings(int i) {
return this.creativeTargetings[i];
}
public void setCreativeTargetings(int i, com.google.api.ads.dfp.axis.v201511.CreativeTargeting _value) {
this.creativeTargetings[i] = _value;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof LineItem)) return false;
LineItem other = (LineItem) 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.targeting==null && other.getTargeting()==null) ||
(this.targeting!=null &&
this.targeting.equals(other.getTargeting()))) &&
((this.creativeTargetings==null && other.getCreativeTargetings()==null) ||
(this.creativeTargetings!=null &&
java.util.Arrays.equals(this.creativeTargetings, other.getCreativeTargetings())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
if (getTargeting() != null) {
_hashCode += getTargeting().hashCode();
}
if (getCreativeTargetings() != null) {
for (int i=0;
i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy