Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Contains the methods used to cast this ad to a specific 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 | ExpandedTextAd | Casts this ad to an expanded text ad. |
| responsiveSearchAd | ResponsiveSearchAd | Casts this ad to a responsive search ad. |
expandedTextAd
Casts this ad to an expanded text ad.
Returns
| Type | Description |
|---|---|
| ExpandedTextAd | Contains the methods used to access the expanded text ad's properties. |
responsiveSearchAd
Casts this ad to a responsive search ad.
Returns
| Type | Description |
|---|---|
| ResponsiveSearchAd | Contains the methods used to access the responsive search ad's properties. |