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

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

public class MobileExtension
extends AdExtension
implements Serializable

Represents a phone extension. This type of ad extension attaches a phone number to a text ad, which lets customers call the advertiser directly from the ad. Phone extensions will appear as clickable phone numbers beneath the main text ad, and will be visible to high-end mobile device users who access Google.com search, Voice search, Google Mobile App, or Google Maps for Mobile from their phone.

Learn more about phone extensions here .

See Also:
Serialized Form

Constructor Summary
MobileExtension()
           
MobileExtension(Long id, String adExtensionType, String phoneNumber, String countryCode, Boolean isCallOnly)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCountryCode()
          Gets the countryCode value for this MobileExtension.
static org.apache.axis.encoding.Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Deserializer
 Boolean getIsCallOnly()
          Gets the isCallOnly value for this MobileExtension.
 String getPhoneNumber()
          Gets the phoneNumber value for this MobileExtension.
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 MobileExtension.
 void setIsCallOnly(Boolean isCallOnly)
          Sets the isCallOnly value for this MobileExtension.
 void setPhoneNumber(String phoneNumber)
          Sets the phoneNumber value for this MobileExtension.
 
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

MobileExtension

public MobileExtension()

MobileExtension

public MobileExtension(Long id,
                       String adExtensionType,
                       String phoneNumber,
                       String countryCode,
                       Boolean isCallOnly)
Method Detail

getPhoneNumber

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

Returns:
phoneNumber * Advertiser's phone number to append to the ad. This is typically the E.164 representation (e.g., "+16502530000"). This field can be selected using the value "PhoneNumber". This field is required and should not be null. The length of this string should be at least 3.

setPhoneNumber

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

Parameters:
phoneNumber - * Advertiser's phone number to append to the ad. This is typically the E.164 representation (e.g., "+16502530000"). This field can be selected using the value "PhoneNumber". This field is required and should not be null. The length of this string should be at least 3.

getCountryCode

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

Returns:
countryCode * Two-character country code (e.g. "US") of the advertiser's phone number. The list of available country codes . This field can be selected using the value "CountryCode". This field is required and should not be null. The length of this string should be between 2 and 2, inclusive.

setCountryCode

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

Parameters:
countryCode - * Two-character country code (e.g. "US") of the advertiser's phone number. The list of available country codes . This field can be selected using the value "CountryCode". This field is required and should not be null. The length of this string should be between 2 and 2, inclusive.

getIsCallOnly

public Boolean getIsCallOnly()
Gets the isCallOnly value for this MobileExtension.

Returns:
isCallOnly * Indicates whether the extended ad should be call only, where the phone number will be displayed and the URL will not. This affects search and display ads in high end mobile devices (e.g., iPhone and Android phones) This field can be selected using the value "IsCallOnly".

setIsCallOnly

public void setIsCallOnly(Boolean isCallOnly)
Sets the isCallOnly value for this MobileExtension.

Parameters:
isCallOnly - * Indicates whether the extended ad should be call only, where the phone number will be displayed and the URL will not. This affects search and display ads in high end mobile devices (e.g., iPhone and Android phones) This field can be selected using the value "IsCallOnly".

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.