com.google.api.ads.dfp.axis.v201203
Class CityLocation

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

public class CityLocation
extends Location
implements Serializable

Represents a city for geographical targeting.

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

Constructor Detail

CityLocation

public CityLocation()

CityLocation

public CityLocation(Long id,
                    String locationType,
                    String cityName,
                    String regionCode,
                    String countryCode)
Method Detail

getCityName

public String getCityName()
Gets the cityName value for this CityLocation.

Returns:
cityName * Case insensitive name of the city. This field is required.

setCityName

public void setCityName(String cityName)
Sets the cityName value for this CityLocation.

Parameters:
cityName - * Case insensitive name of the city. This field is required.

getRegionCode

public String getRegionCode()
Gets the regionCode value for this CityLocation.

Returns:
regionCode * ISO 3166-2 region code. This field is required if there are two or more cities with the same name in the country.

setRegionCode

public void setRegionCode(String regionCode)
Sets the regionCode value for this CityLocation.

Parameters:
regionCode - * ISO 3166-2 region code. This field is required if there are two or more cities with the same name in the country.

getCountryCode

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

Returns:
countryCode * ISO 3166-1 alpha-2 country code. This field is required.

setCountryCode

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

Parameters:
countryCode - * ISO 3166-1 alpha-2 country code. This field is required.

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.