AdsApp.​AdGroupExtensions

  • Ad group extensions provide access to various ad extensions at the ad group level.

  • Methods like callouts(), mobileApps(), phoneNumbers(), prices(), sitelinks(), and snippets() 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.

Access to ad group-level extensions.

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:

MemberTypeDescription
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:

TypeDescription
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:

TypeDescription
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:

TypeDescription
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:

TypeDescription
AdsApp.AdGroupPriceSelector The selector of all prices in the ad group.
Returns the selector of all sitelinks in the ad group.

Return values:

TypeDescription
AdsApp.AdGroupSitelinkSelector The selector of all sitelinks in the ad group.

snippets()

Returns the selector of all snippets in the ad group.

Return values:

TypeDescription
AdsApp.AdGroupSnippetSelector The selector of all snippets in the ad group.