Class awMobileAd

Description

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 <a href="http://adwords.google.com/support/aw/bin/answer.py?answer=176117"> Mobile Ads Requirements</a>.

<table summary="" style="clear: none"> <tr> <th scope="col"> Click-to-call </th> <th scope="col"> Website </th> <th scope="col"> Both </th></tr> <tr> <td> headline
description
mobileCarriers
phoneNumber
countryCode
businessName




</td> <td> headline
description
mobileCarriers



displayUrl
destinationUrl
markupLanguages
</td> <td> headline
description
mobileCarriers
phoneNumber
countryCode
businessName
displayUrl
destinationUrl
markupLanguages
</td></tr> </table>

Located in /classes/cm/MobileAd.php

awComplexObject
   |
   --awAd
      |
      --awMobileAd
Variable Summary
 string $businessName
 string $countryCode
 string $description
 string $headline
 string[] $markupLanguages
 string[] $mobileCarriers
 string $phoneNumber
Method Summary
 void getRow ()
Variables
string $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). <span class="constraint Selectable">This field can be selected using the value "MobileAdBusinessName".</span>

string $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. <span class="constraint Selectable">This field can be selected using the value "MobileAdCountryCode".</span>

string $description

The description line

<span class="constraint Selectable">This field can be selected using the value "MobileAdDescription".</span>

string $headline

The headline of the ad

<span class="constraint Selectable">This field can be selected using the value "MobileAdHeadline".</span>

string[] $markupLanguages

The list of markup languages to use for the mobile ad.

<span class="constraint Selectable">This field can be selected using the value "MobileAdMarkupLanguages".</span>

  • var: awMarkupLanguageType
string[] $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 <a href="/apis/adwords/docs/appendix/mobilecarriers.html">available mobile carriers</a>. <span class="constraint Selectable">This field can be selected using the value "MobileAdMobileCarriers".</span>

string $phoneNumber

The click-to-call phone number.

Must not exceed 20 characters. <span class="constraint Selectable">This field can be selected using the value "MobileAdPhoneNumber".</span>

Inherited Variables

Inherited from awAd

awAd::$approvalStatus
awAd::$disapprovalReasons
awAd::$displayUrl
awAd::$id
awAd::$trademarkDisapproved
awAd::$url

Inherited from awComplexObject

awComplexObject::$_cachedCheckFields
awComplexObject::$_checkFields
awComplexObject::$_row
Methods

Documentation generated on Fri, 23 Mar 2012 13:44:05 +0200 by phpDocumentor 1.4.3