com.google.api.ads.dfp.axis.v201208
Class CountryLocation

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

public class CountryLocation
extends Location
implements Serializable

Represents a country 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
CountryLocation()
           
CountryLocation(Long id, String locationType, String countryCode)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCountryCode()
          Gets the countryCode value for this CountryLocation.
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
 int hashCode()
           
 void setCountryCode(String countryCode)
          Sets the countryCode value for this CountryLocation.
 
Methods inherited from class com.google.api.ads.dfp.axis.v201208.Location
getId, getLocationType, setId, setLocationType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountryLocation

public CountryLocation()

CountryLocation

public CountryLocation(Long id,
                       String locationType,
                       String countryCode)
Method Detail

getCountryCode

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

Returns:
countryCode * Country code as defined by ISO 3166-1 alpha-2.

setCountryCode

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

Parameters:
countryCode - * Country code as defined by ISO 3166-1 alpha-2.

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.