com.google.api.ads.admanager.jaxws.v202405.CreativeTemplate Maven / Gradle / Ivy
Show all versions of dfp-appengine Show documentation
// Copyright 2024 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.
package com.google.api.ads.admanager.jaxws.v202405;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
/**
*
* A template upon which a creative can be created.
*
*
* Java class for CreativeTemplate complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="CreativeTemplate">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="id" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="variables" type="{https://www.google.com/apis/ads/publisher/v202405}CreativeTemplateVariable" maxOccurs="unbounded" minOccurs="0"/>
* <element name="snippet" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="status" type="{https://www.google.com/apis/ads/publisher/v202405}CreativeTemplateStatus" minOccurs="0"/>
* <element name="type" type="{https://www.google.com/apis/ads/publisher/v202405}CreativeTemplateType" minOccurs="0"/>
* <element name="isInterstitial" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* <element name="isNativeEligible" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* <element name="isSafeFrameCompatible" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CreativeTemplate", propOrder = {
"id",
"name",
"description",
"variables",
"snippet",
"status",
"type",
"isInterstitial",
"isNativeEligible",
"isSafeFrameCompatible"
})
public class CreativeTemplate {
protected Long id;
protected String name;
protected String description;
protected List variables;
protected String snippet;
@XmlSchemaType(name = "string")
protected CreativeTemplateStatus status;
@XmlSchemaType(name = "string")
protected CreativeTemplateType type;
protected Boolean isInterstitial;
protected Boolean isNativeEligible;
protected Boolean isSafeFrameCompatible;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link Long }
*
*/
public Long getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setId(Long value) {
this.id = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = value;
}
/**
* Gets the value of the variables property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the variables property.
*
*
* For example, to add a new item, do as follows:
*
* getVariables().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CreativeTemplateVariable }
*
*
*/
public List getVariables() {
if (variables == null) {
variables = new ArrayList();
}
return this.variables;
}
/**
* Gets the value of the snippet property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSnippet() {
return snippet;
}
/**
* Sets the value of the snippet property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSnippet(String value) {
this.snippet = value;
}
/**
* Gets the value of the status property.
*
* @return
* possible object is
* {@link CreativeTemplateStatus }
*
*/
public CreativeTemplateStatus getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link CreativeTemplateStatus }
*
*/
public void setStatus(CreativeTemplateStatus value) {
this.status = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link CreativeTemplateType }
*
*/
public CreativeTemplateType getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link CreativeTemplateType }
*
*/
public void setType(CreativeTemplateType value) {
this.type = value;
}
/**
* Gets the value of the isInterstitial property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isIsInterstitial() {
return isInterstitial;
}
/**
* Sets the value of the isInterstitial property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setIsInterstitial(Boolean value) {
this.isInterstitial = value;
}
/**
* Gets the value of the isNativeEligible property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isIsNativeEligible() {
return isNativeEligible;
}
/**
* Sets the value of the isNativeEligible property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setIsNativeEligible(Boolean value) {
this.isNativeEligible = value;
}
/**
* Gets the value of the isSafeFrameCompatible property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isIsSafeFrameCompatible() {
return isSafeFrameCompatible;
}
/**
* Sets the value of the isSafeFrameCompatible property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setIsSafeFrameCompatible(Boolean value) {
this.isSafeFrameCompatible = value;
}
}