AI-generated Key Takeaways
-
ExcludedLocationSelector is used to fetch excluded locations and does not support filtering or sorting.
-
The
get()method fetches the excluded locations and returns an iterator. -
The
withLimit(limit)method specifies a limit for the number of entities to return.
Typical usage:
var locationSelector = AdsApp.targeting().excludedLocations(); var locationIterator = locationSelector.get(); while (locationIterator.hasNext()) { var location = locationIterator.next(); }
Methods:
| Member | Type | Description |
|---|---|---|
| get() | AdsApp.ExcludedLocationIterator |
Fetches the requested excluded locations and returns an iterator. |
| withLimit(limit) | AdsApp.ExcludedLocationSelector |
Specifies limit for the selector to use. |
get()
Fetches the requested excluded locations and returns an iterator. Return values:
| Type | Description |
|---|---|
AdsApp.ExcludedLocationIterator |
Iterator 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:
| Name | Type | Description |
|---|---|---|
| limit | int |
How many entities to return. |
Return values:
| Type | Description |
|---|---|
AdsApp.ExcludedLocationSelector |
The selector with limit applied. |