public class LocationSearchParameter extends SearchParameter
SearchParameter used to indicate the locations being targeted.
This can be used, for example, to search for KEYWORD
IdeaTypes that are best for Japan and Los Angeles.
This parameter replaces the CountryTargetSearchParameter.
See the Geographical Targeting page for the complete list of supported geo target types for this service.
The service allows up to 10 locations to be targeted for KEYWORD requests and 50 locations for PLACEMENT requests.
This element is supported by following IdeaTypes: KEYWORD.
This element is supported by following RequestTypes: IDEAS, STATS.
Java class for LocationSearchParameter complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="LocationSearchParameter">
<complexContent>
<extension base="{https://adwords.google.com/api/adwords/o/v201809}SearchParameter">
<sequence>
<element name="locations" type="{https://adwords.google.com/api/adwords/cm/v201809}Location" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected List<Location> |
locations |
searchParameterType| Constructor and Description |
|---|
LocationSearchParameter() |
| Modifier and Type | Method and Description |
|---|---|
List<Location> |
getLocations()
Gets the value of the locations property.
|
getSearchParameterType, setSearchParameterTypepublic List<Location> getLocations()
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 locations property.
For example, to add a new item, do as follows:
getLocations().add(newItem);
Objects of the following type(s) are allowed in the list
Location
Copyright © 2023. All rights reserved.