AdsApp.ExcludedLocationSelector
Stay organized with collections
Save and categorize content based on your preferences.
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:
get()
Fetches the requested excluded locations and returns an iterator.
Return values:
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:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-18 UTC."],[[["The ExcludedLocationSelector fetches locations that have been excluded from targeting, but it doesn't allow for filtering or sorting these locations."],["You can use the `get()` method to retrieve an iterator for the excluded locations, which you can then loop through to access individual locations."],["It's possible to limit the number of excluded locations returned by using the `withLimit()` method, for example, `withLimit(50)` would return a maximum of 50 locations."]]],[]]