AdsApp.Report
Stay organized with collections
Save and categorize content based on your preferences.
Represents a Google Ads report.
Methods:
exportToSheet(sheet)
Exports the content of the report into a
External.Sheet.
Typical usage:
var spreadsheet = SpreadsheetApp.create("Report output");
var report = AdsApp.report("SELECT metrics.clicks, " +
"metrics.impressions, metrics.average_cpc, segments.hour " +
"FROM customer " +
"WHERE segments.date DURING LAST_MONTH");
report.exportToSheet(spreadsheet.getActiveSheet());
Logger.log("Report available at " + spreadsheet.getUrl());
Returns nothing.
Arguments:
Name | Type | Description |
sheet |
SpreadsheetApp.Sheet |
The sheet in a Google Spreadsheet to export the report to. |
rows()
Returns an iterator over the rows of the report.
Return values:
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."],[[["The `Report` object represents a Google Ads report and provides methods to interact with its data."],["You can export report data into a Google Sheet using the `exportToSheet` method."],["The `rows` method enables iteration through each row of the report's data."]]],[]]