> [!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/DataLinkService/CreateDataLink).

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

| ### CreateDataLink |
|---|
| `` rpc CreateDataLink(`CreateDataLinkRequest`) returns (`CreateDataLinkResponse`) `` Creates a data link. The requesting Google Ads account name and account ID will be shared with the third party (such as YouTube creators for video links) to whom you are creating the link with. 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) [DatabaseError](https://developers.google.com/google-ads/api/reference/rpc/v23/DatabaseErrorEnum.DatabaseError.md.txt) [DataLinkError](https://developers.google.com/google-ads/api/reference/rpc/v23/DataLinkErrorEnum.DataLinkError.md.txt) [FieldError](https://developers.google.com/google-ads/api/reference/rpc/v23/FieldErrorEnum.FieldError.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) [MutateError](https://developers.google.com/google-ads/api/reference/rpc/v23/MutateErrorEnum.MutateError.md.txt) [QuotaError](https://developers.google.com/google-ads/api/reference/rpc/v23/QuotaErrorEnum.QuotaError.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/data_link_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).