public class Ad extends Object
Ads are created using the AdGroupAdService.
Some ad types such as ExpandedTextAds may be modified using the AdService.
When calling AdGroupAdService to update the status of an AdGroupAd,
you can construct an Ad object (instead of the Ad's concrete type) with the
id field set.
This is enabled for AdX.
Java class for Ad complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Ad">
<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="url" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="displayUrl" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="finalUrls" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
<element name="finalMobileUrls" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
<element name="finalAppUrls" type="{https://adwords.google.com/api/adwords/cm/v201809}AppUrl" maxOccurs="unbounded" minOccurs="0"/>
<element name="trackingUrlTemplate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="finalUrlSuffix" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="urlCustomParameters" type="{https://adwords.google.com/api/adwords/cm/v201809}CustomParameters" minOccurs="0"/>
<element name="urlData" type="{https://adwords.google.com/api/adwords/cm/v201809}UrlData" maxOccurs="unbounded" minOccurs="0"/>
<element name="automated" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
<element name="type" type="{https://adwords.google.com/api/adwords/cm/v201809}Ad.Type" minOccurs="0"/>
<element name="devicePreference" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
<element name="systemManagedEntitySource" type="{https://adwords.google.com/api/adwords/cm/v201809}SystemManagedEntitySource" minOccurs="0"/>
<element name="Ad.Type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
adType |
protected Boolean |
automated |
protected Long |
devicePreference |
protected String |
displayUrl |
protected List<AppUrl> |
finalAppUrls |
protected List<String> |
finalMobileUrls |
protected List<String> |
finalUrls |
protected String |
finalUrlSuffix |
protected Long |
id |
protected SystemManagedEntitySource |
systemManagedEntitySource |
protected String |
trackingUrlTemplate |
protected AdType |
type |
protected String |
url |
protected CustomParameters |
urlCustomParameters |
protected List<UrlData> |
urlData |
| Constructor and Description |
|---|
Ad() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAdType()
Gets the value of the adType property.
|
Long |
getDevicePreference()
Gets the value of the devicePreference property.
|
String |
getDisplayUrl()
Gets the value of the displayUrl property.
|
List<AppUrl> |
getFinalAppUrls()
Gets the value of the finalAppUrls property.
|
List<String> |
getFinalMobileUrls()
Gets the value of the finalMobileUrls property.
|
List<String> |
getFinalUrls()
Gets the value of the finalUrls property.
|
String |
getFinalUrlSuffix()
Gets the value of the finalUrlSuffix property.
|
Long |
getId()
Gets the value of the id property.
|
SystemManagedEntitySource |
getSystemManagedEntitySource()
Gets the value of the systemManagedEntitySource property.
|
String |
getTrackingUrlTemplate()
Gets the value of the trackingUrlTemplate property.
|
AdType |
getType()
Gets the value of the type property.
|
String |
getUrl()
Gets the value of the url property.
|
CustomParameters |
getUrlCustomParameters()
Gets the value of the urlCustomParameters property.
|
List<UrlData> |
getUrlData()
Gets the value of the urlData property.
|
Boolean |
isAutomated()
Gets the value of the automated property.
|
void |
setAdType(String value)
Sets the value of the adType property.
|
void |
setAutomated(Boolean value)
Sets the value of the automated property.
|
void |
setDevicePreference(Long value)
Sets the value of the devicePreference property.
|
void |
setDisplayUrl(String value)
Sets the value of the displayUrl property.
|
void |
setFinalUrlSuffix(String value)
Sets the value of the finalUrlSuffix property.
|
void |
setId(Long value)
Sets the value of the id property.
|
void |
setSystemManagedEntitySource(SystemManagedEntitySource value)
Sets the value of the systemManagedEntitySource property.
|
void |
setTrackingUrlTemplate(String value)
Sets the value of the trackingUrlTemplate property.
|
void |
setType(AdType value)
Sets the value of the type property.
|
void |
setUrl(String value)
Sets the value of the url property.
|
void |
setUrlCustomParameters(CustomParameters value)
Sets the value of the urlCustomParameters property.
|
protected Long id
protected String url
protected String displayUrl
protected String trackingUrlTemplate
protected String finalUrlSuffix
protected CustomParameters urlCustomParameters
protected Boolean automated
protected AdType type
protected Long devicePreference
protected SystemManagedEntitySource systemManagedEntitySource
protected String adType
public void setId(Long value)
value - allowed object is
Longpublic String getUrl()
Stringpublic void setUrl(String value)
value - allowed object is
Stringpublic String getDisplayUrl()
Stringpublic void setDisplayUrl(String value)
value - allowed object is
Stringpublic List<String> getFinalUrls()
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 finalUrls property.
For example, to add a new item, do as follows:
getFinalUrls().add(newItem);
Objects of the following type(s) are allowed in the list
String
public List<String> getFinalMobileUrls()
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 finalMobileUrls property.
For example, to add a new item, do as follows:
getFinalMobileUrls().add(newItem);
Objects of the following type(s) are allowed in the list
String
public List<AppUrl> getFinalAppUrls()
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 finalAppUrls property.
For example, to add a new item, do as follows:
getFinalAppUrls().add(newItem);
Objects of the following type(s) are allowed in the list
AppUrl
public String getTrackingUrlTemplate()
Stringpublic void setTrackingUrlTemplate(String value)
value - allowed object is
Stringpublic String getFinalUrlSuffix()
Stringpublic void setFinalUrlSuffix(String value)
value - allowed object is
Stringpublic CustomParameters getUrlCustomParameters()
CustomParameterspublic void setUrlCustomParameters(CustomParameters value)
value - allowed object is
CustomParameterspublic List<UrlData> getUrlData()
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 urlData property.
For example, to add a new item, do as follows:
getUrlData().add(newItem);
Objects of the following type(s) are allowed in the list
UrlData
public Boolean isAutomated()
Booleanpublic void setAutomated(Boolean value)
value - allowed object is
Booleanpublic AdType getType()
AdTypepublic void setType(AdType value)
value - allowed object is
AdTypepublic Long getDevicePreference()
Longpublic void setDevicePreference(Long value)
value - allowed object is
Longpublic SystemManagedEntitySource getSystemManagedEntitySource()
SystemManagedEntitySourcepublic void setSystemManagedEntitySource(SystemManagedEntitySource value)
value - allowed object is
SystemManagedEntitySourcepublic String getAdType()
StringCopyright © 2023. All rights reserved.