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

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

public class Proximity
extends Criterion
implements Serializable

Represents a Proximity Criterion. A proximity is an area within a certain radius of a point with the center point being described by a lat/long pair. The caller may also alternatively provide address fields which will be geocoded into a lat/long pair.

A criterion of this type is only targetable.

See Also:
Serialized Form

Constructor Summary
Proximity()
           
Proximity(Long id, CriterionType type, String criterionType, GeoPoint geoPoint, ProximityDistanceUnits radiusDistanceUnits, Double radiusInUnits, Address address)
           
 
Method Summary
 boolean equals(Object obj)
           
 Address getAddress()
          Gets the address value for this Proximity.
static org.apache.axis.encoding.Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Deserializer
 GeoPoint getGeoPoint()
          Gets the geoPoint value for this Proximity.
 ProximityDistanceUnits getRadiusDistanceUnits()
          Gets the radiusDistanceUnits value for this Proximity.
 Double getRadiusInUnits()
          Gets the radiusInUnits value for this Proximity.
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 setAddress(Address address)
          Sets the address value for this Proximity.
 void setGeoPoint(GeoPoint geoPoint)
          Sets the geoPoint value for this Proximity.
 void setRadiusDistanceUnits(ProximityDistanceUnits radiusDistanceUnits)
          Sets the radiusDistanceUnits value for this Proximity.
 void setRadiusInUnits(Double radiusInUnits)
          Sets the radiusInUnits value for this Proximity.
 
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

Proximity

public Proximity()

Proximity

public Proximity(Long id,
                 CriterionType type,
                 String criterionType,
                 GeoPoint geoPoint,
                 ProximityDistanceUnits radiusDistanceUnits,
                 Double radiusInUnits,
                 Address address)
Method Detail

getGeoPoint

public GeoPoint getGeoPoint()
Gets the geoPoint value for this Proximity.

Returns:
geoPoint * Latitude and longitude. This field can be selected using the value "GeoPoint". This field is required and should not be null when it is contained within Operators : ADD.

setGeoPoint

public void setGeoPoint(GeoPoint geoPoint)
Sets the geoPoint value for this Proximity.

Parameters:
geoPoint - * Latitude and longitude. This field can be selected using the value "GeoPoint". This field is required and should not be null when it is contained within Operators : ADD.

getRadiusDistanceUnits

public ProximityDistanceUnits getRadiusDistanceUnits()
Gets the radiusDistanceUnits value for this Proximity.

Returns:
radiusDistanceUnits * Radius distance units. This field can be selected using the value "RadiusDistanceUnits". This field is required and should not be null when it is contained within Operators : ADD.

setRadiusDistanceUnits

public void setRadiusDistanceUnits(ProximityDistanceUnits radiusDistanceUnits)
Sets the radiusDistanceUnits value for this Proximity.

Parameters:
radiusDistanceUnits - * Radius distance units. This field can be selected using the value "RadiusDistanceUnits". This field is required and should not be null when it is contained within Operators : ADD.

getRadiusInUnits

public Double getRadiusInUnits()
Gets the radiusInUnits value for this Proximity.

Returns:
radiusInUnits * Radius expressed in distance units. This field can be selected using the value "RadiusInUnits". This field is required and should not be null when it is contained within Operators : ADD.

setRadiusInUnits

public void setRadiusInUnits(Double radiusInUnits)
Sets the radiusInUnits value for this Proximity.

Parameters:
radiusInUnits - * Radius expressed in distance units. This field can be selected using the value "RadiusInUnits". This field is required and should not be null when it is contained within Operators : ADD.

getAddress

public Address getAddress()
Gets the address value for this Proximity.

Returns:
address * Full address; null if unknonwn. This field can be selected using the value "Address".

setAddress

public void setAddress(Address address)
Sets the address value for this Proximity.

Parameters:
address - * Full address; null if unknonwn. This field can be selected using the value "Address".

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.