// Copyright 2017 Google Inc. All Rights Reserved. // // 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. /** * OfflineConversionFeed.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.adwords.axis.v201702.cm; /** * Represents an entire record in the offline conversions feed that * the advertiser uploads. */ public class OfflineConversionFeed implements java.io.Serializable { /* The google click ID associated with this conversion, as captured * from the landing page. * <p> * If your account has auto-tagging turned on, the google * click ID can be obtained from a query * parameter called 'gclid'. * <span class="constraint Selectable">This field can * be selected using the value "GoogleClickId".</span><span class="constraint * Filterable">This field can be filtered on.</span> * <span class="constraint Required">This field is required * and should not be {@code null}.</span> * <span class="constraint StringLength">The length of * this string should be between 1 and 512, inclusive, (trimmed).</span> */ private java.lang.String googleClickId; /* The type associated with this conversion. * <p> * It is valid to report multiple conversions for the * same google * click ID, since visitors may trigger multiple conversions * for a * click. These conversions names are generated in the * front end by * advertisers. * <span class="constraint Selectable">This field can * be selected using the value "ConversionName".</span><span class="constraint * Filterable">This field can be filtered on.</span> * <span class="constraint Required">This field is required * and should not be {@code null}.</span> * <span class="constraint StringLength">The length of * this string should be between 1 and 100, inclusive, (trimmed).</span> */ private java.lang.String conversionName; /* The time that this conversion occurred at. * <p> * This has to be after the click time. A time in the * future is not allowed. * A timezone is always required. * <p> * When a conversion for the same google click ID, conversion * name * and conversion time is uploaded multiple times, the * first one * results in a conversion being recorded. The duplicates * are * ignored and reported as successes, to indicate that * a conversion * for this combination has been recorded. * <span class="constraint Selectable">This field can * be selected using the value "ConversionTime".</span><span class="constraint * Filterable">This field can be filtered on.</span> * <span class="constraint Required">This field is required * and should not be {@code null}.</span> */ private java.lang.String conversionTime; /* This conversions value for the advertiser. * <span class="constraint Selectable">This field can * be selected using the value "ConversionValue".</span><span class="constraint * Filterable">This field can be filtered on.</span> * <span class="constraint InRange">This field must be * greater than or equal to 0.</span> */ private java.lang.Double conversionValue; /* The currency that the advertiser associates with the conversion * value. This is the ISO 4217 * 3-character currency code. For example: USD, EUR. * <span class="constraint Selectable">This field can * be selected using the value "ConversionCurrencyCode".</span><span * class="constraint Filterable">This field can be filtered on.</span> * <span class="constraint StringLength">The length of this string should * be between 3 and 3, inclusive, (trimmed).</span> */ private java.lang.String conversionCurrencyCode; /* This field can only be set for conversions actions which use * external attribution. It * represents the fraction of the conversion that is * attributed to each AdWords click. Its value * must be greater than 0 and less than or equal to 1. * * <p>An ATTRIBUTED_CREDIT_SET_FOR_NON_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION * error will be * returned if this field is used with a non-externally * attributed conversion action. * * <p>At this time, the externally attributed conversion * import feature and this field are * available to whitelisted AdWords accounts only. * <span class="constraint InRange">This field must be * between 0 and 1, inclusive.</span> */ private java.lang.Double externalAttributionCredit; /* This field can only be set for conversions actions which use * external attribution. It specifies * the attribution model name. * * <p>An ATTRIBUTION_MODEL_SET_FOR_NON_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION * error will be * returned if this field is used with a non-externally * attributed conversion action. * * <p>At this time, the externally attributed conversion * import feature and this field are * available to whitelisted AdWords accounts only. * <span class="constraint StringLength">The length of * this string should be between 1 and 100, inclusive, (trimmed).</span> */ private java.lang.String externalAttributionModel; public OfflineConversionFeed() { } public OfflineConversionFeed( java.lang.String googleClickId, java.lang.String conversionName, java.lang.String conversionTime, java.lang.Double conversionValue, java.lang.String conversionCurrencyCode, java.lang.Double externalAttributionCredit, java.lang.String externalAttributionModel) { this.googleClickId = googleClickId; this.conversionName = conversionName; this.conversionTime = conversionTime; this.conversionValue = conversionValue; this.conversionCurrencyCode = conversionCurrencyCode; this.externalAttributionCredit = externalAttributionCredit; this.externalAttributionModel = externalAttributionModel; } /** * Gets the googleClickId value for this OfflineConversionFeed. * * @return googleClickId * The google click ID associated with this conversion, as captured * from the landing page. * <p> * If your account has auto-tagging turned on, the google * click ID can be obtained from a query * parameter called 'gclid'. * <span class="constraint Selectable">This field can * be selected using the value "GoogleClickId".</span><span class="constraint * Filterable">This field can be filtered on.</span> * <span class="constraint Required">This field is required * and should not be {@code null}.</span> * <span class="constraint StringLength">The length of * this string should be between 1 and 512, inclusive, (trimmed).</span> */ public java.lang.String getGoogleClickId() { return googleClickId; } /** * Sets the googleClickId value for this OfflineConversionFeed. * * @param googleClickId * The google click ID associated with this conversion, as captured * from the landing page. * <p> * If your account has auto-tagging turned on, the google * click ID can be obtained from a query * parameter called 'gclid'. * <span class="constraint Selectable">This field can * be selected using the value "GoogleClickId".</span><span class="constraint * Filterable">This field can be filtered on.</span> * <span class="constraint Required">This field is required * and should not be {@code null}.</span> * <span class="constraint StringLength">The length of * this string should be between 1 and 512, inclusive, (trimmed).</span> */ public void setGoogleClickId(java.lang.String googleClickId) { this.googleClickId = googleClickId; } /** * Gets the conversionName value for this OfflineConversionFeed. * * @return conversionName * The type associated with this conversion. * <p> * It is valid to report multiple conversions for the * same google * click ID, since visitors may trigger multiple conversions * for a * click. These conversions names are generated in the * front end by * advertisers. * <span class="constraint Selectable">This field can * be selected using the value "ConversionName".</span><span class="constraint * Filterable">This field can be filtered on.</span> * <span class="constraint Required">This field is required * and should not be {@code null}.</span> * <span class="constraint StringLength">The length of * this string should be between 1 and 100, inclusive, (trimmed).</span> */ public java.lang.String getConversionName() { return conversionName; } /** * Sets the conversionName value for this OfflineConversionFeed. * * @param conversionName * The type associated with this conversion. * <p> * It is valid to report multiple conversions for the * same google * click ID, since visitors may trigger multiple conversions * for a * click. These conversions names are generated in the * front end by * advertisers. * <span class="constraint Selectable">This field can * be selected using the value "ConversionName".</span><span class="constraint * Filterable">This field can be filtered on.</span> * <span class="constraint Required">This field is required * and should not be {@code null}.</span> * <span class="constraint StringLength">The length of * this string should be between 1 and 100, inclusive, (trimmed).</span> */ public void setConversionName(java.lang.String conversionName) { this.conversionName = conversionName; } /** * Gets the conversionTime value for this OfflineConversionFeed. * * @return conversionTime * The time that this conversion occurred at. * <p> * This has to be after the click time. A time in the * future is not allowed. * A timezone is always required. * <p> * When a conversion for the same google click ID, conversion * name * and conversion time is uploaded multiple times, the * first one * results in a conversion being recorded. The duplicates * are * ignored and reported as successes, to indicate that * a conversion * for this combination has been recorded. * <span class="constraint Selectable">This field can * be selected using the value "ConversionTime".</span><span class="constraint * Filterable">This field can be filtered on.</span> * <span class="constraint Required">This field is required * and should not be {@code null}.</span> */ public java.lang.String getConversionTime() { return conversionTime; } /** * Sets the conversionTime value for this OfflineConversionFeed. * * @param conversionTime * The time that this conversion occurred at. * <p> * This has to be after the click time. A time in the * future is not allowed. * A timezone is always required. * <p> * When a conversion for the same google click ID, conversion * name * and conversion time is uploaded multiple times, the * first one * results in a conversion being recorded. The duplicates * are * ignored and reported as successes, to indicate that * a conversion * for this combination has been recorded. * <span class="constraint Selectable">This field can * be selected using the value "ConversionTime".</span><span class="constraint * Filterable">This field can be filtered on.</span> * <span class="constraint Required">This field is required * and should not be {@code null}.</span> */ public void setConversionTime(java.lang.String conversionTime) { this.conversionTime = conversionTime; } /** * Gets the conversionValue value for this OfflineConversionFeed. * * @return conversionValue * This conversions value for the advertiser. * <span class="constraint Selectable">This field can * be selected using the value "ConversionValue".</span><span class="constraint * Filterable">This field can be filtered on.</span> * <span class="constraint InRange">This field must be * greater than or equal to 0.</span> */ public java.lang.Double getConversionValue() { return conversionValue; } /** * Sets the conversionValue value for this OfflineConversionFeed. * * @param conversionValue * This conversions value for the advertiser. * <span class="constraint Selectable">This field can * be selected using the value "ConversionValue".</span><span class="constraint * Filterable">This field can be filtered on.</span> * <span class="constraint InRange">This field must be * greater than or equal to 0.</span> */ public void setConversionValue(java.lang.Double conversionValue) { this.conversionValue = conversionValue; } /** * Gets the conversionCurrencyCode value for this OfflineConversionFeed. * * @return conversionCurrencyCode * The currency that the advertiser associates with the conversion * value. This is the ISO 4217 * 3-character currency code. For example: USD, EUR. * <span class="constraint Selectable">This field can * be selected using the value "ConversionCurrencyCode".</span><span * class="constraint Filterable">This field can be filtered on.</span> * <span class="constraint StringLength">The length of this string should * be between 3 and 3, inclusive, (trimmed).</span> */ public java.lang.String getConversionCurrencyCode() { return conversionCurrencyCode; } /** * Sets the conversionCurrencyCode value for this OfflineConversionFeed. * * @param conversionCurrencyCode * The currency that the advertiser associates with the conversion * value. This is the ISO 4217 * 3-character currency code. For example: USD, EUR. * <span class="constraint Selectable">This field can * be selected using the value "ConversionCurrencyCode".</span><span * class="constraint Filterable">This field can be filtered on.</span> * <span class="constraint StringLength">The length of this string should * be between 3 and 3, inclusive, (trimmed).</span> */ public void setConversionCurrencyCode(java.lang.String conversionCurrencyCode) { this.conversionCurrencyCode = conversionCurrencyCode; } /** * Gets the externalAttributionCredit value for this OfflineConversionFeed. * * @return externalAttributionCredit * This field can only be set for conversions actions which use * external attribution. It * represents the fraction of the conversion that is * attributed to each AdWords click. Its value * must be greater than 0 and less than or equal to 1. * * <p>An ATTRIBUTED_CREDIT_SET_FOR_NON_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION * error will be * returned if this field is used with a non-externally * attributed conversion action. * * <p>At this time, the externally attributed conversion * import feature and this field are * available to whitelisted AdWords accounts only. * <span class="constraint InRange">This field must be * between 0 and 1, inclusive.</span> */ public java.lang.Double getExternalAttributionCredit() { return externalAttributionCredit; } /** * Sets the externalAttributionCredit value for this OfflineConversionFeed. * * @param externalAttributionCredit * This field can only be set for conversions actions which use * external attribution. It * represents the fraction of the conversion that is * attributed to each AdWords click. Its value * must be greater than 0 and less than or equal to 1. * * <p>An ATTRIBUTED_CREDIT_SET_FOR_NON_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION * error will be * returned if this field is used with a non-externally * attributed conversion action. * * <p>At this time, the externally attributed conversion * import feature and this field are * available to whitelisted AdWords accounts only. * <span class="constraint InRange">This field must be * between 0 and 1, inclusive.</span> */ public void setExternalAttributionCredit(java.lang.Double externalAttributionCredit) { this.externalAttributionCredit = externalAttributionCredit; } /** * Gets the externalAttributionModel value for this OfflineConversionFeed. * * @return externalAttributionModel * This field can only be set for conversions actions which use * external attribution. It specifies * the attribution model name. * * <p>An ATTRIBUTION_MODEL_SET_FOR_NON_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION * error will be * returned if this field is used with a non-externally * attributed conversion action. * * <p>At this time, the externally attributed conversion * import feature and this field are * available to whitelisted AdWords accounts only. * <span class="constraint StringLength">The length of * this string should be between 1 and 100, inclusive, (trimmed).</span> */ public java.lang.String getExternalAttributionModel() { return externalAttributionModel; } /** * Sets the externalAttributionModel value for this OfflineConversionFeed. * * @param externalAttributionModel * This field can only be set for conversions actions which use * external attribution. It specifies * the attribution model name. * * <p>An ATTRIBUTION_MODEL_SET_FOR_NON_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION * error will be * returned if this field is used with a non-externally * attributed conversion action. * * <p>At this time, the externally attributed conversion * import feature and this field are * available to whitelisted AdWords accounts only. * <span class="constraint StringLength">The length of * this string should be between 1 and 100, inclusive, (trimmed).</span> */ public void setExternalAttributionModel(java.lang.String externalAttributionModel) { this.externalAttributionModel = externalAttributionModel; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof OfflineConversionFeed)) return false; OfflineConversionFeed other = (OfflineConversionFeed) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.googleClickId==null && other.getGoogleClickId()==null) || (this.googleClickId!=null && this.googleClickId.equals(other.getGoogleClickId()))) && ((this.conversionName==null && other.getConversionName()==null) || (this.conversionName!=null && this.conversionName.equals(other.getConversionName()))) && ((this.conversionTime==null && other.getConversionTime()==null) || (this.conversionTime!=null && this.conversionTime.equals(other.getConversionTime()))) && ((this.conversionValue==null && other.getConversionValue()==null) || (this.conversionValue!=null && this.conversionValue.equals(other.getConversionValue()))) && ((this.conversionCurrencyCode==null && other.getConversionCurrencyCode()==null) || (this.conversionCurrencyCode!=null && this.conversionCurrencyCode.equals(other.getConversionCurrencyCode()))) && ((this.externalAttributionCredit==null && other.getExternalAttributionCredit()==null) || (this.externalAttributionCredit!=null && this.externalAttributionCredit.equals(other.getExternalAttributionCredit()))) && ((this.externalAttributionModel==null && other.getExternalAttributionModel()==null) || (this.externalAttributionModel!=null && this.externalAttributionModel.equals(other.getExternalAttributionModel()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getGoogleClickId() != null) { _hashCode += getGoogleClickId().hashCode(); } if (getConversionName() != null) { _hashCode += getConversionName().hashCode(); } if (getConversionTime() != null) { _hashCode += getConversionTime().hashCode(); } if (getConversionValue() != null) { _hashCode += getConversionValue().hashCode(); } if (getConversionCurrencyCode() != null) { _hashCode += getConversionCurrencyCode().hashCode(); } if (getExternalAttributionCredit() != null) { _hashCode += getExternalAttributionCredit().hashCode(); } if (getExternalAttributionModel() != null) { _hashCode += getExternalAttributionModel().hashCode(); } __hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(OfflineConversionFeed.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201702", "OfflineConversionFeed")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("googleClickId"); elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201702", "googleClickId")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("conversionName"); elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201702", "conversionName")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("conversionTime"); elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201702", "conversionTime")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("conversionValue"); elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201702", "conversionValue")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("conversionCurrencyCode"); elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201702", "conversionCurrencyCode")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("externalAttributionCredit"); elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201702", "externalAttributionCredit")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("externalAttributionModel"); elemField.setXmlName(new javax.xml.namespace.QName("https://adwords.google.com/api/adwords/cm/v201702", "externalAttributionModel")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); } /** * Return type metadata object */ public static org.apache.axis.description.TypeDesc getTypeDesc() { return typeDesc; } /** * Get Custom Serializer */ public static org.apache.axis.encoding.Serializer getSerializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanSerializer( _javaType, _xmlType, typeDesc); } /** * Get Custom Deserializer */ public static org.apache.axis.encoding.Deserializer getDeserializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanDeserializer( _javaType, _xmlType, typeDesc); } }