Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Contains the methods for filtering and ordering excluded locations. For information about selectors, see Selectors.
Example usage:
var shoppingCampaign = AdsApp.shoppingCampaigns().withIds(["123456789"]).get().next();
var iterator = shoppingCampaign.targeting().excludedLocations()
.withLimit(10)
.get();
while (iterator.hasNext()) {
var excludedLocation = iterator.next();
}
Methods
Method Name | Return Type | Description |
---|---|---|
get | ExcludedLocationIterator | Gets an iterator used to iterate through the list of excluded locations. |
withLimit(int limit) | ExcludedLocationSelector | Gets the top n excluded locations that match the selection criteria. |
get
Gets an iterator uses to iterate through the list of excluded locations.
Returns
Type | Description |
---|---|
ExcludedLocationIterator | An iterator used to iterate through the excluded locations. |
withLimit(int limit)
Gets the top n excluded locations that match the selection criteria.
Arguments
Name | Type | Description |
---|---|---|
limit | int | The number of excluded locations to return. The actual number may be less. |
Returns
Type | Description |
---|---|
ExcludedLocationSelector | Selector with limit applied. |