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

com.google.api.ads.admanager.axis.v202308.CustomCreative 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.

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


/**
 * A {@code Creative} that contains an arbitrary HTML snippet and
 * file assets.
 */
public class CustomCreative  extends com.google.api.ads.admanager.axis.v202308.HasDestinationUrlCreative  implements java.io.Serializable {
    /* The HTML snippet that this creative delivers. This attribute
     * is required. */
    private java.lang.String htmlSnippet;

    /* A list of file assets that are associated with this creative,
     * and can be referenced in the
     *                     snippet. */
    private com.google.api.ads.admanager.axis.v202308.CustomCreativeAsset[] customCreativeAssets;

    /* {@code true} if this custom creative is interstitial. An interstitial
     * creative will not
     *                     consider an impression served until it is fully
     * rendered in the browser. */
    private java.lang.Boolean isInterstitial;

    /* A locked orientation for this creative to be displayed in. */
    private com.google.api.ads.admanager.axis.v202308.LockedOrientation lockedOrientation;

    /* The SSL compatibility scan result of this creative.
     *                     
     *                     

This attribute is read-only and determined * by Google. */ private com.google.api.ads.admanager.axis.v202308.SslScanResult sslScanResult; /* The manual override for the SSL compatibility of this creative. * *

This attribute is optional and defaults to * {@link SslManualOverride#NO_OVERRIDE}. */ private com.google.api.ads.admanager.axis.v202308.SslManualOverride sslManualOverride; /* Whether the {@link Creative} is compatible for SafeFrame rendering. * *

This attribute is optional and defaults to * {@code true}. */ private java.lang.Boolean isSafeFrameCompatible; /* A list of impression tracking URLs to ping when this creative * is displayed. This field is * optional. */ private java.lang.String[] thirdPartyImpressionTrackingUrls; public CustomCreative() { } public CustomCreative( java.lang.Long advertiserId, java.lang.Long id, java.lang.String name, com.google.api.ads.admanager.axis.v202308.Size size, java.lang.String previewUrl, com.google.api.ads.admanager.axis.v202308.CreativePolicyViolation[] policyLabels, com.google.api.ads.admanager.axis.v202308.AppliedLabel[] appliedLabels, com.google.api.ads.admanager.axis.v202308.DateTime lastModifiedDateTime, com.google.api.ads.admanager.axis.v202308.BaseCustomFieldValue[] customFieldValues, com.google.api.ads.admanager.axis.v202308.ThirdPartyDataDeclaration thirdPartyDataDeclaration, java.lang.String destinationUrl, com.google.api.ads.admanager.axis.v202308.DestinationUrlType destinationUrlType, java.lang.String htmlSnippet, com.google.api.ads.admanager.axis.v202308.CustomCreativeAsset[] customCreativeAssets, java.lang.Boolean isInterstitial, com.google.api.ads.admanager.axis.v202308.LockedOrientation lockedOrientation, com.google.api.ads.admanager.axis.v202308.SslScanResult sslScanResult, com.google.api.ads.admanager.axis.v202308.SslManualOverride sslManualOverride, java.lang.Boolean isSafeFrameCompatible, java.lang.String[] thirdPartyImpressionTrackingUrls) { super( advertiserId, id, name, size, previewUrl, policyLabels, appliedLabels, lastModifiedDateTime, customFieldValues, thirdPartyDataDeclaration, destinationUrl, destinationUrlType); this.htmlSnippet = htmlSnippet; this.customCreativeAssets = customCreativeAssets; this.isInterstitial = isInterstitial; this.lockedOrientation = lockedOrientation; this.sslScanResult = sslScanResult; this.sslManualOverride = sslManualOverride; this.isSafeFrameCompatible = isSafeFrameCompatible; this.thirdPartyImpressionTrackingUrls = thirdPartyImpressionTrackingUrls; } @Override public String toString() { return com.google.common.base.MoreObjects.toStringHelper(this.getClass()) .omitNullValues() .add("advertiserId", getAdvertiserId()) .add("appliedLabels", getAppliedLabels()) .add("customCreativeAssets", getCustomCreativeAssets()) .add("customFieldValues", getCustomFieldValues()) .add("destinationUrl", getDestinationUrl()) .add("destinationUrlType", getDestinationUrlType()) .add("htmlSnippet", getHtmlSnippet()) .add("id", getId()) .add("isInterstitial", getIsInterstitial()) .add("isSafeFrameCompatible", getIsSafeFrameCompatible()) .add("lastModifiedDateTime", getLastModifiedDateTime()) .add("lockedOrientation", getLockedOrientation()) .add("name", getName()) .add("policyLabels", getPolicyLabels()) .add("previewUrl", getPreviewUrl()) .add("size", getSize()) .add("sslManualOverride", getSslManualOverride()) .add("sslScanResult", getSslScanResult()) .add("thirdPartyDataDeclaration", getThirdPartyDataDeclaration()) .add("thirdPartyImpressionTrackingUrls", getThirdPartyImpressionTrackingUrls()) .toString(); } /** * Gets the htmlSnippet value for this CustomCreative. * * @return htmlSnippet * The HTML snippet that this creative delivers. This attribute * is required. */ public java.lang.String getHtmlSnippet() { return htmlSnippet; } /** * Sets the htmlSnippet value for this CustomCreative. * * @param htmlSnippet * The HTML snippet that this creative delivers. This attribute * is required. */ public void setHtmlSnippet(java.lang.String htmlSnippet) { this.htmlSnippet = htmlSnippet; } /** * Gets the customCreativeAssets value for this CustomCreative. * * @return customCreativeAssets * A list of file assets that are associated with this creative, * and can be referenced in the * snippet. */ public com.google.api.ads.admanager.axis.v202308.CustomCreativeAsset[] getCustomCreativeAssets() { return customCreativeAssets; } /** * Sets the customCreativeAssets value for this CustomCreative. * * @param customCreativeAssets * A list of file assets that are associated with this creative, * and can be referenced in the * snippet. */ public void setCustomCreativeAssets(com.google.api.ads.admanager.axis.v202308.CustomCreativeAsset[] customCreativeAssets) { this.customCreativeAssets = customCreativeAssets; } public com.google.api.ads.admanager.axis.v202308.CustomCreativeAsset getCustomCreativeAssets(int i) { return this.customCreativeAssets[i]; } public void setCustomCreativeAssets(int i, com.google.api.ads.admanager.axis.v202308.CustomCreativeAsset _value) { this.customCreativeAssets[i] = _value; } /** * Gets the isInterstitial value for this CustomCreative. * * @return isInterstitial * {@code true} if this custom creative is interstitial. An interstitial * creative will not * consider an impression served until it is fully * rendered in the browser. */ public java.lang.Boolean getIsInterstitial() { return isInterstitial; } /** * Sets the isInterstitial value for this CustomCreative. * * @param isInterstitial * {@code true} if this custom creative is interstitial. An interstitial * creative will not * consider an impression served until it is fully * rendered in the browser. */ public void setIsInterstitial(java.lang.Boolean isInterstitial) { this.isInterstitial = isInterstitial; } /** * Gets the lockedOrientation value for this CustomCreative. * * @return lockedOrientation * A locked orientation for this creative to be displayed in. */ public com.google.api.ads.admanager.axis.v202308.LockedOrientation getLockedOrientation() { return lockedOrientation; } /** * Sets the lockedOrientation value for this CustomCreative. * * @param lockedOrientation * A locked orientation for this creative to be displayed in. */ public void setLockedOrientation(com.google.api.ads.admanager.axis.v202308.LockedOrientation lockedOrientation) { this.lockedOrientation = lockedOrientation; } /** * Gets the sslScanResult value for this CustomCreative. * * @return sslScanResult * The SSL compatibility scan result of this creative. * *

This attribute is read-only and determined * by Google. */ public com.google.api.ads.admanager.axis.v202308.SslScanResult getSslScanResult() { return sslScanResult; } /** * Sets the sslScanResult value for this CustomCreative. * * @param sslScanResult * The SSL compatibility scan result of this creative. * *

This attribute is read-only and determined * by Google. */ public void setSslScanResult(com.google.api.ads.admanager.axis.v202308.SslScanResult sslScanResult) { this.sslScanResult = sslScanResult; } /** * Gets the sslManualOverride value for this CustomCreative. * * @return sslManualOverride * The manual override for the SSL compatibility of this creative. * *

This attribute is optional and defaults to * {@link SslManualOverride#NO_OVERRIDE}. */ public com.google.api.ads.admanager.axis.v202308.SslManualOverride getSslManualOverride() { return sslManualOverride; } /** * Sets the sslManualOverride value for this CustomCreative. * * @param sslManualOverride * The manual override for the SSL compatibility of this creative. * *

This attribute is optional and defaults to * {@link SslManualOverride#NO_OVERRIDE}. */ public void setSslManualOverride(com.google.api.ads.admanager.axis.v202308.SslManualOverride sslManualOverride) { this.sslManualOverride = sslManualOverride; } /** * Gets the isSafeFrameCompatible value for this CustomCreative. * * @return isSafeFrameCompatible * Whether the {@link Creative} is compatible for SafeFrame rendering. * *

This attribute is optional and defaults to * {@code true}. */ public java.lang.Boolean getIsSafeFrameCompatible() { return isSafeFrameCompatible; } /** * Sets the isSafeFrameCompatible value for this CustomCreative. * * @param isSafeFrameCompatible * Whether the {@link Creative} is compatible for SafeFrame rendering. * *

This attribute is optional and defaults to * {@code true}. */ public void setIsSafeFrameCompatible(java.lang.Boolean isSafeFrameCompatible) { this.isSafeFrameCompatible = isSafeFrameCompatible; } /** * Gets the thirdPartyImpressionTrackingUrls value for this CustomCreative. * * @return thirdPartyImpressionTrackingUrls * A list of impression tracking URLs to ping when this creative * is displayed. This field is * optional. */ public java.lang.String[] getThirdPartyImpressionTrackingUrls() { return thirdPartyImpressionTrackingUrls; } /** * Sets the thirdPartyImpressionTrackingUrls value for this CustomCreative. * * @param thirdPartyImpressionTrackingUrls * A list of impression tracking URLs to ping when this creative * is displayed. This field is * optional. */ public void setThirdPartyImpressionTrackingUrls(java.lang.String[] thirdPartyImpressionTrackingUrls) { this.thirdPartyImpressionTrackingUrls = thirdPartyImpressionTrackingUrls; } public java.lang.String getThirdPartyImpressionTrackingUrls(int i) { return this.thirdPartyImpressionTrackingUrls[i]; } public void setThirdPartyImpressionTrackingUrls(int i, java.lang.String _value) { this.thirdPartyImpressionTrackingUrls[i] = _value; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof CustomCreative)) return false; CustomCreative other = (CustomCreative) 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.htmlSnippet==null && other.getHtmlSnippet()==null) || (this.htmlSnippet!=null && this.htmlSnippet.equals(other.getHtmlSnippet()))) && ((this.customCreativeAssets==null && other.getCustomCreativeAssets()==null) || (this.customCreativeAssets!=null && java.util.Arrays.equals(this.customCreativeAssets, other.getCustomCreativeAssets()))) && ((this.isInterstitial==null && other.getIsInterstitial()==null) || (this.isInterstitial!=null && this.isInterstitial.equals(other.getIsInterstitial()))) && ((this.lockedOrientation==null && other.getLockedOrientation()==null) || (this.lockedOrientation!=null && this.lockedOrientation.equals(other.getLockedOrientation()))) && ((this.sslScanResult==null && other.getSslScanResult()==null) || (this.sslScanResult!=null && this.sslScanResult.equals(other.getSslScanResult()))) && ((this.sslManualOverride==null && other.getSslManualOverride()==null) || (this.sslManualOverride!=null && this.sslManualOverride.equals(other.getSslManualOverride()))) && ((this.isSafeFrameCompatible==null && other.getIsSafeFrameCompatible()==null) || (this.isSafeFrameCompatible!=null && this.isSafeFrameCompatible.equals(other.getIsSafeFrameCompatible()))) && ((this.thirdPartyImpressionTrackingUrls==null && other.getThirdPartyImpressionTrackingUrls()==null) || (this.thirdPartyImpressionTrackingUrls!=null && java.util.Arrays.equals(this.thirdPartyImpressionTrackingUrls, other.getThirdPartyImpressionTrackingUrls()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = super.hashCode(); if (getHtmlSnippet() != null) { _hashCode += getHtmlSnippet().hashCode(); } if (getCustomCreativeAssets() != null) { for (int i=0; i





© 2015 - 2024 Weber Informatics LLC | Privacy Policy