AdWordsApp.​ReportRowIterator

Represents an iterator of report rows.

Typical usage:

 var rows = report.rows();
 while (rows.hasNext()) {
   var row = rows.next();
 }
Related:

Methods:

MemberTypeDescription
hasNext boolean Returns true if the report has more rows.
next AdWordsApp.ReportRow Returns the next row in the report.

hasNext()

Returns true if the report has more rows.

Return values:

TypeDescription
boolean true if the report has more rows.

next()

Returns the next row in the report.

Report rows are returned as plain Javascript objects — in other words, associative arrays. Individual columns can be accessed by indexing by AWQL column names:

 var report = AdWordsApp.report(
     'SELECT Query, Ctr ' +
     'FROM   SEARCH_QUERY_PERFORMANCE_REPORT ' +
     'DURING 20130101,20130301');
 var rows = report.rows();

 while (rows.hasNext()) {
   var row = rows.next();
   var query = row['Query'];
   var ctr = row['Ctr'];
 }

Return values:

TypeDescription
AdWordsApp.ReportRow The next row in the report.

Enviar comentários sobre…

Precisa de ajuda? Acesse nossa página de suporte.