com.google.api.ads.adwords.v201109.cm
Class Location

java.lang.Object
  extended by com.google.api.ads.adwords.v201109.cm.Criterion
      extended by com.google.api.ads.adwords.v201109.cm.Location
All Implemented Interfaces:
Serializable

public class Location
extends Criterion
implements Serializable

Represents Location criterion.

A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded.

See Also:
Serialized Form

Constructor Summary
Location()
           
Location(Long id, CriterionType type, String criterionType, String locationName, String displayType, Boolean isObsolete, Location[] parentLocations)
           
 
Method Summary
 boolean equals(Object obj)
           
static org.apache.axis.encoding.Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Deserializer
 String getDisplayType()
          Gets the displayType value for this Location.
 Boolean getIsObsolete()
          Gets the isObsolete value for this Location.
 String getLocationName()
          Gets the locationName value for this Location.
 Location[] getParentLocations()
          Gets the parentLocations value for this Location.
 Location getParentLocations(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 setDisplayType(String displayType)
          Sets the displayType value for this Location.
 void setIsObsolete(Boolean isObsolete)
          Sets the isObsolete value for this Location.
 void setLocationName(String locationName)
          Sets the locationName value for this Location.
 void setParentLocations(int i, Location _value)
           
 void setParentLocations(Location[] parentLocations)
          Sets the parentLocations value for this Location.
 
Methods inherited from class com.google.api.ads.adwords.v201109.cm.Criterion
getCriterionType, getId, getType, setCriterionType, setId, setType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Location

public Location()

Location

public Location(Long id,
                CriterionType type,
                String criterionType,
                String locationName,
                String displayType,
                Boolean isObsolete,
                Location[] parentLocations)
Method Detail

getLocationName

public String getLocationName()
Gets the locationName value for this Location.

Returns:
locationName * Name of the location criterion. Note: This field is filterable only in LocationCriterionService. This field can be selected using the value "LocationName".This field can be filtered on. This field is read only and should not be set. If this field is sent to the API, it will be ignored.

setLocationName

public void setLocationName(String locationName)
Sets the locationName value for this Location.

Parameters:
locationName - * Name of the location criterion. Note: This field is filterable only in LocationCriterionService. This field can be selected using the value "LocationName".This field can be filtered on. This field is read only and should not be set. If this field is sent to the API, it will be ignored.

getDisplayType

public String getDisplayType()
Gets the displayType value for this Location.

Returns:
displayType * Display type of the location criterion. This field can be selected using the value "DisplayType". This field is read only and should not be set. If this field is sent to the API, it will be ignored.

setDisplayType

public void setDisplayType(String displayType)
Sets the displayType value for this Location.

Parameters:
displayType - * Display type of the location criterion. This field can be selected using the value "DisplayType". This field is read only and should not be set. If this field is sent to the API, it will be ignored.

getIsObsolete

public Boolean getIsObsolete()
Gets the isObsolete value for this Location.

Returns:
isObsolete * Indicates if the location criterion is obsolete. This field can be selected using the value "IsObsolete". This field is read only and should not be set. If this field is sent to the API, it will be ignored.

setIsObsolete

public void setIsObsolete(Boolean isObsolete)
Sets the isObsolete value for this Location.

Parameters:
isObsolete - * Indicates if the location criterion is obsolete. This field can be selected using the value "IsObsolete". This field is read only and should not be set. If this field is sent to the API, it will be ignored.

getParentLocations

public Location[] getParentLocations()
Gets the parentLocations value for this Location.

Returns:
parentLocations * Ordered list of parents of the location criterion. * This field can be selected using the value "ParentLocations". This field is read only and should not be set. If this field is sent to the API, it will be ignored.

setParentLocations

public void setParentLocations(Location[] parentLocations)
Sets the parentLocations value for this Location.

Parameters:
parentLocations - * Ordered list of parents of the location criterion. * This field can be selected using the value "ParentLocations". This field is read only and should not be set. If this field is sent to the API, it will be ignored.

getParentLocations

public Location getParentLocations(int i)

setParentLocations

public void setParentLocations(int i,
                               Location _value)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Criterion

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.