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

com.google.api.ads.admanager.axis.v202308.LineItem Maven / Gradle / Ivy

There is a newer version: 5.6.0
Show newest version
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

/**
 * 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.admanager.axis.v202308;


/**
 * {@link 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.admanager.axis.v202308.LineItemSummary  implements java.io.Serializable {
    /* Contains the targeting criteria for the ad campaign. This attribute
     * is required. */
    private com.google.api.ads.admanager.axis.v202308.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.admanager.axis.v202308.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.admanager.axis.v202308.DateTime startDateTime,
           com.google.api.ads.admanager.axis.v202308.StartDateTimeType startDateTimeType,
           com.google.api.ads.admanager.axis.v202308.DateTime endDateTime,
           java.lang.Integer autoExtensionDays,
           java.lang.Boolean unlimitedEndDateTime,
           com.google.api.ads.admanager.axis.v202308.CreativeRotationType creativeRotationType,
           com.google.api.ads.admanager.axis.v202308.DeliveryRateType deliveryRateType,
           com.google.api.ads.admanager.axis.v202308.DeliveryForecastSource deliveryForecastSource,
           com.google.api.ads.admanager.axis.v202308.CustomPacingCurve customPacingCurve,
           com.google.api.ads.admanager.axis.v202308.RoadblockingType roadblockingType,
           com.google.api.ads.admanager.axis.v202308.SkippableAdType skippableAdType,
           com.google.api.ads.admanager.axis.v202308.FrequencyCap[] frequencyCaps,
           com.google.api.ads.admanager.axis.v202308.LineItemType lineItemType,
           java.lang.Integer priority,
           com.google.api.ads.admanager.axis.v202308.Money costPerUnit,
           com.google.api.ads.admanager.axis.v202308.Money valueCostPerUnit,
           com.google.api.ads.admanager.axis.v202308.CostType costType,
           com.google.api.ads.admanager.axis.v202308.LineItemDiscountType discountType,
           java.lang.Double discount,
           java.lang.Long contractedUnitsBought,
           com.google.api.ads.admanager.axis.v202308.CreativePlaceholder[] creativePlaceholders,
           com.google.api.ads.admanager.axis.v202308.LineItemActivityAssociation[] activityAssociations,
           com.google.api.ads.admanager.axis.v202308.EnvironmentType environmentType,
           com.google.api.ads.admanager.axis.v202308.AllowedFormats[] allowedFormats,
           com.google.api.ads.admanager.axis.v202308.CompanionDeliveryOption companionDeliveryOption,
           java.lang.Boolean allowOverbook,
           java.lang.Boolean skipInventoryCheck,
           java.lang.Boolean skipCrossSellingRuleWarningChecks,
           java.lang.Boolean reserveAtCreation,
           com.google.api.ads.admanager.axis.v202308.Stats stats,
           com.google.api.ads.admanager.axis.v202308.DeliveryIndicator deliveryIndicator,
           com.google.api.ads.admanager.axis.v202308.DeliveryData deliveryData,
           com.google.api.ads.admanager.axis.v202308.Money budget,
           com.google.api.ads.admanager.axis.v202308.ComputedStatus status,
           com.google.api.ads.admanager.axis.v202308.LineItemSummaryReservationStatus reservationStatus,
           java.lang.Boolean isArchived,
           java.lang.String webPropertyCode,
           com.google.api.ads.admanager.axis.v202308.AppliedLabel[] appliedLabels,
           com.google.api.ads.admanager.axis.v202308.AppliedLabel[] effectiveAppliedLabels,
           java.lang.Boolean disableSameAdvertiserCompetitiveExclusion,
           java.lang.String lastModifiedByApp,
           java.lang.String notes,
           com.google.api.ads.admanager.axis.v202308.CompetitiveConstraintScope competitiveConstraintScope,
           com.google.api.ads.admanager.axis.v202308.DateTime lastModifiedDateTime,
           com.google.api.ads.admanager.axis.v202308.DateTime creationDateTime,
           com.google.api.ads.admanager.axis.v202308.BaseCustomFieldValue[] customFieldValues,
           java.lang.Boolean isMissingCreatives,
           com.google.api.ads.admanager.axis.v202308.ProgrammaticCreativeSource programmaticCreativeSource,
           com.google.api.ads.admanager.axis.v202308.ThirdPartyMeasurementSettings thirdPartyMeasurementSettings,
           java.lang.Boolean youtubeKidsRestricted,
           java.lang.Long videoMaxDuration,
           com.google.api.ads.admanager.axis.v202308.Goal primaryGoal,
           com.google.api.ads.admanager.axis.v202308.Goal[] secondaryGoals,
           com.google.api.ads.admanager.axis.v202308.GrpSettings grpSettings,
           com.google.api.ads.admanager.axis.v202308.LineItemDealInfoDto dealInfo,
           long[] viewabilityProviderCompanyIds,
           com.google.api.ads.admanager.axis.v202308.ChildContentEligibility childContentEligibility,
           java.lang.String customVastExtension,
           com.google.api.ads.admanager.axis.v202308.Targeting targeting,
           com.google.api.ads.admanager.axis.v202308.CreativeTargeting[] creativeTargetings) {
        super(
            orderId,
            id,
            name,
            externalId,
            orderName,
            startDateTime,
            startDateTimeType,
            endDateTime,
            autoExtensionDays,
            unlimitedEndDateTime,
            creativeRotationType,
            deliveryRateType,
            deliveryForecastSource,
            customPacingCurve,
            roadblockingType,
            skippableAdType,
            frequencyCaps,
            lineItemType,
            priority,
            costPerUnit,
            valueCostPerUnit,
            costType,
            discountType,
            discount,
            contractedUnitsBought,
            creativePlaceholders,
            activityAssociations,
            environmentType,
            allowedFormats,
            companionDeliveryOption,
            allowOverbook,
            skipInventoryCheck,
            skipCrossSellingRuleWarningChecks,
            reserveAtCreation,
            stats,
            deliveryIndicator,
            deliveryData,
            budget,
            status,
            reservationStatus,
            isArchived,
            webPropertyCode,
            appliedLabels,
            effectiveAppliedLabels,
            disableSameAdvertiserCompetitiveExclusion,
            lastModifiedByApp,
            notes,
            competitiveConstraintScope,
            lastModifiedDateTime,
            creationDateTime,
            customFieldValues,
            isMissingCreatives,
            programmaticCreativeSource,
            thirdPartyMeasurementSettings,
            youtubeKidsRestricted,
            videoMaxDuration,
            primaryGoal,
            secondaryGoals,
            grpSettings,
            dealInfo,
            viewabilityProviderCompanyIds,
            childContentEligibility,
            customVastExtension);
        this.targeting = targeting;
        this.creativeTargetings = creativeTargetings;
    }

    @Override
    public String toString() {
        return com.google.common.base.MoreObjects.toStringHelper(this.getClass())
            .omitNullValues()
            .add("activityAssociations", getActivityAssociations())
            .add("allowOverbook", getAllowOverbook())
            .add("allowedFormats", getAllowedFormats())
            .add("appliedLabels", getAppliedLabels())
            .add("autoExtensionDays", getAutoExtensionDays())
            .add("budget", getBudget())
            .add("childContentEligibility", getChildContentEligibility())
            .add("companionDeliveryOption", getCompanionDeliveryOption())
            .add("competitiveConstraintScope", getCompetitiveConstraintScope())
            .add("contractedUnitsBought", getContractedUnitsBought())
            .add("costPerUnit", getCostPerUnit())
            .add("costType", getCostType())
            .add("creationDateTime", getCreationDateTime())
            .add("creativePlaceholders", getCreativePlaceholders())
            .add("creativeRotationType", getCreativeRotationType())
            // Only include length of creativeTargetings to avoid overly verbose output
            .add("creativeTargetings.length", getCreativeTargetings() == null ? 0 : getCreativeTargetings().length)
            .add("customFieldValues", getCustomFieldValues())
            .add("customPacingCurve", getCustomPacingCurve())
            .add("customVastExtension", getCustomVastExtension())
            .add("dealInfo", getDealInfo())
            .add("deliveryData", getDeliveryData())
            .add("deliveryForecastSource", getDeliveryForecastSource())
            .add("deliveryIndicator", getDeliveryIndicator())
            .add("deliveryRateType", getDeliveryRateType())
            .add("disableSameAdvertiserCompetitiveExclusion", getDisableSameAdvertiserCompetitiveExclusion())
            .add("discount", getDiscount())
            .add("discountType", getDiscountType())
            .add("effectiveAppliedLabels", getEffectiveAppliedLabels())
            .add("endDateTime", getEndDateTime())
            .add("environmentType", getEnvironmentType())
            .add("externalId", getExternalId())
            .add("frequencyCaps", getFrequencyCaps())
            .add("grpSettings", getGrpSettings())
            .add("id", getId())
            .add("isArchived", getIsArchived())
            .add("isMissingCreatives", getIsMissingCreatives())
            .add("lastModifiedByApp", getLastModifiedByApp())
            .add("lastModifiedDateTime", getLastModifiedDateTime())
            .add("lineItemType", getLineItemType())
            .add("name", getName())
            .add("notes", getNotes())
            .add("orderId", getOrderId())
            .add("orderName", getOrderName())
            .add("primaryGoal", getPrimaryGoal())
            .add("priority", getPriority())
            .add("programmaticCreativeSource", getProgrammaticCreativeSource())
            .add("reservationStatus", getReservationStatus())
            .add("reserveAtCreation", getReserveAtCreation())
            .add("roadblockingType", getRoadblockingType())
            .add("secondaryGoals", getSecondaryGoals())
            .add("skipCrossSellingRuleWarningChecks", getSkipCrossSellingRuleWarningChecks())
            .add("skipInventoryCheck", getSkipInventoryCheck())
            .add("skippableAdType", getSkippableAdType())
            .add("startDateTime", getStartDateTime())
            .add("startDateTimeType", getStartDateTimeType())
            .add("stats", getStats())
            .add("status", getStatus())
            // Exclude targeting to avoid overly verbose output
            .add("thirdPartyMeasurementSettings", getThirdPartyMeasurementSettings())
            .add("unlimitedEndDateTime", getUnlimitedEndDateTime())
            .add("valueCostPerUnit", getValueCostPerUnit())
            .add("videoMaxDuration", getVideoMaxDuration())
            .add("viewabilityProviderCompanyIds", getViewabilityProviderCompanyIds())
            .add("webPropertyCode", getWebPropertyCode())
            .add("youtubeKidsRestricted", getYoutubeKidsRestricted())
            .toString();
    }

    /**
     * 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.admanager.axis.v202308.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.admanager.axis.v202308.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.admanager.axis.v202308.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.admanager.axis.v202308.CreativeTargeting[] creativeTargetings) {
        this.creativeTargetings = creativeTargetings;
    }

    public com.google.api.ads.admanager.axis.v202308.CreativeTargeting getCreativeTargetings(int i) {
        return this.creativeTargetings[i];
    }

    public void setCreativeTargetings(int i, com.google.api.ads.admanager.axis.v202308.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 - 2024 Weber Informatics LLC | Privacy Policy