public class SuggestedAdUnit extends Object
SuggestedAdUnit represents a suggestion for a new ad unit, based on an ad tag that has
been served at least ten times in the past week, but which does not correspond to a defined ad
unit. This type is read-only.
Java class for SuggestedAdUnit complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="SuggestedAdUnit">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="id" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="numRequests" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
<element name="path" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
<element name="parentPath" type="{https://www.google.com/apis/ads/publisher/v201711}AdUnitParent" maxOccurs="unbounded" minOccurs="0"/>
<element name="targetWindow" type="{https://www.google.com/apis/ads/publisher/v201711}AdUnit.TargetWindow" minOccurs="0"/>
<element name="targetPlatform" type="{https://www.google.com/apis/ads/publisher/v201711}TargetPlatform" minOccurs="0"/>
<element name="suggestedAdUnitSizes" type="{https://www.google.com/apis/ads/publisher/v201711}AdUnitSize" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
id |
protected Long |
numRequests |
protected List<AdUnitParent> |
parentPath |
protected List<String> |
path |
protected List<AdUnitSize> |
suggestedAdUnitSizes |
protected TargetPlatform |
targetPlatform |
protected AdUnitTargetWindow |
targetWindow |
| Constructor and Description |
|---|
SuggestedAdUnit() |
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
Gets the value of the id property.
|
Long |
getNumRequests()
Gets the value of the numRequests property.
|
List<AdUnitParent> |
getParentPath()
Gets the value of the parentPath property.
|
List<String> |
getPath()
Gets the value of the path property.
|
List<AdUnitSize> |
getSuggestedAdUnitSizes()
Gets the value of the suggestedAdUnitSizes property.
|
TargetPlatform |
getTargetPlatform()
Gets the value of the targetPlatform property.
|
AdUnitTargetWindow |
getTargetWindow()
Gets the value of the targetWindow property.
|
void |
setId(String value)
Sets the value of the id property.
|
void |
setNumRequests(Long value)
Sets the value of the numRequests property.
|
void |
setTargetPlatform(TargetPlatform value)
Sets the value of the targetPlatform property.
|
void |
setTargetWindow(AdUnitTargetWindow value)
Sets the value of the targetWindow property.
|
protected String id
protected Long numRequests
protected List<AdUnitParent> parentPath
protected AdUnitTargetWindow targetWindow
protected TargetPlatform targetPlatform
protected List<AdUnitSize> suggestedAdUnitSizes
public void setId(String value)
value - allowed object is
Stringpublic Long getNumRequests()
Longpublic void setNumRequests(Long value)
value - allowed object is
Longpublic List<String> getPath()
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 path property.
For example, to add a new item, do as follows:
getPath().add(newItem);
Objects of the following type(s) are allowed in the list
String
public List<AdUnitParent> getParentPath()
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 parentPath property.
For example, to add a new item, do as follows:
getParentPath().add(newItem);
Objects of the following type(s) are allowed in the list
AdUnitParent
public AdUnitTargetWindow getTargetWindow()
AdUnitTargetWindowpublic void setTargetWindow(AdUnitTargetWindow value)
value - allowed object is
AdUnitTargetWindowpublic TargetPlatform getTargetPlatform()
TargetPlatformpublic void setTargetPlatform(TargetPlatform value)
value - allowed object is
TargetPlatformpublic List<AdUnitSize> getSuggestedAdUnitSizes()
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 suggestedAdUnitSizes property.
For example, to add a new item, do as follows:
getSuggestedAdUnitSizes().add(newItem);
Objects of the following type(s) are allowed in the list
AdUnitSize
Copyright © 2018. All Rights Reserved.