Page Summary
-
Ad group extensions provide access to various ad extensions at the ad group level.
-
Methods like
callouts(),mobileApps(),phoneNumbers(),prices(),sitelinks(), andsnippets()return selectors for specific extension types within an ad group. -
The returned selectors can be used to retrieve all extensions of that type for the ad group, as demonstrated with the
sitelinks()example.
For example, to access all sitelinks belonging to an ad group:
var adGroupSitelinkIterator = adGroup.extensions().sitelinks().get(); while (adGroupSitelinkIterator.hasNext()) { var adGroupSitelink = adGroupSitelinkIterator.next(); }
Methods:
| Member | Type | Description |
|---|---|---|
| callouts() | AdsApp.AdGroupCalloutSelector |
Returns the selector of all callouts in the ad group. |
| mobileApps() | AdsApp.AdGroupMobileAppSelector |
Returns the selector of all mobile apps in the ad group. |
| phoneNumbers() | AdsApp.AdGroupPhoneNumberSelector |
Returns the selector of all phone numbers in the ad group. |
| prices() | AdsApp.AdGroupPriceSelector |
Returns the selector of all prices in the ad group. |
| sitelinks() | AdsApp.AdGroupSitelinkSelector |
Returns the selector of all sitelinks in the ad group. |
| snippets() | AdsApp.AdGroupSnippetSelector |
Returns the selector of all snippets in the ad group. |
callouts()
Returns the selector of all callouts in the ad group. Return values:
| Type | Description |
|---|---|
AdsApp.AdGroupCalloutSelector |
The selector of all callouts in the ad group. |
mobileApps()
Returns the selector of all mobile apps in the ad group. Return values:
| Type | Description |
|---|---|
AdsApp.AdGroupMobileAppSelector |
The selector of all mobile apps in the ad group. |
phoneNumbers()
Returns the selector of all phone numbers in the ad group. Return values:
| Type | Description |
|---|---|
AdsApp.AdGroupPhoneNumberSelector |
The selector of all phone numbers in the ad group. |
prices()
Returns the selector of all prices in the ad group. Return values:
| Type | Description |
|---|---|
AdsApp.AdGroupPriceSelector |
The selector of all prices in the ad group. |
sitelinks()
Returns the selector of all sitelinks in the ad group. Return values:
| Type | Description |
|---|---|
AdsApp.AdGroupSitelinkSelector |
The selector of all sitelinks in the ad group. |
snippets()
Returns the selector of all snippets in the ad group. Return values:
| Type | Description |
|---|---|
AdsApp.AdGroupSnippetSelector |
The selector of all snippets in the ad group. |