AdsApp.​ShoppingExcludedLocationSelector

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

Typical usage:

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

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

Methods:

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

get()

Fetches the requested shopping excluded locations and returns an iterator.

Return values:

TypeDescription
AdsApp.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
AdsApp.ShoppingExcludedLocationSelector The selector with limit applied.

다음에 대한 의견 보내기...

Google Ads scripts
Google Ads scripts
도움이 필요하시나요? 지원 페이지를 방문하세요.