* $contentService = new Google\Service\ShoppingContent(...); * $repricingreports = $contentService->repricingreports; * */ class RepricingrulesRepricingreports extends \Google\Service\Resource { /** * Lists the metrics report for a given Repricing rule. * (repricingreports.listRepricingrulesRepricingreports) * * @param string $merchantId Required. Id of the merchant who owns the Repricing * rule. * @param string $ruleId Required. Id of the Repricing rule. * @param array $optParams Optional parameters. * * @opt_param string endDate Gets Repricing reports on and before this date in * the merchant's timezone. You can only retrieve data up to 7 days ago * (default) or earlier. Format: YYYY-MM-DD. * @opt_param int pageSize Maximum number of daily reports to return. Each * report includes data from a single 24-hour period. The page size defaults to * 50 and values above 1000 are coerced to 1000. This service may return fewer * days than this value, for example, if the time between your start and end * date is less than page size. * @opt_param string pageToken Token (if provided) to retrieve the subsequent * page. All other parameters must match the original call that provided the * page token. * @opt_param string startDate Gets Repricing reports on and after this date in * the merchant's timezone, up to one year ago. Do not use a start date later * than 7 days ago (default). Format: YYYY-MM-DD. * @return ListRepricingRuleReportsResponse */ public function listRepricingrulesRepricingreports($merchantId, $ruleId, $optParams = []) { $params = ['merchantId' => $merchantId, 'ruleId' => $ruleId]; $params = array_merge($params, $optParams); return $this->call('list', [$params], ListRepricingRuleReportsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(RepricingrulesRepricingreports::class, 'Google_Service_ShoppingContent_Resource_RepricingrulesRepricingreports');