ExcludedLocationIterator
Contains the methods for iterating through a list of excluded locations. For information about iterators, see Iterators.
Example usage:
var shoppingCampaign = AdsApp.shoppingCampaigns().withIds(["123456789"]).get().next();
var iterator = shoppingCampaign.targeting().excludedLocations().get();
while (iterator.hasNext()) {
var excludedLocation = iterator.next();
}
Methods
Method Name | Return Type | Description |
---|---|---|
hasNext | Boolean | Gets a Boolean value that indicates whether this iterator has more elements. |
next | ExcludedLocation | Advances the iterator and returns the next excluded location. |
totalNumEntities | int | Gets the number of excluded locations that matched selector's selection criteria. |
hasNext
Gets a Boolean value that indicates whether this iterator has more elements.
Returns
Type | Description |
---|---|
Boolean | Is true if this iterator has more elements; otherwise, false. |
next
Advances the iterator and returns the next excluded location.
Returns
Type | Description |
---|---|
ExcludedLocation | The next excluded location in the iterator. |
totalNumEntities
Gets the number of excluded locations that matched the selector's selection criteria.
Returns
Type | Description |
---|---|
int | The number of excluded locations that matched the selector's selection criteria. |