public class ListStringCreativeTemplateVariable extends StringCreativeTemplateVariable
StringCreativeTemplateVariable, except that there are possible choices to
choose from.
Use StringCreativeTemplateVariableValue to specify the value
for this variable when creating a TemplateCreative from a CreativeTemplate.
Java class for ListStringCreativeTemplateVariable complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="ListStringCreativeTemplateVariable">
<complexContent>
<extension base="{https://www.google.com/apis/ads/publisher/v201708}StringCreativeTemplateVariable">
<sequence>
<element name="choices" type="{https://www.google.com/apis/ads/publisher/v201708}ListStringCreativeTemplateVariable.VariableChoice" maxOccurs="unbounded" minOccurs="0"/>
<element name="allowOtherChoice" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
allowOtherChoice |
protected List<ListStringCreativeTemplateVariableVariableChoice> |
choices |
defaultValuedescription, isRequired, label, uniqueName| Constructor and Description |
|---|
ListStringCreativeTemplateVariable() |
| Modifier and Type | Method and Description |
|---|---|
List<ListStringCreativeTemplateVariableVariableChoice> |
getChoices()
Gets the value of the choices property.
|
Boolean |
isAllowOtherChoice()
Gets the value of the allowOtherChoice property.
|
void |
setAllowOtherChoice(Boolean value)
Sets the value of the allowOtherChoice property.
|
getDefaultValue, setDefaultValuegetDescription, getLabel, getUniqueName, isIsRequired, setDescription, setIsRequired, setLabel, setUniqueNameprotected List<ListStringCreativeTemplateVariableVariableChoice> choices
protected Boolean allowOtherChoice
public List<ListStringCreativeTemplateVariableVariableChoice> getChoices()
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 choices property.
For example, to add a new item, do as follows:
getChoices().add(newItem);
Objects of the following type(s) are allowed in the list
ListStringCreativeTemplateVariableVariableChoice
public Boolean isAllowOtherChoice()
BooleanCopyright © 2018. All Rights Reserved.