* $contentService = new Google\Service\ShoppingContent(...); * $reports = $contentService->reports; * */ class Reports extends \Google\Service\Resource { /** * Retrieves merchant performance mertrics matching the search query and * optionally segmented by selected dimensions. (reports.search) * * @param string $merchantId Required. Id of the merchant making the call. Must * be a standalone account or an MCA subaccount. * @param SearchRequest $postBody * @param array $optParams Optional parameters. * @return SearchResponse */ public function search($merchantId, SearchRequest $postBody, $optParams = []) { $params = ['merchantId' => $merchantId, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('search', [$params], SearchResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Reports::class, 'Google_Service_ShoppingContent_Resource_Reports');