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

| ### EndExperiment |
|---|
| `` rpc EndExperiment(`https://developers.google.com/google-ads/api/reference/rpc/v26/EndExperimentRequest`) returns (`https://protobuf.dev/reference/protobuf/google.protobuf#empty`) `` Immediately ends an experiment, changing the experiment's scheduled end date and without waiting for end of day. End date is updated to be the time of the request. List of thrown errors: [AuthenticationError](https://developers.google.com/google-ads/api/reference/rpc/v26/AuthenticationErrorEnum.AuthenticationError) [AuthorizationError](https://developers.google.com/google-ads/api/reference/rpc/v26/AuthorizationErrorEnum.AuthorizationError) [ExperimentError](https://developers.google.com/google-ads/api/reference/rpc/v26/ExperimentErrorEnum.ExperimentError) [HeaderError](https://developers.google.com/google-ads/api/reference/rpc/v26/HeaderErrorEnum.HeaderError) [InternalError](https://developers.google.com/google-ads/api/reference/rpc/v26/InternalErrorEnum.InternalError) [QuotaError](https://developers.google.com/google-ads/api/reference/rpc/v26/QuotaErrorEnum.QuotaError) [RequestError](https://developers.google.com/google-ads/api/reference/rpc/v26/RequestErrorEnum.RequestError) |

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).