> [!CAUTION]
> **Caution:** This documentation is for Google Ads API **v23** . The latest active version is [**v26**](https://developers.google.com/google-ads/api/reference/rpc/latest/RecommendationService/GenerateRecommendations).

<button default="" value="grpc">gRPC</button> <button value="rest">REST</button>

| ### GenerateRecommendations |
|---|
| `` rpc GenerateRecommendations(`GenerateRecommendationsRequest`) returns (`GenerateRecommendationsResponse`) `` Generates Recommendations based off the requested recommendation_types. List of thrown errors: [AuthenticationError](https://developers.google.com/google-ads/api/reference/rpc/v23/AuthenticationErrorEnum.AuthenticationError.md.txt) [AuthorizationError](https://developers.google.com/google-ads/api/reference/rpc/v23/AuthorizationErrorEnum.AuthorizationError.md.txt) [HeaderError](https://developers.google.com/google-ads/api/reference/rpc/v23/HeaderErrorEnum.HeaderError.md.txt) [InternalError](https://developers.google.com/google-ads/api/reference/rpc/v23/InternalErrorEnum.InternalError.md.txt) [QuotaError](https://developers.google.com/google-ads/api/reference/rpc/v23/QuotaErrorEnum.QuotaError.md.txt) [RecommendationError](https://developers.google.com/google-ads/api/reference/rpc/v23/RecommendationErrorEnum.RecommendationError.md.txt) [RequestError](https://developers.google.com/google-ads/api/reference/rpc/v23/RequestErrorEnum.RequestError.md.txt) [Proto definition ![GitHub](https://developers.google.com/site-assets/logo-github.svg)](https://github.com/googleapis/googleapis/blob/master/google/ads/googleads/v23/services/recommendation_service.proto) |

Authorization scopes

:   Requires the following OAuth scope:

    - `https://www.googleapis.com/auth/adwords`

    For more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2).