class AccountsReports extends Resource (View source)

The "reports" collection of methods.

Typical usage is:

 $adsensehostService = new Google\Service\AdSenseHost(...);
 $reports = $adsensehostService->accounts_reports;

Methods

generate(string $accountId, string $startDate, string $endDate, array $optParams = [])

Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter. (reports.generate)

Details

Report generate(string $accountId, string $startDate, string $endDate, array $optParams = [])

Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter. (reports.generate)

Parameters

string $accountId

Hosted account upon which to report.

string $startDate

Start of the date range to report on in "YYYY-MM-DD" format, inclusive.

string $endDate

End of the date range to report on in "YYYY-MM-DD" format, inclusive.

array $optParams

Optional parameters.

Return Value

Report

Exceptions

Exception