AdsApp.​CampaignExtensions

Access to campaign-level extensions.

For example, to access all sitelinks belonging to a campaign:

 var campaignSitelinkIterator = campaign.extensions().sitelinks().get();
 while (campaignSitelinkIterator.hasNext()) {
   var campaignSitelink = campaignSitelinkIterator.next();
 }

Methods:

MemberTypeDescription
callouts AdsApp.CampaignCalloutSelector Returns the selector of all callouts in the campaign.
messages AdsApp.CampaignMessageSelector Returns the selector of all messages in the campaign.
mobileApps AdsApp.CampaignMobileAppSelector Returns the selector of all mobile apps in the campaign.
phoneNumbers AdsApp.CampaignPhoneNumberSelector Returns the selector of all phone numbers in the campaign.
reviews AdsApp.CampaignReviewSelector Returns the selector of all reviews in the campaign.
sitelinks AdsApp.CampaignSitelinkSelector Returns the selector of all sitelinks in the campaign.
snippets AdsApp.CampaignSnippetSelector Returns the selector of all snippets in the campaign.

callouts()

Returns the selector of all callouts in the campaign.

Return values:

TypeDescription
AdsApp.CampaignCalloutSelector The selector of all callouts in the campaign.

messages()

Returns the selector of all messages in the campaign.

Return values:

TypeDescription
AdsApp.CampaignMessageSelector The selector of all messages in the campaign.

mobileApps()

Returns the selector of all mobile apps in the campaign.

Return values:

TypeDescription
AdsApp.CampaignMobileAppSelector The selector of all mobile apps in the campaign.

phoneNumbers()

Returns the selector of all phone numbers in the campaign.

Return values:

TypeDescription
AdsApp.CampaignPhoneNumberSelector The selector of all phone numbers in the campaign.

reviews()

Returns the selector of all reviews in the campaign.

Return values:

TypeDescription
AdsApp.CampaignReviewSelector The selector of all reviews in the campaign.
Returns the selector of all sitelinks in the campaign.

Return values:

TypeDescription
AdsApp.CampaignSitelinkSelector The selector of all sitelinks in the campaign.

snippets()

Returns the selector of all snippets in the campaign.

Return values:

TypeDescription
AdsApp.CampaignSnippetSelector The selector of all snippets in the campaign.

发送以下问题的反馈:

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