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

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

public class MobileAd
extends Ad
implements Serializable

Represents a mobile ad.

A mobile ad can contain a click-to-call phone number, a link to a website, or both. You specify which features you want by setting certain fields, as shown in the following table. For example, to create a click-to-call mobile ad, set the fields in the Click-to-call column. A hyphen indicates that you should not set the corresponding field.

For more information, see Mobile Ads Requirements.

Click-to-call Website Both
headline
description
mobileCarriers
phoneNumber
countryCode
businessName
-
-
-
headline
description
mobileCarriers
-
-
-
displayUrl
destinationUrl
markupLanguages
headline
description
mobileCarriers
phoneNumber
countryCode
businessName
displayUrl
destinationUrl
markupLanguages

See Also:
Serialized Form

Constructor Summary
MobileAd()
           
MobileAd(Long id, String url, String displayUrl, AdApprovalStatus approvalStatus, String[] disapprovalReasons, Boolean trademarkDisapproved, String adType, String headline, String description, MarkupLanguageType[] markupLanguages, String[] mobileCarriers, String businessName, String countryCode, String phoneNumber)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getBusinessName()
          Gets the businessName value for this MobileAd.
 String getCountryCode()
          Gets the countryCode value for this MobileAd.
 String getDescription()
          Gets the description value for this MobileAd.
static org.apache.axis.encoding.Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Deserializer
 String getHeadline()
          Gets the headline value for this MobileAd.
 MarkupLanguageType[] getMarkupLanguages()
          Gets the markupLanguages value for this MobileAd.
 MarkupLanguageType getMarkupLanguages(int i)
           
 String[] getMobileCarriers()
          Gets the mobileCarriers value for this MobileAd.
 String getMobileCarriers(int i)
           
 String getPhoneNumber()
          Gets the phoneNumber value for this MobileAd.
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 setBusinessName(String businessName)
          Sets the businessName value for this MobileAd.
 void setCountryCode(String countryCode)
          Sets the countryCode value for this MobileAd.
 void setDescription(String description)
          Sets the description value for this MobileAd.
 void setHeadline(String headline)
          Sets the headline value for this MobileAd.
 void setMarkupLanguages(int i, MarkupLanguageType _value)
           
 void setMarkupLanguages(MarkupLanguageType[] markupLanguages)
          Sets the markupLanguages value for this MobileAd.
 void setMobileCarriers(int i, String _value)
           
 void setMobileCarriers(String[] mobileCarriers)
          Sets the mobileCarriers value for this MobileAd.
 void setPhoneNumber(String phoneNumber)
          Sets the phoneNumber value for this MobileAd.
 
Methods inherited from class com.google.api.ads.adwords.v201109.cm.Ad
getAdType, getApprovalStatus, getDisapprovalReasons, getDisapprovalReasons, getDisplayUrl, getId, getTrademarkDisapproved, getUrl, setAdType, setApprovalStatus, setDisapprovalReasons, setDisapprovalReasons, setDisplayUrl, setId, setTrademarkDisapproved, setUrl
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MobileAd

public MobileAd()

MobileAd

public MobileAd(Long id,
                String url,
                String displayUrl,
                AdApprovalStatus approvalStatus,
                String[] disapprovalReasons,
                Boolean trademarkDisapproved,
                String adType,
                String headline,
                String description,
                MarkupLanguageType[] markupLanguages,
                String[] mobileCarriers,
                String businessName,
                String countryCode,
                String phoneNumber)
Method Detail

getHeadline

public String getHeadline()
Gets the headline value for this MobileAd.

Returns:
headline * The headline of the ad This field can be selected using the value "MobileAdHeadline".

setHeadline

public void setHeadline(String headline)
Sets the headline value for this MobileAd.

Parameters:
headline - * The headline of the ad This field can be selected using the value "MobileAdHeadline".

getDescription

public String getDescription()
Gets the description value for this MobileAd.

Returns:
description * The description line This field can be selected using the value "MobileAdDescription".

setDescription

public void setDescription(String description)
Sets the description value for this MobileAd.

Parameters:
description - * The description line This field can be selected using the value "MobileAdDescription".

getMarkupLanguages

public MarkupLanguageType[] getMarkupLanguages()
Gets the markupLanguages value for this MobileAd.

Returns:
markupLanguages * The list of markup languages to use for the mobile ad. This field can be selected using the value "MobileAdMarkupLanguages".

setMarkupLanguages

public void setMarkupLanguages(MarkupLanguageType[] markupLanguages)
Sets the markupLanguages value for this MobileAd.

Parameters:
markupLanguages - * The list of markup languages to use for the mobile ad. This field can be selected using the value "MobileAdMarkupLanguages".

getMarkupLanguages

public MarkupLanguageType getMarkupLanguages(int i)

setMarkupLanguages

public void setMarkupLanguages(int i,
                               MarkupLanguageType _value)

getMobileCarriers

public String[] getMobileCarriers()
Gets the mobileCarriers value for this MobileAd.

Returns:
mobileCarriers * The list of mobile carriers to use for the mobile ad. Each string must be of the form 'CarrierName@CountryCode'. To specify that all available carriers are to be used, use the reserved keyword 'ALLCARRIERS'. See available mobile carriers. This field can be selected using the value "MobileAdMobileCarriers".

setMobileCarriers

public void setMobileCarriers(String[] mobileCarriers)
Sets the mobileCarriers value for this MobileAd.

Parameters:
mobileCarriers - * The list of mobile carriers to use for the mobile ad. Each string must be of the form 'CarrierName@CountryCode'. To specify that all available carriers are to be used, use the reserved keyword 'ALLCARRIERS'. See available mobile carriers. This field can be selected using the value "MobileAdMobileCarriers".

getMobileCarriers

public String getMobileCarriers(int i)

setMobileCarriers

public void setMobileCarriers(int i,
                              String _value)

getBusinessName

public String getBusinessName()
Gets the businessName value for this MobileAd.

Returns:
businessName * The business name of the mobile ad. Must not exceed 20 characters (except for ads targeted to Japan, which must not exceed 10 Japanese characters). This field can be selected using the value "MobileAdBusinessName".

setBusinessName

public void setBusinessName(String businessName)
Sets the businessName value for this MobileAd.

Parameters:
businessName - * The business name of the mobile ad. Must not exceed 20 characters (except for ads targeted to Japan, which must not exceed 10 Japanese characters). This field can be selected using the value "MobileAdBusinessName".

getCountryCode

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

Returns:
countryCode * The country code for the phone number in the click-to-call mobile ad. The click-to-call ad will display only in this country. This field will be used to verify the phone number format and validate the targeted mobile carriers. This field can be selected using the value "MobileAdCountryCode".

setCountryCode

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

Parameters:
countryCode - * The country code for the phone number in the click-to-call mobile ad. The click-to-call ad will display only in this country. This field will be used to verify the phone number format and validate the targeted mobile carriers. This field can be selected using the value "MobileAdCountryCode".

getPhoneNumber

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

Returns:
phoneNumber * The click-to-call phone number. Must not exceed 20 characters. This field can be selected using the value "MobileAdPhoneNumber".

setPhoneNumber

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

Parameters:
phoneNumber - * The click-to-call phone number. Must not exceed 20 characters. This field can be selected using the value "MobileAdPhoneNumber".

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Ad

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.