title | description | author | ms.author | ms.service | ms.topic |
---|---|---|---|---|---|
BudgetIterator object |
Contains the methods for iterating through a list of shared budgets. |
jonmeyers |
jonmeyers |
bing-ads-scripts |
article |
Contains the methods for iterating through a list of shared budgets. For information about iterators, see Iterators.
Example usage:
// Gets the iterator that iterates all shared budgets
// in the account.
var iterator = AdsApp.budgets().get();
// Loops through all shared budgets in the account.
while (iterator.hasNext()) {
var budget = iterator.next();
}
Method Name | Return Type | Description |
---|---|---|
hasNext | Boolean | Gets a Boolean value that indicates whether the iterator has more elements. |
next | Budget | Advances the iterator and returns the next shared budget. |
totalNumEntities | int | Gets the number of shared budgets that matched the selector's selection criteria. |
Gets a Boolean value that indicates whether the iterator has more elements.
Type | Description |
---|---|
Boolean | Is true if the iterator has more elements; otherwise, false. |
Advances the iterator and returns the next shared budget.
Type | Description |
---|---|
Budget | The next shared budget in the iterator. |
Gets the number of shared budgets that matched the selector's selection criteria.
Type | Description |
---|---|
int | The number of shared budgets that matched the selector's selection criteria. |