Reports API Methods
getReport()
Returns a report interface used for interacting with an initialized report, based on the id
of the report provided in the request object.
You must use this to access the interface for individual reports to make changes or retrieve the report data, for example.
Examples
// Retrieve the report with the ID "my-report-id"
var myReport = reportsApp.getReport('my-report-id');
console.log(myReport);
// Retreive the data from the report
var myReportData = myReport.getData();
console.log(myReportData);
Arguments
-
reportID string
The report ID to retrieve.
Return value
Type object
The instance of the specified report with methods to interact with it.