AdWordsApp.​CampaignTargeting

Provides access to campaign-level targeting criteria: device targeting, ad scheduling, location targeting, and audiences.

For instance, to select all locations targeted by a campaign you might use:

 var campaign = AdWordsApp.campaigns().get().next();
 var locations = campaign.targeting().targetedLocations().get();
 while (locations.hasNext()) {
   var location = locations.next();
 }

Methods:

MemberTypeDescription
adSchedules AdWordsApp.AdScheduleSelector Specializes this selector to return AdSchedule criteria.
audiences AdWordsApp.SearchCampaignAudienceSelector Specializes this selector to return SearchCampaignAudience criteria.
excludedAudiences AdWordsApp.SearchCampaignExcludedAudienceSelector Specializes this selector to return SearchCampaignExcludedAudience criteria.
excludedContentLabels AdWordsApp.ExcludedContentLabelSelector Specializes this selector to return ExcludedContentLabel criteria.
excludedLocations AdWordsApp.ExcludedLocationSelector Specializes this selector to return ExcludedLocation criteria.
getTargetingSetting String Returns the current targeting setting of the specified criterion type group for this campaign.
languages AdWordsApp.LanguageSelector Specializes this selector to return Language criteria.
newUserListBuilder AdWordsApp.SearchCampaignAudienceBuilder Returns a new user list audience builder for this campaign.
platforms AdWordsApp.PlatformSelector Specializes this selector to return Platform criteria.
setTargetingSetting void Sets the targeting setting for this campaign.
targetedLocations AdWordsApp.TargetedLocationSelector Specializes this selector to return TargetedLocation criteria.
targetedProximities AdWordsApp.TargetedProximitySelector Specializes this selector to return TargetedProximity criteria.

adSchedules()

Specializes this selector to return AdSchedule criteria.

Return values:

TypeDescription
AdWordsApp.AdScheduleSelector A selector for AdSchedule criteria.

audiences()

Specializes this selector to return SearchCampaignAudience criteria.

Return values:

TypeDescription
AdWordsApp.SearchCampaignAudienceSelector A selector for SearchCampaignAudience criteria.

excludedAudiences()

Specializes this selector to return SearchCampaignExcludedAudience criteria.

Return values:

TypeDescription
AdWordsApp.SearchCampaignExcludedAudienceSelector A selector for SearchCampaignExcludedAudience criteria.

excludedContentLabels()

Specializes this selector to return ExcludedContentLabel criteria.

Return values:

TypeDescription
AdWordsApp.ExcludedContentLabelSelector A selector for ExcludedContentLabel criteria.

excludedLocations()

Specializes this selector to return ExcludedLocation criteria.

Return values:

TypeDescription
AdWordsApp.ExcludedLocationSelector A selector for ExcludedLocation criteria.

getTargetingSetting(criterionTypeGroup)

Returns the current targeting setting of the specified criterion type group for this campaign.

Currently the only supported criterion type group value is 'USER_INTEREST_AND_LIST'. The returned setting will be either 'TARGET_ALL_TRUE' or 'TARGET_ALL_FALSE', corresponding to 'Bid only' and 'Target and bid', respectively.

For more information about criterion type groups, please see the AdWords Reference article.

Arguments:

NameTypeDescription
criterionTypeGroup String The criterion type group to check.

Return values:

TypeDescription
String The targeting setting for the criterion type group, either 'TARGET_ALL_TRUE' or 'TARGET_ALL_FALSE'.

languages()

Specializes this selector to return Language criteria.

Return values:

TypeDescription
AdWordsApp.LanguageSelector A selector for Language criteria.

newUserListBuilder()

Returns a new user list audience builder for this campaign. When SearchCampaignAudienceBuilder.exclude() is called, an excluded audience will be added in this campaign. Only exclusions are available at campaign-level.

Return values:

TypeDescription
AdWordsApp.SearchCampaignAudienceBuilder The builder used to exclude an audience in the campaign.

platforms()

Specializes this selector to return Platform criteria.

Return values:

TypeDescription
AdWordsApp.PlatformSelector A selector for Platform criteria.

setTargetingSetting(criterionTypeGroup, targetingSetting)

Sets the targeting setting for this campaign.

For more information about criterion type groups, please see the AdWords Reference article.

Currently the targeting setting may be set for USER_INTEREST_AND_LIST criterion type group only.

Returns nothing.

Arguments:

NameTypeDescription
criterionTypeGroup String The criterion type group to receive the new setting.
targetingSetting String The new targeting setting, either 'TARGET_ALL_TRUE' or 'TARGET_ALL_FALSE'.

targetedLocations()

Specializes this selector to return TargetedLocation criteria.

Return values:

TypeDescription
AdWordsApp.TargetedLocationSelector A selector for TargetedLocation criteria.

targetedProximities()

Specializes this selector to return TargetedProximity criteria.

Return values:

TypeDescription
AdWordsApp.TargetedProximitySelector A selector for TargetedProximity criteria.

Enviar comentários sobre…

Precisa de ajuda? Acesse nossa página de suporte.