class AccountsReports extends Resource (View source)

The "reports" collection of methods.

Typical usage is:

 $adsenseService = new Google\Service\Adsense(...);
 $reports = $adsenseService->accounts_reports;

Methods

generate(string $account, array $optParams = [])

Generates an ad hoc report. (reports.generate)

generateCsv(string $account, array $optParams = [])

Generates a csv formatted ad hoc report. (reports.generateCsv)

getSaved(string $name, array $optParams = [])

Gets the saved report from the given resource name. (reports.getSaved)

Details

ReportResult generate(string $account, array $optParams = [])

Generates an ad hoc report. (reports.generate)

Parameters

string $account

Required. The account which owns the collection of reports. Format: accounts/{account}

array $optParams

Optional parameters.

Return Value

ReportResult

Exceptions

Exception

HttpBody generateCsv(string $account, array $optParams = [])

Generates a csv formatted ad hoc report. (reports.generateCsv)

Parameters

string $account

Required. The account which owns the collection of reports. Format: accounts/{account}

array $optParams

Optional parameters.

Return Value

HttpBody

Exceptions

Exception

SavedReport getSaved(string $name, array $optParams = [])

Gets the saved report from the given resource name. (reports.getSaved)

Parameters

string $name

Required. The name of the saved report to retrieve. Format: accounts/{account}/reports/{report}

array $optParams

Optional parameters.

Return Value

SavedReport

Exceptions

Exception