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

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

public class LocationExtension
extends AdExtension
implements Serializable

Location based ad extension.

See Also:
Serialized Form

Constructor Summary
LocationExtension()
           
LocationExtension(Long id, String adExtensionType, Address address, GeoPoint geoPoint, byte[] encodedLocation, String companyName, String phoneNumber, LocationExtensionSource source, Long iconMediaId, Long imageMediaId)
           
 
Method Summary
 boolean equals(Object obj)
           
 Address getAddress()
          Gets the address value for this LocationExtension.
 String getCompanyName()
          Gets the companyName value for this LocationExtension.
static org.apache.axis.encoding.Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Deserializer
 byte[] getEncodedLocation()
          Gets the encodedLocation value for this LocationExtension.
 GeoPoint getGeoPoint()
          Gets the geoPoint value for this LocationExtension.
 Long getIconMediaId()
          Gets the iconMediaId value for this LocationExtension.
 Long getImageMediaId()
          Gets the imageMediaId value for this LocationExtension.
 String getPhoneNumber()
          Gets the phoneNumber value for this LocationExtension.
static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Serializer
 LocationExtensionSource getSource()
          Gets the source value for this LocationExtension.
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return type metadata object
 int hashCode()
           
 void setAddress(Address address)
          Sets the address value for this LocationExtension.
 void setCompanyName(String companyName)
          Sets the companyName value for this LocationExtension.
 void setEncodedLocation(byte[] encodedLocation)
          Sets the encodedLocation value for this LocationExtension.
 void setGeoPoint(GeoPoint geoPoint)
          Sets the geoPoint value for this LocationExtension.
 void setIconMediaId(Long iconMediaId)
          Sets the iconMediaId value for this LocationExtension.
 void setImageMediaId(Long imageMediaId)
          Sets the imageMediaId value for this LocationExtension.
 void setPhoneNumber(String phoneNumber)
          Sets the phoneNumber value for this LocationExtension.
 void setSource(LocationExtensionSource source)
          Sets the source value for this LocationExtension.
 
Methods inherited from class com.google.api.ads.adwords.v201109.cm.AdExtension
getAdExtensionType, getId, setAdExtensionType, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationExtension

public LocationExtension()

LocationExtension

public LocationExtension(Long id,
                         String adExtensionType,
                         Address address,
                         GeoPoint geoPoint,
                         byte[] encodedLocation,
                         String companyName,
                         String phoneNumber,
                         LocationExtensionSource source,
                         Long iconMediaId,
                         Long imageMediaId)
Method Detail

getAddress

public Address getAddress()
Gets the address value for this LocationExtension.

Returns:
address * Address of the location (as is populated in GeoLocation by GeoLocationService). This field can be selected using the value "Address".

setAddress

public void setAddress(Address address)
Sets the address value for this LocationExtension.

Parameters:
address - * Address of the location (as is populated in GeoLocation by GeoLocationService). This field can be selected using the value "Address".

getGeoPoint

public GeoPoint getGeoPoint()
Gets the geoPoint value for this LocationExtension.

Returns:
geoPoint * The lat/long point of the location (as is populated in GeoLocation by GeoLocationService). This field can be selected using the value "GeoPoint".

setGeoPoint

public void setGeoPoint(GeoPoint geoPoint)
Sets the geoPoint value for this LocationExtension.

Parameters:
geoPoint - * The lat/long point of the location (as is populated in GeoLocation by GeoLocationService). This field can be selected using the value "GeoPoint".

getEncodedLocation

public byte[] getEncodedLocation()
Gets the encodedLocation value for this LocationExtension.

Returns:
encodedLocation * Byte data encoding address and geo point (as is populated in GeoLocation by GeoLocationService). Input only. Required on location extension creation. This field can be selected using the value "EncodedLocation".

setEncodedLocation

public void setEncodedLocation(byte[] encodedLocation)
Sets the encodedLocation value for this LocationExtension.

Parameters:
encodedLocation - * Byte data encoding address and geo point (as is populated in GeoLocation by GeoLocationService). Input only. Required on location extension creation. This field can be selected using the value "EncodedLocation".

getCompanyName

public String getCompanyName()
Gets the companyName value for this LocationExtension.

Returns:
companyName * The name of the company located at the given address This field can be selected using the value "CompanyName". The length of this string should be between 1 and 80, inclusive.

setCompanyName

public void setCompanyName(String companyName)
Sets the companyName value for this LocationExtension.

Parameters:
companyName - * The name of the company located at the given address This field can be selected using the value "CompanyName". The length of this string should be between 1 and 80, inclusive.

getPhoneNumber

public String getPhoneNumber()
Gets the phoneNumber value for this LocationExtension.

Returns:
phoneNumber * The phone number for the location This field can be selected using the value "PhoneNumber".

setPhoneNumber

public void setPhoneNumber(String phoneNumber)
Sets the phoneNumber value for this LocationExtension.

Parameters:
phoneNumber - * The phone number for the location This field can be selected using the value "PhoneNumber".

getSource

public LocationExtensionSource getSource()
Gets the source value for this LocationExtension.

Returns:
source * The source which generated the extension This field can be selected using the value "LocationExtensionSource".This field can be filtered on.

setSource

public void setSource(LocationExtensionSource source)
Sets the source value for this LocationExtension.

Parameters:
source - * The source which generated the extension This field can be selected using the value "LocationExtensionSource".This field can be filtered on.

getIconMediaId

public Long getIconMediaId()
Gets the iconMediaId value for this LocationExtension.

Returns:
iconMediaId * The business icon to use with the extension This field can be selected using the value "IconMediaId".

setIconMediaId

public void setIconMediaId(Long iconMediaId)
Sets the iconMediaId value for this LocationExtension.

Parameters:
iconMediaId - * The business icon to use with the extension This field can be selected using the value "IconMediaId".

getImageMediaId

public Long getImageMediaId()
Gets the imageMediaId value for this LocationExtension.

Returns:
imageMediaId * The store front image to use with the extension This field can be selected using the value "ImageMediaId".

setImageMediaId

public void setImageMediaId(Long imageMediaId)
Sets the imageMediaId value for this LocationExtension.

Parameters:
imageMediaId - * The store front image to use with the extension This field can be selected using the value "ImageMediaId".

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class AdExtension

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.