CampaignIterator
Contains the methods for iterating through a list of campaigns. For information about iterators, see Iterators.
Example usage:
// Gets the iterator that iterates all campaigns
// in the account.
var iterator = AdsApp.campaigns().get();
// Loops through all campaigns in the account.
while (iterator.hasNext()) {
var campaign = iterator.next();
}
Methods
Method Name | Return Type | Description |
---|---|---|
hasNext | Boolean | Gets a Boolean value that indicates whether the iterator has more elements. |
next | Campaign | Advances the iterator and returns the next campaign. |
totalNumEntities | int | Gets the number of campaigns that matched the selector's selection criteria. |
hasNext
Gets a Boolean value that indicates whether the iterator has more elements.
Returns
Type | Description |
---|---|
Boolean | Is true if the iterator has more elements; otherwise, false. |
next
Advances the iterator and returns the next campaign.
Returns
Type | Description |
---|---|
Campaign | The next campaign in the iterator. |
totalNumEntities
Gets the number of campaigns that matched the selector's selection criteria.
Returns:
Type | Description |
---|---|
int | The number of campaigns that matched the selector's selection criteria. |
See also
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기