AdsApp.SearchRow
Stay organized with collections
Save and categorize content based on your preferences.
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;
}
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-18 UTC."],[[["Represents a single row of data returned from an AdsApp search query."],["Provides access to column values through nested objects mirroring the query structure."],["Can be iterated through using `hasNext()` and `next()` methods to retrieve individual rows."],["Column values are accessed using dot notation, e.g., `row.campaign.id` to get a campaign's ID."]]],[]]