com.google.api.ads.adwords.v201109.o
Class LocationSearchParameter

java.lang.Object
  extended by com.google.api.ads.adwords.v201109.o.SearchParameter
      extended by com.google.api.ads.adwords.v201109.o.LocationSearchParameter
All Implemented Interfaces:
Serializable

public class LocationSearchParameter
extends SearchParameter
implements Serializable

A SearchParameter for both PLACEMENT and KEYWORD IdeaTypes 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.

Warning: Not all back-ends support sub-country precision.

This search parameter can be used in bulk keyword requests through the com.google.ads.api.services.targetingideas.TargetingIdeaService#getBulkKeywordIdeas(TargetingIdeaSelector) method. It must be single-valued when used in a call to that method.

This element is supported by following IdeaTypes: KEYWORD, PLACEMENT.

This element is supported by following RequestTypes: IDEAS, STATS.

See Also:
Serialized Form

Constructor Summary
LocationSearchParameter()
           
LocationSearchParameter(String searchParameterType, Location[] locations)
           
 
Method Summary
 boolean equals(Object obj)
           
static org.apache.axis.encoding.Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Deserializer
 Location[] getLocations()
          Gets the locations value for this LocationSearchParameter.
 Location getLocations(int i)
           
static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Serializer
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return type metadata object
 int hashCode()
           
 void setLocations(int i, Location _value)
           
 void setLocations(Location[] locations)
          Sets the locations value for this LocationSearchParameter.
 
Methods inherited from class com.google.api.ads.adwords.v201109.o.SearchParameter
getSearchParameterType, setSearchParameterType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationSearchParameter

public LocationSearchParameter()

LocationSearchParameter

public LocationSearchParameter(String searchParameterType,
                               Location[] locations)
Method Detail

getLocations

public Location[] getLocations()
Gets the locations value for this LocationSearchParameter.

Returns:
locations * A List of Locations indicating the desired countries being targeted in the results. The maximum size of this collection is 300. This field must contain distinct elements. This field must not contain null elements. This field must contain at least one element. This field is required and should not be null.

setLocations

public void setLocations(Location[] locations)
Sets the locations value for this LocationSearchParameter.

Parameters:
locations - * A List of Locations indicating the desired countries being targeted in the results. The maximum size of this collection is 300. This field must contain distinct elements. This field must not contain null elements. This field must contain at least one element. This field is required and should not be null.

getLocations

public Location getLocations(int i)

setLocations

public void setLocations(int i,
                         Location _value)

equals

public boolean equals(Object obj)
Overrides:
equals in class SearchParameter

hashCode

public int hashCode()
Overrides:
hashCode in class SearchParameter

getTypeDesc

public static org.apache.axis.description.TypeDesc getTypeDesc()
Return type metadata object


getSerializer

public static org.apache.axis.encoding.Serializer getSerializer(String mechType,
                                                                Class _javaType,
                                                                QName _xmlType)
Get Custom Serializer


getDeserializer

public static org.apache.axis.encoding.Deserializer getDeserializer(String mechType,
                                                                    Class _javaType,
                                                                    QName _xmlType)
Get Custom Deserializer



Copyright © 2011. All Rights Reserved.