For example, to access all sitelinks belonging to a campaign:
var campaignSitelinkIterator = campaign.extensions().sitelinks().get(); while (campaignSitelinkIterator.hasNext()) { var campaignSitelink = campaignSitelinkIterator.next(); }
Methods:
| Member | Type | Description |
|---|---|---|
| callouts() | AdsApp.CampaignCalloutSelector |
Returns the selector of all callouts 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. |
| prices() | AdsApp.CampaignPriceSelector |
Returns the selector of all prices 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:
| Type | Description |
|---|---|
AdsApp.CampaignCalloutSelector |
The selector of all callouts in the campaign. |
mobileApps()
Returns the selector of all mobile apps in the campaign. Return values:
| Type | Description |
|---|---|
AdsApp.CampaignMobileAppSelector |
The selector of all mobile apps in the campaign. |
phoneNumbers()
Returns the selector of all phone numbers in the campaign. Return values:
| Type | Description |
|---|---|
AdsApp.CampaignPhoneNumberSelector |
The selector of all phone numbers in the campaign. |
prices()
Returns the selector of all prices in the campaign. Return values:
| Type | Description |
|---|---|
AdsApp.CampaignPriceSelector |
The selector of all prices in the campaign. |
sitelinks()
Returns the selector of all sitelinks in the campaign. Return values:
| Type | Description |
|---|---|
AdsApp.CampaignSitelinkSelector |
The selector of all sitelinks in the campaign. |
snippets()
Returns the selector of all snippets in the campaign. Return values:
| Type | Description |
|---|---|
AdsApp.CampaignSnippetSelector |
The selector of all snippets in the campaign. |