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

com.google.api.ads.admanager.axis.v202102.Proposal Maven / Gradle / Ivy

// Copyright 2021 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.

/**
 * Proposal.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.v202102;


/**
 * A {@code Proposal} represents an agreement between an interactive
 * advertising seller and a buyer that specifies the details of an
 *             advertising campaign.
 */
public class Proposal  implements java.io.Serializable {
    /* The unique ID of the {@code Proposal}.
     *                 This attribute is read-only. */
    private java.lang.Long id;

    /* Flag that specifies whether this {@code Proposal} is for programmatic
     * deals.
     *                 This value is default to {@code false}. */
    private java.lang.Boolean isProgrammatic;

    /* The unique ID of corresponding {@link Order}.
     *                 This will be {@code null} if the {@code Proposal}
     * has not been pushed to Ad Manager.
     *                 This attribute is read-only. */
    private java.lang.Long dfpOrderId;

    /* The name of the {@code Proposal}. This value has a maximum
     * length of 255 characters. This value
     *                 is copied to {@link Order#name} when the proposal
     * turns into an order.
     *                 This attribute can be configured as editable after
     * the proposal has been submitted.
     *                 Please check with your network administrator for editable
     * fields configuration.
     *                 This attribute is
     * required. */
    private java.lang.String name;

    /* The date and time at which the order and line items associated
     * with
     *                 the {@code Proposal} are eligible to begin serving.
     * This attribute
     *                 is derived from the proposal line item of the proposal
     * which has the earliest
     *                 {@link ProposalLineItem#startDateTime}. This attribute
     * will be null,
     *                 if this proposal has no related line items, or none
     * of its line items have a start time.
     *                 This attribute is read-only. */
    private com.google.api.ads.admanager.axis.v202102.DateTime startDateTime;

    /* The date and time at which the order and line items associated
     * with
     *                 the {@code Proposal} stop being served. This attribute
     * is derived from the proposal line item of the proposal which has the
     * latest {@link ProposalLineItem#endDateTime}. This attribute will be
     * null,
     *                 if this proposal has no related line items, or none
     * of its line items have an end time.
     *                 This attribute is read-only. */
    private com.google.api.ads.admanager.axis.v202102.DateTime endDateTime;

    /* The status of the {@code Proposal}.
     *                 This attribute is read-only. */
    private com.google.api.ads.admanager.axis.v202102.ProposalStatus status;

    /* The archival status of the {@code Proposal}.
     *                 This attribute is read-only. */
    private java.lang.Boolean isArchived;

    /* The advertiser, to which this {@code Proposal} belongs, and
     * a set of
     *                 {@link Contact} objects associated with the advertiser.
     * The
     *                 {@link ProposalCompanyAssociation#type} of this attribute
     * should be
     *                 {@link ProposalCompanyAssociationType#ADVERTISER}.
     * This attribute is
     *                 required when the proposal turns into an order, and
     * its
     *                 {@link ProposalCompanyAssociation#companyId} will
     * be copied to
     *                 {@link Order#advertiserId}.
     *                 This attribute becomes readonly once the {@code Proposal}
     * has been pushed. */
    private com.google.api.ads.admanager.axis.v202102.ProposalCompanyAssociation advertiser;

    /* List of agencies and the set of {@link Contact} objects associated
     * with each agency.
     *                 This attribute is optional. A {@code Proposal} only
     * has at most one
     *                 {@link Company} with {@link ProposalCompanyAssociationType#PRIMARY_AGENCY}
     * type,
     *                 but a {@link Company} can appear more than once with
     * different
     *                 {@link ProposalCompanyAssociationType} values. If
     * primary
     *                 agency exists, its {@link ProposalCompanyAssociation#companyId}
     * will be copied to
     *                 {@link Order#agencyId} when the proposal turns into
     * an order. */
    private com.google.api.ads.admanager.axis.v202102.ProposalCompanyAssociation[] agencies;

    /* Provides any additional notes that may annotate the {@code
     * Proposal}. This
     *                 attribute is optional and has a maximum length of
     * 65,535 characters.
     *                 This attribute can be configured as editable after
     * the proposal has been submitted.
     *                 Please check with your network administrator for editable
     * fields configuration. */
    private java.lang.String internalNotes;

    /* The primary salesperson who brokered the transaction with the
     * {@link #advertiser}.
     *                 This attribute is required when the proposal turns
     * into an order.
     *                 This attribute can be configured as editable after
     * the proposal has been submitted.
     *                 Please check with your network administrator for editable
     * fields configuration. */
    private com.google.api.ads.admanager.axis.v202102.SalespersonSplit primarySalesperson;

    /* List of unique IDs of {@link User} objects who are the sales
     * planners of
     *                 the {@code Proposal}. This attribute is optional.
     * A proposal could have
     *                 8 sales planners at most.
     *                 This attribute can be configured as editable after
     * the proposal has been submitted.
     *                 Please check with your network administrator for editable
     * fields configuration. */
    private long[] salesPlannerIds;

    /* The unique ID of the {@link User} who is primary trafficker
     * and is responsible for
     *                 trafficking the {@code Proposal}. This attribute is
     * required when the proposal
     *                 turns into an order, and will be copied to {@link
     * Order#primaryTraffickerId} .
     *                 This attribute can be configured as editable after
     * the proposal has been submitted.
     *                 Please check with your network administrator for editable
     * fields configuration. */
    private java.lang.Long primaryTraffickerId;

    /* {@link User users} who are the seller's contacts.
     *                 This attribute
     * is applicable when:
  • using programmatic guaranteed, using sales * management.
  • using programmatic guaranteed, not using sales * management.
  • using preferred deals, not using sales management.
*/ private long[] sellerContactIds; /* The IDs of all teams that the {@code Proposal} is on directly. * This attribute is optional. * This attribute can be configured as editable after * the proposal has been submitted. * Please check with your network administrator for editable * fields configuration. */ private long[] appliedTeamIds; /* The values of the custom fields associated with the {@code * Proposal}. * This attribute is optional. * This attribute can be configured as editable after * the proposal has been submitted. * Please check with your network administrator for editable * fields configuration. */ private com.google.api.ads.admanager.axis.v202102.BaseCustomFieldValue[] customFieldValues; /* The set of labels applied directly to the {@code Proposal}. * This attribute is optional. */ private com.google.api.ads.admanager.axis.v202102.AppliedLabel[] appliedLabels; /* Contains the set of labels applied directly to the proposal * as well as those * inherited ones. If a label has been negated, only * the negated label * is returned. * This attribute is read-only. */ private com.google.api.ads.admanager.axis.v202102.AppliedLabel[] effectiveAppliedLabels; /* The currency code of this {@code Proposal}. This attribute * is optional and defaults to * network's currency code. */ private java.lang.String currencyCode; /* The exchange rate from the {@link #currencyCode} to the * {@link Network#currencyCode network's currency}. The * value is stored as the exchange rate times * 10,000,000,000 truncated to a long. This attribute * is assigned by Google when * first created or updated with {@link #refreshExchangeRate} * set to {@code true}. This attribute * is ignored if the feature is not enabled. * This attribute is read-only. */ private java.lang.Long exchangeRate; /* Set this field to {@code true} to update the {@link #exchangeRate} * to the latest exchange rate * when updating the proposal. This attribute is optional * and defaults to {@code false}. This * attribute is ignored if the feature is not enabled. */ private java.lang.Boolean refreshExchangeRate; /* Indicates whether the proposal has been sold, i.e., corresponds * to whether the status of an * {@link Order} is {@link OrderStatus#APPROVED} or {@link * OrderStatus#PAUSED}. * This attribute is read-only. */ private java.lang.Boolean isSold; /* The date and time this {@code Proposal} was last modified. * This attribute is read-only. */ private com.google.api.ads.admanager.axis.v202102.DateTime lastModifiedDateTime; /* The marketplace info of this proposal if it has a corresponding * order in Marketplace. * This attribute * is applicable when:
  • using programmatic guaranteed, using sales * management.
  • using programmatic guaranteed, not using sales * management.
*/ private com.google.api.ads.admanager.axis.v202102.ProposalMarketplaceInfo marketplaceInfo; /* The buyer RFP associated with this {@code Proposal}, which * is optional. This field will be null * if the proposal is not initiated from RFP. * This attribute * is applicable when:
  • using programmatic guaranteed, not using * sales management.
  • using preferred deals, not using sales management.
*/ private com.google.api.ads.admanager.axis.v202102.BuyerRfp buyerRfp; /* Whether a {@link Proposal} contains a {@link BuyerRfp} field. * If this field is true, it * indicates that the {@link Proposal} in question orignated * from a buyer. * This attribute * is applicable when:
  • using programmatic guaranteed, not using * sales management.
  • using preferred deals, not using sales management.
*/ private java.lang.Boolean hasBuyerRfp; public Proposal() { } public Proposal( java.lang.Long id, java.lang.Boolean isProgrammatic, java.lang.Long dfpOrderId, java.lang.String name, com.google.api.ads.admanager.axis.v202102.DateTime startDateTime, com.google.api.ads.admanager.axis.v202102.DateTime endDateTime, com.google.api.ads.admanager.axis.v202102.ProposalStatus status, java.lang.Boolean isArchived, com.google.api.ads.admanager.axis.v202102.ProposalCompanyAssociation advertiser, com.google.api.ads.admanager.axis.v202102.ProposalCompanyAssociation[] agencies, java.lang.String internalNotes, com.google.api.ads.admanager.axis.v202102.SalespersonSplit primarySalesperson, long[] salesPlannerIds, java.lang.Long primaryTraffickerId, long[] sellerContactIds, long[] appliedTeamIds, com.google.api.ads.admanager.axis.v202102.BaseCustomFieldValue[] customFieldValues, com.google.api.ads.admanager.axis.v202102.AppliedLabel[] appliedLabels, com.google.api.ads.admanager.axis.v202102.AppliedLabel[] effectiveAppliedLabels, java.lang.String currencyCode, java.lang.Long exchangeRate, java.lang.Boolean refreshExchangeRate, java.lang.Boolean isSold, com.google.api.ads.admanager.axis.v202102.DateTime lastModifiedDateTime, com.google.api.ads.admanager.axis.v202102.ProposalMarketplaceInfo marketplaceInfo, com.google.api.ads.admanager.axis.v202102.BuyerRfp buyerRfp, java.lang.Boolean hasBuyerRfp) { this.id = id; this.isProgrammatic = isProgrammatic; this.dfpOrderId = dfpOrderId; this.name = name; this.startDateTime = startDateTime; this.endDateTime = endDateTime; this.status = status; this.isArchived = isArchived; this.advertiser = advertiser; this.agencies = agencies; this.internalNotes = internalNotes; this.primarySalesperson = primarySalesperson; this.salesPlannerIds = salesPlannerIds; this.primaryTraffickerId = primaryTraffickerId; this.sellerContactIds = sellerContactIds; this.appliedTeamIds = appliedTeamIds; this.customFieldValues = customFieldValues; this.appliedLabels = appliedLabels; this.effectiveAppliedLabels = effectiveAppliedLabels; this.currencyCode = currencyCode; this.exchangeRate = exchangeRate; this.refreshExchangeRate = refreshExchangeRate; this.isSold = isSold; this.lastModifiedDateTime = lastModifiedDateTime; this.marketplaceInfo = marketplaceInfo; this.buyerRfp = buyerRfp; this.hasBuyerRfp = hasBuyerRfp; } @Override public String toString() { return com.google.common.base.MoreObjects.toStringHelper(this.getClass()) .omitNullValues() .add("advertiser", getAdvertiser()) .add("agencies", getAgencies()) .add("appliedLabels", getAppliedLabels()) .add("appliedTeamIds", getAppliedTeamIds()) .add("buyerRfp", getBuyerRfp()) .add("currencyCode", getCurrencyCode()) .add("customFieldValues", getCustomFieldValues()) .add("dfpOrderId", getDfpOrderId()) .add("effectiveAppliedLabels", getEffectiveAppliedLabels()) .add("endDateTime", getEndDateTime()) .add("exchangeRate", getExchangeRate()) .add("hasBuyerRfp", getHasBuyerRfp()) .add("id", getId()) .add("internalNotes", getInternalNotes()) .add("isArchived", getIsArchived()) .add("isProgrammatic", getIsProgrammatic()) .add("isSold", getIsSold()) .add("lastModifiedDateTime", getLastModifiedDateTime()) .add("marketplaceInfo", getMarketplaceInfo()) .add("name", getName()) .add("primarySalesperson", getPrimarySalesperson()) .add("primaryTraffickerId", getPrimaryTraffickerId()) .add("refreshExchangeRate", getRefreshExchangeRate()) .add("salesPlannerIds", getSalesPlannerIds()) .add("sellerContactIds", getSellerContactIds()) .add("startDateTime", getStartDateTime()) .add("status", getStatus()) .toString(); } /** * Gets the id value for this Proposal. * * @return id * The unique ID of the {@code Proposal}. * This attribute is read-only. */ public java.lang.Long getId() { return id; } /** * Sets the id value for this Proposal. * * @param id * The unique ID of the {@code Proposal}. * This attribute is read-only. */ public void setId(java.lang.Long id) { this.id = id; } /** * Gets the isProgrammatic value for this Proposal. * * @return isProgrammatic * Flag that specifies whether this {@code Proposal} is for programmatic * deals. * This value is default to {@code false}. */ public java.lang.Boolean getIsProgrammatic() { return isProgrammatic; } /** * Sets the isProgrammatic value for this Proposal. * * @param isProgrammatic * Flag that specifies whether this {@code Proposal} is for programmatic * deals. * This value is default to {@code false}. */ public void setIsProgrammatic(java.lang.Boolean isProgrammatic) { this.isProgrammatic = isProgrammatic; } /** * Gets the dfpOrderId value for this Proposal. * * @return dfpOrderId * The unique ID of corresponding {@link Order}. * This will be {@code null} if the {@code Proposal} * has not been pushed to Ad Manager. * This attribute is read-only. */ public java.lang.Long getDfpOrderId() { return dfpOrderId; } /** * Sets the dfpOrderId value for this Proposal. * * @param dfpOrderId * The unique ID of corresponding {@link Order}. * This will be {@code null} if the {@code Proposal} * has not been pushed to Ad Manager. * This attribute is read-only. */ public void setDfpOrderId(java.lang.Long dfpOrderId) { this.dfpOrderId = dfpOrderId; } /** * Gets the name value for this Proposal. * * @return name * The name of the {@code Proposal}. This value has a maximum * length of 255 characters. This value * is copied to {@link Order#name} when the proposal * turns into an order. * This attribute can be configured as editable after * the proposal has been submitted. * Please check with your network administrator for editable * fields configuration. * This attribute is * required. */ public java.lang.String getName() { return name; } /** * Sets the name value for this Proposal. * * @param name * The name of the {@code Proposal}. This value has a maximum * length of 255 characters. This value * is copied to {@link Order#name} when the proposal * turns into an order. * This attribute can be configured as editable after * the proposal has been submitted. * Please check with your network administrator for editable * fields configuration. * This attribute is * required. */ public void setName(java.lang.String name) { this.name = name; } /** * Gets the startDateTime value for this Proposal. * * @return startDateTime * The date and time at which the order and line items associated * with * the {@code Proposal} are eligible to begin serving. * This attribute * is derived from the proposal line item of the proposal * which has the earliest * {@link ProposalLineItem#startDateTime}. This attribute * will be null, * if this proposal has no related line items, or none * of its line items have a start time. * This attribute is read-only. */ public com.google.api.ads.admanager.axis.v202102.DateTime getStartDateTime() { return startDateTime; } /** * Sets the startDateTime value for this Proposal. * * @param startDateTime * The date and time at which the order and line items associated * with * the {@code Proposal} are eligible to begin serving. * This attribute * is derived from the proposal line item of the proposal * which has the earliest * {@link ProposalLineItem#startDateTime}. This attribute * will be null, * if this proposal has no related line items, or none * of its line items have a start time. * This attribute is read-only. */ public void setStartDateTime(com.google.api.ads.admanager.axis.v202102.DateTime startDateTime) { this.startDateTime = startDateTime; } /** * Gets the endDateTime value for this Proposal. * * @return endDateTime * The date and time at which the order and line items associated * with * the {@code Proposal} stop being served. This attribute * is derived from the proposal line item of the proposal which has the * latest {@link ProposalLineItem#endDateTime}. This attribute will be * null, * if this proposal has no related line items, or none * of its line items have an end time. * This attribute is read-only. */ public com.google.api.ads.admanager.axis.v202102.DateTime getEndDateTime() { return endDateTime; } /** * Sets the endDateTime value for this Proposal. * * @param endDateTime * The date and time at which the order and line items associated * with * the {@code Proposal} stop being served. This attribute * is derived from the proposal line item of the proposal which has the * latest {@link ProposalLineItem#endDateTime}. This attribute will be * null, * if this proposal has no related line items, or none * of its line items have an end time. * This attribute is read-only. */ public void setEndDateTime(com.google.api.ads.admanager.axis.v202102.DateTime endDateTime) { this.endDateTime = endDateTime; } /** * Gets the status value for this Proposal. * * @return status * The status of the {@code Proposal}. * This attribute is read-only. */ public com.google.api.ads.admanager.axis.v202102.ProposalStatus getStatus() { return status; } /** * Sets the status value for this Proposal. * * @param status * The status of the {@code Proposal}. * This attribute is read-only. */ public void setStatus(com.google.api.ads.admanager.axis.v202102.ProposalStatus status) { this.status = status; } /** * Gets the isArchived value for this Proposal. * * @return isArchived * The archival status of the {@code Proposal}. * This attribute is read-only. */ public java.lang.Boolean getIsArchived() { return isArchived; } /** * Sets the isArchived value for this Proposal. * * @param isArchived * The archival status of the {@code Proposal}. * This attribute is read-only. */ public void setIsArchived(java.lang.Boolean isArchived) { this.isArchived = isArchived; } /** * Gets the advertiser value for this Proposal. * * @return advertiser * The advertiser, to which this {@code Proposal} belongs, and * a set of * {@link Contact} objects associated with the advertiser. * The * {@link ProposalCompanyAssociation#type} of this attribute * should be * {@link ProposalCompanyAssociationType#ADVERTISER}. * This attribute is * required when the proposal turns into an order, and * its * {@link ProposalCompanyAssociation#companyId} will * be copied to * {@link Order#advertiserId}. * This attribute becomes readonly once the {@code Proposal} * has been pushed. */ public com.google.api.ads.admanager.axis.v202102.ProposalCompanyAssociation getAdvertiser() { return advertiser; } /** * Sets the advertiser value for this Proposal. * * @param advertiser * The advertiser, to which this {@code Proposal} belongs, and * a set of * {@link Contact} objects associated with the advertiser. * The * {@link ProposalCompanyAssociation#type} of this attribute * should be * {@link ProposalCompanyAssociationType#ADVERTISER}. * This attribute is * required when the proposal turns into an order, and * its * {@link ProposalCompanyAssociation#companyId} will * be copied to * {@link Order#advertiserId}. * This attribute becomes readonly once the {@code Proposal} * has been pushed. */ public void setAdvertiser(com.google.api.ads.admanager.axis.v202102.ProposalCompanyAssociation advertiser) { this.advertiser = advertiser; } /** * Gets the agencies value for this Proposal. * * @return agencies * List of agencies and the set of {@link Contact} objects associated * with each agency. * This attribute is optional. A {@code Proposal} only * has at most one * {@link Company} with {@link ProposalCompanyAssociationType#PRIMARY_AGENCY} * type, * but a {@link Company} can appear more than once with * different * {@link ProposalCompanyAssociationType} values. If * primary * agency exists, its {@link ProposalCompanyAssociation#companyId} * will be copied to * {@link Order#agencyId} when the proposal turns into * an order. */ public com.google.api.ads.admanager.axis.v202102.ProposalCompanyAssociation[] getAgencies() { return agencies; } /** * Sets the agencies value for this Proposal. * * @param agencies * List of agencies and the set of {@link Contact} objects associated * with each agency. * This attribute is optional. A {@code Proposal} only * has at most one * {@link Company} with {@link ProposalCompanyAssociationType#PRIMARY_AGENCY} * type, * but a {@link Company} can appear more than once with * different * {@link ProposalCompanyAssociationType} values. If * primary * agency exists, its {@link ProposalCompanyAssociation#companyId} * will be copied to * {@link Order#agencyId} when the proposal turns into * an order. */ public void setAgencies(com.google.api.ads.admanager.axis.v202102.ProposalCompanyAssociation[] agencies) { this.agencies = agencies; } public com.google.api.ads.admanager.axis.v202102.ProposalCompanyAssociation getAgencies(int i) { return this.agencies[i]; } public void setAgencies(int i, com.google.api.ads.admanager.axis.v202102.ProposalCompanyAssociation _value) { this.agencies[i] = _value; } /** * Gets the internalNotes value for this Proposal. * * @return internalNotes * Provides any additional notes that may annotate the {@code * Proposal}. This * attribute is optional and has a maximum length of * 65,535 characters. * This attribute can be configured as editable after * the proposal has been submitted. * Please check with your network administrator for editable * fields configuration. */ public java.lang.String getInternalNotes() { return internalNotes; } /** * Sets the internalNotes value for this Proposal. * * @param internalNotes * Provides any additional notes that may annotate the {@code * Proposal}. This * attribute is optional and has a maximum length of * 65,535 characters. * This attribute can be configured as editable after * the proposal has been submitted. * Please check with your network administrator for editable * fields configuration. */ public void setInternalNotes(java.lang.String internalNotes) { this.internalNotes = internalNotes; } /** * Gets the primarySalesperson value for this Proposal. * * @return primarySalesperson * The primary salesperson who brokered the transaction with the * {@link #advertiser}. * This attribute is required when the proposal turns * into an order. * This attribute can be configured as editable after * the proposal has been submitted. * Please check with your network administrator for editable * fields configuration. */ public com.google.api.ads.admanager.axis.v202102.SalespersonSplit getPrimarySalesperson() { return primarySalesperson; } /** * Sets the primarySalesperson value for this Proposal. * * @param primarySalesperson * The primary salesperson who brokered the transaction with the * {@link #advertiser}. * This attribute is required when the proposal turns * into an order. * This attribute can be configured as editable after * the proposal has been submitted. * Please check with your network administrator for editable * fields configuration. */ public void setPrimarySalesperson(com.google.api.ads.admanager.axis.v202102.SalespersonSplit primarySalesperson) { this.primarySalesperson = primarySalesperson; } /** * Gets the salesPlannerIds value for this Proposal. * * @return salesPlannerIds * List of unique IDs of {@link User} objects who are the sales * planners of * the {@code Proposal}. This attribute is optional. * A proposal could have * 8 sales planners at most. * This attribute can be configured as editable after * the proposal has been submitted. * Please check with your network administrator for editable * fields configuration. */ public long[] getSalesPlannerIds() { return salesPlannerIds; } /** * Sets the salesPlannerIds value for this Proposal. * * @param salesPlannerIds * List of unique IDs of {@link User} objects who are the sales * planners of * the {@code Proposal}. This attribute is optional. * A proposal could have * 8 sales planners at most. * This attribute can be configured as editable after * the proposal has been submitted. * Please check with your network administrator for editable * fields configuration. */ public void setSalesPlannerIds(long[] salesPlannerIds) { this.salesPlannerIds = salesPlannerIds; } public long getSalesPlannerIds(int i) { return this.salesPlannerIds[i]; } public void setSalesPlannerIds(int i, long _value) { this.salesPlannerIds[i] = _value; } /** * Gets the primaryTraffickerId value for this Proposal. * * @return primaryTraffickerId * The unique ID of the {@link User} who is primary trafficker * and is responsible for * trafficking the {@code Proposal}. This attribute is * required when the proposal * turns into an order, and will be copied to {@link * Order#primaryTraffickerId} . * This attribute can be configured as editable after * the proposal has been submitted. * Please check with your network administrator for editable * fields configuration. */ public java.lang.Long getPrimaryTraffickerId() { return primaryTraffickerId; } /** * Sets the primaryTraffickerId value for this Proposal. * * @param primaryTraffickerId * The unique ID of the {@link User} who is primary trafficker * and is responsible for * trafficking the {@code Proposal}. This attribute is * required when the proposal * turns into an order, and will be copied to {@link * Order#primaryTraffickerId} . * This attribute can be configured as editable after * the proposal has been submitted. * Please check with your network administrator for editable * fields configuration. */ public void setPrimaryTraffickerId(java.lang.Long primaryTraffickerId) { this.primaryTraffickerId = primaryTraffickerId; } /** * Gets the sellerContactIds value for this Proposal. * * @return sellerContactIds * {@link User users} who are the seller's contacts. * This attribute * is applicable when:
  • using programmatic guaranteed, using sales * management.
  • using programmatic guaranteed, not using sales * management.
  • using preferred deals, not using sales management.
*/ public long[] getSellerContactIds() { return sellerContactIds; } /** * Sets the sellerContactIds value for this Proposal. * * @param sellerContactIds * {@link User users} who are the seller's contacts. * This attribute * is applicable when:
  • using programmatic guaranteed, using sales * management.
  • using programmatic guaranteed, not using sales * management.
  • using preferred deals, not using sales management.
*/ public void setSellerContactIds(long[] sellerContactIds) { this.sellerContactIds = sellerContactIds; } public long getSellerContactIds(int i) { return this.sellerContactIds[i]; } public void setSellerContactIds(int i, long _value) { this.sellerContactIds[i] = _value; } /** * Gets the appliedTeamIds value for this Proposal. * * @return appliedTeamIds * The IDs of all teams that the {@code Proposal} is on directly. * This attribute is optional. * This attribute can be configured as editable after * the proposal has been submitted. * Please check with your network administrator for editable * fields configuration. */ public long[] getAppliedTeamIds() { return appliedTeamIds; } /** * Sets the appliedTeamIds value for this Proposal. * * @param appliedTeamIds * The IDs of all teams that the {@code Proposal} is on directly. * This attribute is optional. * This attribute can be configured as editable after * the proposal has been submitted. * Please check with your network administrator for editable * fields configuration. */ public void setAppliedTeamIds(long[] appliedTeamIds) { this.appliedTeamIds = appliedTeamIds; } public long getAppliedTeamIds(int i) { return this.appliedTeamIds[i]; } public void setAppliedTeamIds(int i, long _value) { this.appliedTeamIds[i] = _value; } /** * Gets the customFieldValues value for this Proposal. * * @return customFieldValues * The values of the custom fields associated with the {@code * Proposal}. * This attribute is optional. * This attribute can be configured as editable after * the proposal has been submitted. * Please check with your network administrator for editable * fields configuration. */ public com.google.api.ads.admanager.axis.v202102.BaseCustomFieldValue[] getCustomFieldValues() { return customFieldValues; } /** * Sets the customFieldValues value for this Proposal. * * @param customFieldValues * The values of the custom fields associated with the {@code * Proposal}. * This attribute is optional. * This attribute can be configured as editable after * the proposal has been submitted. * Please check with your network administrator for editable * fields configuration. */ public void setCustomFieldValues(com.google.api.ads.admanager.axis.v202102.BaseCustomFieldValue[] customFieldValues) { this.customFieldValues = customFieldValues; } public com.google.api.ads.admanager.axis.v202102.BaseCustomFieldValue getCustomFieldValues(int i) { return this.customFieldValues[i]; } public void setCustomFieldValues(int i, com.google.api.ads.admanager.axis.v202102.BaseCustomFieldValue _value) { this.customFieldValues[i] = _value; } /** * Gets the appliedLabels value for this Proposal. * * @return appliedLabels * The set of labels applied directly to the {@code Proposal}. * This attribute is optional. */ public com.google.api.ads.admanager.axis.v202102.AppliedLabel[] getAppliedLabels() { return appliedLabels; } /** * Sets the appliedLabels value for this Proposal. * * @param appliedLabels * The set of labels applied directly to the {@code Proposal}. * This attribute is optional. */ public void setAppliedLabels(com.google.api.ads.admanager.axis.v202102.AppliedLabel[] appliedLabels) { this.appliedLabels = appliedLabels; } public com.google.api.ads.admanager.axis.v202102.AppliedLabel getAppliedLabels(int i) { return this.appliedLabels[i]; } public void setAppliedLabels(int i, com.google.api.ads.admanager.axis.v202102.AppliedLabel _value) { this.appliedLabels[i] = _value; } /** * Gets the effectiveAppliedLabels value for this Proposal. * * @return effectiveAppliedLabels * Contains the set of labels applied directly to the proposal * as well as those * inherited ones. If a label has been negated, only * the negated label * is returned. * This attribute is read-only. */ public com.google.api.ads.admanager.axis.v202102.AppliedLabel[] getEffectiveAppliedLabels() { return effectiveAppliedLabels; } /** * Sets the effectiveAppliedLabels value for this Proposal. * * @param effectiveAppliedLabels * Contains the set of labels applied directly to the proposal * as well as those * inherited ones. If a label has been negated, only * the negated label * is returned. * This attribute is read-only. */ public void setEffectiveAppliedLabels(com.google.api.ads.admanager.axis.v202102.AppliedLabel[] effectiveAppliedLabels) { this.effectiveAppliedLabels = effectiveAppliedLabels; } public com.google.api.ads.admanager.axis.v202102.AppliedLabel getEffectiveAppliedLabels(int i) { return this.effectiveAppliedLabels[i]; } public void setEffectiveAppliedLabels(int i, com.google.api.ads.admanager.axis.v202102.AppliedLabel _value) { this.effectiveAppliedLabels[i] = _value; } /** * Gets the currencyCode value for this Proposal. * * @return currencyCode * The currency code of this {@code Proposal}. This attribute * is optional and defaults to * network's currency code. */ public java.lang.String getCurrencyCode() { return currencyCode; } /** * Sets the currencyCode value for this Proposal. * * @param currencyCode * The currency code of this {@code Proposal}. This attribute * is optional and defaults to * network's currency code. */ public void setCurrencyCode(java.lang.String currencyCode) { this.currencyCode = currencyCode; } /** * Gets the exchangeRate value for this Proposal. * * @return exchangeRate * The exchange rate from the {@link #currencyCode} to the * {@link Network#currencyCode network's currency}. The * value is stored as the exchange rate times * 10,000,000,000 truncated to a long. This attribute * is assigned by Google when * first created or updated with {@link #refreshExchangeRate} * set to {@code true}. This attribute * is ignored if the feature is not enabled. * This attribute is read-only. */ public java.lang.Long getExchangeRate() { return exchangeRate; } /** * Sets the exchangeRate value for this Proposal. * * @param exchangeRate * The exchange rate from the {@link #currencyCode} to the * {@link Network#currencyCode network's currency}. The * value is stored as the exchange rate times * 10,000,000,000 truncated to a long. This attribute * is assigned by Google when * first created or updated with {@link #refreshExchangeRate} * set to {@code true}. This attribute * is ignored if the feature is not enabled. * This attribute is read-only. */ public void setExchangeRate(java.lang.Long exchangeRate) { this.exchangeRate = exchangeRate; } /** * Gets the refreshExchangeRate value for this Proposal. * * @return refreshExchangeRate * Set this field to {@code true} to update the {@link #exchangeRate} * to the latest exchange rate * when updating the proposal. This attribute is optional * and defaults to {@code false}. This * attribute is ignored if the feature is not enabled. */ public java.lang.Boolean getRefreshExchangeRate() { return refreshExchangeRate; } /** * Sets the refreshExchangeRate value for this Proposal. * * @param refreshExchangeRate * Set this field to {@code true} to update the {@link #exchangeRate} * to the latest exchange rate * when updating the proposal. This attribute is optional * and defaults to {@code false}. This * attribute is ignored if the feature is not enabled. */ public void setRefreshExchangeRate(java.lang.Boolean refreshExchangeRate) { this.refreshExchangeRate = refreshExchangeRate; } /** * Gets the isSold value for this Proposal. * * @return isSold * Indicates whether the proposal has been sold, i.e., corresponds * to whether the status of an * {@link Order} is {@link OrderStatus#APPROVED} or {@link * OrderStatus#PAUSED}. * This attribute is read-only. */ public java.lang.Boolean getIsSold() { return isSold; } /** * Sets the isSold value for this Proposal. * * @param isSold * Indicates whether the proposal has been sold, i.e., corresponds * to whether the status of an * {@link Order} is {@link OrderStatus#APPROVED} or {@link * OrderStatus#PAUSED}. * This attribute is read-only. */ public void setIsSold(java.lang.Boolean isSold) { this.isSold = isSold; } /** * Gets the lastModifiedDateTime value for this Proposal. * * @return lastModifiedDateTime * The date and time this {@code Proposal} was last modified. * This attribute is read-only. */ public com.google.api.ads.admanager.axis.v202102.DateTime getLastModifiedDateTime() { return lastModifiedDateTime; } /** * Sets the lastModifiedDateTime value for this Proposal. * * @param lastModifiedDateTime * The date and time this {@code Proposal} was last modified. * This attribute is read-only. */ public void setLastModifiedDateTime(com.google.api.ads.admanager.axis.v202102.DateTime lastModifiedDateTime) { this.lastModifiedDateTime = lastModifiedDateTime; } /** * Gets the marketplaceInfo value for this Proposal. * * @return marketplaceInfo * The marketplace info of this proposal if it has a corresponding * order in Marketplace. * This attribute * is applicable when:
  • using programmatic guaranteed, using sales * management.
  • using programmatic guaranteed, not using sales * management.
*/ public com.google.api.ads.admanager.axis.v202102.ProposalMarketplaceInfo getMarketplaceInfo() { return marketplaceInfo; } /** * Sets the marketplaceInfo value for this Proposal. * * @param marketplaceInfo * The marketplace info of this proposal if it has a corresponding * order in Marketplace. * This attribute * is applicable when:
  • using programmatic guaranteed, using sales * management.
  • using programmatic guaranteed, not using sales * management.
*/ public void setMarketplaceInfo(com.google.api.ads.admanager.axis.v202102.ProposalMarketplaceInfo marketplaceInfo) { this.marketplaceInfo = marketplaceInfo; } /** * Gets the buyerRfp value for this Proposal. * * @return buyerRfp * The buyer RFP associated with this {@code Proposal}, which * is optional. This field will be null * if the proposal is not initiated from RFP. * This attribute * is applicable when:
  • using programmatic guaranteed, not using * sales management.
  • using preferred deals, not using sales management.
*/ public com.google.api.ads.admanager.axis.v202102.BuyerRfp getBuyerRfp() { return buyerRfp; } /** * Sets the buyerRfp value for this Proposal. * * @param buyerRfp * The buyer RFP associated with this {@code Proposal}, which * is optional. This field will be null * if the proposal is not initiated from RFP. * This attribute * is applicable when:
  • using programmatic guaranteed, not using * sales management.
  • using preferred deals, not using sales management.
*/ public void setBuyerRfp(com.google.api.ads.admanager.axis.v202102.BuyerRfp buyerRfp) { this.buyerRfp = buyerRfp; } /** * Gets the hasBuyerRfp value for this Proposal. * * @return hasBuyerRfp * Whether a {@link Proposal} contains a {@link BuyerRfp} field. * If this field is true, it * indicates that the {@link Proposal} in question orignated * from a buyer. * This attribute * is applicable when:
  • using programmatic guaranteed, not using * sales management.
  • using preferred deals, not using sales management.
*/ public java.lang.Boolean getHasBuyerRfp() { return hasBuyerRfp; } /** * Sets the hasBuyerRfp value for this Proposal. * * @param hasBuyerRfp * Whether a {@link Proposal} contains a {@link BuyerRfp} field. * If this field is true, it * indicates that the {@link Proposal} in question orignated * from a buyer. * This attribute * is applicable when:
  • using programmatic guaranteed, not using * sales management.
  • using preferred deals, not using sales management.
*/ public void setHasBuyerRfp(java.lang.Boolean hasBuyerRfp) { this.hasBuyerRfp = hasBuyerRfp; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof Proposal)) return false; Proposal other = (Proposal) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.id==null && other.getId()==null) || (this.id!=null && this.id.equals(other.getId()))) && ((this.isProgrammatic==null && other.getIsProgrammatic()==null) || (this.isProgrammatic!=null && this.isProgrammatic.equals(other.getIsProgrammatic()))) && ((this.dfpOrderId==null && other.getDfpOrderId()==null) || (this.dfpOrderId!=null && this.dfpOrderId.equals(other.getDfpOrderId()))) && ((this.name==null && other.getName()==null) || (this.name!=null && this.name.equals(other.getName()))) && ((this.startDateTime==null && other.getStartDateTime()==null) || (this.startDateTime!=null && this.startDateTime.equals(other.getStartDateTime()))) && ((this.endDateTime==null && other.getEndDateTime()==null) || (this.endDateTime!=null && this.endDateTime.equals(other.getEndDateTime()))) && ((this.status==null && other.getStatus()==null) || (this.status!=null && this.status.equals(other.getStatus()))) && ((this.isArchived==null && other.getIsArchived()==null) || (this.isArchived!=null && this.isArchived.equals(other.getIsArchived()))) && ((this.advertiser==null && other.getAdvertiser()==null) || (this.advertiser!=null && this.advertiser.equals(other.getAdvertiser()))) && ((this.agencies==null && other.getAgencies()==null) || (this.agencies!=null && java.util.Arrays.equals(this.agencies, other.getAgencies()))) && ((this.internalNotes==null && other.getInternalNotes()==null) || (this.internalNotes!=null && this.internalNotes.equals(other.getInternalNotes()))) && ((this.primarySalesperson==null && other.getPrimarySalesperson()==null) || (this.primarySalesperson!=null && this.primarySalesperson.equals(other.getPrimarySalesperson()))) && ((this.salesPlannerIds==null && other.getSalesPlannerIds()==null) || (this.salesPlannerIds!=null && java.util.Arrays.equals(this.salesPlannerIds, other.getSalesPlannerIds()))) && ((this.primaryTraffickerId==null && other.getPrimaryTraffickerId()==null) || (this.primaryTraffickerId!=null && this.primaryTraffickerId.equals(other.getPrimaryTraffickerId()))) && ((this.sellerContactIds==null && other.getSellerContactIds()==null) || (this.sellerContactIds!=null && java.util.Arrays.equals(this.sellerContactIds, other.getSellerContactIds()))) && ((this.appliedTeamIds==null && other.getAppliedTeamIds()==null) || (this.appliedTeamIds!=null && java.util.Arrays.equals(this.appliedTeamIds, other.getAppliedTeamIds()))) && ((this.customFieldValues==null && other.getCustomFieldValues()==null) || (this.customFieldValues!=null && java.util.Arrays.equals(this.customFieldValues, other.getCustomFieldValues()))) && ((this.appliedLabels==null && other.getAppliedLabels()==null) || (this.appliedLabels!=null && java.util.Arrays.equals(this.appliedLabels, other.getAppliedLabels()))) && ((this.effectiveAppliedLabels==null && other.getEffectiveAppliedLabels()==null) || (this.effectiveAppliedLabels!=null && java.util.Arrays.equals(this.effectiveAppliedLabels, other.getEffectiveAppliedLabels()))) && ((this.currencyCode==null && other.getCurrencyCode()==null) || (this.currencyCode!=null && this.currencyCode.equals(other.getCurrencyCode()))) && ((this.exchangeRate==null && other.getExchangeRate()==null) || (this.exchangeRate!=null && this.exchangeRate.equals(other.getExchangeRate()))) && ((this.refreshExchangeRate==null && other.getRefreshExchangeRate()==null) || (this.refreshExchangeRate!=null && this.refreshExchangeRate.equals(other.getRefreshExchangeRate()))) && ((this.isSold==null && other.getIsSold()==null) || (this.isSold!=null && this.isSold.equals(other.getIsSold()))) && ((this.lastModifiedDateTime==null && other.getLastModifiedDateTime()==null) || (this.lastModifiedDateTime!=null && this.lastModifiedDateTime.equals(other.getLastModifiedDateTime()))) && ((this.marketplaceInfo==null && other.getMarketplaceInfo()==null) || (this.marketplaceInfo!=null && this.marketplaceInfo.equals(other.getMarketplaceInfo()))) && ((this.buyerRfp==null && other.getBuyerRfp()==null) || (this.buyerRfp!=null && this.buyerRfp.equals(other.getBuyerRfp()))) && ((this.hasBuyerRfp==null && other.getHasBuyerRfp()==null) || (this.hasBuyerRfp!=null && this.hasBuyerRfp.equals(other.getHasBuyerRfp()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getId() != null) { _hashCode += getId().hashCode(); } if (getIsProgrammatic() != null) { _hashCode += getIsProgrammatic().hashCode(); } if (getDfpOrderId() != null) { _hashCode += getDfpOrderId().hashCode(); } if (getName() != null) { _hashCode += getName().hashCode(); } if (getStartDateTime() != null) { _hashCode += getStartDateTime().hashCode(); } if (getEndDateTime() != null) { _hashCode += getEndDateTime().hashCode(); } if (getStatus() != null) { _hashCode += getStatus().hashCode(); } if (getIsArchived() != null) { _hashCode += getIsArchived().hashCode(); } if (getAdvertiser() != null) { _hashCode += getAdvertiser().hashCode(); } if (getAgencies() != null) { for (int i=0; i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy