* $localservicesService = new Google\Service\Localservices(...); * $accountReports = $localservicesService->accountReports; * */ class AccountReports extends \Google\Service\Resource { /** * Get account reports containing aggregate account data of all linked GLS * accounts. Caller needs to provide their manager customer id and the * associated auth credential that allows them read permissions on their linked * accounts. (accountReports.search) * * @param array $optParams Optional parameters. * * @opt_param int endDate.day Day of a month. Must be from 1 to 31 and valid for * the year and month, or 0 to specify a year by itself or a year and month * where the day isn't significant. * @opt_param int endDate.month Month of a year. Must be from 1 to 12, or 0 to * specify a year without a month and day. * @opt_param int endDate.year Year of the date. Must be from 1 to 9999, or 0 to * specify a date without a year. * @opt_param int pageSize The maximum number of accounts to return. If the page * size is unset, page size will default to 1000. Maximum page_size is 10000. * Optional. * @opt_param string pageToken The `next_page_token` value returned from a * previous request to SearchAccountReports that indicates where listing should * continue. Optional. * @opt_param string query A query string for searching for account reports. * Caller must provide a customer id of their MCC account with an associated * Gaia Mint that allows read permission on their linked accounts. Search * expressions are case insensitive. Example query: | Query | Description | * |-------------------------|-----------------------------------------------| | * manager_customer_id:123 | Get Account Report for Manager with id 123. | * Required. * @opt_param int startDate.day Day of a month. Must be from 1 to 31 and valid * for the year and month, or 0 to specify a year by itself or a year and month * where the day isn't significant. * @opt_param int startDate.month Month of a year. Must be from 1 to 12, or 0 to * specify a year without a month and day. * @opt_param int startDate.year Year of the date. Must be from 1 to 9999, or 0 * to specify a date without a year. * @return GoogleAdsHomeservicesLocalservicesV1SearchAccountReportsResponse */ public function search($optParams = []) { $params = []; $params = array_merge($params, $optParams); return $this->call('search', [$params], GoogleAdsHomeservicesLocalservicesV1SearchAccountReportsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(AccountReports::class, 'Google_Service_Localservices_Resource_AccountReports');