AdWordsApp.​AdViewSpace

Starting point for viewing type-specific ad information.

Typical usage:

 if (ad.isType().expandedTextAd()) {
   var expandedTextAd = ad.asType().expandedTextAd();
   var headlinePart1 = expandedTextAd.getHeadlinePart1();
 }

Methods:

MemberTypeDescription
expandedTextAd AdWordsApp.ExpandedTextAd Returns the ad as an ExpandedTextAd.
gmailImageAd AdWordsApp.GmailImageAd Returns the ad as a GmailImageAd.
gmailMultiProductAd AdWordsApp.GmailMultiProductAd Returns the ad as a GmailMultiProductAd.
gmailSinglePromotionAd AdWordsApp.GmailSinglePromotionAd Returns the ad as a GmailSinglePromotionAd.
html5Ad AdWordsApp.Html5Ad Returns the ad as a Html5Ad.
imageAd AdWordsApp.ImageAd Returns the ad as an ImageAd.
responsiveDisplayAd AdWordsApp.ResponsiveDisplayAd Returns the ad as a ResponsiveDisplayAd.

expandedTextAd()

Returns the ad as an ExpandedTextAd. Calling this on an ad of a different type will result in an error.

Return values:

TypeDescription
AdWordsApp.ExpandedTextAd The ad as an ExpandedTextAd.

gmailImageAd()

Returns the ad as a GmailImageAd. Calling this on an ad of a different type will result in an error.

Return values:

TypeDescription
AdWordsApp.GmailImageAd The ad as a GmailImageAd.

gmailMultiProductAd()

Returns the ad as a GmailMultiProductAd. Calling this on an ad of a different type will result in an error.

Return values:

TypeDescription
AdWordsApp.GmailMultiProductAd The ad as a GmailMultiProductAd.

gmailSinglePromotionAd()

Returns the ad as a GmailSinglePromotionAd. Calling this on an ad of a different type will result in an error.

Return values:

TypeDescription
AdWordsApp.GmailSinglePromotionAd The ad as a GmailSinglePromotionAd.

html5Ad()

Returns the ad as a Html5Ad. Calling this on an ad of a different type will result in an error.

Return values:

TypeDescription
AdWordsApp.Html5Ad The ad as a Html5Ad.

imageAd()

Returns the ad as an ImageAd. Calling this on an ad of a different type will result in an error.

Return values:

TypeDescription
AdWordsApp.ImageAd The ad as an ImageAd.

responsiveDisplayAd()

Returns the ad as a ResponsiveDisplayAd. Calling this on an ad of a different type will result in an error.

Return values:

TypeDescription
AdWordsApp.ResponsiveDisplayAd The ad as a ResponsiveDisplayAd.

フィードバックを送信...

ご不明な点がありましたら、Google のサポートページをご覧ください。