com.google.api.ads.dfp.v201111
Class MetroLocation

java.lang.Object
  extended by com.google.api.ads.dfp.v201111.Location
      extended by com.google.api.ads.dfp.v201111.MetroLocation
All Implemented Interfaces:
Serializable

public class MetroLocation
extends Location
implements Serializable

Represents a metropolitan area for geographical targeting. Currently, metropolitan areas only within the United States can be targeted.

Since v201104, fields of this class are ignored on input. Instead Location should be used and the Location.id field should be set.

See Also:
Serialized Form

Constructor Summary
MetroLocation()
           
MetroLocation(Long id, String locationType, String metroCode, String countryCode)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCountryCode()
          Gets the countryCode value for this MetroLocation.
static org.apache.axis.encoding.Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Deserializer
 String getMetroCode()
          Gets the metroCode value for this MetroLocation.
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 setCountryCode(String countryCode)
          Sets the countryCode value for this MetroLocation.
 void setMetroCode(String metroCode)
          Sets the metroCode value for this MetroLocation.
 
Methods inherited from class com.google.api.ads.dfp.v201111.Location
getId, getLocationType, setId, setLocationType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetroLocation

public MetroLocation()

MetroLocation

public MetroLocation(Long id,
                     String locationType,
                     String metroCode,
                     String countryCode)
Method Detail

getMetroCode

public String getMetroCode()
Gets the metroCode value for this MetroLocation.

Returns:
metroCode * The 3 digit metro code, not to be confused with the metro name. This field is required.

setMetroCode

public void setMetroCode(String metroCode)
Sets the metroCode value for this MetroLocation.

Parameters:
metroCode - * The 3 digit metro code, not to be confused with the metro name. This field is required.

getCountryCode

public String getCountryCode()
Gets the countryCode value for this MetroLocation.

Returns:
countryCode * ISO 3166-1 alpha-2 country code.

setCountryCode

public void setCountryCode(String countryCode)
Sets the countryCode value for this MetroLocation.

Parameters:
countryCode - * ISO 3166-1 alpha-2 country code.

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Location

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.