|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.api.ads.adwords.v201109.cm.Ad
com.google.api.ads.adwords.v201109.cm.MobileAd
public class MobileAd
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 |
| 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 |
|---|
public 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 |
|---|
public String getHeadline()
public void setHeadline(String headline)
headline - * The headline of the ad
This field
can be selected using the value "MobileAdHeadline".public String getDescription()
public void setDescription(String description)
description - * The description line
This field
can be selected using the value "MobileAdDescription".public MarkupLanguageType[] getMarkupLanguages()
public void setMarkupLanguages(MarkupLanguageType[] markupLanguages)
markupLanguages - * The list of markup languages to use for the mobile ad.
This field
can be selected using the value "MobileAdMarkupLanguages".public MarkupLanguageType getMarkupLanguages(int i)
public void setMarkupLanguages(int i,
MarkupLanguageType _value)
public String[] getMobileCarriers()
public void setMobileCarriers(String[] mobileCarriers)
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".public String getMobileCarriers(int i)
public void setMobileCarriers(int i,
String _value)
public String getBusinessName()
public void setBusinessName(String businessName)
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".public String getCountryCode()
public void setCountryCode(String countryCode)
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".public String getPhoneNumber()
public void setPhoneNumber(String phoneNumber)
phoneNumber - * The click-to-call phone number.
Must not exceed 20 characters.
This field
can be selected using the value "MobileAdPhoneNumber".public boolean equals(Object obj)
equals in class Adpublic int hashCode()
hashCode in class Adpublic static org.apache.axis.description.TypeDesc getTypeDesc()
public static org.apache.axis.encoding.Serializer getSerializer(String mechType,
Class _javaType,
QName _xmlType)
public static org.apache.axis.encoding.Deserializer getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||