public class TemplateAd extends Ad
Java class for TemplateAd complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="TemplateAd">
<complexContent>
<extension base="{https://adwords.google.com/api/adwords/cm/v201809}Ad">
<sequence>
<element name="templateId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
<element name="adUnionId" type="{https://adwords.google.com/api/adwords/cm/v201809}AdUnionId" minOccurs="0"/>
<element name="templateElements" type="{https://adwords.google.com/api/adwords/cm/v201809}TemplateElement" maxOccurs="unbounded" minOccurs="0"/>
<element name="adAsImage" type="{https://adwords.google.com/api/adwords/cm/v201809}Image" minOccurs="0"/>
<element name="dimensions" type="{https://adwords.google.com/api/adwords/cm/v201809}Dimensions" minOccurs="0"/>
<element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="duration" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
<element name="originAdId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected Image |
adAsImage |
protected AdUnionId |
adUnionId |
protected Dimensions |
dimensions |
protected Integer |
duration |
protected String |
name |
protected Long |
originAdId |
protected List<TemplateElement> |
templateElements |
protected Long |
templateId |
adType, automated, devicePreference, displayUrl, finalAppUrls, finalMobileUrls, finalUrls, finalUrlSuffix, id, systemManagedEntitySource, trackingUrlTemplate, type, url, urlCustomParameters, urlData| Constructor and Description |
|---|
TemplateAd() |
| Modifier and Type | Method and Description |
|---|---|
Image |
getAdAsImage()
Gets the value of the adAsImage property.
|
AdUnionId |
getAdUnionId()
Gets the value of the adUnionId property.
|
Dimensions |
getDimensions()
Gets the value of the dimensions property.
|
Integer |
getDuration()
Gets the value of the duration property.
|
String |
getName()
Gets the value of the name property.
|
Long |
getOriginAdId()
Gets the value of the originAdId property.
|
List<TemplateElement> |
getTemplateElements()
Gets the value of the templateElements property.
|
Long |
getTemplateId()
Gets the value of the templateId property.
|
void |
setAdAsImage(Image value)
Sets the value of the adAsImage property.
|
void |
setAdUnionId(AdUnionId value)
Sets the value of the adUnionId property.
|
void |
setDimensions(Dimensions value)
Sets the value of the dimensions property.
|
void |
setDuration(Integer value)
Sets the value of the duration property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setOriginAdId(Long value)
Sets the value of the originAdId property.
|
void |
setTemplateId(Long value)
Sets the value of the templateId property.
|
getAdType, getDevicePreference, getDisplayUrl, getFinalAppUrls, getFinalMobileUrls, getFinalUrls, getFinalUrlSuffix, getId, getSystemManagedEntitySource, getTrackingUrlTemplate, getType, getUrl, getUrlCustomParameters, getUrlData, isAutomated, setAdType, setAutomated, setDevicePreference, setDisplayUrl, setFinalUrlSuffix, setId, setSystemManagedEntitySource, setTrackingUrlTemplate, setType, setUrl, setUrlCustomParametersprotected Long templateId
protected AdUnionId adUnionId
protected List<TemplateElement> templateElements
protected Image adAsImage
protected Dimensions dimensions
protected String name
protected Integer duration
protected Long originAdId
public Long getTemplateId()
Longpublic void setTemplateId(Long value)
value - allowed object is
Longpublic AdUnionId getAdUnionId()
AdUnionIdpublic void setAdUnionId(AdUnionId value)
value - allowed object is
AdUnionIdpublic List<TemplateElement> getTemplateElements()
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 templateElements property.
For example, to add a new item, do as follows:
getTemplateElements().add(newItem);
Objects of the following type(s) are allowed in the list
TemplateElement
public Image getAdAsImage()
Imagepublic void setAdAsImage(Image value)
value - allowed object is
Imagepublic Dimensions getDimensions()
Dimensionspublic void setDimensions(Dimensions value)
value - allowed object is
Dimensionspublic String getName()
Stringpublic void setName(String value)
value - allowed object is
Stringpublic Integer getDuration()
Integerpublic void setDuration(Integer value)
value - allowed object is
Integerpublic Long getOriginAdId()
LongCopyright © 2023. All rights reserved.