class AccountsReports extends Resource (View source)

The "reports" collection of methods.

Typical usage is:

 $cloudchannelService = new Google\Service\Cloudchannel(...);
 $reports = $cloudchannelService->accounts_reports;

Methods

listAccountsReports(string $parent, array $optParams = [])

Lists the reports that RunReportJob can run. These reports include an ID, a description, and the list of columns that will be in the result. Deprecated: Please use Export Channel Services data to BigQuery instead. (reports.listAccountsReports)

run(string $name, GoogleCloudChannelV1RunReportJobRequest $postBody, array $optParams = [])

Begins generation of data for a given report. The report identifier is a UID (for example, 613bf59q). Possible error codes: PERMISSION_DENIED: The user doesn't have access to this report. INVALID_ARGUMENT: Required request parameters are missing or invalid. NOT_FOUND: The report identifier was not found. INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata contains an instance of OperationMetadata. To get the results of report generation, call CloudChannelReportsService.FetchReportResults with the RunReportJobResponse.report_job. Deprecated: Please use Export Channel Services data to BigQuery instead. (reports.run)

Details

GoogleCloudChannelV1ListReportsResponse listAccountsReports(string $parent, array $optParams = [])

Lists the reports that RunReportJob can run. These reports include an ID, a description, and the list of columns that will be in the result. Deprecated: Please use Export Channel Services data to BigQuery instead. (reports.listAccountsReports)

Parameters

string $parent

Required. The resource name of the partner account to list available reports for. Parent uses the format: accounts/{account_id}

array $optParams

Optional parameters.

Return Value

GoogleCloudChannelV1ListReportsResponse

Exceptions

Exception

GoogleLongrunningOperation run(string $name, GoogleCloudChannelV1RunReportJobRequest $postBody, array $optParams = [])

Begins generation of data for a given report. The report identifier is a UID (for example, 613bf59q). Possible error codes: PERMISSION_DENIED: The user doesn't have access to this report. INVALID_ARGUMENT: Required request parameters are missing or invalid. NOT_FOUND: The report identifier was not found. INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata contains an instance of OperationMetadata. To get the results of report generation, call CloudChannelReportsService.FetchReportResults with the RunReportJobResponse.report_job. Deprecated: Please use Export Channel Services data to BigQuery instead. (reports.run)

Parameters

string $name

Required. The report's resource name. Specifies the account and report used to generate report data. The report_id identifier is a UID (for example, 613bf59q). Name uses the format: accounts/{account_id}/reports/{report_id}

GoogleCloudChannelV1RunReportJobRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception