BingAdsAccountIterator
Contains the methods for iterating through a list of managed accounts. For information about iterators, see Iterators.
Example usage:
// Gets the iterator that iterates all accounts
// the user has access to.
var accounts = AccountsApp.accounts().get();
// Loops through the list of accounts.
while (accounts.hasNext()) {
var account = accounts.next();
}
Methods
Method Name | Return Type | Description |
---|---|---|
hasNext | Boolean | Gets a Boolean value that indicates whether this iterator has more elements. |
next | BingAdsAccount | Advances the iterator and returns the next managed account. |
totalNumEntities | int | Gets the number of managed accounts that matched the 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 managed account.
Returns
Type | Description |
---|---|
BingAdsAccount | The next account in the iterator. |
totalNumEntities
Gets the number of managed accounts that matched the selector's selection criteria.
Returns
Type | Description |
---|---|
int | The number of managed accounts that matched the selector's selection criteria. |