AdsApp.​ExcludedLocationSelector

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

Typical usage:

var locationSelector = AdsApp.targeting().excludedLocations();

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

Methods:

MemberTypeDescription
getAdsApp.ExcludedLocationIteratorFetches the requested excluded locations and returns an iterator.
withLimitAdsApp.ExcludedLocationSelectorSpecifies limit for the selector to use.

get()

Fetches the requested excluded locations and returns an iterator.

Return values:

TypeDescription
AdsApp.ExcludedLocationIteratorIterator of the requested excluded locations.

withLimit(limit)

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

Arguments:

NameTypeDescription
limitintHow many entities to return.

Return values:

TypeDescription
AdsApp.ExcludedLocationSelectorThe selector with limit applied.