com.google.api.ads.dfp.axis.v201111
Class PostalCodeLocation

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

public class PostalCodeLocation
extends Location
implements Serializable

Represents a postal code for geographical targeting. On input, Location should be used instead and the Location.id field should be set.

See Also:
Serialized Form

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

Constructor Detail

PostalCodeLocation

public PostalCodeLocation()

PostalCodeLocation

public PostalCodeLocation(Long id,
                          String locationType,
                          String postalCode,
                          String countryCode)
Method Detail

getPostalCode

public String getPostalCode()
Gets the postalCode value for this PostalCodeLocation.

Returns:
postalCode * Value of the postal code. e.g. 07014 for US or A0A for Canada.

setPostalCode

public void setPostalCode(String postalCode)
Sets the postalCode value for this PostalCodeLocation.

Parameters:
postalCode - * Value of the postal code. e.g. 07014 for US or A0A for Canada.

getCountryCode

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

Returns:
countryCode * Country code for the postal code. Only US and CA are supported right now.

setCountryCode

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

Parameters:
countryCode - * Country code for the postal code. Only US and CA are supported right now.

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