AdWordsApp.​ShoppingExcludedLocationSelector

Fetches excluded locations. Unlike other selectors, does not support filtering or sorting.

Typical usage:

 var shoppingCampaign = AdWordsApp.shoppingCampaigns().get().next();
 var locationSelector = shoppingCampaign.targeting().excludedLocations();

 var locationIterator = locationSelector.get();
 while (locationIterator.hasNext()) {
   var location = locationIterator.next();
 }
Related:

Methods:

MemberTypeDescription
get AdWordsApp.ShoppingExcludedLocationIterator Fetches the requested shopping excluded locations and returns an iterator.
withLimit AdWordsApp.ShoppingExcludedLocationSelector Specifies limit for the selector to use.

get()

Fetches the requested shopping excluded locations and returns an iterator.

Return values:

TypeDescription
AdWordsApp.ShoppingExcludedLocationIterator Iterator of the requested shopping excluded locations.

withLimit(limit)

Specifies limit for the selector to use. For instance, withLimit(50) returns only the first 50 entities.

Arguments:

NameTypeDescription
limit int How many entities to return.

Return values:

TypeDescription
AdWordsApp.ShoppingExcludedLocationSelector The selector with limit applied.

发送以下问题的反馈:

此网页
AdWords Scripts
AdWords Scripts
需要帮助?请访问我们的支持页面