Page Summary
-
The provided content explains the starting point for creating an ad within an ad group.
-
It includes typical usage code demonstrating how to build an expanded text ad.
-
The page details methods for creating different ad types: expanded text, image, responsive display, and responsive search ads.
-
Each method returns a specific ad builder associated with the ad group.
Typical usage:
var adOperation = adGroup . newAd () . expandedTextAdBuilder () . withHeadlinePart1 ( "First headline of ad" ) . withHeadlinePart2 ( "Second headline of ad" ) . withDescription ( "Ad description" ) . withPath1 ( "path1" ) . withPath2 ( "path2" ) . withFinalUrl ( "http://www.example.com" ) . build (); var ad = adOperation . getResult ();
Methods:
| Member | Type | Description |
|---|---|---|
AdsApp.ExpandedTextAdBuilder
|
Returns a new expanded text ad builder associated with the ad group. | |
AdsApp.ImageAdBuilder
|
Returns a new image ad builder associated with the ad group. | |
AdsApp.ResponsiveDisplayAdBuilder
|
Returns a new responsive Display ad builder associated with the ad group. | |
AdsApp.ResponsiveSearchAdBuilder
|
Returns a new responsive Search ad builder associated with the ad group. |
expandedTextAdBuilder()
Returns a new expanded text ad builder associated with the ad group. Return values:
| Type | Description |
|---|---|
AdsApp.ExpandedTextAdBuilder
|
A new expanded text ad builder associated with the ad group. |
imageAdBuilder()
Returns a new image ad builder associated with the ad group. Return values:
| Type | Description |
|---|---|
AdsApp.ImageAdBuilder
|
A new image ad builder associated with the ad group. |
responsiveDisplayAdBuilder()
Returns a new responsive Display ad builder associated with the ad group. Return values:
| Type | Description |
|---|---|
AdsApp.ResponsiveDisplayAdBuilder
|
A new responsive Display ad builder associated with the ad group. |
responsiveSearchAdBuilder()
Returns a new responsive Search ad builder associated with the ad group. Return values:
| Type | Description |
|---|---|
AdsApp.ResponsiveSearchAdBuilder
|
A new responsive Search ad builder associated with the ad group. |

