public class ResponsiveSearchAd extends Ad
Important
To increase the likelihood that your ad shows, be sure to provide at least 5 distinct headlines and 2 distinct descriptions that don't repeat the same or similar phrases. Providing redundant content will restrict the system's ability to assemble combinations. See example ads
Help center documentation
Caution: Responsive search ads do not use url, displayUrl, finalAppUrls, or devicePreference; setting these fields on a responsive search ad will cause an error.
Java class for ResponsiveSearchAd complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="ResponsiveSearchAd">
<complexContent>
<extension base="{https://adwords.google.com/api/adwords/cm/v201809}Ad">
<sequence>
<element name="headlines" type="{https://adwords.google.com/api/adwords/cm/v201809}AssetLink" maxOccurs="unbounded" minOccurs="0"/>
<element name="descriptions" type="{https://adwords.google.com/api/adwords/cm/v201809}AssetLink" maxOccurs="unbounded" minOccurs="0"/>
<element name="path1" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="path2" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected List<AssetLink> |
descriptions |
protected List<AssetLink> |
headlines |
protected String |
path1 |
protected String |
path2 |
adType, automated, devicePreference, displayUrl, finalAppUrls, finalMobileUrls, finalUrls, finalUrlSuffix, id, systemManagedEntitySource, trackingUrlTemplate, type, url, urlCustomParameters, urlData| Constructor and Description |
|---|
ResponsiveSearchAd() |
| Modifier and Type | Method and Description |
|---|---|
List<AssetLink> |
getDescriptions()
Gets the value of the descriptions property.
|
List<AssetLink> |
getHeadlines()
Gets the value of the headlines property.
|
String |
getPath1()
Gets the value of the path1 property.
|
String |
getPath2()
Gets the value of the path2 property.
|
void |
setPath1(String value)
Sets the value of the path1 property.
|
void |
setPath2(String value)
Sets the value of the path2 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, setUrlCustomParameterspublic List<AssetLink> getHeadlines()
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 headlines property.
For example, to add a new item, do as follows:
getHeadlines().add(newItem);
Objects of the following type(s) are allowed in the list
AssetLink
public List<AssetLink> getDescriptions()
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 descriptions property.
For example, to add a new item, do as follows:
getDescriptions().add(newItem);
Objects of the following type(s) are allowed in the list
AssetLink
public String getPath1()
Stringpublic void setPath1(String value)
value - allowed object is
Stringpublic String getPath2()
StringCopyright © 2023. All rights reserved.