AdWordsApp.​ShoppingCampaignTargeting

Access to campaign-level targeting criteria.

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

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

Methods:

MemberTypeDescription
adSchedules AdWordsApp.ShoppingAdScheduleSelector Specializes this selector to return ShoppingAdSchedule criteria.
audiences AdWordsApp.ShoppingCampaignAudienceSelector Specializes this selector to return ShoppingCampaignAudience criteria.
excludedLocations AdWordsApp.ShoppingExcludedLocationSelector Specializes this selector to return ShoppingExcludedLocation criteria.
getTargetingSetting String Returns the current targeting setting of the specified criterion type group for this campaign.
newUserListBuilder AdWordsApp.ShoppingCampaignAudienceBuilder Returns a new user list audience builder for this campaign.
platforms AdWordsApp.ShoppingPlatformSelector Specializes this selector to return ShoppingPlatform criteria.
setTargetingSetting void Sets the targeting setting for this campaign.
targetedLocations AdWordsApp.ShoppingTargetedLocationSelector Specializes this selector to return TargetedLocation criteria.
targetedProximities AdWordsApp.ShoppingTargetedProximitySelector Specializes this selector to return ShoppingTargetedProximity criteria.

adSchedules()

Specializes this selector to return ShoppingAdSchedule criteria.

Return values:

TypeDescription
AdWordsApp.ShoppingAdScheduleSelector A selector for ShoppingAdSchedule criteria.

audiences()

Specializes this selector to return ShoppingCampaignAudience criteria.

Return values:

TypeDescription
AdWordsApp.ShoppingCampaignAudienceSelector A selector for ShoppingCampaignAudience criteria.

excludedLocations()

Specializes this selector to return ShoppingExcludedLocation criteria.

Return values:

TypeDescription
AdWordsApp.ShoppingExcludedLocationSelector A selector for ShoppingExcludedLocation 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'.

newUserListBuilder()

Returns a new user list audience builder for this campaign. When ShoppingCampaignAudienceBuilder.build() is called, an audience will be added in this campaign.

Return values:

TypeDescription
AdWordsApp.ShoppingCampaignAudienceBuilder The builder used to add an audience in the campaign.

platforms()

Specializes this selector to return ShoppingPlatform criteria.

Return values:

TypeDescription
AdWordsApp.ShoppingPlatformSelector A selector for ShoppingPlatform 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.ShoppingTargetedLocationSelector A selector for ShoppingTargetedLocation criteria.

targetedProximities()

Specializes this selector to return ShoppingTargetedProximity criteria.

Return values:

TypeDescription
AdWordsApp.ShoppingTargetedProximitySelector A selector for ShoppingTargetedProximity criteria.

Enviar comentários sobre…

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