com.google.api.ads.dfp.axis.v201206
Class Location

java.lang.Object
  extended by com.google.api.ads.dfp.axis.v201206.Location
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CityLocation, CountryLocation, MetroLocation, PostalCodeLocation, RegionLocation

public class Location
extends Object
implements Serializable

A Location represents a geographical entity that can be targeted. If a location type is not available because of the API version you are using, the location will be represented as just the base class, otherwise it will be sub-classed correctly.

See Also:
Serialized Form

Constructor Summary
Location()
           
Location(Long id, String locationType)
           
 
Method Summary
 boolean equals(Object obj)
           
static org.apache.axis.encoding.Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Deserializer
 Long getId()
          Gets the id value for this Location.
 String getLocationType()
          Gets the locationType value for this Location.
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 setId(Long id)
          Sets the id value for this Location.
 void setLocationType(String locationType)
          Sets the locationType value for this Location.
 
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,
                String locationType)
Method Detail

getId

public Long getId()
Gets the id value for this Location.

Returns:
id * Uniquely identifies each Location.

setId

public void setId(Long id)
Sets the id value for this Location.

Parameters:
id - * Uniquely identifies each Location.

getLocationType

public String getLocationType()
Gets the locationType value for this Location.

Returns:
locationType * Indicates that this instance is a subtype of Location. Although this field is returned in the response, it is ignored on input and cannot be selected. Specify xsi:type instead.

setLocationType

public void setLocationType(String locationType)
Sets the locationType value for this Location.

Parameters:
locationType - * Indicates that this instance is a subtype of Location. Although this field is returned in the response, it is ignored on input and cannot be selected. Specify xsi:type instead.

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

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 © 2012. All Rights Reserved.