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

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

public class Polygon
extends Criterion
implements Serializable

Represents a Polygon Criterion. A polygon is described by a list of at least three points, where each point is a (latitude, longitude) ordered pair. No point can be more than 400km from the center of the polygon. The points are specified in microdegrees, the precison for the value is 1 second of angle which is equal to 277 microdegrees.

Please note that Polygons are deprecated. This means that Polygon targets cannot be added through the API, though existing targets can be retrieved and deleted.

See Also:
Serialized Form

Constructor Summary
Polygon()
           
Polygon(Long id, CriterionType type, String criterionType, GeoPoint[] vertices)
           
 
Method Summary
 boolean equals(Object obj)
           
static org.apache.axis.encoding.Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Deserializer
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
 GeoPoint[] getVertices()
          Gets the vertices value for this Polygon.
 GeoPoint getVertices(int i)
           
 int hashCode()
           
 void setVertices(GeoPoint[] vertices)
          Sets the vertices value for this Polygon.
 void setVertices(int i, GeoPoint _value)
           
 
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

Polygon

public Polygon()

Polygon

public Polygon(Long id,
               CriterionType type,
               String criterionType,
               GeoPoint[] vertices)
Method Detail

getVertices

public GeoPoint[] getVertices()
Gets the vertices value for this Polygon.

Returns:
vertices * The latitude/longitude points that define the polygon. At least three points are required, and no point can be more than 400km away from the center of the polygon. This field can be selected using the value "Vertices". This field is read only and should not be set. If this field is sent to the API, it will be ignored.

setVertices

public void setVertices(GeoPoint[] vertices)
Sets the vertices value for this Polygon.

Parameters:
vertices - * The latitude/longitude points that define the polygon. At least three points are required, and no point can be more than 400km away from the center of the polygon. This field can be selected using the value "Vertices". This field is read only and should not be set. If this field is sent to the API, it will be ignored.

getVertices

public GeoPoint getVertices(int i)

setVertices

public void setVertices(int i,
                        GeoPoint _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.