class Reports extends Resource (View source)

The "reports" collection of methods.

Typical usage is:

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

Methods

generate(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 $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 $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