public class GmailAd extends Ad
Caution: Gmail ads do not use url, displayUrl, finalAppUrls, or devicePreference;
Setting these fields on a Gmail ad will cause an error.
This is enabled for AdX.
Java class for GmailAd complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="GmailAd">
<complexContent>
<extension base="{https://adwords.google.com/api/adwords/cm/v201809}Ad">
<sequence>
<element name="teaser" type="{https://adwords.google.com/api/adwords/cm/v201809}GmailTeaser" minOccurs="0"/>
<element name="headerImage" type="{https://adwords.google.com/api/adwords/cm/v201809}Image" minOccurs="0"/>
<element name="marketingImage" type="{https://adwords.google.com/api/adwords/cm/v201809}Image" minOccurs="0"/>
<element name="marketingImageHeadline" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="marketingImageDescription" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="marketingImageDisplayCallToAction" type="{https://adwords.google.com/api/adwords/cm/v201809}DisplayCallToAction" minOccurs="0"/>
<element name="productImages" type="{https://adwords.google.com/api/adwords/cm/v201809}ProductImage" maxOccurs="unbounded" minOccurs="0"/>
<element name="productVideoList" type="{https://adwords.google.com/api/adwords/cm/v201809}Video" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected Image |
headerImage |
protected Image |
marketingImage |
protected String |
marketingImageDescription |
protected DisplayCallToAction |
marketingImageDisplayCallToAction |
protected String |
marketingImageHeadline |
protected List<ProductImage> |
productImages |
protected List<Video> |
productVideoList |
protected GmailTeaser |
teaser |
adType, automated, devicePreference, displayUrl, finalAppUrls, finalMobileUrls, finalUrls, finalUrlSuffix, id, systemManagedEntitySource, trackingUrlTemplate, type, url, urlCustomParameters, urlData| Constructor and Description |
|---|
GmailAd() |
| Modifier and Type | Method and Description |
|---|---|
Image |
getHeaderImage()
Gets the value of the headerImage property.
|
Image |
getMarketingImage()
Gets the value of the marketingImage property.
|
String |
getMarketingImageDescription()
Gets the value of the marketingImageDescription property.
|
DisplayCallToAction |
getMarketingImageDisplayCallToAction()
Gets the value of the marketingImageDisplayCallToAction property.
|
String |
getMarketingImageHeadline()
Gets the value of the marketingImageHeadline property.
|
List<ProductImage> |
getProductImages()
Gets the value of the productImages property.
|
List<Video> |
getProductVideoList()
Gets the value of the productVideoList property.
|
GmailTeaser |
getTeaser()
Gets the value of the teaser property.
|
void |
setHeaderImage(Image value)
Sets the value of the headerImage property.
|
void |
setMarketingImage(Image value)
Sets the value of the marketingImage property.
|
void |
setMarketingImageDescription(String value)
Sets the value of the marketingImageDescription property.
|
void |
setMarketingImageDisplayCallToAction(DisplayCallToAction value)
Sets the value of the marketingImageDisplayCallToAction property.
|
void |
setMarketingImageHeadline(String value)
Sets the value of the marketingImageHeadline property.
|
void |
setTeaser(GmailTeaser value)
Sets the value of the teaser 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 GmailTeaser teaser
protected Image headerImage
protected Image marketingImage
protected String marketingImageHeadline
protected String marketingImageDescription
protected DisplayCallToAction marketingImageDisplayCallToAction
protected List<ProductImage> productImages
public GmailTeaser getTeaser()
GmailTeaserpublic void setTeaser(GmailTeaser value)
value - allowed object is
GmailTeaserpublic Image getHeaderImage()
Imagepublic void setHeaderImage(Image value)
value - allowed object is
Imagepublic Image getMarketingImage()
Imagepublic void setMarketingImage(Image value)
value - allowed object is
Imagepublic String getMarketingImageHeadline()
Stringpublic void setMarketingImageHeadline(String value)
value - allowed object is
Stringpublic String getMarketingImageDescription()
Stringpublic void setMarketingImageDescription(String value)
value - allowed object is
Stringpublic DisplayCallToAction getMarketingImageDisplayCallToAction()
DisplayCallToActionpublic void setMarketingImageDisplayCallToAction(DisplayCallToAction value)
value - allowed object is
DisplayCallToActionpublic List<ProductImage> getProductImages()
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 productImages property.
For example, to add a new item, do as follows:
getProductImages().add(newItem);
Objects of the following type(s) are allowed in the list
ProductImage
public List<Video> getProductVideoList()
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 productVideoList property.
For example, to add a new item, do as follows:
getProductVideoList().add(newItem);
Objects of the following type(s) are allowed in the list
Video
Copyright © 2023. All rights reserved.