com.google.api.ads.admanager.axis.v202308.Html5Creative Maven / Gradle / Ivy
Show all versions of dfp-axis Show documentation
// 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.
/**
* Html5Creative.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 a zipped HTML5 bundle asset, a
* list of third party impression
* trackers, and a third party click tracker.
*/
public class Html5Creative extends com.google.api.ads.admanager.axis.v202308.Creative implements java.io.Serializable {
/* Allows the creative size to differ from the actual HTML5 asset
* size. This attribute is
* optional. */
private java.lang.Boolean overrideSize;
/* Impression tracking URLs to ping when this creative is displayed.
* This field is optional. */
private java.lang.String[] thirdPartyImpressionTrackingUrls;
/* A click tracking URL to ping when this creative is clicked.
* This field is optional. */
private java.lang.String thirdPartyClickTrackingUrl;
/* 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;
/* The HTML5 asset. To preview the HTML5 asset, use the {@link
* CreativeAsset#assetUrl}. In this
* field, the {@link CreativeAsset#assetByteArray}
* must be a zip bundle and the {@link
* CreativeAsset#fileName} must have a zip extension.
* This attribute is required. */
private com.google.api.ads.admanager.axis.v202308.CreativeAsset html5Asset;
public Html5Creative() {
}
public Html5Creative(
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.Boolean overrideSize,
java.lang.String[] thirdPartyImpressionTrackingUrls,
java.lang.String thirdPartyClickTrackingUrl,
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,
com.google.api.ads.admanager.axis.v202308.CreativeAsset html5Asset) {
super(
advertiserId,
id,
name,
size,
previewUrl,
policyLabels,
appliedLabels,
lastModifiedDateTime,
customFieldValues,
thirdPartyDataDeclaration);
this.overrideSize = overrideSize;
this.thirdPartyImpressionTrackingUrls = thirdPartyImpressionTrackingUrls;
this.thirdPartyClickTrackingUrl = thirdPartyClickTrackingUrl;
this.lockedOrientation = lockedOrientation;
this.sslScanResult = sslScanResult;
this.sslManualOverride = sslManualOverride;
this.isSafeFrameCompatible = isSafeFrameCompatible;
this.html5Asset = html5Asset;
}
@Override
public String toString() {
return com.google.common.base.MoreObjects.toStringHelper(this.getClass())
.omitNullValues()
.add("advertiserId", getAdvertiserId())
.add("appliedLabels", getAppliedLabels())
.add("customFieldValues", getCustomFieldValues())
.add("html5Asset", getHtml5Asset())
.add("id", getId())
.add("isSafeFrameCompatible", getIsSafeFrameCompatible())
.add("lastModifiedDateTime", getLastModifiedDateTime())
.add("lockedOrientation", getLockedOrientation())
.add("name", getName())
.add("overrideSize", getOverrideSize())
.add("policyLabels", getPolicyLabels())
.add("previewUrl", getPreviewUrl())
.add("size", getSize())
.add("sslManualOverride", getSslManualOverride())
.add("sslScanResult", getSslScanResult())
.add("thirdPartyClickTrackingUrl", getThirdPartyClickTrackingUrl())
.add("thirdPartyDataDeclaration", getThirdPartyDataDeclaration())
.add("thirdPartyImpressionTrackingUrls", getThirdPartyImpressionTrackingUrls())
.toString();
}
/**
* Gets the overrideSize value for this Html5Creative.
*
* @return overrideSize * Allows the creative size to differ from the actual HTML5 asset
* size. This attribute is
* optional.
*/
public java.lang.Boolean getOverrideSize() {
return overrideSize;
}
/**
* Sets the overrideSize value for this Html5Creative.
*
* @param overrideSize * Allows the creative size to differ from the actual HTML5 asset
* size. This attribute is
* optional.
*/
public void setOverrideSize(java.lang.Boolean overrideSize) {
this.overrideSize = overrideSize;
}
/**
* Gets the thirdPartyImpressionTrackingUrls value for this Html5Creative.
*
* @return thirdPartyImpressionTrackingUrls * 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 Html5Creative.
*
* @param thirdPartyImpressionTrackingUrls * 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;
}
/**
* Gets the thirdPartyClickTrackingUrl value for this Html5Creative.
*
* @return thirdPartyClickTrackingUrl * A click tracking URL to ping when this creative is clicked.
* This field is optional.
*/
public java.lang.String getThirdPartyClickTrackingUrl() {
return thirdPartyClickTrackingUrl;
}
/**
* Sets the thirdPartyClickTrackingUrl value for this Html5Creative.
*
* @param thirdPartyClickTrackingUrl * A click tracking URL to ping when this creative is clicked.
* This field is optional.
*/
public void setThirdPartyClickTrackingUrl(java.lang.String thirdPartyClickTrackingUrl) {
this.thirdPartyClickTrackingUrl = thirdPartyClickTrackingUrl;
}
/**
* Gets the lockedOrientation value for this Html5Creative.
*
* @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 Html5Creative.
*
* @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 Html5Creative.
*
* @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 Html5Creative.
*
* @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 Html5Creative.
*
* @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 Html5Creative.
*
* @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 Html5Creative.
*
* @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 Html5Creative.
*
* @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 html5Asset value for this Html5Creative.
*
* @return html5Asset * The HTML5 asset. To preview the HTML5 asset, use the {@link
* CreativeAsset#assetUrl}. In this
* field, the {@link CreativeAsset#assetByteArray}
* must be a zip bundle and the {@link
* CreativeAsset#fileName} must have a zip extension.
* This attribute is required.
*/
public com.google.api.ads.admanager.axis.v202308.CreativeAsset getHtml5Asset() {
return html5Asset;
}
/**
* Sets the html5Asset value for this Html5Creative.
*
* @param html5Asset * The HTML5 asset. To preview the HTML5 asset, use the {@link
* CreativeAsset#assetUrl}. In this
* field, the {@link CreativeAsset#assetByteArray}
* must be a zip bundle and the {@link
* CreativeAsset#fileName} must have a zip extension.
* This attribute is required.
*/
public void setHtml5Asset(com.google.api.ads.admanager.axis.v202308.CreativeAsset html5Asset) {
this.html5Asset = html5Asset;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof Html5Creative)) return false;
Html5Creative other = (Html5Creative) 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.overrideSize==null && other.getOverrideSize()==null) ||
(this.overrideSize!=null &&
this.overrideSize.equals(other.getOverrideSize()))) &&
((this.thirdPartyImpressionTrackingUrls==null && other.getThirdPartyImpressionTrackingUrls()==null) ||
(this.thirdPartyImpressionTrackingUrls!=null &&
java.util.Arrays.equals(this.thirdPartyImpressionTrackingUrls, other.getThirdPartyImpressionTrackingUrls()))) &&
((this.thirdPartyClickTrackingUrl==null && other.getThirdPartyClickTrackingUrl()==null) ||
(this.thirdPartyClickTrackingUrl!=null &&
this.thirdPartyClickTrackingUrl.equals(other.getThirdPartyClickTrackingUrl()))) &&
((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.html5Asset==null && other.getHtml5Asset()==null) ||
(this.html5Asset!=null &&
this.html5Asset.equals(other.getHtml5Asset())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
if (getOverrideSize() != null) {
_hashCode += getOverrideSize().hashCode();
}
if (getThirdPartyImpressionTrackingUrls() != null) {
for (int i=0;
i