class Recommendations extends Resource (View source)

The "recommendations" collection of methods.

Typical usage is:

 $contentService = new Google\Service\ShoppingContent(...);
 $recommendations = $contentService->recommendations;

Methods

generate(string $merchantId, array $optParams = [])

Generates recommendations for a merchant. (recommendations.generate)

reportInteraction(string $merchantId, ReportInteractionRequest $postBody, array $optParams = [])

Reports an interaction on a recommendation for a merchant.

Details

GenerateRecommendationsResponse generate(string $merchantId, array $optParams = [])

Generates recommendations for a merchant. (recommendations.generate)

Parameters

string $merchantId

Required. The ID of the account to fetch recommendations for.

array $optParams

Optional parameters.

Return Value

GenerateRecommendationsResponse

Exceptions

Exception

reportInteraction(string $merchantId, ReportInteractionRequest $postBody, array $optParams = [])

Reports an interaction on a recommendation for a merchant.

(recommendations.reportInteraction)

Parameters

string $merchantId

Required. The ID of the account that wants to report an interaction.

ReportInteractionRequest $postBody
array $optParams

Optional parameters.

Exceptions

Exception