AdsApp.AdViewSpace
Stay organized with collections
Save and categorize content based on your preferences.
Starting point for viewing type-specific ad information.
Typical usage:
if (ad.isType().responsiveSearchAd()) {
var responsiveSearchAd = ad.asType().responsiveSearchAd();
var headlines = responsiveSearchAd.getHeadlines();
}
Methods:
imageAd()
Returns the ad as an
ImageAd. Calling
this on an ad of a different type will result in an error.
Return values:
responsiveDisplayAd()
Returns the ad as a
ResponsiveDisplayAd. Calling
this on an ad of a different type will result in an error.
Return values:
responsiveSearchAd()
Returns the ad as a
ResponsiveSearchAd. Calling this
on an ad of a different type will result in an error.
Return values:
[null,null,["Last updated 2026-12-02 UTC."],[],[]]