NegativeKeywordListIterator

除外キーワード (keyword) リストの反復処理のためのメソッドが含まれています。 イテレータの詳細については、「 イテレータ」を参照してください。

使用例:

    // Gets the iterator that iterates all negative keyword
    // lists in the account.
    var iterator = AdsApp.negativeKeywordLists().get();

    // Loops through all lists in the account.
    while (iterator.hasNext()) {
        var nkwList = iterator.next();
    }

メソッド

メソッド名 戻り値の型 説明
hasNext ブール型 この反復子に他の要素があるかどうかを示すブール値を取得します。
次へ NegativeKeywordList 反復子を進め、次の負のキーワード (keyword) リストを返します。
totalNumEntities int セレクターの選択条件に一致する除外キーワード リストの数を取得します。

hasNext

この反復子に他の要素があるかどうかを示すブール値を取得します。

戻り値

型 説明
ブール型 このイテレータに他の要素がある場合は true です。それ以外の場合は false。

next

反復子を進め、次の負のキーワード (keyword) リストを返します。

戻り値

型 説明
NegativeKeywordList 反復子の次の除外キーワード リスト。

totalNumEntities

セレクターの選択条件に一致する除外キーワード リストの数を取得します。

戻り値

型 説明
int セレクターの選択条件に一致する除外キーワード リストの数。

関連項目