Note
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
Contains the methods used to test if an ad is of the specified type.
Example usage:
if (ad.isType().expandedTextAd()) {
var expandedAd = ad.asType().expandedTextAd();
Logger.log(`Id: ${expandedAd.getId()}
copy: ${expandedAd.getDescription()}
title part 1: ${expandedAd.getHeadlinePart1()}
title part 2: ${expandedAd.getHeadlinePart2()}
final URL: ${expandedAd.urls().getFinalUrl()}\n\n`);
}
Methods
| Method Name | Return Type | Description |
|---|---|---|
| expandedTextAd | Boolean | Gets a Boolean value that indicates whether the ad is an expanded text ad. |
| responsiveSearchAd | Boolean | Gets a Boolean value that indicates whether the ad is a responsive search ad. |
expandedTextAd
Gets a Boolean value that indicates whether the ad is an expanded text ad.
Returns
| Type | Description |
|---|---|
| Boolean | Is true if the ad is an expanded text ad; otherwise, false. |
responsiveSearchAd
Gets a Boolean value that indicates whether the ad is a responsive search ad.
Returns
| Type | Description |
|---|---|
| Boolean | Is true if the ad is a responsive search ad; otherwise, false. |