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

com.google.api.ads.admanager.axis.v202205.SuggestedAdUnit Maven / Gradle / Ivy

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

/**
 * SuggestedAdUnit.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.v202205;


/**
 * A {@code SuggestedAdUnit} represents a suggestion for a new ad
 * unit, based on an ad tag that has
 *             been served at least ten times in the past week, but which
 * does not correspond to a defined ad
 *             unit. This type is read-only.
 */
public class SuggestedAdUnit  implements java.io.Serializable {
    /* The unique ID of the suggested ad unit. After API version 201311
     * this field will be a numerical
     *                 ID. Earlier versions will return a string value which
     * is the complete path to the suggested ad
     *                 unit with path elements separated by '/' characters.
     * This attribute is read-only and is
     *                 populated by Google. */
    private java.lang.String id;

    /* Returns the number of times the ad tag corresponding to this
     * suggested ad unit has been served
     *                 in the previous week. Suggested ad units are only
     * created when they have been served at least
     *                 ten times in that period. This attribute is read-only
     * and is populated by Google. */
    private java.lang.Long numRequests;

    /* The hierarchical path from the {@link #parentPath last existing
     * ad unit} after this and all
     *                 suggested parent ad units have been created. Each
     * path element is a separate ad unit code in
     *                 the returned list. This attribute is read-only and
     * is populated by Google. */
    private java.lang.String[] path;

    /* The existing hierarchical path leading up to, and including,
     * the parent of the first suggested
     *                 ad unit in the ad unit hierarchy. The {@code parentPath}
     * and the {@code path} make up the full
     *                 path of the suggested ad unit after it is approved.
     * This attribute is read-only and is
     *                 populated by Google.
     *                 
     *                 

Note: The ad unit code for each * of the parent ad units will not be * provided. */ private com.google.api.ads.admanager.axis.v202205.AdUnitParent[] parentPath; /* The {@code target} attribute of the underlying ad tag, as defined * in the {@link AdUnit}. This * attribute is read-only and is populated by Google. */ private com.google.api.ads.admanager.axis.v202205.AdUnitTargetWindow targetWindow; /* The target platform for the browser that clicked the underlying * ad tag. This attribute is * read-only and is populated by Google. */ private com.google.api.ads.admanager.axis.v202205.TargetPlatform targetPlatform; /* The target sizes associated with this {@code SuggestedAdUnit}. * This attribute is read-only and * is populated by Google. */ private com.google.api.ads.admanager.axis.v202205.AdUnitSize[] suggestedAdUnitSizes; public SuggestedAdUnit() { } public SuggestedAdUnit( java.lang.String id, java.lang.Long numRequests, java.lang.String[] path, com.google.api.ads.admanager.axis.v202205.AdUnitParent[] parentPath, com.google.api.ads.admanager.axis.v202205.AdUnitTargetWindow targetWindow, com.google.api.ads.admanager.axis.v202205.TargetPlatform targetPlatform, com.google.api.ads.admanager.axis.v202205.AdUnitSize[] suggestedAdUnitSizes) { this.id = id; this.numRequests = numRequests; this.path = path; this.parentPath = parentPath; this.targetWindow = targetWindow; this.targetPlatform = targetPlatform; this.suggestedAdUnitSizes = suggestedAdUnitSizes; } @Override public String toString() { return com.google.common.base.MoreObjects.toStringHelper(this.getClass()) .omitNullValues() .add("id", getId()) .add("numRequests", getNumRequests()) .add("parentPath", getParentPath()) .add("path", getPath()) .add("suggestedAdUnitSizes", getSuggestedAdUnitSizes()) .add("targetPlatform", getTargetPlatform()) .add("targetWindow", getTargetWindow()) .toString(); } /** * Gets the id value for this SuggestedAdUnit. * * @return id * The unique ID of the suggested ad unit. After API version 201311 * this field will be a numerical * ID. Earlier versions will return a string value which * is the complete path to the suggested ad * unit with path elements separated by '/' characters. * This attribute is read-only and is * populated by Google. */ public java.lang.String getId() { return id; } /** * Sets the id value for this SuggestedAdUnit. * * @param id * The unique ID of the suggested ad unit. After API version 201311 * this field will be a numerical * ID. Earlier versions will return a string value which * is the complete path to the suggested ad * unit with path elements separated by '/' characters. * This attribute is read-only and is * populated by Google. */ public void setId(java.lang.String id) { this.id = id; } /** * Gets the numRequests value for this SuggestedAdUnit. * * @return numRequests * Returns the number of times the ad tag corresponding to this * suggested ad unit has been served * in the previous week. Suggested ad units are only * created when they have been served at least * ten times in that period. This attribute is read-only * and is populated by Google. */ public java.lang.Long getNumRequests() { return numRequests; } /** * Sets the numRequests value for this SuggestedAdUnit. * * @param numRequests * Returns the number of times the ad tag corresponding to this * suggested ad unit has been served * in the previous week. Suggested ad units are only * created when they have been served at least * ten times in that period. This attribute is read-only * and is populated by Google. */ public void setNumRequests(java.lang.Long numRequests) { this.numRequests = numRequests; } /** * Gets the path value for this SuggestedAdUnit. * * @return path * The hierarchical path from the {@link #parentPath last existing * ad unit} after this and all * suggested parent ad units have been created. Each * path element is a separate ad unit code in * the returned list. This attribute is read-only and * is populated by Google. */ public java.lang.String[] getPath() { return path; } /** * Sets the path value for this SuggestedAdUnit. * * @param path * The hierarchical path from the {@link #parentPath last existing * ad unit} after this and all * suggested parent ad units have been created. Each * path element is a separate ad unit code in * the returned list. This attribute is read-only and * is populated by Google. */ public void setPath(java.lang.String[] path) { this.path = path; } public java.lang.String getPath(int i) { return this.path[i]; } public void setPath(int i, java.lang.String _value) { this.path[i] = _value; } /** * Gets the parentPath value for this SuggestedAdUnit. * * @return parentPath * The existing hierarchical path leading up to, and including, * the parent of the first suggested * ad unit in the ad unit hierarchy. The {@code parentPath} * and the {@code path} make up the full * path of the suggested ad unit after it is approved. * This attribute is read-only and is * populated by Google. * *

Note: The ad unit code for each * of the parent ad units will not be * provided. */ public com.google.api.ads.admanager.axis.v202205.AdUnitParent[] getParentPath() { return parentPath; } /** * Sets the parentPath value for this SuggestedAdUnit. * * @param parentPath * The existing hierarchical path leading up to, and including, * the parent of the first suggested * ad unit in the ad unit hierarchy. The {@code parentPath} * and the {@code path} make up the full * path of the suggested ad unit after it is approved. * This attribute is read-only and is * populated by Google. * *

Note: The ad unit code for each * of the parent ad units will not be * provided. */ public void setParentPath(com.google.api.ads.admanager.axis.v202205.AdUnitParent[] parentPath) { this.parentPath = parentPath; } public com.google.api.ads.admanager.axis.v202205.AdUnitParent getParentPath(int i) { return this.parentPath[i]; } public void setParentPath(int i, com.google.api.ads.admanager.axis.v202205.AdUnitParent _value) { this.parentPath[i] = _value; } /** * Gets the targetWindow value for this SuggestedAdUnit. * * @return targetWindow * The {@code target} attribute of the underlying ad tag, as defined * in the {@link AdUnit}. This * attribute is read-only and is populated by Google. */ public com.google.api.ads.admanager.axis.v202205.AdUnitTargetWindow getTargetWindow() { return targetWindow; } /** * Sets the targetWindow value for this SuggestedAdUnit. * * @param targetWindow * The {@code target} attribute of the underlying ad tag, as defined * in the {@link AdUnit}. This * attribute is read-only and is populated by Google. */ public void setTargetWindow(com.google.api.ads.admanager.axis.v202205.AdUnitTargetWindow targetWindow) { this.targetWindow = targetWindow; } /** * Gets the targetPlatform value for this SuggestedAdUnit. * * @return targetPlatform * The target platform for the browser that clicked the underlying * ad tag. This attribute is * read-only and is populated by Google. */ public com.google.api.ads.admanager.axis.v202205.TargetPlatform getTargetPlatform() { return targetPlatform; } /** * Sets the targetPlatform value for this SuggestedAdUnit. * * @param targetPlatform * The target platform for the browser that clicked the underlying * ad tag. This attribute is * read-only and is populated by Google. */ public void setTargetPlatform(com.google.api.ads.admanager.axis.v202205.TargetPlatform targetPlatform) { this.targetPlatform = targetPlatform; } /** * Gets the suggestedAdUnitSizes value for this SuggestedAdUnit. * * @return suggestedAdUnitSizes * The target sizes associated with this {@code SuggestedAdUnit}. * This attribute is read-only and * is populated by Google. */ public com.google.api.ads.admanager.axis.v202205.AdUnitSize[] getSuggestedAdUnitSizes() { return suggestedAdUnitSizes; } /** * Sets the suggestedAdUnitSizes value for this SuggestedAdUnit. * * @param suggestedAdUnitSizes * The target sizes associated with this {@code SuggestedAdUnit}. * This attribute is read-only and * is populated by Google. */ public void setSuggestedAdUnitSizes(com.google.api.ads.admanager.axis.v202205.AdUnitSize[] suggestedAdUnitSizes) { this.suggestedAdUnitSizes = suggestedAdUnitSizes; } public com.google.api.ads.admanager.axis.v202205.AdUnitSize getSuggestedAdUnitSizes(int i) { return this.suggestedAdUnitSizes[i]; } public void setSuggestedAdUnitSizes(int i, com.google.api.ads.admanager.axis.v202205.AdUnitSize _value) { this.suggestedAdUnitSizes[i] = _value; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof SuggestedAdUnit)) return false; SuggestedAdUnit other = (SuggestedAdUnit) 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.numRequests==null && other.getNumRequests()==null) || (this.numRequests!=null && this.numRequests.equals(other.getNumRequests()))) && ((this.path==null && other.getPath()==null) || (this.path!=null && java.util.Arrays.equals(this.path, other.getPath()))) && ((this.parentPath==null && other.getParentPath()==null) || (this.parentPath!=null && java.util.Arrays.equals(this.parentPath, other.getParentPath()))) && ((this.targetWindow==null && other.getTargetWindow()==null) || (this.targetWindow!=null && this.targetWindow.equals(other.getTargetWindow()))) && ((this.targetPlatform==null && other.getTargetPlatform()==null) || (this.targetPlatform!=null && this.targetPlatform.equals(other.getTargetPlatform()))) && ((this.suggestedAdUnitSizes==null && other.getSuggestedAdUnitSizes()==null) || (this.suggestedAdUnitSizes!=null && java.util.Arrays.equals(this.suggestedAdUnitSizes, other.getSuggestedAdUnitSizes()))); __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 (getNumRequests() != null) { _hashCode += getNumRequests().hashCode(); } if (getPath() != null) { for (int i=0; i





© 2015 - 2025 Weber Informatics LLC | Privacy Policy