AdsApp.​SearchRow

Represents a row of a report.

NOTE: The SearchRow is a JavaScript Object, holding all values requested. These values are nested inside the row object.

Typical usage:

  var query = 'SELECT campaign.id, campaign.name FROM campaign';
  var rows = AdsApp.search(query);
  while (rows.hasNext()) {
    var row = rows.next();
    // The row works as an associative array
    var campaign = row.campaign;
    var id = campaign.id;
    var name = campaign.name;
  }