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

| ### ScheduleExperiment |
|---|
| `` rpc ScheduleExperiment(`https://developers.google.com/google-ads/api/reference/rpc/v26/ScheduleExperimentRequest`) returns (`https://developers.google.com/google-ads/api/reference/rpc/google.longrunning#google.longrunning.Operation`) `` Schedule an experiment. The in design campaign will be converted into a real campaign (called the experiment campaign) that will begin serving ads if successfully created. The experiment is scheduled immediately with status INITIALIZING. This method returns a long running operation that tracks the forking of the in design campaign. If the forking fails, a list of errors can be retrieved using the ListExperimentAsyncErrors method. The operation's metadata will be a string containing the resource name of the created experiment. 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) [DatabaseError](https://developers.google.com/google-ads/api/reference/rpc/v26/DatabaseErrorEnum.DatabaseError) [DateError](https://developers.google.com/google-ads/api/reference/rpc/v26/DateErrorEnum.DateError) [DateRangeError](https://developers.google.com/google-ads/api/reference/rpc/v26/DateRangeErrorEnum.DateRangeError) [FieldError](https://developers.google.com/google-ads/api/reference/rpc/v26/FieldErrorEnum.FieldError) [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) [RangeError](https://developers.google.com/google-ads/api/reference/rpc/v26/RangeErrorEnum.RangeError) [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).