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 iterating through a list of targeted locations. For information about iterators, see Iterators.
Example usage:
var shoppingCampaign = AdsApp.shoppingCampaigns().withIds(["123456789"]).get().next();
var iterator = shoppingCampaign.targeting().targetedLocations().get();
while (iterator.hasNext()) {
var targetedLocation = iterator.next();
}
Methods
Method Name | Return Type | Description |
---|---|---|
hasNext | Boolean | Gets a Boolean value that indicates whether this iterator has more elements. |
next | TargetedLocation | Advances the iterator and returns the next targeted location. |
totalNumEntities | int | Gets the number of targeted 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 targeted location.
Returns
Type | Description |
---|---|
TargetedLocation | The next targeted locations list in the iterator. |
totalNumEntities
Gets the number of targeted locations lists that matched the selector's selection criteria.
Returns
Type | Description |
---|---|
int | The number of targeted locations lists that matched the selector's selection criteria. |