AdsApp.​AccountExtensions

Access to account-level extensions.

For example, to access all callouts added to the account:

 var accountCalloutIterator =
     AdsApp.currentAccount().extensions().callouts().get();
 while (accountCalloutIterator.hasNext()) {
   var accountCallout = accountCalloutIterator.next();
 }

Methods:

MemberTypeDescription
callouts AdsApp.AccountCalloutSelector Returns the selector of all callouts added to the account.
messages AdsApp.AccountMessageSelector Returns the selector of all messages added to the account
mobileApps AdsApp.AccountMobileAppSelector Returns the selector of all mobile apps added to the account.
phoneNumbers AdsApp.AccountPhoneNumberSelector Returns the selector of all phone numbers added to the account.
reviews AdsApp.AccountReviewSelector Returns the selector of all reviews added to the account.
sitelinks AdsApp.AccountSitelinkSelector Returns the selector of all sitelinks added to the account.
snippets AdsApp.AccountSnippetSelector Returns the selector of all snippets added to the account.

callouts()

Returns the selector of all callouts added to the account.

Return values:

TypeDescription
AdsApp.AccountCalloutSelector The selector of all callouts added to the account.

messages()

Returns the selector of all messages added to the account

Return values:

TypeDescription
AdsApp.AccountMessageSelector The selector of all messages added to the account.

mobileApps()

Returns the selector of all mobile apps added to the account.

Return values:

TypeDescription
AdsApp.AccountMobileAppSelector The selector of all mobile apps added to the account.

phoneNumbers()

Returns the selector of all phone numbers added to the account.

Return values:

TypeDescription
AdsApp.AccountPhoneNumberSelector The selector of all phone numbers added to the account.

reviews()

Returns the selector of all reviews added to the account.

Return values:

TypeDescription
AdsApp.AccountReviewSelector The selector of all reviews added to the account.
Returns the selector of all sitelinks added to the account.

Return values:

TypeDescription
AdsApp.AccountSitelinkSelector The selector of all sitelinks added to the account.

snippets()

Returns the selector of all snippets added to the account.

Return values:

TypeDescription
AdsApp.AccountSnippetSelector The selector of all snippets added to the account.

发送以下问题的反馈:

此网页
Google Ads scripts
Google Ads scripts
需要帮助?请访问我们的支持页面