public class Placement extends SiteTargetingInfo
Placement groups related AdUnit objects.
Java class for Placement complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Placement">
<complexContent>
<extension base="{https://www.google.com/apis/ads/publisher/v201802}SiteTargetingInfo">
<sequence>
<element name="id" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
<element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="placementCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="status" type="{https://www.google.com/apis/ads/publisher/v201802}InventoryStatus" minOccurs="0"/>
<element name="targetedAdUnitIds" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
<element name="lastModifiedDateTime" type="{https://www.google.com/apis/ads/publisher/v201802}DateTime" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
description |
protected Long |
id |
protected DateTime |
lastModifiedDateTime |
protected String |
name |
protected String |
placementCode |
protected InventoryStatus |
status |
protected List<String> |
targetedAdUnitIds |
| Constructor and Description |
|---|
Placement() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Gets the value of the description property.
|
Long |
getId()
Gets the value of the id property.
|
DateTime |
getLastModifiedDateTime()
Gets the value of the lastModifiedDateTime property.
|
String |
getName()
Gets the value of the name property.
|
String |
getPlacementCode()
Gets the value of the placementCode property.
|
InventoryStatus |
getStatus()
Gets the value of the status property.
|
List<String> |
getTargetedAdUnitIds()
Gets the value of the targetedAdUnitIds property.
|
void |
setDescription(String value)
Sets the value of the description property.
|
void |
setId(Long value)
Sets the value of the id property.
|
void |
setLastModifiedDateTime(DateTime value)
Sets the value of the lastModifiedDateTime property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setPlacementCode(String value)
Sets the value of the placementCode property.
|
void |
setStatus(InventoryStatus value)
Sets the value of the status property.
|
protected Long id
protected String name
protected String description
protected String placementCode
protected InventoryStatus status
protected DateTime lastModifiedDateTime
public void setId(Long value)
value - allowed object is
Longpublic String getName()
Stringpublic void setName(String value)
value - allowed object is
Stringpublic String getDescription()
Stringpublic void setDescription(String value)
value - allowed object is
Stringpublic String getPlacementCode()
Stringpublic void setPlacementCode(String value)
value - allowed object is
Stringpublic InventoryStatus getStatus()
InventoryStatuspublic void setStatus(InventoryStatus value)
value - allowed object is
InventoryStatuspublic List<String> getTargetedAdUnitIds()
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 targetedAdUnitIds property.
For example, to add a new item, do as follows:
getTargetedAdUnitIds().add(newItem);
Objects of the following type(s) are allowed in the list
String
public DateTime getLastModifiedDateTime()
DateTimeCopyright © 2018. All Rights Reserved.